|
|
@ -165,11 +165,11 @@ class Auditioner(object): |
|
|
|
def triggerNoteOnCallback(self, timestamp, channel, pitch, velocity): |
|
|
|
"""args are: timestamp, channel, note, velocity. |
|
|
|
consider to change eventloop.slowConnect to fastConnect. And also disconnect in self.disable()""" |
|
|
|
if self.idKey: |
|
|
|
if self.idKey and self.instrumentLayer: |
|
|
|
self.parentData.instrumentMidiNoteOnActivity(self.idKey, pitch, velocity) |
|
|
|
|
|
|
|
def triggerNoteOffCallback(self, timestamp, channel, pitch, velocity): |
|
|
|
"""args are: timestamp, channel, note, velocity. |
|
|
|
consider to change eventloop.slowConnect to fastConnect. And also disconnect in self.disable()""" |
|
|
|
if self.idKey: |
|
|
|
if self.idKey and self.instrumentLayer: |
|
|
|
self.parentData.instrumentMidiNoteOffActivity(self.idKey, pitch, velocity) |
|
|
|