08:07 Agka: okay
08:07 Agka: let's say you're at... idk
08:07 Agka: 02:00:881 -
08:08 Agka: urk measure is slightly off)
08:08 Evening: welp red lines
08:08 Agka: 02:02:214 - the measure ends here, right?
08:08 Evening: should be still _kinda_ doable
08:08 Agka: yeah
08:09 Evening: ye
08:09 Agka: so 2214 - 0881 = 1233ms/measure
08:09 Evening: wait uh
08:09 Evening: 02:00:960 - i think it's here
08:09 Evening: the 1st one
08:09 Agka: ah, alright
08:10 Agka: that's 1154/measure
08:10 Evening: yep
08:10 Agka: okay, let's say we want to put a sine wave on 4 measures from 02:00:960
08:10 Agka: we want to put it every 4th of a beat so that's 16 divisions per cycle
08:11 Agka: so time start would be... 60000 * 2 + 960
08:11 Agka: 120960
08:11 Agka: a measure is 1233ms/measure and we want a full sine wave to happen through this measure
08:11 Agka: so 1233 is the time duration
08:12 Agka: we want this thing to wave around 1 so we replace return 1; with
08:12 Agka: Math.sin(2 * Math.PI * x) * 0.2 + 1.0;
08:12 Agka: (x is the fraction of the cycle)
08:13 Evening: aaa getting rusty with math
08:13 Evening: mmmmmm uhhhh lemme see
08:13 Agka: it's a sine wave that moves between 0.8 and 1.2
08:13 Evening: must M be capitalized
08:13 Evening: in the func
08:13 Agka: Yep.
08:14 Evening: alright
08:14 Agka: since a cycle is a full measure
08:14 Agka: we want 4 full measures so that is, 4 cycles
08:14 Agka: now we can click over "do it" and voila
08:15 Agka: ``(actually, I think my divisions per cycle is off by one, but hey)
08:16 Evening:
http://puu.sh/mco16/8e05b0778b.png i think i did something wrong
08:16 Agka: pi is capitalized