Skip to content

Commit

Permalink
Tweaked pattern shifting ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
goldfish committed Feb 22, 2009
1 parent 91ff5d6 commit 0cf6ef1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beat_maker.pde
Expand Up @@ -256,12 +256,12 @@ void loop() {

// Set the kick pattern
void setKickPattern( int patternValue ) {
if( patternValue < 50 ){ // empty pattern
if( patternValue < 30 ){ // empty pattern
for( int i = 0; i < 32; i++ ){
kPattern[ i ] = 0;
}
}
else if( patternValue < 250 ){
else if( patternValue < 100 ){
for( int i = 0; i < 32; i++ ){
if( i%8 == 0 ){ // hit every 8th beat
kPattern[i] = 1;
Expand All @@ -274,7 +274,7 @@ void setKickPattern( int patternValue ) {
}
}
}
else if( patternValue < 500 ){
else if( patternValue < 300 ){
for( int i = 0; i < 32; i++ ){
if( i%4 == 0 ){ // hit every 4th beat
kPattern[i] = 1;
Expand Down

0 comments on commit 0cf6ef1

Please sign in to comment.