Advertisement
FHRL

metronomo0_0_0b2

Mar 16th, 2023
499
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.  *User:fhrl007@gmail.com
  6.  *Date:15-03-2023
  7.  *Time: 23:14
  8.  *Verton:0.0.0b2
  9.  *Based AI documentation generated.
  10.  */
  11.  
  12. import java.awt.event.ActionEvent;
  13. import java.awt.event.ActionListener;
  14. import javax.swing.Timer;
  15. import processing.event.ActionEvent;
  16. import processing.event.ActionListener;
  17. import processing.core.PApplet;
  18.  
  19. PApplet parent;
  20. int tempo = 120; // latidos por minuto
  21. int duration = 1000 * 60 / tempo; // duración de cada latido en milisegundos
  22. Timer timer;
  23. boolean isPlaying = false;
  24.  
  25. void setup() {
  26.   size(200, 200);
  27.   frameRate(60); // velocidad de actualización de la ventana
  28.   parent = this;
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement