No problem~ Below is how I did for the random events. Basically, the counter runs steadily and triggers numbers randomly from three groups of arrays in order. The numbers represent three types of key scales.
instr generate
seed 2
iArr1[] fillarray 220, 246, 261, 329, 349, 440
iArr2[] fillarray 220, 246, 277, 293, 329, 348.9, 415
iArr3[] fillarray 220, 261, 293, 329, 392, 440
iNoteCount = 0
until iNoteCount == 150 do
if iNoteCount < 50 then
indx random 0, 6
ifreq = iArr1[indx]
iNoteCount += 0.5
event_i "i", "play", iNoteCount, 2, ifreq
endif
if iNoteCount < 100 && iNoteCount >= 50 then
indx random 0, 7
ifreq = iArr2[indx]
iNoteCount += 0.5
event_i "i", "play", iNoteCount, 2, ifreq
endif
if iNoteCount < 150 && iNoteCount >= 100 then
indx random 0, 6
ifreq = iArr3[indx]
iNoteCount += 0.5
event_i "i", "play", iNoteCount, 2, ifreq
endif
enduntil
endin
Let me know if there is anything needed to clarify. Thanks again for your help and patience!