Forums > Max For Live

Scene increment / loop

Feb 12 2012 | 10:50 pm

I recently built this ‘relative’ scene launcher to simplify scene automation from my MIDI controller – I just need to launch any scene labelled ‘mstr’ to be able to launch scenes relative to it from my other, hard-mapped buttons.

I now want to be able to set it up so that my drummer can step through these scenes with one drum-pad – increment the current scene. I’m thinking I need add a ‘loop length’ to the master scene name, and then use another regexp to extract the number from the end of the scene, so he can loop around a few scenes.

Total noob at this, I wonder if anyone can help me get started? I attach the current scene launching patch – I’ve added ‘post-it’ style notes to it that should hopefully make things clearer than my rambling :)

— Pasted Max Patch, click to expand. —
Feb 12 2012 | 11:54 pm

Err ok I’m getting somewhere with this but now stumped by some basic regexp stuff… any help much appreciated!

I just want the regexp to pull the last number from a scene label and set that as the ‘scene loop length’.

-- Pasted Max Patch, click to expand. --

(NB. thread mirrored here –

Feb 13 2012 | 12:13 am

Darn, I just realised I have a more tricky regexp to write… basically it needs to do this:

IF scene has ‘mstr’ in the label, THEN Get scene ‘loop length’ from last numbers in scene label.

Is something like this possible?

Feb 13 2012 | 12:18 am

Patch so far:

-- Pasted Max Patch, click to expand. --

Feb 13 2012 | 12:50 am

it’s like the guy on ableton forum wrote you need to make your problem more specific. how can i tell how the scene name will look like. what’s between mstr and the number.

why don’t you put example messages (names) in there.

Viewing 5 posts - 1 through 5 (of 5 total)

Forums > Max For Live