Kyma Forum
  Kyma Support
  warp suffix

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

next newest topic | next oldest topic
Author Topic:   warp suffix
flo
Member
posted 18 June 2006 04:06         Edit/Delete Message   Reply w/Quote
Hi,

within this expression {(1 to: 256) collect: [ :i | !Warp suffix2: i]} at: (TrackNumber min: 16) I'd like to add random deviation to only some of the partials, on !KeyDown...would that be possible?

Thanks. Best, flo

IP: Logged

SSC
Administrator
posted 18 June 2006 09:41         Edit/Delete Message   Reply w/Quote
Is this expression to be used in a SpectrumModifier? Which parameter?

IP: Logged

flo
Member
posted 18 June 2006 12:04         Edit/Delete Message   Reply w/Quote
yes...sorry, forgot to mention, in the frequency scale field...


IP: Logged

tuscland
Member
posted 19 June 2006 07:31         Edit/Delete Message   Reply w/Quote
quote:
Originally posted by flo:
within this expression {(1 to: 256) collect: [ :i | !Warp suffix2: i]} at: (TrackNumber min: 16) I'd like to add random deviation to only some of the partials, on !KeyDown...would that be possible?

Hi Flo,

First, I am not sure of the usefulness of the "min: 16" message.
If you have only 16 tracks in your spectrum, then you should collect only 16 element (and then replace 256 by 16).

When you say you want to add random deviation to only some partials, which partials are you looking for? There is a prototype called SpectrumModifier which lets you modify the Spectrum and select a probability of selection of a partial :

quote:

Probability

Enter a likelihood from 0 to 1. Numbers larger than 1 will be clipped to 1 (the maximum likelihood). On each frame and for each track, this is the likelihood that the track will be selected on this frame. Use 1 to say that the track will be selected 100% of the time, use 0.5 to give it a 50-50 chance of being selected, and use 0 to indicate that it will never
be selected. You can make the likelihood a function of the track number. For example,
TrackNumber / 128
would make the higher tracks more likely to be selected on each frame than the lower tracks, and:
(TrackNumber - 1) rem: 2
would make the even-numbered tracks 100% likely, and the odd-numbered tracks 0% likely (because an odd number minus 1 is an even number, and an even number modulo 2 is zero, while an odd number modulo 2 is 1).


Additionnaly, you could use !KeyDown in the probablity field in order to trigger the spectrum modification or not.


Cheers,
Camille

IP: Logged

SSC
Administrator
posted 19 June 2006 08:43         Edit/Delete Message   Reply w/Quote
"I'd like to add random deviation to only some of the partials, on !KeyDown.."

Could you make it conditional on the value of i? For example, if you used

{(1 to: 256) collect: [ :i |
(i = 6) ifTrue: [(!KeyDown nextRandom abs * !Jitter) + !Warp suffix2: i]
ifFalse: [!Warp suffix2: i]} at: (TrackNumber min: 16)

then only !Fader6 would have random jitter added to it.

IP: Logged

tuscland
Member
posted 19 June 2006 13:25         Edit/Delete Message   Reply w/Quote
I found that the expression had a little glitch, this one is working:

code:

{(1 to: 256) collect: [ :i |
(i = 16) ifTrue: [(!KeyDown nextRandom abs * !Jitter) + (!Warp suffix2: i)] ifFalse: [!Warp suffix2: i]
]} at: (TrackNumber min: 16)

You have to retrigger !KeyDown each time you want to change the deviation.

[This message has been edited by tuscland (edited 19 June 2006).]

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