Exemplo n.º 1
0
func NoteOff(stream *portmidi.Stream, note int64, velocity int64) {
	stream.WriteShort(0x80|(midiChan-1), note, velocity)
	playing = -1
}
Exemplo n.º 2
0
func AllNotesOff(stream *portmidi.Stream) {
	stream.WriteShort(0xB0|(midiChan-1), 0x7B, 0x00)
	playing = -1
}
Exemplo n.º 3
0
func NoteOn(stream *portmidi.Stream, note int64, velocity int64) {
	playing = note
	stream.WriteShort(0x90|(midiChan-1), note, velocity)
}