Replies: 2 comments 2 replies
-
I found a workaround. hs.inspect(hs.midi.devices()) I set that Midi port to the input of Max, and then I can send some commands using : toMax = hs.midi.new(hs.midi.devices()[2]) And it works :) Still that would be nice to add the ability to see the Midi Virtual Destinations in the hs.midi API. |
Beta Was this translation helpful? Give feedback.
-
OK thanks ! |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm currently trying to write a script to send MIDI commands (control change) to an external application.
I'm a beginner and I'm a bit lost.
The external application (Max, from Cycling 74) creates automatically 2 virtuals MIDI outputs ("From Max 1" and "From Max 2") and 2 virtual MIDI inputs ("To Max 1" and "To Max 2").
I know I need to send midi command to "To Max 1".
But I don't know how to access to that virtual MIDI canal in Hammerspoon...
When I type in the console hs.inspect(hs.midi.virtualSources()), I get { "from Max 1", "from Max 2" }.
But has its names says, these are Sources, no Destinations.
Can I access to MIDI destinations ?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions