sawtooth from midi.clock.sawtooth(1) vs from gmem of midi.clock.bpm(1)

7 views
Skip to first unread message

pvdd

unread,
Jun 2, 2024, 3:11:26 PMJun 2
to Lightjams
Hello,

I have one source with this formula : 
gmem(0,60/midi.clock.bpm(1))

In theory, it should store the beat duration in seconds  (e.g. 0.5 seconds for 120 bpm).

Then I'm comparing on the same grid 2 sources : 
one with sawtooth(grecall(0))
another with midi.clock.sawtooth(1)

They don't pulse in sync and the shapes are also quite different.

What am I missing here ?
Thx,
P.

midi clock gmem.mp4

Mathieu

unread,
Jun 2, 2024, 3:30:57 PMJun 2
to Lightjams
Hi,

The midi.clock.sawtooth function is in sync with the bpm and the beats. It generates 100% right when there's a beat. So that's why when compared to a "normal" sawtooth function, the 100% isn't at the same position and is like 100-sawtooth(60/midi.clock.bpm(1))

The speed should be the same though. In your project, what is the value of midi.clock.bpm(1)? You can post your project file to help troubleshooting. For example, if you have a speed slider that isn't at 1x, the sawtooth function is affected by it.

Reply all
Reply to author
Forward
0 new messages