Recording Clips

66 viewsCSS Bugs
0

Hi.
I have created a script that fires a clip with a button press with a condition before firing:

Listeners:
Button was pressed

Block 1
Conditions:
self.song().view.highlighted_clip_slot.has_clip == True
and
self.song().view.highlighted_clip_slot.clip.is_recording == False
and
self.song().view.highlighted_clip_slot.clip.is_playing == True
Actions:
self.song().view.highlighted_clip_slot.stop()
return

Block 2
self.song().view.highlighted_clip_slot.fire()

So that works great – fires (with a button press) to record when clip slot has no clip, fires to play (with a button press) when recording, stops (with a button press) when playing.

But!
That do not work for the first time ableton opens.
At the first time – with empty slot – i press button – clip starts to record and immdiately fires to play. So the clip with minimum length was recorded.

After that – i can work with button fine. I can delete clip – and press to record – i will continue recording unltill the button would be pressed to play clip.

How that issu can be fixed to normal behavior?

Normal behavior is to start recording a clip when empty clip was fired with no immediately fired once again to make clip play.

admin Changed status to publish May 22, 2024
Attached Files:
0

oh…. i see that CSS has a huge mess with button behavior…
At the first time ableton opens – it thinks that my button is toggle – so it capture FIRE twice.
But later my button become toggle – and everything works fine.

My button is true momentary by hardware, and it is set to momentery in CSS controller template. But listener “Button was pressed” acts unexpectedly.. as i see it works half cases momentary – half cases toggle……..

admin Changed status to publish May 22, 2024
Attached Files: