Kyma Forum
  Tips & Techniques
  restricting randomness to a particular key?

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

next newest topic | next oldest topic
Author Topic:   restricting randomness to a particular key?
taylor12k
Member
posted 19 April 2003 08:29         Edit/Delete Message   Reply w/Quote
... 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
posted 19 April 2003 10:38         Edit/Delete Message   Reply w/Quote
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
posted 19 April 2003 13:56         Edit/Delete Message   Reply w/Quote
*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


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

SSC
Administrator
posted 19 April 2003 19:01         Edit/Delete Message   Reply w/Quote
That was an error. It should be * 7, because there are 7 elements in the array.

IP: Logged

taylor12k
Member
posted 19 April 2003 19:38         Edit/Delete Message   Reply w/Quote
that's what i thought... but i figured you had some trick up your sleeve....

thanks!

quote:
Originally posted by SSC:
That was an error. It should be * 7, because there are 7 elements in the array.


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