triplets and dotted out of metro sync in a sequencer
Hi! I'm trying to create a generative sequencer that includes drums module and other stuff.
For the "Drum Machine" module, i created a live.grid that play from the ticks of global transport, by the /480(n) and %n objects,and what I would like to do is duplicate the "one row sequencer", and make each part go with its own speed, but always related to the global.
So far so good, but when I try to put 4nd / 4nt, or anyway nd / nt, of course it goes out sync.
How can I make the metro objects of each live.grid synchronized with the global, so that they always fit in its bars?
this is the patch:
you could use only one metro object - which outputs 1/64 notes.
...
but after all the sounds will go at the same speed, right?
For Example, i, I want one speed for the first sound and another for the second, all that respects global transport, it is possible?
With one metro object at 1/64, every sound will go on 1/64
this is the patch with two sounds.
you could use only one metro object - which outputs 1/64 notes.
you mean this? with the triplets, however, it goes out of beats.
The Only Way to sync it is to create 12 columns on the live.grid, but i would to fit it in 16 beats.
64 would contain 1, 2, 4, 8, 16, ,... and everything in between, up to triole and dottet 16s.
you only have to filter out what you dont need. :)
save this as 110.nthgate.maxpat
you can use arguments for fixed values: [110.nthgate 4]
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#N vpatcher 500 646 773 890;
#P window setfont "Sans Serif" 9.;
#P newex 152 97 27 196617 t 0;
#P outlet 152 153 15 0;
#P outlet 85 153 15 0;
#P inlet 85 81 15 0;
#P connect 0 0 1 0;
#P connect 0 0 3 0;
#P connect 3 0 2 0;
#P pop;
#P newobj 80 263 37 196617 p td0;
#N vpatcher 79 167 405 418;
#P window setfont "Sans Serif" 9.;
#P newex 149 98 50 196617 t b;
#P outlet 149 146 15 0;
#P outlet 94 146 15 0;
#P inlet 94 82 15 0;
#P connect 0 0 1 0;
#P connect 0 0 3 0;
#P connect 3 0 2 0;
#P pop;
#P newobj 107 123 37 196617 p tdb;
#P newex 17 207 37 196617 1;
#P hidden newex 328 172 108 196617 bgcolor 150 250 50;
#N vpatcher 71 232 382 414;
#P inlet 36 34 15 0;
#P window setfont "Sans Serif" 9.;
#P message 36 69 228 196617 110.nthgate: inlet 2 only takes int and bang;
#P newex 36 105 175 196617 print • error;
#P connect 2 0 1 0;
#P connect 1 0 0 0;
#P pop;
#P newobj 383 91 52 196617 p error;
#P newex 305 37 60 196617 loadbang;
#P newex 383 55 52 196617 i $1;
#B color 15;
#N comlet filtered input;
#P outlet 80 299 15 0;
#N comlet input to be filtered;
#P inlet 107 37 15 0;
#P newex 17 173 60 196617 select 0;
#P newex 274 73 91 196617 route bang int;
#P newex 215 91 37 196617 - 1;
#P newex 80 225 37 196617 gate;
#N comlet every nth value (i) \, (bang) resets;
#P inlet 274 37 15 0;
#P newex 215 123 37 196617 t i i;
#N counter 0 0 2;
#X flags 0 0;
#P newobj 134 155 119 196617 counter 0 0 2;
#P connect 5 2 11 0;
#P connect 10 0 9 0;
#P connect 9 0 5 0;
#P connect 2 0 5 0;
#P connect 1 1 0 4;
#P connect 1 0 0 3;
#P connect 4 0 1 0;
#P connect 5 0 4 0;
#P connect 5 1 4 0;
#P connect 14 1 0 0;
#P connect 14 0 3 1;
#P connect 7 0 14 0;
#P connect 15 0 8 0;
#P connect 3 0 15 0;
#P connect 13 0 3 0;
#P connect 15 1 3 0;
#P lcolor 12;
#P connect 6 0 13 0;
#P connect 0 0 6 0;
#P window clipboard copycount 16;
I Need to connect the two inlets with metro outlet, right?
the left inlet takes any kind of data, the right inlet takes an integer number for the "nth" and a bang to reset the internal count.
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 250 99 60 9109513 sel 0;
#P button 386 145 40 0;
#P number 335 160 35 9 2 16 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 87 283 40 0;
#P button 38 283 40 0;
#P toggle 98 60 15 0;
#P newex 98 129 106 9109513 metro 100;
#P newex 154 200 106 9109513 110.nthgate 4;
#P connect 1 0 0 0;
#P connect 1 0 3 0;
#P connect 2 0 1 0;
#P connect 2 0 7 0;
#P connect 7 0 0 1;
#P connect 6 0 0 1;
#P connect 5 0 0 1;
#P connect 0 0 4 0;
#P window clipboard copycount 8;
Same thing, the nt sync in live.grid, following the global transport, only in 12/24/36 columns, that means when one drum plays at 4n for example in 4 bar, another at 4nt needs 3 bar for 4 beat, and even with the nthgate i can't "force to sync".