Page 1 of 1

Interface send MIDI note

Posted: 28 Apr 2013 19:51
by nieto
Hello
I want to know if it is possible that when I select an interface (page) on my Ipad, it sends a MIDI Note ON
(To automatically select a page on my Isadora software)
thank you

Re: Interface send MIDI note

Posted: 28 Apr 2013 23:42
by Softcore
edited....wait a sec I had something wrong lol

Re: Interface send MIDI note

Posted: 29 Apr 2013 00:05
by Softcore
Ok I think this should work!
_________________________________

You can do that by using an expression which will look up the current interface - the built in variable is "current_interface". (user manual 13.6 chapter)

Create an expression on the project root level, name it IntMon for example (InterfaceMonitor). Assign it to "current_interface" so that

Code: Select all

IntMon=current_interface
This will return the index number of the interface so if for example you want a note on message when the 3rd interface is selected you need to add a script, again project root level:

On Expression IntMon, any

Code: Select all

if (IntMon==2) noteout(0,64,127,1);
The above script will send a midi note 64 on, (thats an E on the 6th octave me thinks) with 127 velocity on midi channel 1 - alter it tyour desired settings

( noteout(target,note,vel,chan), page 131 of manual)


A second approach would be to script a pad into selecting the desired interface

on expression x, rising from zero (up arrow)

Code: Select all

selectinterface(2);
And then just map the same pad to the desired midi note on! (or even repeat the noteout function in the script just like thwe first one)

;)

Re: Interface send MIDI note

Posted: 01 May 2013 12:43
by nieto
A big thank you for this answer!