Adding own samples

From wikiluntti
Revision as of 18:05, 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

New samples can be created using eg. Audacity, downloaded from eg