midi toggle

giobbeforni's picture

hi guyz,

I'm quite new to quartz composer so . . I have a question !

When my computer keybord or my midi controller sends the signal i get a "hold" type. I mean, when I stop pressing the button the signal stops.

I need to have a toggle signal so a first push sends "on" signal and a second one sends "off" signal to the "enable" of a macro patch.

Maybe it's a basic thing but I can't get it.

thanke you in advance !

Comment viewing options

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

dust's picture
Re: midi toggle

If your using kineme midi tools you would want to use a conditional patch on the midi note number. A if midi note 45 equals 45 then conditional is true type of logic.

jersmi's picture
Re: midi toggle

I think you mean you want a toggle but the default is momentary. There is a Toggle patch in the library.

giobbeforni's picture
Re: midi toggle

do you mean in the patch creator ( the one that is available pressing the plus button in the editor ) ? Can't find it there ! thank for help !

giobbeforni's picture
Re: midi toggle

to Dust :

I can't get any solution this way because the signal is still temporay.

I woud like to make a temporay MIDI signal become a toggle so the first time I push a button the signal start and keep going and the second time I push it deactivates.

now it's press ( activates ) and release ( deactivates ).

thanks a lot !

jersmi's picture
Re: midi toggle

Path: /System/Library/Graphics/Quartz Composer Patches/Toggle.qtz

PreviewAttachmentSize
Screen shot 2011-09-30 at 1.11.12 PM.jpg
Screen shot 2011-09-30 at 1.11.12 PM.jpg17.83 KB

giobbeforni's picture
Re: midi toggle

I guess I don't have it since I am using Leopard . . thank you anyway !

usefuldesign.au's picture
Re: midi toggle

Here's a standard flip-flop chain using two NOR gates for each flip flop, it's just like what's going on at the semiconductor level in the metal beneath the kernel beneath OS X beneath QC, except about 100,000x slower due to the OS X|QC emulation machine ;-)

It's a boolean sample and hold, and yes you could use a sample and hold patch in leopard for what you want but for boolean gates are more fun. Be interesting to know which gets interpreted by QC the quickest.

PreviewAttachmentSize
Flip Flop (2xNOR).qtz37.54 KB

usefuldesign.au's picture
Re: midi toggle

Some more from the same exercises in Richard P. Feynman's Lectures in Computing. Note I think his description of the using a chain of D-Flip-Flops is suspect. Maybe it was the ghost author who wrote it up… I guess they had better things on their mind like advancing the edges of physics knowledge.

Put UD_RS Flip-Flop.qtz and UD_RS Flip-Flop with Clock.qtz files in ~/Library/Graphics/Quartz Composer Patches and then they will appear in your patch Library. All comps Leopard friendly :-)

jersmi's picture
Re: midi toggle

you could build it in leopard easily using the screenshot i posted -- leopard has these patches. it's a counter to a math (% 2) to a number multiplexer.

cybero's picture
Re: midi toggle

Thanks for those Flip Flop macros. Very useful design indeed :-) . Added to my Library, copyrighted to usefuldesign.au .

usefuldesign.au's picture
Re: midi toggle

Thanks @cybero. For the record those compositions are covered by a Attribution-ShareAlike 3.0 licence for maximum sharing.

Lots more where that came from it's just a matter of organising it all into some kind of order… Maybe on the wiki here when I get an opportunity.