Adding own samples: Difference between revisions

From wikiluntti
No edit summary
No edit summary
 
Line 1: Line 1:
Sonic Pi can sample any <code>.wav</code> files.  
Sonic Pi can sample any <code>.wav</code> file.  


<syntaxhighlight>
<syntaxhighlight>

Latest revision as of 07:52, 14 October 2020

Sonic Pi can sample any .wav file.

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