Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import ddf.minim.*;
- Minim minim;
- AudioSample skid;
- void setup()
- {
- size(512, 200);
- minim = new Minim(this);
- // load skid.wav from the data folder
- skid = minim.loadSample( "skid.wav" );
- }
- void draw()
- {
- background(0);
- }
- void keyPressed()
- {
- if ( key == 'k' ){
- skid.trigger();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement