ESS library
in
Contributed Library Questions
•
1 year ago
Hello, I'm trying to run this example sketch from
http://www.tree-axis.com/Ess/ and for some reason, whenever I try to compile the code, I always get an error that reads: "The constructor Amplify(float) is undefined." How can I fix this? Thanks. :)
- import krister.Ess.*;
- // Example by Krister Olsson
- AudioChannel myChannel;
- Amplify myAmplify;
- void setup() {
- size(256,200);
- // start up Ess
- Ess.start(this);
- // load "cell.aif" into a new AudioChannel
- myChannel=new AudioChannel("cell.aif");
- // amplify first 2 seconds 25%
- myAmplify=new Amplify(.25);
- myAmplify.filter(myChannel,0,myChannel.frames(2000));
- // play
- myChannel.play();
- }
- void draw() {
- }
- // we are done, clean up Ess
- public void stop() {
- Ess.stop();
- super.stop();
- }
1