Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

91
Vistas
Javascript Midi cambia la pista para notas individuales una tras otra

Así que quiero cambiar cada nota midi individual en una pista midi diferente, una tras otra. Aquí hay un jsfiddle de lo que tengo hasta ahora: https://jsfiddle.net/alexybaddie/5ca7r9g0/84/

Pero el código general con el que quiero ayuda se encuentra en esta sección y es el siguiente:

 var twocolors = document.getElementById("twocolor"); var threecolors = document.getElementById("threecolor"); if (threecolors) { for (let i = 0; i < 3; i++) { // if "3 Colors" is selected, it will change first note, second note and then the third note to different tracks each. // After that it will loop again and do the same thing but for the next notes. } } else if (twocolors) { for (let i = 0; i < 2; i++) { // if "2 Colors" is selected, it will change first note and then the second note to different tracks each. // After that it will loop again and do the same thing but for the next notes. } }

Además, no tengo idea si importé la biblioteca midi correctamente.

Espero que alguien pueda ayudarme.

about 4 years ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda