adding note off
This commit is contained in:
Родитель
cbab42c48d
Коммит
1632fb49dd
12
midi.cpp
12
midi.cpp
|
@ -25,4 +25,16 @@ namespace midi {
|
|||
void sendNoteOn(uint8_t channel, uint8_t note, uint8_t velocity) {
|
||||
getMidi()->sendNoteOn(channel, note, velocity);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send a `Note Off` event
|
||||
* @param channel 0-15
|
||||
* @param note 0-127
|
||||
* @param velocity 0-127
|
||||
*/
|
||||
//% block
|
||||
//% channel.min=0 channel.max=15 note.min=0 note.max=127 velocity.min=0 velocity.max=127
|
||||
void sendNoteOff(uint8_t channel, uint8_t note, uint8_t velocity) {
|
||||
getMidi()->sendNoteOff(channel, note, velocity);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,6 +16,16 @@ declare namespace midi {
|
|||
//% block
|
||||
//% channel.min=0 channel.max=15 note.min=0 note.max=127 velocity.min=0 velocity.max=127 shim=midi::sendNoteOn
|
||||
function sendNoteOn(channel: uint8, note: uint8, velocity: uint8): void;
|
||||
|
||||
/**
|
||||
* Send a `Note Off` event
|
||||
* @param channel 0-15
|
||||
* @param note 0-127
|
||||
* @param velocity 0-127
|
||||
*/
|
||||
//% block
|
||||
//% channel.min=0 channel.max=15 note.min=0 note.max=127 velocity.min=0 velocity.max=127 shim=midi::sendNoteOff
|
||||
function sendNoteOff(channel: uint8, note: uint8, velocity: uint8): void;
|
||||
}
|
||||
|
||||
// Auto-generated. Do not edit. Really.
|
||||
|
|
Загрузка…
Ссылка в новой задаче