Kyma Forum
  Kyma Support
  variable gate

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

next newest topic | next oldest topic
Author Topic:   variable gate
Bill Meadows
Member
posted 27 July 2003 16:05         Edit/Delete Message   Reply w/Quote
I need a gate signal that behaves thus:

1) go high, remain high for a random interval of time
2) go low, remain low for a different, random interval of time
3) repeat (with new random intervals every time)

Any suggestions would be appreciated.

IP: Logged

pete
Member
posted 28 July 2003 06:05         Edit/Delete Message   Reply w/Quote
Hi Bill
Does this gate have to be triggerable, or would it be o.k. if it was just a square wave with continuously varying no and off times that started in any state when you started playing the sound and carried on oscillating indefinitely.

also

what would be the maximum random duration ( you obviously wouldn't want the first on time to be ten years), and would there be a minimum duration.

also

would it be ok if it were at parameter rate i.e. the on and off times were restricted to the nearest 1 Khz tick, or does it have to be at sample rate i.e. the change could fall on any sample.

Pete

IP: Logged

SSC
Administrator
posted 28 July 2003 10:02         Edit/Delete Message   Reply w/Quote
One approach might be to put a Constant into a Chopper. Then set the GrainDur and InterGrainDelay to
0.1 s random s

Then multiply your signal by the Chopper.

IP: Logged

Bill Meadows
Member
posted 28 July 2003 22:00         Edit/Delete Message   Reply w/Quote
quote:
Originally posted by pete:
Hi Bill
Does this gate have to be triggerable, or would it be o.k. if it was just a square wave with continuously varying no and off times that started in any state when you started playing the sound and carried on oscillating indefinitely.

It does not need a trigger - just free-running is fine.

quote:
what would be the maximum random duration ( you obviously wouldn't want the first on time to be ten years), and would there be a minimum duration.

On times 5-10 seconds. Off times 5-20 seconds. I'll need to fine-tune them a bit, but these are the right order of magnitude.

quote:
would it be ok if it were at parameter rate i.e. the on and off times were restricted to the nearest 1 Khz tick, or does it have to be at sample rate i.e. the change could fall on any sample.

Parameter rate is preferred, since it would consume less DSP power.

I really appreciate your help - I figure there must be an elegant solution for this, but I can't quite find it.


IP: Logged

Bill Meadows
Member
posted 28 July 2003 22:22         Edit/Delete Message   Reply w/Quote
quote:
Originally posted by SSC:
One approach might be to put a Constant into a Chopper. Then set the GrainDur and InterGrainDelay to
0.1 s random s

Then multiply your signal by the Chopper.


Interestingly, this seems to work until I click onto another Sound and then click back on the Chopper. When I do this, the expression "0.1 s random s" gets transformed into "((1 repeatingRamp: 1) ?unknown? vmax: 0) s".

What's up with that?

IP: Logged

SSC
Administrator
posted 29 July 2003 09:45         Edit/Delete Message   Reply w/Quote
To get around this, use a variable interval for the random, e.g.
!Dur s random s

(Problem had to do with when the expression was expanded. It's has been fixed in Kyma X. Thanks for finding it)

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