getting current playing clip name of this devices track

johnisfaster's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I'm having trouble reconciling these two patches so that I can observe the currently playing clip name of whatever track the device is on.

johnisfaster's icon

Figured it out.

Max Patch
Copy patch and select New From Clipboard in Max.

That device will give you the name of whatever clip is playing in the track the device is on. That way I can trigger events in my max patch with clip names :)

johnisfaster's icon

Sorry to ramble on if no one is interested but I found that naming my clips with a simple number was problematic because the device was converting the number to "1" instead of 1. So I added a fromsymbol to make it back into an actual number.

This is all because I want to be able to use clip names to select multislider presets. I'm just sharing it here cause I can't imagine other people wouldn't find it useful.

Heres the version that fixes the number output.

Max Patch
Copy patch and select New From Clipboard in Max.
Raphael Jeanne's icon

Hey Johnifaster !

I'm very interested in your patch because i want to convert those clip names into Program change messages...
But I'd like to send those PC without launching the clips, i.e just by selecting the row that goes with each scene.

Ex: Track 1 and 2 are midi tracks that sends data on channel 1 & 2.
I select the scene 1, it sends automatically the clip names converted in PC into the max patch in the corresponding row.

It would allow me to sends PC without playing any clock...

Do u have an idea to fix my problem?

Thanks !!!!!

Raphael


Jay Walker's icon

This is how I do it with JS for the currently selected track.. the function below receives the playing clip index (currentClip) and outputs clipName.

var currentClip = null;

// Get Clip Name
function getClipName (currentClip) {
    var liveSet = new LiveAPI (dummyCallback, 'live_set view selected_track clip_slots ' + currentClip + ' clip')
    var clipName = liveSet.get('name');
    outlet(1, clipName);
}

function dummyCallback (){}

This is the code in my other patcher that sends the currentClip value:

// Get Playing Clip
function getPlayingClip() {
    var selectedTrack = new LiveAPI("live_set view selected_track");
    var playingClipIndex = selectedTrack.get("playing_slot_index");
    outlet(1, playingClipIndex);
}

Mirabz's icon

Hi :)

Thanks for the patch. Realy useful to me !

I'm looking for a way to do that in the arrangement view to send OSC trigger to another daw at specifique timings but I don't find the property which gives "the name of the current playing clip" or something like that.

Maybe you have an idea to help me ?

Thanks !