There's a problem with the start/stop button: you can only have an on/off button within QC's published inputs. That means when you press the start button, it stays pressed, and you have to unstart it before you can restart. You can't send anything back to that button to turn it off automatically too. There's a couple of things you could do to get round this:
1. Make it a single "Counting" button or something instead of separate start/stop buttons. Use the pulse patch, and you can generate a signal when the button is pressed, and also when it's unpressed - these become your 'start' and 'stop' buttons. 2. Use something else to trigger it. A nice one is the keyboard or mouse patches, so you press space or hit the mouse button to start/stop. An easy way to trigger it is to use a counter patch, so the mouse clicks increment the timer, followed by a range patch. Set the range to 0-1, and it becomes an on/off switch (I've got vague memories of it needing to be -1 to 1 for some reason, try that if it doesn't work). And yeah, conditionals in the math exp patch is super useful, you can reduce a load of complex patches into a single patch when you get the hang of it! Chris On 19 November 2010 16:32, Charlie Francis <[email protected]> wrote: > Hmm, I've checked before I saved it and hadn't used any 3rd party patches. > Although when I reopened the file, I also got this "Missing FakePatch" > error. Strange. > Thanks for the advice, I kinda wanted the start and stop actions to be part > of the same thing, as it makes sense that when the timer is started, you > can't start it again without stopping it. > Charlie > On 19 November 2010 16:21, Chris Wood <[email protected]> wrote: >> >> I got a strange "fakepatch" missing error on opening this - did you >> use any 3rd party plugins? >> >> Anyway, this stops the timer with 1 additional patch. All it does is >> set the Stop input on the stopwatch, when either the Stop input is >> detected or the time >= 10. If you want variable times, change it to >> something like: >> >> stop || (t >= duration) >> >> Chris >> >> >> On 19 November 2010 16:05, Charlie Francis <[email protected]> >> wrote: >> > Hi guys, >> > I've made a countdown timer that I'd like you to have a look at. One >> > thing >> > I'd like to fix is the fact that when the timer gets to the end, the >> > stop >> > watch in the macro is still running. If somehow the stop/start input >> > could >> > be turned off, or at least the logic of it reversed. I've been trying do >> > the >> > 'reverse logic' bit because I don't think it's possible to alter a user >> > controlled input. >> > As always I'm happy for this to be torn apart and shown a better way! >> > Regards, >> > Charlie >> > _______________________________________________ >> > 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/psonice%40gmail.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/archive%40mail-archive.com This email sent to [email protected]

