Skip to content

Commit

Permalink
dirt-event: add diversion again
Browse files Browse the repository at this point in the history
This fixes #7.
  • Loading branch information
telephon committed Mar 4, 2016
1 parent 4dc66c7 commit c36b173
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions classes/DirtEvent.sc
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ DirtEvent {

play {
event.use {
// s and n stand for synth/sample and note/number
~s ?? { this.splitName };
this.getBuffer;
this.orderRange;
this.calcRange;
this.playSynths;
// unless diversion returns something, we proceed as usual
~diversion.value ?? {
this.getBuffer;
this.orderRange;
this.calcRange;
this.playSynths;
}
}
}

Expand Down

0 comments on commit c36b173

Please sign in to comment.