Kyma Forum
  Kyma Support
  countTriggersMod reset?

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   countTriggersMod reset?
Bill Meadows
Member
posted 28 January 2009 12:49         Edit/Delete Message   Reply w/Quote
Is there a way to reset "countTriggersMod"?

I'm using it in a Sound in a Timeline. If I re-run the Timeline without re-compiling, then when it enters the Sound with this expression, the count increments from the last value from the previous run.

I would like to be able to reset the count to zero, but haven't found a way. (I tried setting it in another SoundToGlobalController object, but that didn't do it.)

IP: Logged

Phi Curtis
Member
posted 28 January 2009 23:00         Edit/Delete Message   Reply w/Quote
Hi Bill,

I think I started a thread about this awhile ago. Here are the solutions I came up with:

| curCount |
curCount := (!Start bpm: !BPM) countTriggers.

(curCount - ((!Start sampleAndHold: curCount) + 1)) \\ !Mod + 1


also:

!Start of: #(
0
{((!Start bpm: 60) countTriggers - (!Start sampleAndHold: ((!Start bpm: 60) countTriggers + 1)) mod: 4) + 1}
)

Try pasting these into a SoundToGlobalController. !Start is a toggle, of course.

Hope this works for you. I don't think I've tried it in a timeline, but it should be fine...

PS. These are recounting from 1, but I think just drop the + 1 from the end of the second expression.

[This message has been edited by Phi Curtis (edited 28 January 2009).]

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c