Welcome to %s forums

BrainModular Users Forum

Login Register

"pattern clock" synchro problem

I need help on a Patch
Post Reply
nelson
Member
Posts: 36
Contact:

Unread post by nelson » 04 Oct 2012, 21:10

I need to make what I call "pattern clock" (tell me if its done already) like this:

input:
1. base interval (for example: 100ms)
2. pattern array (for example: 2, 2, 4, 8)

output:
clock "tick" multiplicating base interval according to pattern array - for ex. 200ms from start, then next 200ms, then 400ms, then 800ms ...

easy.

problem is to synchronize 2 patches like that and I dont know why.
for example:
array1 is 2,2,4,8
array2 is 2,2,2,2,2,2,2,2

sum of both = 16 so both clocks should synchronise after 1600ms ...BUT they never do
longer array takes more time. I think its a events processing time ...

HOW to make it in proper way?

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 04 Oct 2012, 23:49

Can you provide a little simplified patch to illustrate this question..?
Always better for people who want help you...:)

nelson
Member
Posts: 36
Contact:

Unread post by nelson » 05 Oct 2012, 00:42

upsss... sory :)

here is workspace http://www.sensomusic.com/forums/upload ... k-test.wkp ,
i've made this clock with script (easier) .... but its still dont synchronize.
elapsed time modules measures sequence duration. sequence with more array elements takes more time :(

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 05 Oct 2012, 11:12

i can't explain about script ( never found time to study enough) but here a comparison patch, tell me if it's ok for you
test_seq_switch_vs_script

nelson
Member
Posts: 36
Contact:

Unread post by nelson » 05 Oct 2012, 14:23

thank you for help!

Your patch works perfectly but my case is to make a clock that can "tick" little bit strange patterns like "21, 34, 21, 34" ... its hard to do that with SeqSwitch modules - pattern is generated with some algorithm and can have different length (but sum of all elements is constant for all of them so rythm should be in synchro)

check this out:
http://sensomusic.com/forums/uploads.ph ... clock2.wkp
i've made as a patch not script.

please tell me there is any solution :)

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 05 Oct 2012, 15:26

Have you try to use the smallest bloc size possible..?
I've 1,27 ms of difference here, but maybe i miss something

nelson
Member
Posts: 36
Contact:

Unread post by nelson » 08 Oct 2012, 13:32

ok, first thanks for calling my attention to block size - I've never bother

finaly i've made this clock like this:

www.sensomusic.com/forums/uploads.php?f ... Clock0.pat

using local sync with calculated proper tempo and step module.
now synchro is perfect.

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 08 Oct 2012, 14:25

cool, glad you found your way

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests