I want to pass sounds as parameters to functions, but, for example,
:e2 all get played with different playback syntax. What’s the best way for dealing with that? A different play function for each sound type?
What’s more, when I pass a sample like this:
define :PlayMe do |sound| 4.times do sound end end
PlayMe (sample :drum_cymbal_pedal)
The sample plays the first time, but not in subsequent loops. Print out shows something about the sound going from “pending” to “destroyed,” which clued me in to the fact that I’m not clear on what’s happening.