Page 3 of 10
Re: Synced LFO
Posted: Sat Sep 13, 2014 1:26 am
by RJHollins
lets say we use 4/4
is a bar 4 quarter notes? or 4*4 quarter notes?
sadly i'm not a musician as i always understood it a beat is 4 quarter notes and a bar is 4 beats (16 quaternotes)
The denominator defines what type of note get 1 beat. In this case, 4 [quarter note] gets 1 beat. Thereby, 4 quarter notes would fill a measure. If it was an 8 [eighth note] in the denominator, then an 1/8 note would get 1 beat. A measure would contain 8 eighth notes.
Obviously, we are just describing a full measure with the same [fractional] value, 1/4s or 1/8ths.
The numerator defines how many beats in a measure [bar].
So 4/4 time signature says: 4 beats in a measure, 1/4 note gets 1 beat.
6/8 time sig .... 6 beats/measure, 1/8th note gets 1 beat.
TEMPO is defined as BPM [Beats Per Minute].
Re: Synced LFO
Posted: Sat Sep 13, 2014 5:45 am
by Perfect Human Interface
Nubeat7 wrote:its because you multiply PPQ with speed, so it counts faster and you get a shorter ramp..
Ah, Nubeat, I completely missed your post here. Haha oops.
I'll take another look at this soon. I don't care for the math either myself. The silly thing is it's not even complex math; I just get confused trying to keep track of everything in my head while staring at all these wires and nested modules on a screen. The longer I try to think about it the more confused I get.

Hopefully now that I've had a rest from this I can go back and make more sense of it.
Re: Synced LFO
Posted: Sat Sep 13, 2014 7:45 am
by Nubeat7
oh man thank you guys, so the whole bar calculation i did is wrong then, because like tulamide said it calculated for 4 bars (when using 4/4) which should be just 1 bar, so i need to calculate the barcount as follows:
barcount = 4 (basenote is always a quater because PPQ is position per quaternote)/denom * numerator (beats in bar)
then you calculate as you would intend on a barbased cycle
speed = 32 for 1/32 barlenght cycle
because the cycle runs 32 times in one bar
here is the fix..
please tell me if everything is working right now, it also should work fine with 7/8, 5/4, 3/4...and whatever
Re: Synced LFO
Posted: Sat Sep 13, 2014 8:19 am
by Perfect Human Interface
Will check it out later!
Re: Synced LFO
Posted: Sat Sep 13, 2014 9:25 am
by RJHollins
Hi NuBeat ...
If I've actually helped YOU ... that makes ME happy

Re: Synced LFO
Posted: Sat Sep 13, 2014 10:15 am
by Nubeat7
oh yes RJ, you did, i was wrong with this beats and bars thing all the time

, thank you for your clear explanation!
Re: Synced LFO
Posted: Sat Sep 13, 2014 11:51 am
by Father
Nubeat7 wrote:please tell me if everything is working right now, it also should work fine with 7/8, 5/4, 3/4...and whatever
Yeah its not working in synced mode.
Also in the speed selector, values for 1/8 and 3/64 seem to be incorrect. I think they should be 8 and 24.
Re: Synced LFO
Posted: Sat Sep 13, 2014 12:21 pm
by Nubeat7
hmm, strange, i just did some fast tests with the original steplfo in cubase and it seems to work fine there..
about the selector values, yes for 1/8 it should be 8 and for 3/64 yes 24 should be right - i just divided the old values through 4 , maybe i did a mistake there...
where you testet it? and whats not right?
Re: Synced LFO
Posted: Sat Sep 13, 2014 12:35 pm
by Nubeat7
oh i found the bug, its a stupid code bug i did you need to use the PPQ input (written with capital letters) and delete the float variable ppq (with the small letters)
just reuploaded it..
Re: Synced LFO
Posted: Sat Sep 13, 2014 1:56 pm
by tulamide
We can start to call it a real teamwork
If I'm not totally wrong, then the numbers for the selector are mostly wrong below 1 bar. The calculation should be
1/barindicator
For a 3/4 bar that would be 1/(3/4) = 1/0.75 = 1.33333 (Note that it's periodic, but FS will reduce it to 5 digits after the dot)
for a 3/8 bar it would be 1/(3/8) = 1/0.375 = 2.66667 (Also periodic)
for a 3/16 bar 1/(3/16) = 1/0.1875 = 5.33333 (periodic)
etc.
If I'm right, the correct list of numbers
below "1 bar" is
1.33333
2
2.66667
4
5.33333
8
10.66667
16
21.33333
32
EDIT: And similar for the numbers above "1 bar"
"3/2 bar" = 0.66667
"3" = 0.33333
"6" = 0.16667