Clip slot is sometimes undefined

Learn about building and using Max for Live devices.
Post Reply
nassim
Posts: 3
Joined: Tue Dec 17, 2019 7:29 pm

Clip slot is sometimes undefined

Post by nassim » Tue Dec 17, 2019 7:56 pm

Hello everyone,

I've been fiddling with Max 4 Live to make a looper/resampler
The idea is to be able to use to recorded loop as a source material so that the effect chain can be used as many times as wanted, one modification at the time; Once the recording is done, the recorded loop replaces the current source loop and the effects are reset so that they aren't applied twice

It's pretty hard to explain, if you've seen Tim Exile's live performances then you know exactly what I'm talking about.
You can watch this short video to see the Max device in action : https://youtu.be/Z5rLokHia1I

My problem is that every once in a while, I'll get an error telling me that the clip slot is undefined. That is strange because the action is triggered by an event listener on this very clip, watching for a clip to finish recording. You can see on the picture that the next error is that the clip cannot be copied while it's recording, which is inconsistent with the previous error message that didn't find the clip.

Here is the ableton project and max device containing it: https://www.sendspace.com/file/pxicfq
And the error :
Image

Thanks for the help !
Last edited by nassim on Wed Dec 18, 2019 8:30 pm, edited 2 times in total.

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

Re: Clip slot is sometimes undefined

Post by chapelier fou » Tue Dec 17, 2019 8:35 pm

Please first freeze the M4L device then save it.
Then collect and save the project and share it.
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

nassim
Posts: 3
Joined: Tue Dec 17, 2019 7:29 pm

Re: Clip slot is sometimes undefined

Post by nassim » Tue Dec 17, 2019 9:27 pm

I've updated the post with the following link: https://www.sendspace.com/file/pxicfq
Thanks for the help 👍

nassim
Posts: 3
Joined: Tue Dec 17, 2019 7:29 pm

Re: Clip slot is sometimes undefined

Post by nassim » Wed Dec 18, 2019 8:30 pm

ShelLuser wrote:
Wed Dec 18, 2019 9:28 am
Your header says that clip slot is sometimes undefined but I don't see that in the error message; note how it's not the API which generates it? Instead it appears that your variable recordingSlot somehow ended up undefined and that's a different ballgame.
Thank you for your answer
The error doesn't come directly from live, but the recordingSlot reference is given to me by Live. I've updated the error image with an explanation that should be much clearer.

Post Reply