Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import ddf.minim.*;
- Minim minim;
- AudioInput in;
- int i=0;
- void setup() {
- fullScreen();
- println( "Start of setup():" );
- minim = new Minim(this);
- in = minim.getLineIn(Minim.STEREO, 800);
- println( "End of setup()." );
- }
- void draw() {
- float col = map (abs(in.left.get(i)), 0, 1, 0, 255);
- background(col*3);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement