theremin with beads
in
Contributed Library Questions
•
1 year ago
hi,
I want to create virtual Theremin with beads audio library, it works fine, but I am not able to get similar sound like in these samples,
what I got is just a boring sine wave sound
sketch below isn't mine, but I use the same technique to generate sound,
maybe somebody know what effect or technique to use, to get more atractive sound ?
any suggest would be appreciated :)
- import beads.*;
- AudioContext ac;
- WavePlayer wp;
- Gain g;
- Glide gainGlide;
- Glide frequencyGlide;
- void setup()
- {
- size(400, 300);
- ac = new AudioContext();
- gainGlide = new Glide(ac, 0.0, 50);
- frequencyGlide = new Glide(ac, 20, 50);
- wp = new WavePlayer(ac, frequencyGlide, Buffer.SINE);
- g = new Gain(ac, 1, gainGlide);
- g.addInput(wp);
- ac.out.addInput(g);
- // start audio processing
- ac.start();
- background(0); // set the background to black
- text("The mouse X-Position controls volume.", 100, 100);
- text("The mouse Y-Position controls frequency.", 100, 120);
- }
- void draw()
- {
- gainGlide.setValue(mouseX / (float)width);
- frequencyGlide.setValue(mouseY);
- }
1