More development during the event

This commit is contained in:
2019-09-22 15:11:36 +01:00
parent 698f07c6ff
commit e4efc148ea
3 changed files with 32 additions and 0 deletions

22
cues.py
View File

@ -8,6 +8,9 @@ from constants import *
#%%
BPM = 126
client.activate()
with Cue('Q01', name='Mask', fadeIn=5, fadeOut=5):
@ -61,6 +64,12 @@ with Cue('Q08', name='Shrinking mask', fadeIn=1, fadeOut=1):
count = t / period
Match('#master_mask').scale = 0.01 + sine(count)
with Cue('Q09', name='Beating mask', fadeIn=1, fadeOut=1):
period = 60 / BPM
count = t / period
beat = sawtooth(count, duty=0.25)
Match('#master_mask').scale = 0.9 + 0.2 * impulse(beat)
with Cue('Q11', name='Rainbow triangles', fadeIn=1, fadeOut=1):
period = 5
count = t / period
@ -135,6 +144,12 @@ with Cue('Q24', name='Rushing stars', fadeIn=1, fadeOut=1):
m.color = white(sine(count))
m.scale = count % 1
with Cue('Q25', name='Beating stars', fadeIn=1, fadeOut=1):
period = 60 / BPM
count = t / period
beat = sawtooth(count, duty=0.25)
Match('#stars').scale = 0.9 + 0.2 * impulse(beat)
with Cue('Q31', name='Spirals', fadeIn=1, fadeOut=1):
period = 10
count = t / period
@ -143,3 +158,10 @@ with Cue('Q31', name='Spirals', fadeIn=1, fadeOut=1):
Match('#spirals').rotate = -count
Match('.spiral .segment').lineWidth = 1.5 ** meta.index
Match('.spiral .segment').color = hsv(count + meta.count / Spirals, meta.index / 8, value)
with Cue('Q41', name='Tunnel', fadeIn=1, fadeOut=1):
period = 2
count = t / period
Match('#tunnel').fader = 1
Match('#tunnel .loop').color = hsv(count - i/n, 1, 0.25 + 0.75 * i/n)
Match('#tunnel').scale = 1 + (TunnelLoopMultiplier - 1) * sawtooth(count)