Page 1 of 1

Posted: 23 Sep 2017, 13:51
by sephult
I was just curious if there were any already made Clocking Modules for use in the SDK, or any code snippets to share?
I don't want to be redundant, I'd rather evolve things and keep a standard rather than many duplicate modules of the same type.

-s

Posted: 25 Sep 2017, 14:31
by oli_lab
do you mean clock for oscillators or clock as for VST's ?

Posted: 26 Sep 2017, 01:54
by sephult
Just general like a sync clock, position clock base...etc.. or square oscillator...haha
I have a synchro control that I use all the time that senso made and I'd like to actually do a sequencer clock controller.


-s

Posted: 26 Sep 2017, 11:02
by 23fx23
if syncing to usine musical events best is prob to use ppQ, smpte or other ms datas given in the vsttime info strucure as source depending on what wanna build
http://www.sensomusic.org/sdkdoc/html/s ... _info.html

for clocks sequencer/lfo ect personally i usually use multipliers and fmods of PPQ, ie getting a clock 2x faster: fmod(PPQ * 2, nb_of wanted_beats)
otherwise if no synced basically count blocs like in bloc counter scripts, each bloc a counter increments in process procedure, a callback or event reset it.
then eventually multiply by something like bloc_duration global variable. or another way is check timeMs at a start of event, then while process run TimeMs - start-time gives the current ellapsed time. in fact there are many diiferent way depending on final taget goal, not sure a general template fits