I just wrote an article explaining how I use JRuby to prototype VST effects and instruments (we came up with some kind of framework on top of jVSTwRapper):
http://blog.logeek.fr/2009/11/17/how-to ... y-and-java
Here's a starter (again!):
Code: Select all
class RubyGain < OpazPlug
plugin "RubyGain", "Opaz", "LoGeek"
can_do "1in1out", "plugAsChannelInsert", "plugAsSend"
unique_id "RGaN"
param :gain, "Gain", 1.0, "dB"
def process(inputs, outputs, sampleFrames)
inBuffer, outBuffer = inputs[0], outputs[0]
for i in (0..sampleFrames-1)
outBuffer[i] = inBuffer[i] * gain
end
end
endThibaut
--
http://www.learnivore.com
