Gamelan - guyjbrown/bleepmanual GitHub Wiki
An example of the use of microtonal scales. The modulus operator (%) is used to make the lower line play on every third note of the upper line. An interesting polyrhythm is the result.
use_bpm(90)
use_synth("fmbell")
push_fx("stereo_delay", {wetLevel=0.1,leftDelay=0.4,rightDelay=0.6})
push_fx("plate_large", {wetLevel=0.2})
upper = scale("pelog_sedeng", D4, 2):shuffle()
lower = scale("pelog_sedeng", D3):shuffle()
for i = 1, 32 do
play(upper[i], {duration=0.15})
if (i % 3 == 0) then
play(lower[i], {duration=0.15})
end
sleep(0.25)
end