|
Kyma Forum
![]() Tips & Techniques
![]() restricting randomness to a particular key?
|
| next newest topic | next oldest topic |
| Author | Topic: restricting randomness to a particular key? |
|
taylor12k Member |
... i was wanting to make a self-generating melody type of sound in kyma. something simple involving soft sinewaves... and thought perhaps of using a randomizer to choose pitches and note locations.... what sort of (nextRandom) expression could be used in a Pitch parameter field that would restrict the choices to a particular key.. C-minor, etc.... ? thanks.... IP: Logged |
|
SSC Administrator |
One approach might be to use the random number as an index into an array... For example: (((1 bpm: !BPM) nextRandom abs * 8) of: #(60 62 63 65 67 69 71)) nn IP: Logged |
|
taylor12k Member |
*bonk* of course.. i feel stupid! i knew that... what is the abs * 8 portion of that expression there for, though? why not just have it choose a nextRandom of the nn you have supplied? thanks
(((1 bpm: !BPM) nextRandom abs * 8) of: #(60 62 63 65 67 69 71)) nn IP: Logged |
|
SSC Administrator |
That was an error. It should be * 7, because there are 7 elements in the array. IP: Logged |
|
taylor12k Member |
that's what i thought... but i figured you had some trick up your sleeve.... thanks!
quote: IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.