Mathober2024_Tangent

TangentFulModulo

For my first sketch of Mathober coded in LiveCodeLab, TangentFul will be using the 1st prompt of Mathober 2024: Tangent as well as the 29th prompt: Modulo. This is done by using the tan and modulo function in both the audio and visuals through overlaid LiveCodeLab sketches.

Poetry

Spiralling as the noise bounces
Bounces to the left
Bounces to the right
With no regard of the concept of depth
The concept of pace
Just knowing sometimes the colours or bright
And other times it needs to be dimmed
Needed to be simmed
With the spillover needing to be trimmed

Video

Code

LiveCodeLab

if time % 22 > 12
    scale ((tan(time % 6) + 0.5)/8) + 0.12
    simpleGradient red,orange,pink
else
    scale ((tan(time % 9) + 0.5)/19) + 0.12
    simpleGradient teal,yellow,orange

rotate time
scale 0.7

if time % 12 < 4
    animationStyle motionBlur
else if time % 12 > 7
    animationStyle paintOver

400 times with i
    fill red
    stroke blue
    rotate time * 2 + sin(i), time * 3 - cos(i), time * 2 + tan(i)/(frame/100)
        move cos(time / 10), tan(wave(0.03)), sin(time % 10)
            rect 1 - cos(time), tan(wave(0.04)), tan(time * (wave(0.03)))

400 times with i
    fill blue
    stroke black
    rotate time * 1.5 + sin(i), time * 1.2 - cos(i), time * 1.3 + tan(i)/(frame/100)
        move cos(time / 10)+ 10 - time%6, tan(wave(0.03)), sin(time % 10)
            rect 1 - cos(time), tan(wave(0.04)), tan(time * (wave(0.03)))

400 times with i
    fill green
    stroke red
    rotate time * 1.5 + sin(i), time * 1.2 - cos(i), time * 1.3 + tan(i)/(frame/150)
        move cos(time / 10)+ 10 - time%6, tan(wave(0.03)), sin(time % 10)
            rect 1 - cos(time - 0.1), tan(wave(0.04)), tan(time * (wave(0.63)))

if time % 30 > 20
    bpm 55
    play 'alienBeep'  ,'--x- --xx-x- -o-x- --xx--'
    play "mouth" + int(random 15) ,'x'
    play  "penta"  ,'--x- -x-- --x- -x--xx-'
    play "hiss" + int(tan(time) * 7) ,'x--x-o--o-x'
    play "pianoLDChord" + int(tan(120 / (time % 25))) ,'x--x--x'

else
    bpm 70
    play "pianoRHChord"   ,'--xx --x- --x- -x-x'
    play "scratch"  ,'--x- -x-x --x- -x-x-'
    play "mouth" + int(random 14) ,'x'
    play  "penta" + int(random 7) ,'xx--xx---xx'
    play "pianoLDChord" + int(tan(70 / (time % 15))) ,'xxxx----oo-----x-----x'
1
Subscribe to my newsletter

Read articles from Kofi / Illestpreacha directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Kofi / Illestpreacha
Kofi / Illestpreacha