Skip to main content

importaudio

importaudio(
@path ? ## symbol (required)
@usecache 1
) -> llll

Imports an audio file (.wav, .aif, .aiff, .mp3) as a buffer, given a file path.


Arguments

  • @path ? [symbol]: input audio file path. (required)
  • @usecache [int]: use buffer cache to optimize memory usage. (default: 1).
    • 0: off
    • 1: on

Output

buffer [llll]


Usage

$buffer = importaudio('badinerie.wav');
$buffer.inspect('importaudio buffer')