Skip to content

Commit 439960c

Browse files
authored
Merge pull request #188 from musikinformatik/topic-midinote
MIDI to recognise midinote and note parameters
2 parents 58874b8 + d588893 commit 439960c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

classes/DirtEventTypes.sc

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ DirtEventTypes {
4242
var freq, lag, sustain;
4343
var args, midiout, hasGate, midicmd, latency, chan;
4444
var sendNRPN, schedmidi, schedmidicmd, donecmd;
45-
var hasNote = ~n != \none, midiCommandPending = ~midicmd.notNil;
45+
var hasNote = (~n != \none or: {~note.notNil});
46+
var midiCommandPending = ~midicmd.notNil;
4647
var nrpnMSB, nrpnLSB, valMSB, valLSB;
4748
var ctlNum, control, num, val, note;
4849

0 commit comments

Comments
 (0)