Interface send MIDI note

Discuss Lemur and share techniques.
Post Reply
nieto
Newbie
Posts: 2
Joined: 28 Apr 2013 19:05

Interface send MIDI note

Post 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
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: Interface send MIDI note

Post by Softcore »

edited....wait a sec I had something wrong lol
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: Interface send MIDI note

Post 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)

;)
nieto
Newbie
Posts: 2
Joined: 28 Apr 2013 19:05

Re: Interface send MIDI note

Post by nieto »

A big thank you for this answer!
Post Reply