The Sonia Library provides advanced audio capabilities such as multiple sample playback, realtime sound synthesis, realtime FFT (frequency) analysis of the microphone input, and writing .wav files from samples.
Sonia is based on the JSyn plugin by Phil Burk, which means that users will need to install the JSyn browser plugin in order to view your work online. Click here to install the JSyn plugin now.
To develop Processing projects with Sonia, you will need to include these files in your project's code folder.
For more information and examples, visit http://pitaru.com/sonia
程式API 介紹 Sonia Object Sonia物件 Starts/Stops the Sonia engine and provides general settings. 啟動或停止Sonia引擎及提供一些基本設定。
start() stop() getStatus()
Sample Object 取樣物件 An object for storing and controlling Sound data (aiff and wav formats). 儲存及控制聲音資料(aiff 及 wav格式)。
Creating 建立 Sample()
Playback錄放
play() repeat() repeatNum() stop()
Data Reading and Writing 資料讀取及寫入
read() readChannel() write() writeChannel()
Properties 屬性
getPan() setPan() getRate() setRate() getSpeed() setSpeed() getVolume() setVolume() isPlaying() getNumFrames() getCurrentFrame()
Misc 其他
connectLiveInput() getSpectrum() saveFile()
LiveInput Object 即時輸入 物件 An object for realtime (FFT) frequency analysis of various sound inputs, such as the microphone and other internal Sample objects. 對不同的聲音輸入進行即時頻率分析,例如麥克風及其他內部的取樣物件。
start() stop()
Input Analisys 輸入分析
getLevel() getSpectrum() spectrum[] useEnvelope() useEqulizer()
Input Recorder (into sample) 輸入錄音
startRec() startRecLoop() stopRec()
LiveOutput Object即時輸出 物件 An object for realtime sound synthesis. 即時聲音合成
start() stop()
startStream() stopStream()
liveOutputEvent() { } LiveOutput.data[]
|