MIDI Remote Scripts sending clip color information?

Discuss music production with Ableton Live.
Post Reply
jschunick
Posts: 3
Joined: Thu Feb 24, 2011 7:01 pm

MIDI Remote Scripts sending clip color information?

Post by jschunick » Thu Oct 25, 2012 12:19 am

Hi. I am wondering if there is any way to send the value of a clip's color to a midi device that is connected via Remote Script? I know it can be done with Max4Live and I have seen it done before using OSC and an iPad. However, is it possible to send this information to a device using just MIDI Remote Scripts?

You can use this API command in M4L to obtain a 0x00RRGGBB value corresponding to the highlighted clips color: live_set view highlighted_clip_slot clip

Can you call this command in a remote script?

What I would like to do is send the 0x00RRGGBB information to a MIDI device using just Remote Scripting, so a user does not have to have Max4Live or use third party OSC applications.
:?:

Thanks in advance

wiffbi
Posts: 238
Joined: Wed Aug 18, 2004 4:53 pm

Re: MIDI Remote Scripts sending clip color information?

Post by wiffbi » Thu Oct 25, 2012 9:08 am

You can access a clip’s color via the API, so yes, it is possible with just Remote Scripts (note, this documentation page is for the Live Object Model, which is available to all Remote Scripts, not just M4L):

http://cycling74.com/docs/max5/refpages ... .html#Clip

The thing missing, is how to send the RGB value over MIDI. I assume some MIDI SysEx magic? Btw. you cand send MIDI bytes in Remote scripts using the c_instance.send_midi function.

oddstep
Posts: 1732
Joined: Tue Feb 12, 2008 9:47 pm
Location: Plymouth the great

Re: MIDI Remote Scripts sending clip color information?

Post by oddstep » Thu Oct 25, 2012 10:03 am

Could you create a look up table that created midi note RGB value pairs.

chapelier fou
Posts: 6357
Joined: Mon May 15, 2006 12:15 pm

Re: MIDI Remote Scripts sending clip color information?

Post by chapelier fou » Thu Oct 25, 2012 10:45 am

What hardware will display the colors ?
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

jschunick
Posts: 3
Joined: Thu Feb 24, 2011 7:01 pm

Re: MIDI Remote Scripts sending clip color information?

Post by jschunick » Thu Oct 25, 2012 2:21 pm

Thanks for the help so far everyone!

So from what I understand, anything that is in the LiveAPI written here can be accessed via remote script? http://cycling74.com/docs/max5/refpages ... .html#Clip

I am kind of new to python and remote scripting, how would I call the clip color command (i think its this: live_set view highlighted_clip_slot clip)

As to how I would send the information to my device, I was thinking I would send the clip color information over a custom sysex message.

For those asking what device would display the colors, its for a custom controller I am building.

Thanks everyone!

snappyass
Posts: 60
Joined: Sat Jan 04, 2014 1:40 pm

Re: MIDI Remote Scripts sending clip color information?

Post by snappyass » Sun Oct 19, 2014 8:02 am

Hi. ive been wondering if its possible to send a different value out once a clip has played.
If it is possible to send a different value out for clip colour this would work in conjunction with the change clip clolour max device. can anybody help?

Post Reply