I can’t figure out something: I’m trying to send a midi note from the canvas using scripting: for example: sendMidiNote(“IAC Bus 1”, 0, 36) but nothing is happening in Ableton.
The IAC Bus 1 is correct and the midi input in Ableton from IAC Bus 1 is activated (track & remote).
So I can’t get any midi note out of canvas.
Any ideas what I’m doing wrong?
Hey Arno!
For midi note you’ll want
sendMidiNoteOn(output, channel, note)
At least to make Ableset send midi.
That 0 looks a little suspicious for a channel it is usually 1-16 I think? Unless 0 means omni?
1 Like
Hey @Arno_Schlijper,
Two quick checks:
1. Exact MIDI Output Name
Make sure the output name matches exactly what appears in Settings → MIDI Mapping, OSC & Scripting → Edit MIDI Mapping.
2. Button Type
Your Canvas button type must be set to Script
If it’s set to OSC, sendMidiNote() won’t run, and viceversa.
If you want a simpler approach, use an OSC button type instead:
/midi/send/note "IAC Bus 1" 1 36 127 100
Let me know if this works in your end.
I’m looking forward to your reply!