How to Generate Animation (blink led feedback) ?

1

Hello

There is a timer that can call callback functions in the scripts ?

There is a command creating a reaction when selected clip is playing ?

Thanks

Hellem Answered question
0

For a blinking tempo synced beat related you can use this:

Listeners:

self.song().add_current_song_time_listener

Condition: define what you want

Action:

t = self.song().get_current_beats_song_time()
 s = str(t).replace(",", ".")
parts = s.split(".")
 if len(parts) >= 3 and parts[2].isdigit():
    sub = int(parts[2])
else:
    beats_f = float(t)
    sub = int((beats_f % 1.0) * 4) + 1
 if sub < 1:
    sub = 1
elif sub > 4:
    sub = 4
 if sub == 1:
    self.midi_cc_ch_0_val_16.send_value(127)
elif sub == 3:
    self.midi_cc_ch_0_val_16.send_value(0)

Right now i am trying to make it work with not listening to song_timer.

Hellem Edited answer
You are viewing 1 out of 4 answers, click here to view all answers.