cueSoundFile 是等效的 osc 消息 /b_read 的一个更高级的术语,您可以在 Overtone 中找到overtone.sc.buffer/buffer-cue
.
作为一个 5 秒的演示,它从磁盘播放一个 2 通道文件。
(demo (disk-in 2 (buffer-cue "~/Music/10mb.wav")))
还有磁盘输入文档(SC DiskIn)
user=> (doc disk-in)
-------------------------
overtone.live/disk-in
([numChannels bufnum loop])
stream audio in from disk file
[numChannels :none, bufnum :none, loop 0]
numChannels - Number of channels in the incoming
audio.
bufnum - Id of buffer
loop - Soundfile will loop if 1 otherwise
not.
Continuously play a longer soundfile from disk. This
requires a buffer to be preloaded with one buffer size of
sound. If loop is set to 1, the soundfile will loop.
Categories: InOut, Buffer
Rates: [ :ar ]
Default rate: :ar