Advertisement
FHRL

metronomo0_0_0b2

Mar 16th, 2023
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.83 KB | Source Code | 0 0
  1. /*Created by Processing APDE app version 0.5.1
  2.  *       and OpenIA GPTchat Mar 14 version.
  3.  *compatibility: java, wallpaper, app.
  4.  *project: ".../storage/emulated/0/Sketchbook/metronomo/metronomo.../sketch.pde"
  5.  *Date:15-03-2023
  6.  *Time: 23:14
  7.  *Verton:0.0.0b2
  8.  *Based AI documentation generated.
  9.  */
  10.  
  11. import java.awt.event.ActionEvent;
  12. import java.awt.event.ActionListener;
  13. import javax.swing.Timer;
  14. import processing.event.ActionEvent;
  15. import processing.event.ActionListener;
  16. import processing.core.PApplet;
  17.  
  18. PApplet parent;
  19. int tempo = 120; // latidos por minuto
  20. int duration = 1000 * 60 / tempo; // duración de cada latido en milisegundos
  21. Timer timer;
  22. boolean isPlaying = false;
  23.  
  24. void setup() {
  25.   size(200, 200);
  26.   frameRate(60); // velocidad de actualización de la ventana
  27.   parent = this;
  28. }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement