Kyma Forum
  Kyma Support
  midi delay

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

next newest topic | next oldest topic
Author Topic:   midi delay
aries
Member
posted 15 February 2011 06:04         Edit/Delete Message   Reply w/Quote
i should like to add some small amount of delay like groove to a drum sound. i tried a expression in the gate parameter field of a sample: !Keydown * ({| t |
t := (1 s randExp).
(t s random abs smooth: t s)} gt: 0.5)
the expression is believed to smoothly change point of time when a sound is played but it doesn't work. do you table a proposal to solve the problem ? maybe something like a midi delay?

IP: Logged

SSC
Administrator
posted 15 February 2011 10:36         Edit/Delete Message   Reply w/Quote
What about thinking of it this way: Each KeyDown starts a clock running. When the clockTime exceeds 0.5, trigger the sample:

(!KeyDown ramp: 1 s) gt: 0.5

Then, we could use a random number as the speed of the clock:

((!KeyDown ramp: (!KeyDown nextRandExp s)) gt: 0.5

which would give a random delay between 0 and 12 seconds after the !KeyDown.

Alternatively, you could leave the clock at a constant speed, but test it against a random threshold:

(!KeyDown ramp: 1 s) gt: (!KeyDown nextRandom abs)

which would give a random delay between 0 and 1 second after the !KeyDown.


IP: Logged

aries
Member
posted 15 February 2011 13:04         Edit/Delete Message   Reply w/Quote
thank you very much. the last expression seems to be my favorite one. but maybe a stupid question: does nextRandExp count from 0 to 12 or 24?

[This message has been edited by aries (edited 15 February 2011).]

IP: Logged

SSC
Administrator
posted 15 February 2011 13:56         Edit/Delete Message   Reply w/Quote
nextRandExp ranges from 0 to 24. Since you were triggering when the ramp was greater than 0.5, I estimated that the range of delays would be 0 to 12.

IP: Logged

aries
Member
posted 15 February 2011 14:15         Edit/Delete Message   Reply w/Quote
thank you again. i hadn't a clue

[This message has been edited by aries (edited 15 February 2011).]

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