• fullscreen
  • creation_point_musique.pde
  • PFont police;
    import ddf.minim.*;
    AudioPlayer morceau;
    Minim minim;
    
    float le ; float ri ;
    
    int xpolice ; int ypolice ;
    
    
    void setup ()
    {
      size (600,600)  ; smooth(); 
      background (10,10,10) ;
      police = loadFont("DIN Bold.vlw"); 
      frameRate(24) ;
      minim = new Minim(this);
      morceau = minim.loadFile("Asian Dub Foundation - RAFI - 01.mp3");
      morceau.loop();
      
      xpolice = width/4 ; ypolice = height/4 ;
      fill(255,50,10,150) ;
      textFont(police,12);
      text("MOVE the MOUSE and CLIC", xpolice, ypolice);
      
    }
    
    void draw ()
    {
    //  background (30,ri) ; 
      noStroke() ;
      
      for  (int i = 0; i < 255 ; i++)
      {
        ri = morceau.right.get(i)*100 ;
        le = morceau.left.get(i)*100 ;
        println (ri + " " + le ) ;
      }
      
      if (mousePressed) 
      {
    //    fill(210, 255,50, 25) ; //JAUNE
        fill(10, 10,10, 25) ; //NOIR
        ellipse(mouseX, mouseY, ri*7, ri*7) ;
        strokeWeight(1);
        stroke(255,50,10,25) ;
        noFill() ;
        ellipse(mouseX, mouseY, ri*7, ri*7) ;
      }
      fill(255,50,10,25) ; //ROUGE
      ellipse(mouseX, mouseY, ri*2, ri*2) ;
      
    }
    /*
    void mouseReleased() {
      noStroke() ;
    {
      fill(255, 10) ;
      ellipse(mouseX, mouseY, 100,100) ;
      }
    }
    **/
    
    
    
    
    

    code

    tweaks (0)

    about this sketch

    This sketch is running as Java applet, exported from Processing.

    license

    advertisement

    Stanislas Marçais

    MUSIC VISUALIZATION

    Add to Faves Me Likey@! 2
    You must login/register to add this sketch to your favorites.

    music : Asian Dub Foundation / RAFI

    You need to login/register to comment.