Midi remote scripting, midi output if slot contains a clip?

Discuss music production with Ableton Live.
Post Reply
psx
Posts: 8
Joined: Mon Oct 23, 2006 8:57 pm
Contact:

Midi remote scripting, midi output if slot contains a clip?

Post by psx » Tue Aug 07, 2012 12:36 am

Does anyone know if there's a way via midi remote script to tell if a clip slot actually has a clip loaded/recorded into it? I'm playing with a modified version of the fcb1020 script but cannot find a way to determine if a clip exists in the slot or not. I need this for a lemur clip launcher. I need to be able to tell which clip slots already have clips in them. With the script I'm using, I only have 5 slots per track to work with and would like to k is which ones are free to record to. I've tried clipslot.has_clip but it seems to always return true.

Gangsterish
Posts: 23
Joined: Thu Jan 26, 2012 7:03 am
Location: Boulder, CO
Contact:

Re: Midi remote scripting, midi output if slot contains a clip?

Post by Gangsterish » Wed Feb 20, 2013 1:43 am

Rather than testing:

Code: Select all

if (clip_slot.has_clip):
Try:

Code: Select all

if (clip_slot._clip_slot.clip):
Hacky, and I don't know why has_clip doesn't work as expected, but this seems to do it.
- Gangsterish
ElectroSwing / GhettoFunk Producer / DJ from Boulder, CO

Post Reply