Use sample pack alias

use_sample_pack_as  path (string), alias (string)

Similar to use_sample_pack except you can assign prefix aliases for samples. This lets you ‘namespace’ your sounds so that they don’t clash, even if they have the same filename.

Introduced in v2.0

Example

# Example 1



use_sample_pack_as '/home/yourname/my/cool/samples/guitar', :my_guitars
use_sample_pack_as '/home/yourname/my/cool/samples/drums', :my_drums


sample :my_guitars__bass   
sample :my_drums__bass 



# let's say you have two folders of your own sample files,
# and they both contain a file named 'bass.wav'
 
 
 
# You can now play both the 'bass.wav' samples, as they've had the symbol stuck on the front
#=> plays '/home/yourname/my/cool/samples/guitar/bass.wav'
#=> plays '/home/yourname/my/cool/samples/drums/bass.wav'