aboutsummaryrefslogtreecommitdiffhomepage
path: root/sndfile.lua
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2015-12-31 10:17:25 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2015-12-31 14:09:09 +0100
commitfc9c4746a21226723875cebfbf310065038141bf (patch)
tree6e255faf3700ff5e7761e039d7e66113d8e2061a /sndfile.lua
parentf5e8f70a7aaab571e1136e2eb789e3c1ebdc26f6 (diff)
downloadapplause2-fc9c4746a21226723875cebfbf310065038141bf.tar.gz
implemented basic support for MIDI NOTE ON/OFF events
* MIDIVelocityStream will report the velocities on a particular note. This can be used to build polyphonic instruments. * MIDINoteStream will report all possible notes on a particular channel. The velocity of the note last triggered is also encoded into the stream values. This can be used to build simple monophonic instruments. * Map bit methods to stream methods, e.g. Stream:band() Is especially useful for streams that encode multiple values into single integers for performance reasons. * mtof() and ftom() methods for converting from and to MIDI note numbers. mtof() is very efficient since its values are all precalculated in a lookup table. * fixed tostring() method for streams smaller than 1024 samples
Diffstat (limited to 'sndfile.lua')
0 files changed, 0 insertions, 0 deletions