Page 1 of 1

Posted: 04 Oct 2012, 21:10
by nelson
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?

Posted: 04 Oct 2012, 23:49
by nay-seven
Can you provide a little simplified patch to illustrate this question..?
Always better for people who want help you...:)

Posted: 05 Oct 2012, 00:42
by nelson
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 :(

Posted: 05 Oct 2012, 11:12
by nay-seven
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

Posted: 05 Oct 2012, 14:23
by nelson
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 :)

Posted: 05 Oct 2012, 15:26
by nay-seven
Have you try to use the smallest bloc size possible..?
I've 1,27 ms of difference here, but maybe i miss something

Posted: 08 Oct 2012, 13:32
by nelson
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.

Posted: 08 Oct 2012, 14:25
by nay-seven
cool, glad you found your way