Adding own samples

From cod3v
Revision as of 08:59, 12 October 2020 by Mol (talk | contribs)

Sonic Pi can sample any .wav files.

live_loop :clap do
  sleep 1
  sample "/Users/sonicPi/Documents/clap.wav"
end

This is rather difficult, but we can rename it:

path = "/Users/sonicPi/Documents/"
live_loop :clap do
  sleep 1
  sample path, "clap.wav"
end