Documentation ¶
Index ¶
- type Filter
- func Aftertouch() Filter
- func And(filters ...Filter) Filter
- func CC(controller int8) Filter
- func Channel(ch int8) Filter
- func NoteOff(key int8) Filter
- func NoteOffVelocity(key int8) Filter
- func NoteOn(key int8) Filter
- func Or(filters ...Filter) Filter
- func Pitchbend() Filter
- func PolyAftertouch(key int8) Filter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
Filter is a function that returns true when a certain kind of MIDI message was found.
func Aftertouch ¶
func Aftertouch() Filter
Aftertouch returns a Filter that triggers only for the aftertouch messages.
func CC ¶
CC returns a Filter that triggers only for the given controller. If controller is < 0, any controller will trigger.
func Channel ¶
Channel returns a Filter that triggers only for messages on the given MIDI channel. If ch is < 0, any channel will trigger.
func NoteOff ¶
NoteOff returns a Filter that triggers only for the given key. If key is < 0, any key will trigger.
func NoteOffVelocity ¶
NoteOffVelocity returns a Filter that triggers only for the given key. If key is < 0, any key will trigger.
func NoteOn ¶
NoteOn returns a Filter that triggers only for the given key. If key is < 0, any key will trigger.
func Pitchbend ¶
func Pitchbend() Filter
Pitchbend returns a Filter that triggers only for the pitchbend messages > 0.
func PolyAftertouch ¶
PolyAftertouch returns a Filter that triggers only for the polyaftertouch messages of the given key. If key is < 0, any key will trigger.