Use sample pack

use_sample_pack  pack_path (string)

Given a path to a folder of samples on your filesystem, this method makes any .wav, .wave, .aif or .aiff files in that folder available as samples. Consider using use_sample_pack_as when using multiple sample packs. Use use_sample_pack :default To revert back to the default built-in samples.

Introduced in v2.0

Example

# Example 1

use_sample_pack '/home/yourname/path/to/sample/dir'
sample :foo 
            
sample :bd_haus
               
use_sample_pack :default
sample :bd_haus



 
#=> plays /home/yourname/path/to/sample/dir/foo.{wav|wave|aif|aiff}
#   where {wav|wave|aif|aiff} means one of wav, wave aif or aiff.
#=> will not work unless there's a sample in '/home/yourname/path/to/sample/dir'
#   called bd_haus.{wav|wave|aif|aiff}
 
#=> will play the built-in bd_haus.wav sample