midi only [1,0] help

zackon1's picture

hi i am trying to use my dj controller with quartz... but the midi patch is only is [1,0] so how do i make it like [1 to 3] so it encodes

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

harrisonpault's picture
Re: midi only [1,0] help

In order to translate the normalized [1,0] output to the range [1,3] you would use the Math Expression patch. In the settings put the equation "(1-a)*2+1". Connect the MIDI Notes Receiver patch output port to the input port of the Math Expression patch, and use the output port to encode whatever it is that you want to have the range [1,3].

zackon1's picture
Re: midi only [1,0] help

But how do i range

harrisonpault's picture
Re: midi only [1,0] help

Your question is quite cryptic. Both your original question and this followup provide little to guide us. Try explaining yourself in more detail.

dust's picture
Re: midi only [1,0] help

you can add an interpolation patch. set its start value to 0 and end value to 3, then right click and set to external time base. this will produce an input called patch time. feed your 0-1 range into patch time. set loop to mirror. now anything you feed into patch time will be scaled to 0 - 3 range. see attached comp...

PreviewAttachmentSize
scale.qtz34.24 KB

zackon1's picture
Re: midi only [1,0] help

And for a wii mote if i click the + it would go up one and hold and if i click a nothother time it moves up and holds and for the - as well ( o this is to move a circle up an down )