diff options
author | David Runge <dave@sleepmap.de> | 2018-03-19 22:46:24 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2018-03-19 22:46:24 +0100 |
commit | 4608fe081f768110465966386f8aedcd6d6bd807 (patch) | |
tree | 12398f7c2ed9891961a43a078062556cffb85e3e /classes | |
parent | ca30350b00750710f6aba96ba09924531567803d (diff) | |
download | usbmidiism-4608fe081f768110465966386f8aedcd6d6bd807.tar.gz usbmidiism-4608fe081f768110465966386f8aedcd6d6bd807.tar.bz2 usbmidiism-4608fe081f768110465966386f8aedcd6d6bd807.tar.xz usbmidiism-4608fe081f768110465966386f8aedcd6d6bd807.zip |
classes/MIDIStateEvent.sc: Adding class to store MIDIState events.
Diffstat (limited to 'classes')
-rw-r--r-- | classes/MIDIStateEvent.sc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/classes/MIDIStateEvent.sc b/classes/MIDIStateEvent.sc new file mode 100644 index 0000000..5e9e40a --- /dev/null +++ b/classes/MIDIStateEvent.sc @@ -0,0 +1,17 @@ +MIDIStateEvent{ + var <type, <value, <chan, <msgNum, <>takeOver=false; + + *new{ + arg type, value, chan, msgNum; + ^super.newCopyArgs( + type, + value, + chan, + msgNum + ); + } + postln{ + postln("MIDIStateEvent (type="++type++", value="++value++ + ", chan="++chan++", msgNum="++msgNum++", takeOver="++takeOver++")"); + } +} |