Adding own samples: Difference between revisions

From wikiluntti
(Created page with "Sonic Pi can sample any <code>.wav</code> files. <syntaxhighlight> live_loop :kick do sleep 1 sample "/Users/sonicPi/Documents/clap.wav" end </syntaxhighlight>")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Sonic Pi can sample any <code>.wav</code> files.  
Sonic Pi can sample any <code>.wav</code> file.  


<syntaxhighlight>
<syntaxhighlight>
live_loop :kick do
live_loop :clap do
   sleep 1
   sleep 1
   sample "/Users/sonicPi/Documents/clap.wav"
   sample "/Users/sonicPi/Documents/clap.wav"
end
end
</syntaxhighlight>
</syntaxhighlight>
This is rather difficult, but we can rename it:
<syntaxhighlight>
path = "/Users/sonicPi/Documents/"
live_loop :clap do
  sleep 1
  sample path, "clap.wav"
end
</syntaxhighlight>
New samples can be created using eg. Audacity, downloaded from eg
* http://soundbible.com
* https://www.videvo.net/royalty-free-sound-effects/
* https://www.freesoundslibrary.com/
* https://freesound.org/
* https://www.audiomicro.com/free-sound-effects
* https://www.storyblocks.com/audio/search?media-type=sound-effects
* https://www.bensound.com/
* https://www.free-stock-music.com/
* https://soundscrate.com/
* https://www.zapsplat.com/

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