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, .aiff or .flac files in that folder available as samples. 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|flac}
#   where {wav|wave|aif|aiff|flac} means one of wav, wave, aif, aiff or flac.
#=> will not work unless there's a sample in '/home/yourname/path/to/sample/dir'
#   called bd_haus.{wav|wave|aif|aiff|flac}
 
#=> will play the built-in bd_haus.wav sample