Skip to content

Commit

Permalink
allow arpegios to reuse voices. now arpeggios can be arbitrarily long
Browse files Browse the repository at this point in the history
  • Loading branch information
rl337 committed Feb 24, 2014
1 parent bd21c53 commit f555c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/Chordable.ck
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Chordable {

function void arpeggio(Chord chord, int sequence[], dur duration, float gain) {
for (0 => int i; i < sequence.cap(); i++) {
v[i].play(chord.note(sequence[i]), duration / sequence.cap(), gain);
v[i % v.cap()].play(chord.note(sequence[i]), duration / sequence.cap(), gain);
}
}

Expand Down

0 comments on commit f555c4d

Please sign in to comment.