class PitchTextLayer extends Layer { // La courbe Haut: Pitch PitchTextLayer(PApplet parent) { super(parent); } void setup() { // textFont(maFonte); smooth(); noStroke(); } void draw() { if (Tete > 0) { // Texte courbe Haut pitch NombreDeChild2 = kidkid1Data[CoucheHaut].getChildCount(); if (IndexXMLHaut < NombreDeChild2) { kid1 = kidkid1Data[CoucheHaut].getChild(IndexXMLHaut); // n = kid1.getInt("n"); xmin = kid1.getFloat("xmin"); xmax = kid1.getFloat("xmax"); Content1 = kid1.getContent(); // println("Child(" + IndexXMLHaut + "): n = " + n + " xmin = " + xmin + " xmax = " + xmax + " " + Content1); if (Content1 == null) IndexXMLHaut = IndexXMLHaut + 1; else if (Content1.equals("_") == true) IndexXMLHaut = IndexXMLHaut + 1;//Elimination des caracteres _ qui separe les segments else { // if ((temps > xmin) && ! Pause) { // if ((temps > xmax) && ! Pause) { if ((temps > (xmin + xmax) / 2) && (! Pause)) { if (FlagTexteHaut) { background(0, 0, 0, 0); fill(255); // Texte blanc // textFont(maFonte, LignePitch[1] / 10); // textFont(maFonte, PitchActuel / 5); // Plantage avec Font autre que Helvetica si Size = NaN textFont(maFonte2, 22); // Plantage avec Font autre que Helvetica si Size = NaN smooth(); text(Content1, XVertex, YVertex); } IndexXMLHaut = IndexXMLHaut + 1; colFixe = col; } } } // if ((frameCount % AdjustBlurPitch == 0)) filter(BLUR, 0.572); // > 0.575 if (temps > DureeFichier) { Fin =true; background(0, 0, 0, 0); } } else background(0, 0, 0, 0); } }