Page 1 of 1

Posted: 19 May 2014, 14:24
by niggles
I have a very basic controller for a grid which allows me to change grid lines from a USB game mat, but I need it to be synchronised and wait until the end of the bar or x number of bars the same way the synchro input does in the samplers.

I had a play around with Master Synchro but with no luck :-(

Here is the very basic patch which accepts a 0 & 1 to represent forward or reverse, but what's required to make it wait for the synchro before it triggers?

Cheers,
Niggles

Posted: 19 May 2014, 14:43
by nay-seven
you'll find some modules like the quantize data in modules/syncho Time folder to insert before the next and previous inlets

Posted: 19 May 2014, 23:32
by niggles
Thanks - will have a play around with them

Posted: 21 May 2014, 13:45
by niggles
I have the quantize working fine now, but the problem I'm facing and one that I've encountered in a lot of the patches I've tried to put together is modules like A = B output either 0 / 1 i.e false or true, meaning it ALWAYS outputs something.

Is there a module that will will only output 1 (or a value) if it's true and send nothing if it's false?

I guess what I really want to achieve is:

if(a == 1){

sendSomething();

} else {

// do nothing

}

Posted: 21 May 2014, 14:04
by nay-seven
yes, add a From 0 to 1 module after your A=B

Posted: 21 May 2014, 23:21
by niggles
Thanks - I must sound a bit silly asking such questions - but am very much used to writing out code by hand rather than joining modules :rolleyes:

Posted: 01 Jun 2014, 06:14
by niggles
Hi again,

I'm obviously overlooking something really basic, but when using the 0 to 1 module, it sends a 1 when it's true, but also sends a 0 straight after (rather than doing nothing) - simple patch uploaded here.

As a result the Quantize Data module is only for a millisecond before being switched off again.

Do I need to write some fast-script that will only send a 1 and ignore all other values to get a real doNothing() type function?

Thanks again,
Niggles

Posted: 02 Jun 2014, 11:50
by nay-seven
i 'm not sure it's necessary to have only 1, the grid module is waiting for a button, this mean1 then 0
if i understand correctly your pad send note on/off messages ?
so here how i see the patch: you select only the note on message and quantize it by a quantize button module..

Download