Send Midi note?
Hi there,
Is it possible to program a shortcut to send a midi note command?
So you could have like a little vitual keyboard on a StreamDeck for example.
Thanks
- Christian Scheuer @chrscheuer2019-10-24 08:55:24.467Z
You can send raw midi data via the
sf.midi.send
command, so you could send a note on on channel 1 like this:sf.midi.send({ outputNum: 1, midiBytes: [0x90, 36, 100] });
However, currently it's not possible to register key-up events in SoundFlow. So you'd have a problem with sending note off messages.
Chip Sloan @ChipSloan
Okay, here's an interesting idea. I do this with an arduino board plus a hardware button but wonder if we could do it with Java. Can this script be altered to send one note if held down and a different note if tapped, maybe with a settable .5 second time etc. Is that possible?
Christian Scheuer @chrscheuer2020-09-03 18:04:08.178Z
Hi Chip,
When you say held down what are you referring to here - with which type of input would you trigger this?
- CChip Sloan @Chip_Sloan
Hi Christian,
I should have been more specific. What I want to do is use a steam deck button to send a midi note. One note when tapped quickly, and a second note for when held down. Basically to build a talkback button with 2 functions.
Christian Scheuer @chrscheuer2020-09-07 19:47:44.494Z
Ah, gotcha. Unfortunately, SoundFlow doesn't currently allow you to react differently to a short or a long press on a Stream Deck button - so you'd need to have 2 separate buttons for now.