Skip to content

Commit

Permalink
Merge pull request pichenettes#21 from rcrogers/yarns-record-prevents…
Browse files Browse the repository at this point in the history
…-other-part-accept

Yarns parts don't accept input if another part is recording on the same channel
  • Loading branch information
pichenettes authored May 15, 2019
2 parents f84119a + 92b5c1f commit 517a398
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions yarns/part.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ class Part {
}

inline bool accepts(uint8_t channel) const {
if (!(transposable_ || seq_recording_)) {
return false;
}
return midi_.channel == 0x10 || midi_.channel == channel;
}

Expand Down

0 comments on commit 517a398

Please sign in to comment.