diff options
| author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-04-16 17:09:49 +0200 |
|---|---|---|
| committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-04-16 17:09:49 +0200 |
| commit | 7f8536b4a6d7fd06b1cd4929f548d241183c09cd (patch) | |
| tree | e26f0579bc0988b4861e2da7582244121972442f /lib/MIDI.ck | |
| download | digitale-debutanten-7f8536b4a6d7fd06b1cd4929f548d241183c09cd.tar.gz | |
initial import of files relevant for noise project
Diffstat (limited to 'lib/MIDI.ck')
| -rw-r--r-- | lib/MIDI.ck | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/MIDI.ck b/lib/MIDI.ck new file mode 100644 index 0000000..be808db --- /dev/null +++ b/lib/MIDI.ck @@ -0,0 +1,18 @@ +/* + * Global MIDI tools + */ +public class MIDI { + static int channels; + + static int noteOff; + static int noteOn; + + fun static int + isCmd(int data, int cmd) + { + return data >= cmd && data < cmd + channels; + } +} +0x10 => MIDI.channels; +0x80 => MIDI.noteOff; +0x90 => MIDI.noteOn; |
