Contenu | Rechercher | Menus

Annonce

Ubuntu 16.04 LTS
Commandez vos DVD et clés USB Ubuntu-fr !

Pour en savoir un peu plus sur l'équipe du forum.

Appel à contributeurs pour la doc.

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

#1 Le 16/12/2016, à 16:37

temps

Presentation dans boucle en javascript

Bonjour,
je suis à la recherche d'idées afin de présenter le plus simplement possible la construction de mélodies aux compositeurs.
J'ai écris l'Addon lecjo sous firefox qui permet de générer de la musique aux page web en ajoutant quelques caractères.
Voici un exemple de fichier musical (1ko une fois compressé) :

var m1 = [1, 220, 80, 0, 0, 1, 130, 2, 40, 30,
54, 2, 0, 1, 220, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 150, 0, 0, 144];//e7
var m2 = [1, 220, 60, 0, 0, 1, 130, 2, 30, 30,
40, 2, 0, 1, 220, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//a7
var m3 = [1, 220, 54, 0, 0, 1, 130, 2, 28, 30,
36, 2, 0, 1, 220, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//b7
var n1 = [1, 220, 80, 0, 0, 1, 130, 2, 40, 30,
54, 4, 0, 1, 220, 0, 0, 220, 80, 0,
0, 0, 0, 0, 0, 0, 0, 30, 54, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 100, 0, 0, 144];//e7
var n2 = [1, 220, 60, 0, 0, 1, 130, 2, 30, 30,
40, 4, 0, 1, 220, 0, 0, 220, 60, 0,
0, 0, 0, 0, 0, 0, 0, 30, 40, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 125, 0, 0, 144];//a7
var n3 = [1, 220, 54, 0, 0, 1, 130, 2, 28, 30,
36, 4, 0, 1, 220, 0, 0, 220, 54, 0,
0, 0, 0, 0, 0, 0, 0, 30, 36, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 125, 0, 0, 144];//b7
var o1 = [1, 220, 80, 0, 0, 1, 130, 2, 40, 30,
54, 4, 0, 1, 220, 0, 0, 220, 80, 0,
0, 0, 1, 130, 0, 0, 0, 30, 54, 0,
0, 1, 128, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 100, 0, 0, 144];//e7
var o2 = [1, 220, 60, 0, 0, 1, 130, 2, 30, 30,
40, 4, 0, 1, 220, 0, 0, 220, 60, 0,
0, 0, 1, 130, 0, 0, 0, 30, 40, 0,
0, 1, 128, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 125, 0, 0, 144];//a7
var o3 = [1, 220, 54, 0, 0, 1, 130, 2, 28, 30,
36, 4, 0, 1, 220, 0, 0, 220, 54, 0,
0, 0, 1, 130, 0, 0, 0, 30, 36, 0,
0, 1, 128, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 125, 0, 0, 144];//b7
var p1 = [1, 220, 80, 0, 0, 1, 130, 2, 40, 30,
54, 6, 0, 1, 220, 0, 0, 220, 80, 0,
0, 0, 1, 130, 0, 0, 0, 30, 54, 0,
0, 1, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 0, 0, 0, 30, 108, 0, 0, 7,
128, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 150, 0, 0, 144];//e7
var p2 = [1, 220, 60, 0, 0, 1, 130, 2, 30, 30,
40, 6, 0, 1, 220, 0, 0, 220, 60, 0,
0, 0, 1, 130, 0, 0, 0, 30, 40, 0,
0, 1, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 0, 0, 0, 30, 80, 0, 0, 7,
128, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//a7
var p3 = [1, 220, 54, 0, 0, 1, 130, 2, 28, 30,
36, 6, 0, 1, 220, 0, 0, 220, 54, 0,
0, 0, 1, 130, 0, 0, 0, 30, 36, 0,
0, 1, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 0, 0, 0, 30, 72, 0, 0, 7,
128, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//b7
var q1 = [1, 220, 80, 0, 0, 1, 130, 2, 40, 30,
54, 6, 0, 1, 220, 0, 0, 220, 80, 0,
0, 0, 7, 130, 0, 0, 0, 30, 54, 0,
0, 7, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 0, 0, 0, 30, 108, 0, 0, 7,
128, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 150, 0, 0, 144];//e7
var q2 = [1, 220, 60, 0, 0, 1, 130, 2, 30, 30,
40, 6, 0, 1, 220, 0, 0, 220, 60, 0,
0, 0, 7, 130, 0, 0, 0, 30, 40, 0,
0, 7, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 0, 0, 0, 30, 80, 0, 0, 7,
128, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//a7
var q3 = [1, 220, 54, 0, 0, 1, 130, 2, 28, 30,
36, 6, 0, 1, 220, 0, 0, 220, 54, 0,
0, 0, 7, 130, 0, 0, 0, 30, 36, 0,
0, 7, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 0, 0, 0, 30, 72, 0, 0, 7,
128, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//b7
var r1 = [1, 220, 80, 0, 0, 1, 130, 2, 40, 30,
54, 6, 0, 1, 220, 0, 0, 220, 80, 0,
0, 0, 7, 130, 0, 0, 0, 30, 54, 0,
0, 7, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 1, 80, 0, 30, 108, 0, 0, 7,
128, 1, 60, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 150, 0, 0, 144];//e7
var r2 = [1, 220, 60, 0, 0, 1, 130, 2, 30, 30,
40, 6, 0, 1, 220, 0, 0, 220, 60, 0,
0, 0, 7, 130, 0, 0, 0, 30, 40, 0,
0, 7, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 1, 80, 0, 30, 80, 0, 0, 7,
128, 1, 60, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//a7
var r3 = [1, 220, 54, 0, 0, 1, 130, 2, 28, 30,
36, 6, 0, 1, 220, 0, 0, 220, 54, 0,
0, 0, 7, 130, 0, 0, 0, 30, 36, 0,
0, 7, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 1, 80, 0, 30, 72, 0, 0, 7,
128, 1, 60, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//b7

var don = {
  1: m1, 2: m1, 3: m1, 4: m1, 5: m2, 6: m2, 7: m1, 8: m1, 9: m3, 10: m2, 11: m1, 12: m3
 ,13: n1, 14: n1, 15: n1, 16: n1, 17: n2, 18: n2, 19: n1, 20: n1, 21: n3, 22: n2, 23: n1, 24: n3
 ,25: o1, 26: o1, 27: o1, 28: o1, 29: o2, 30: o2, 31: o1, 32: o1, 33: o3, 34: o2, 35: o1, 36: o3
 ,37: p1, 38: p1, 39: p1, 40: p1, 41: p2, 42: p2, 43: p1, 44: p1, 45: p3, 46: p2, 47: p1, 48: p3
 ,49: o1, 50: o1, 51: o1, 52: o1, 53: o2, 54: o2, 55: o1, 56: o1, 57: o3, 58: o2, 59: o1, 60: o3
 ,61: q1, 62: q1, 63: q1, 64: q1, 65: q2, 66: q2, 67: q1, 68: q1, 69: q3, 70: q2, 71: q1, 72: q3
 ,73: r1, 74: r1, 75: r1, 76: r1, 77: r2, 78: r2, 79: r1, 80: r1, 81: r3, 82: r2, 83: r1, 84: r3
 ,85: q1, 86: q1, 87: q1, 88: q1, 89: q2, 90: q2, 91: q1, 92: q1, 93: q3, 94: q2, 95: q1, 96: q3
 ,97: o1, 98: o1, 99: o1, 100: o1, 101: o2, 102: o2, 103: o1, 104: o1, 105: o3, 106: o2, 107: o1, 108: o3
 ,109: p1, 110: p1, 111: p1, 112: p1, 113: p2, 114: p2, 115: p1, 116: p1, 117: p3, 118: p2, 119: p1, 120: p3
 ,121: o1, 122: o1, 123: o1, 124: o1, 125: o2, 126: o2, 127: o1, 128: o1, 129: o3, 130: o2, 131: o1, 132: o3
 ,133: n1, 134: n1, 135: n1, 136: n1, 137: n2, 138: n2, 139: n1, 140: n1, 141: n3, 142: n2, 143: n1, 144: n3
}

var total =new Array;
var total1 =new Array;
for(var uiu= 1; uiu < 145; uiu++)
{
total[uiu -1] = "don"+[uiu]+"n";
total1[uiu -1]=don[uiu];
}

for(var ui= 0; ui < 144; ui++)
{
for(var i= 0; i < 75; i++)
{
var nouveauinput;
function ajouteElemen() {
var body   = document.body || document.getElementsByTagName('body')[0],
nouveauinput  =  document.createElement("input");
nouveauinput.setAttribute("type", "number");
nouveauinput.setAttribute("id", total[ui]+i);
nouveauinput.setAttribute("value", total1[ui][i]);
nouveauinput.setAttribute("style", "display: none;");
body.insertBefore(nouveauinput,body.childNodes[0]);
}  
ajouteElemen();
}
}

L'idée actuelle est que le compositeur génère ses bases dans des variables (ici la première est m1), puis il place sa brique acoustique dans la mélodie en la positionnant dans la variable don.
J'ai pensé à faire une boucle dans la variable don, mais je pense que cela va rendre difficile le positionnement, alors qu'ici la position est juste devant la brique acoustique choisit. Il est possible aussi d'imaginer un code bien plus léger pour des cas particulier, mais là encore nous nous éloignons de l'idée première, à savoir que même un enfant doit pouvoir composer.

Si quelqu'un a une idée de présentation ludique, je suis preneur.
Cordialement

PS autre model type rondo car le premier fichier audio a été conçu secouer

// A  B  A  C  A  D type rondo
var m1 = [1, 220, 80, 0, 0, 5, 130, 2, 40, 30,
80, 6, 0, 1, 129, 0, 0, 0, 210, 80,
0, 0, 5, 130, 0, 0, 0, 40, 80, 0,
0, 1, 129, 0, 0, 0, 200, 80, 0, 0,
5, 130, 0, 0, 0, 50, 80, 0, 0, 1,
129, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 150, 0, 0, 144];//A
var m2 = [1, 220, 60, 0, 0, 5, 130, 2, 30, 30,
60, 6, 0, 1, 129, 0, 0, 0, 210, 60,
0, 0, 5, 130, 0, 0, 0, 40, 60, 0,
0, 1, 129, 0, 0, 0, 200, 60, 0, 0,
5, 130, 0, 0, 0, 50, 60, 0, 0, 1,
129, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//B
var m3 = [1, 220, 40, 0, 0, 5, 130, 2, 28, 30,
40, 6, 0, 1, 129, 0, 0, 0, 210, 40,
0, 0, 5, 130, 0, 0, 0, 40, 40, 0,
0, 1, 129, 0, 0, 0, 200, 40, 0, 0,
5, 130, 0, 0, 0, 50, 40, 0, 0, 1,
129, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//C
var m4 = [1, 220, 20, 0, 0, 5, 130, 2, 28, 30,
20, 6, 0, 1, 129, 0, 0, 0, 210, 20,
0, 0, 5, 130, 0, 0, 0, 40, 20, 0,
0, 1, 129, 0, 0, 0, 200, 20, 0, 0,
5, 130, 0, 0, 0, 50, 20, 0, 0, 1,
129, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//D
var n1 = [1, 220, 70, 0, 0, 5, 130, 2, 40, 30,
70, 6, 0, 1, 129, 0, 0, 0, 210, 70,
0, 0, 5, 130, 0, 0, 0, 40, 70, 0,
0, 1, 129, 0, 0, 0, 200, 70, 0, 0,
5, 130, 0, 0, 0, 50, 70, 0, 0, 1,
129, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 150, 0, 0, 144];//e7
var n2 = [1, 220, 60, 0, 0, 1, 130, 2, 30, 30,
40, 4, 0, 1, 220, 0, 0, 220, 60, 0,
0, 0, 0, 0, 0, 0, 0, 30, 40, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 125, 0, 0, 144];//a7
var n3 = [1, 220, 54, 0, 0, 1, 130, 2, 28, 30,
36, 4, 0, 1, 220, 0, 0, 220, 54, 0,
0, 0, 0, 0, 0, 0, 0, 30, 36, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 125, 0, 0, 144];//b7
var n4 = [1, 220, 60, 0, 0, 1, 130, 2, 30, 30,
40, 4, 0, 1, 220, 0, 0, 220, 60, 0,
0, 0, 1, 130, 0, 0, 0, 30, 40, 0,
0, 1, 128, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 125, 0, 0, 144];//a7
var n3 = [1, 220, 54, 0, 0, 1, 130, 2, 28, 30,
36, 4, 0, 1, 220, 0, 0, 220, 54, 0,
0, 0, 1, 130, 0, 0, 0, 30, 36, 0,
0, 1, 128, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 125, 0, 0, 144];//b7
var p1 = [1, 220, 80, 0, 0, 1, 130, 2, 40, 30,
54, 6, 0, 1, 220, 0, 0, 220, 80, 0,
0, 0, 1, 130, 0, 0, 0, 30, 54, 0,
0, 1, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 0, 0, 0, 30, 108, 0, 0, 7,
128, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 150, 0, 0, 144];//e7
var p2 = [1, 220, 60, 0, 0, 1, 130, 2, 30, 30,
40, 6, 0, 1, 220, 0, 0, 220, 60, 0,
0, 0, 1, 130, 0, 0, 0, 30, 40, 0,
0, 1, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 0, 0, 0, 30, 80, 0, 0, 7,
128, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//a7
var p3 = [1, 220, 54, 0, 0, 1, 130, 2, 28, 30,
36, 6, 0, 1, 220, 0, 0, 220, 54, 0,
0, 0, 1, 130, 0, 0, 0, 30, 36, 0,
0, 1, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 0, 0, 0, 30, 72, 0, 0, 7,
128, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//b7
var q1 = [1, 220, 80, 0, 0, 1, 130, 2, 40, 30,
54, 6, 0, 1, 220, 0, 0, 220, 80, 0,
0, 0, 7, 130, 0, 0, 0, 30, 54, 0,
0, 7, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 0, 0, 0, 30, 108, 0, 0, 7,
128, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 150, 0, 0, 144];//e7
var q2 = [1, 220, 60, 0, 0, 1, 130, 2, 30, 30,
40, 6, 0, 1, 220, 0, 0, 220, 60, 0,
0, 0, 7, 130, 0, 0, 0, 30, 40, 0,
0, 7, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 0, 0, 0, 30, 80, 0, 0, 7,
128, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//a7
var q3 = [1, 220, 54, 0, 0, 1, 130, 2, 28, 30,
36, 6, 0, 1, 220, 0, 0, 220, 54, 0,
0, 0, 7, 130, 0, 0, 0, 30, 36, 0,
0, 7, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 0, 0, 0, 30, 72, 0, 0, 7,
128, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//b7
var r1 = [1, 220, 80, 0, 0, 1, 130, 2, 40, 30,
54, 6, 0, 1, 220, 0, 0, 220, 80, 0,
0, 0, 7, 130, 0, 0, 0, 30, 54, 0,
0, 7, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 1, 80, 0, 30, 108, 0, 0, 7,
128, 1, 60, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 150, 0, 0, 144];//e7
var r2 = [1, 220, 60, 0, 0, 1, 130, 2, 30, 30,
40, 6, 0, 1, 220, 0, 0, 220, 60, 0,
0, 0, 7, 130, 0, 0, 0, 30, 40, 0,
0, 7, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 1, 80, 0, 30, 80, 0, 0, 7,
128, 1, 60, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//a7
var r3 = [1, 220, 54, 0, 0, 1, 130, 2, 28, 30,
36, 6, 0, 1, 220, 0, 0, 220, 54, 0,
0, 0, 7, 130, 0, 0, 0, 30, 36, 0,
0, 7, 128, 0, 0, 0, 220, 160, 0, 0,
7, 130, 1, 80, 0, 30, 72, 0, 0, 7,
128, 1, 60, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 175, 0, 0, 144];//b7

var don = {// A  B  A  C  A  D type rondo
  1: m1, 2: m2, 3: m1, 4: m3, 5: m1, 6: m4, 7: m1, 8: m2, 9: m1, 10: m3, 11: m1, 12: m4
 ,13: m1, 14: m2, 15: m1, 16: m3, 17: m1, 18: m4, 19: m1, 20: m2, 21: m1, 22: m3, 23: m1, 24: m4
 ,25: n1, 26: n1, 27: n1, 28: n1, 29: n2, 30: n2, 31: n1, 32: n1, 33: n3, 34: n2, 35: n1, 36: n3
 ,37: p1, 38: p1, 39: p1, 40: p1, 41: p2, 42: p2, 43: p1, 44: p1, 45: p3, 46: p2, 47: p1, 48: p3
 ,49: n1, 50: n1, 51: n1, 52: n1, 53: n2, 54: n2, 55: n1, 56: n1, 57: n3, 58: n2, 59: n1, 60: n3
 ,61: q1, 62: q1, 63: q1, 64: q1, 65: q2, 66: q2, 67: q1, 68: q1, 69: q3, 70: q2, 71: q1, 72: q3
 ,73: r1, 74: r1, 75: r1, 76: r1, 77: r2, 78: r2, 79: r1, 80: r1, 81: r3, 82: r2, 83: r1, 84: r3
 ,85: q1, 86: q1, 87: q1, 88: q1, 89: q2, 90: q2, 91: q1, 92: q1, 93: q3, 94: q2, 95: q1, 96: q3
 ,97: n1, 98: n1, 99: n1, 100: n1, 101: n2, 102: n2, 103: n1, 104: n1, 105: n3, 106: n2, 107: n1, 108: n3
 ,109: p1, 110: p1, 111: p1, 112: p1, 113: p2, 114: p2, 115: p1, 116: p1, 117: p3, 118: p2, 119: p1, 120: p3
 ,121: n1, 122: n1, 123: n1, 124: n1, 125: n2, 126: n2, 127: n1, 128: n1, 129: n3, 130: n2, 131: n1, 132: n3
 ,133: m4, 134: m4, 135: m4, 136: m4, 137: n2, 138: n2, 139: m4, 140: m4, 141: n3, 142: n2, 143: m4, 144: n3
}

var total =new Array;
var total1 =new Array;
for(var uiu= 1; uiu < 145; uiu++)
{
total[uiu -1] = "don"+[uiu]+"n";
total1[uiu -1]=don[uiu];
}

for(var ui= 0; ui < 144; ui++)
{
for(var i= 0; i < 75; i++)
{
var nouveauinput;
function ajouteElemen() {
var body   = document.body || document.getElementsByTagName('body')[0],
nouveauinput  =  document.createElement("input");
nouveauinput.setAttribute("type", "number");
nouveauinput.setAttribute("id", total[ui]+i);
nouveauinput.setAttribute("value", total1[ui][i]);
nouveauinput.setAttribute("style", "display: none;");
body.insertBefore(nouveauinput,body.childNodes[0]);
}  
ajouteElemen();
}
}

Dernière modification par temps (Le 17/12/2016, à 16:30)


Parce que l'USB bootable est le support des systèmes experts,
Parce que l'USB bootable contient sa propre image au démarrage.
L'USB bootable permet de créer un monde à la dimension de son imagination

Hors ligne