Welcome to %s forums

BrainModular Users Forum

Login Register

Any Example Clocking Modules Available?

Create your own modules in C++
Post Reply
sephult
Member
Posts: 1144
Contact:

Unread post by sephult » 23 Sep 2017, 13:51

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
"Every act of creation is first an act of destruction." -Picasso

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 25 Sep 2017, 14:31

do you mean clock for oscillators or clock as for VST's ?
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

sephult
Member
Posts: 1144
Contact:

Unread post by sephult » 26 Sep 2017, 01:54

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
"Every act of creation is first an act of destruction." -Picasso

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 26 Sep 2017, 11:02

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

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests