loop_jump: unexpected behavior

nonagon's icon

I'm observing playback of a clip with the following properties:

64 beats long
Start marker at 1.1.1
Looping enabled
Loop start / end at beat positions 32 and 64 respectively

When observing the loop_jump property, I expect to see a bang when the playback position crosses beat 32, which I do see, however; the loop_jump observer also bangs when the clip is first triggered, i.e. when it starts playing from beat 1. This seems very wrong to me- am I missing something?

Andrew Pask's icon

patch please, as clear as possible.

-A

nonagon's icon

It appears that my initial assessment was incorrect- it's not playback that triggers the loop_jump observer bang, it's setting the path for the observer.

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

Here's a patch to demonstrate- it observes the first clip in the first track.

My understanding is that an observer will output the initial value of a property immediately after the property is set, then output any changes from that point on. In this case a bang (indicating the loop point was reached) seems incorrect as the initial state.

I can't attach a clip to this post, but if you just create one where the loop start point is somewhere after the first beat (in my case it was half-way through the clip), you should see what I mean.

Thanks!

Andrew Pask's icon

Right on - thanks for the patch, we'll investigate

For now I'm afraid you're going to have to work around this with a gate or something, sorry.

-A