load_sample path (string)
Given a path to a .wav, .wave, .aif, .aiff, .ogg, .oga or .flac file, pre-loads the sample into memory.
You may also specify the same set of source and filter pre-args available to sample itself. load_sample will then load all matching samples. See sample’s docs for more information.
Introduced in v2.0
| # Example 1 | |
|
|
|
| # Example 2 | |
|
|
|