send-note-off

copsmusic/midi-basic/send-note-off

Send a Note Off msg to MIDI output
send-note-off
@/send-note-off
Send a Note Off msg to MIDI output
TRGpulse
Trigger the sending of the Note Off msg
CH_INnumber
Channel of the msg
Notenumber
Note to stop
send-note-off
TRG
CH_IN
Note
Sent
Sentpulse
Triggered when the Note Off msg has been sent
To use the node in your project you should have the copsmusic/midi-basic library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

struct State {
};

{{ GENERATED_CODE }}

void evaluate(Context ctx) {
    int note;
    int channel;
        
    if (isInputDirty<input_TRG>(ctx)) {

        channel   = getValue<input_CH_IN>(ctx);
        note      = getValue<input_Note>(ctx);

        xod::copsmusic__midi::MIDI.sendNoteOff(note, 0, channel);

        emitValue<output_Sent>(ctx,1);
    }
}