Skip to content

Commit

Permalink
Merge branch 'master' into handle
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Dec 9, 2023
2 parents 56e4e6c + bc9c284 commit dd44e7b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions VortexEngine/src/Menus/MenuList/Randomizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ void Randomizer::traditionalPattern(Random &ctx, PatternArgs &outArgs)
// call next8 explicitly in this order because the order they
// are called is undefined when called as parameters to another function.
// ex: f(a,b,c) may call in the order a,b,c or c,b,a depending on compiler.
// So different compilers may produce different results,
// So different compilers may produce different results,
// but like this it is explicit
uint8_t off = ctx.next8(8, 60); // off duration 0 -> 60
uint8_t on = ctx.next8(1, 20); // on duration 1 -> 20
uint8_t on = ctx.next8(1, 20); // on duration 1 -> 20
outArgs.init(on, off);
}

Expand All @@ -245,11 +245,11 @@ void Randomizer::gapPattern(Random &ctx, PatternArgs &outArgs)
// call next8 explicitly in this order because the order they
// are called is undefined when called as parameters to another function.
// ex: f(a,b,c) may call in the order a,b,c or c,b,a depending on compiler.
// So different compilers may produce different results,
// So different compilers may produce different results,
// but like this it is explicit
uint8_t gap = ctx.next8(40, 100); // gap duration 40 -> 100
uint8_t off = ctx.next8(0, 6); // off duration 0 -> 6
uint8_t on = ctx.next8(1, 10); // on duration 1 -> 10
uint8_t on = ctx.next8(1, 10); // on duration 1 -> 10
outArgs.init(on, off, gap);
}

Expand All @@ -258,11 +258,11 @@ void Randomizer::dashPattern(Random &ctx, PatternArgs &outArgs)
// call next8 explicitly in this order because the order they
// are called is undefined when called as parameters to another function.
// ex: f(a,b,c) may call in the order a,b,c or c,b,a depending on compiler.
// So different compilers may produce different results,
// So different compilers may produce different results,
// but like this it is explicit
uint8_t dash = ctx.next8(20, 30); // dash duration 20 -> 30
uint8_t gap = ctx.next8(20, 30); // need gap 20 -> 30
uint8_t off = ctx.next8(0, 10); // off duration 0 -> 10
uint8_t off = ctx.next8(0, 10); // off duration 0 -> 10
uint8_t on = ctx.next8(1, 10); // on duration 1 -> 10
outArgs.init(on, off, gap, dash);
}
Expand All @@ -272,10 +272,10 @@ void Randomizer::crushPattern(Random &ctx, PatternArgs &outArgs)
// call next8 explicitly in this order because the order they
// are called is undefined when called as parameters to another function.
// ex: f(a,b,c) may call in the order a,b,c or c,b,a depending on compiler.
// So different compilers may produce different results,
// So different compilers may produce different results,
// but like this it is explicit
uint8_t group = ctx.next8(0, 8); // groupsize 0 to 8
uint8_t dash = 0; // dash 0
uint8_t dash = 0; // dash 0
uint8_t gap = ctx.next8(20, 40); // need gap 20 -> 40
uint8_t off = ctx.next8(0, 10); // off duration 0 -> 5
uint8_t on = ctx.next8(1, 10); // on duration 1 -> 10
Expand Down

0 comments on commit dd44e7b

Please sign in to comment.