Radio Switch - set active switch with incoming midi note

Discuss Lemur and share techniques.
Post Reply
stk
Newbie
Posts: 13
Joined: 04 Apr 2014 23:09
Location: rat city, australia
Contact:

Radio Switch - set active switch with incoming midi note

Post by stk »

Hi,
I have a switch with 10 segments, set to radio mode.
I would like to switch the active segment with an incoming MIDI note (eg note 0 actives segment 0, 1 activates 1 and so on).

I have the switch set up like this:
Image

The switch is receiving midi, but instead of changing its state, it just activates each segment without deactivating the previous one (basically acting as if it was not in radio mode). Am I missing something here, or will this require a custom script?

Thanks,
Skye
stk
Newbie
Posts: 13
Joined: 04 Apr 2014 23:09
Location: rat city, australia
Contact:

Re: Radio Switch - set active switch with incoming midi note

Post by stk »

Also, I've tried using separate pad buttons to achieve this, and they also do not deactivate when the incoming midi note ends.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: Radio Switch - set active switch with incoming midi note

Post by Softcore »

Yup! There is this thing with various aspects of lemur like "physics" mode or the 'radio" mode of switches which do not "persist" over incoming midi messages. For example if you have a multiball with physics enabled and it receives a feedback midi message the physics are then ignored.

So...one way, would be to actually also send midi note-off messages from the controlled application....OR.....script the functionality instead of relying on 'radio" mode alone.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: Radio Switch - set active switch with incoming midi note

Post by Softcore »

I cannot test this example right now, but it should work as you desire and with the note values specified in your image above.

What the "on midi" script does essentially is turning "off" any switch that is NOT the incoming midi note message with any velocity greater than zero.
Attachments
scripted-radio-input.jzml
(1.52 KiB) Downloaded 105 times
stk
Newbie
Posts: 13
Joined: 04 Apr 2014 23:09
Location: rat city, australia
Contact:

Re: Radio Switch - set active switch with incoming midi note

Post by stk »

Oh great, thanks for that Softcore, and thanks for the heads up on local vs remote control of lemur controls. I will give this a try when I'm home tonight.

Cheers!
stk
Newbie
Posts: 13
Joined: 04 Apr 2014 23:09
Location: rat city, australia
Contact:

Re: Radio Switch - set active switch with incoming midi note

Post by stk »

Mate, works perfectly and was exactly what I was after. Thanks!
Post Reply