Im trying to Create a Object in Max MSP using C that Randomly generates a Melody, similar to Mozart's "dice music". For example, when a random number is selected from an array, it corresponds to a note number for example 61. This then outputs the note number and plays back. This should happen 16 times, in order to create a random melody every time its activated.
I've created an array which contains a selection of note numbers, but i' m very stuck on how to make it all fit together.
Any help would be very welcomed, and I hope this makes sense! Reply if your willing to help! Thank you very much