hello
je cherche à jouer une petite musique avec minim sous processing
mais je suis nul en musique.
quelqun peut m'aider pour corriger cette séquence?
import ddf.minim.*; Minim minim; AudioOutput out; void setup() { size(200, 200, P2D); minim = new Minim(this); out = minim.getLineOut(); out.setTempo( 120 ); out.pauseNotes(); //joi out.playNote( 0.0, 1., 100 ); //yeu out.playNote( 1., 0.9,100 ); //Za out.playNote( 2,1.2, 110 ); //ni out.playNote(3.2, 0.9,100 ); //ver out.playNote( 4.1,1.2, 130 ); //saire out.playNote( 5.3,1.6, 125 ); out.setNoteOffset(6.9 ); //joi out.playNote( 0.0, 1., 100 ); //yeu out.playNote( 1., 0.9,100 ); //Za out.playNote( 2,1.2, 110 ); //ni out.playNote(3.2, 0.9,100 ); //ver out.playNote( 4.1,1.2, 135); //saire out.playNote( 5.3,1.6, 130 ); out.setNoteOffset(6.9+6.9 ); //joi out.playNote( 0.0, 1., 100 ); //yeu out.playNote( 1., 0.9,100 ); //Za out.playNote( 2,1.8, 160 ); //ni out.playNote(3.8, 0.9,130 ); //ver out.playNote( 4.7,1.2, 135); //saire out.playNote( 5.9,1.6, 100 ); //reu out.playNote( 7.5,2.6, 90 ); out.setNoteOffset(6.9+6.9+7.5 ); //joi out.playNote( 0.0, 1., 130 ); //yeu out.playNote( 1., 0.9,130 ); //Za out.playNote( 2,1.2, 120 ); //ni out.playNote(3.2, 0.9,100 ); //ver out.playNote( 4.1,1.2, 120 ); //saire out.playNote( 5.3,2.6, 100 ); out.resumeNotes(); } void draw() { background(0); stroke(255,255,0); strokeWeight(8); rotate(PI/4); for(int i = 0; i < int(millis()/1000); i++){ line(i*16,-200,i*16,200); } }
merci
Hors ligne
Pages: 1