Ian:
First--thanks for the 'timebase' related documentation/patches.  I'm still 
enjoying trying to
'grok' the subtle nuances of QC.  When I get a chance I plan to spend half a 
day playing
around with these patches, particularly with different settings of FPS.  (I 
haven't figured out
a way to set the viewer to less than 10fps, but it seems that a 1 FPS could be 
accomplished
very easily with native QC patches--particularly for 'testing'. 
Yesterday I sent along 2 .qtz files relating to 'qc toggle,'  and also a 
comment about preferring the
second example that used the 'pulse' QC patch. You adopted the first technique 
and, in further
testing, particularly in regards to input (mouse/keyboard...), the 'pulse' is 
really needed in order to
make this into a more general technique. (Disabling the consumer was masking 
some incorrect
behaviour.)   
Sorry for the error.  I've attached a .qtz file containing a 'toggle' macro, 
and a second .qtz file
which shows it being used with 4 or 5 input streams.
This is the first macro I've posted here.   These seem more like 'composites' 
than 'macros' in the
traditional sense.  Instinctively, I wouldn't want to place any 'provider' 
patches into a macro patch,
but I'm still experimenting.
--aram
Macros make me wax nostalgic.  It was Ivan Flores who made the bold and 
arguably most relevant
statement concerning software development in the mid-60's, when, in his now 
epic and memorable
book describing 'IBM 360 Assembler' (the title escapes me), he stated '2/3 of 
the power of any assembler
lays in it's macro facility.'  His colleagues would taunt poor Ivan, saying 
'couldn't you be a bit more precise?'
They laughed even louder at his ridiculous statement that integers were 
infinitely more precise than
floating point.  Oddly enough, he even considered suicide, but it was innate 
inner self-confidence that
made him persist.  That and his  impeccable taste in clothing.    Yes, when his 
colleagues accused him
of sloppy thinking, he would just rise slowly and adjust his bow-tie as if to 
say, 'how can you possibly
say that to a man dressed like this?'  This certainly didn't endear him to his 
'pocket-protector,' 
'pred-a-porte' co-workers.  It finally took it's toll.  Near the end, he was 
drinking alone at the pub,
endlessly repeating himself--never getting anything resolved, except making 
sure that his ties always
matched his socks.  He never saw the double-decker that took his life--he had 
lost his cognitive cohesive
capabilities and was completely absorbed in chanting the names of the seven 
dwarves as he slowly
studied the 6 sides of his rubik's cube, unaware of his surroundings as he took 
that fateful step from the
curb.  On his tombstone: Here lies Ivan, he was at sixes and sevens, but always 
dressed to the nines.

On Friday, July 25, 2008, at 07:31AM, "Ian Grant" <[EMAIL PROTECTED]> wrote:
>Hi, here's another way I've done this: using Javascript to provide  
>preset banks. You can then switch between combinations of arbitrary  
>objects and states. I threw the toggle in to see what happened, and it  
>nicely changes the behaviour of all the other key switches.
>
>
>
>
>Cheers, Ian
>*******************************
>Ian Grant
>Senior Lecturer in Digital Art
>Faculty of the Arts
>Thames Valley University
>Ealing, UK
>W5 5DX
><[EMAIL PROTECTED]>
>*******************************
>
>
>
>On 25 Jul 2008, at 12:56, aram wrote:
>
>>
>> On Friday, July 25, 2008, at 06:16AM, "Carl Rohumaa"  
>> <[EMAIL PROTECTED]> wrote:
>>> Thanks Ian
>>> That nearly does it!
>> About 80%, eh?
>> I kind of like the 'pulse' one-shot patch--it's in the second example.
>> --aram
>> <is Logic Gates related to Bill or Rowdy?>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Quartzcomposer-dev mailing list      ([email protected] 
>> )
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/quartzcomposer-dev/ian.grant%40mac.com
>>
>> This email sent to [EMAIL PROTECTED]
>
>
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Quartzcomposer-dev mailing list      ([email protected])
>Help/Unsubscribe/Update your Subscription:
>http://lists.apple.com/mailman/options/quartzcomposer-dev/aram1003%40mac.com
>
>This email sent to [EMAIL PROTECTED]
> 
On Friday, July 25, 2008, at 06:00AM, "Ian Grant" <[EMAIL PROTECTED]> wrote:
>Hi Carl, the attached will do what you want - I adapted Aram's  
>approach of the close loop in one toggle switch, the other uses the  
>counter/modulo 2 technique that will work in 10.4 - this could be made  
>more efficient with logic maybe.
>
>
>Cheers, Ian
>
>
>
>
>*******************************
>Ian Grant
>Senior Lecturer in Digital Art
>Faculty of the Arts
>Thames Valley University
>Ealing, UK
>W5 5DX
><[EMAIL PROTECTED]>
>*******************************
>
>
>
>On 25 Jul 2008, at 10:50, Carl Rohumaa wrote:
>
>> Really useful thanks. What I am struggling with is how to the make  
>> toggles switch each other off or reset. All I want to do is hit a  
>> key to switch the enable true or false on multiple clear or  
>> billboard or whatever. But. I want to hit the key  just once and, it  
>> stay on until I hit another key. So my question is what do I have to  
>> add to this example to make the toggles reset when another key is  
>> pressed. I made the keys 1 and 2 to trigger two clears.
>>
>> <2toggle.qtz>
>>
>>
>> Carl
>>
>>
>> On 25 Jul 2008, at 01:22, aram wrote:
>>
>>> I've sure seen some unusual ways of implementing a toggle in qc.
>>> Maybe after the ability to use closed loops someone should have  
>>> rethought this.
>>> Here are a few examples.
>>> This I learned a few years ago in CS 101--the XOR.
>>> --aram
>>> <qc_xor_toggle.qtz><qc_xor2_toggle.qtz>  
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Quartzcomposer-dev mailing list      ([email protected] 
>>> )
>>> Help/Unsubscribe/Update your Subscription:
>>> http://lists.apple.com/mailman/options/quartzcomposer-dev/starrats%40mac.com
>>>
>>> This email sent to [EMAIL PROTECTED]
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Quartzcomposer-dev mailing list      ([email protected] 
>> )
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/quartzcomposer-dev/ian.grant%40mac.com
>>
>> This email sent to [EMAIL PROTECTED]
>
>
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Quartzcomposer-dev mailing list      ([email protected])
>Help/Unsubscribe/Update your Subscription:
>http://lists.apple.com/mailman/options/quartzcomposer-dev/aram1003%40mac.com
>
>This email sent to [EMAIL PROTECTED]
>

Attachment: qc_toggle_macro.qtz
Description: Binary data

Attachment: qc_xor2_toggle_tests.qtz
Description: Binary data

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to