auAddPluginFromPreset(string)

Syntax

auAddPluginFromPreset(string)

Example

dim = BUFFER_SIZE*AUDIO_OUTPUT_CHANNELS
outputBuffer = memarray('float', dim)
stretch = OUTPUT_W/(dim-1)
zeroOffset = OUTPUT_H/4

function setup()
 // list all available AU plugin in the system
 auListPlugins() 
 // a simple sine oscillator
 gaWave(GA_SINE,220)
 
 // add two AU plugin in cascade
 auAddPluginFromPreset(gaImportFile("distorsion.aupreset"))
 
 // init the buffer
 for i = 0, dim - 1 do
 outputBuffer[i] = 0.0 
 end
 
end

function update()
 gaWaveVolume(0,0.2)
 
 for i = 0, dim - 1 do
 outputBuffer[i] = gaGetOutputBuffer(i) 
 end
 
end

function draw()
 gaBackground(0.0,0.9)
 
 ofTranslate(0,OUTPUT_H/2,0)
 // draw Audio Scope
 ofSetColor(255)
 ofNoFill()
 ofBeginShape()
 for i = 0, dim - 1 do
 ofVertex(i* stretch, outputBuffer[i] * zeroOffset)
 end
 ofEndShape(false)
end

Description

Load an AU plugin from a previously saved preset in .aupreset (Apple Logic Studio) format. In GAmuza you can save this type of presets with auSavePluginPreset() function.

Parameters

string