Is it possible to make multidimensional rings and lists?
For instance, if one wanted to loop through a set of phrases without having to hard code them.
Additionally, is there support for regular expression / regex like in Python?
Is it possible to make multidimensional rings and lists?
For instance, if one wanted to loop through a set of phrases without having to hard code them.
Additionally, is there support for regular expression / regex like in Python?
You can definitely store rings inside of rings
mel = (ring
(ring :C3, :c4, :c5),
(ring :e3, :e4, :e5))
live_loop :foo do
play mel[0].tick, release: 0.1
sleep 0.125
end
Also, there’s no official support for regular expressions, but you can currently use Ruby’s regex system (although this is not guaranteed to be around in future versions):
"foobar".match(/foo/)