Frame 2
_root.loadComplete.text = "...";
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
_root.loadComplete.text = Math.round((_root.getBytesLoaded() * 100) / _root.getBytesTotal()) + "...";
gotoAndPlay (1);
} else {
gotoAndStop (3);
}
Frame 3
initialDraw(x, y);
stop();
Instance of Symbol 74 MovieClip "btPlay" in Frame 3
on (release) {
var sndNotesNames = new Array("C", "Db", "D", "Eb", "E", "F", "Gb", "G", "Ab", "A", "Bb", "B");
snd = new Array();
i = 0;
while (i < 6) {
if (_root.controls.savirt[i] != 99) {
corde = _root.controls.savirt[i] % 6;
macase = Math.floor(_root.controls.savirt[i] / 6);
code = macase;
code = (corde * 5) + macase;
if (corde > 3) {
code--;
}
trace((((("corde" + corde) + " ") + macase) + " ") + code);
filename = (sndNotesNames[(code + 4) % 12] + (3 + Math.floor((code + 4) / 12))) + ".mp3";
trace(filename);
snd.push(new Sound());
snd[snd.length - 1].attachSound(filename);
}
i++;
}
j = 0;
while (j < snd.length) {
trace((("joue " + i) + " ") + snd[j]);
snd[j].start();
j++;
}
}
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 2
stop();
Symbol 47 MovieClip Frame 3
stop();
Symbol 48 MovieClip [frette] Frame 1
frame = 0;
stop();
Instance of Symbol 47 MovieClip "fretteGfx" in Symbol 48 MovieClip [frette] Frame 1
on (release) {
trace(_parent.z);
_parent.frame = (_parent.frame + 1) % 2;
gotoAndStop(_parent.frame + 1);
_root.controls.number(_parent.z, 3);
}
on (rollOver) {
gotoAndStop (3);
}
on (rollOut) {
gotoAndStop(_parent.frame + 1);
}
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 185
stop();
Symbol 63 MovieClip Frame 1
function initialDraw(x, y) {
baseX = 9;
baseY = 27;
n = 0;
i = 1;
while (i <= y) {
j = 1;
while (j <= x) {
_root.attachMovie("frette", "frette" + n, 40 + n);
tmp = eval ("_root.frette" + n);
tmp._x = baseX + ((j - 1) * 18);
tmp._y = baseY + manualY[i - 1];
tmp._height = manualHeight[i - 1];
tmp.z = n;
n++;
j++;
}
i++;
}
}
var capolist = "zero,one,two,three,four,five,six,seven,eight,nine,ten,eleven,twelve,blank,fret,xxx";
var capo = capolist.split(",");
var imageDB = new Array();
notes = new Array("", "", "", "m ", "", "", "flat5 ", "", "aug5 ", "", "7 ", "M7 ");
enrichissements = new Array("", "-9 ", "add9 ", "", "", "", "", "", "", "", "", "");
mmm = new Array(4, 9, 2, 7, 11, 4);
ttt = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
tt = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
savirt = new Array(99, 99, 99, 99, 99, 99);
var P = new Array("C ", "C# ", "D ", "Eb ", "E ", "F ", "F# ", "G ", "Ab ", "A ", "Bb ", "B ");
var pam = new Array("R", "d2", "2", "m3", "3", "4", "d5", "5", "a5", "6", "b7", "7");
P[20] = "x ";
var Q1 = new Array("x ", "x ", "x ", "x ", "x ", "x ");
var setune = "E A D G B E";
var Q2 = "";
var num2 = new Array(20, 20, 20, 20, 20, 20);
x = 6;
y = 12;
manualY = Array(0, 16, 68, 119, 171, 219, 265, 311, 350, 385, 421, 455, 500);
manualHeight = Array(10, 46, 46, 46, 43, 41, 38, 30, 28, 28, 28, 28, 500);
initialDraw(x, y);
Symbol 63 MovieClip Frame 2
function fs(fff) {
if (fff == "1") {
P = new Array("C ", "C# ", "D ", "D# ", "E ", "F ", "F# ", "G ", "G# ", "A ", "A# ", "B ", "x ");
}
if (fff == "0") {
P = new Array("C ", "Db ", "D ", "Eb ", "E ", "F ", "Gb ", "G ", "Ab ", "A ", "Bb ", "B ", "x ");
}
P[20] = "x ";
Q2 = "";
j = 0;
while (j < 6) {
if (num2[j] != 20) {
Q1[j] = P[num2[j] % 12];
}
Q2 = Q2 + Q1[j];
j++;
}
_root.notesNames.text = "fs = " + Q2;
binaar(ttt);
}
function number(z, k) {
function docit(z, k) {
if (num2[z % 6] == 20) {
Q1[z % 6] = P[20];
}
if (k == "3") {
zip(z, k);
}
if ((num2[z % 6] != 20) && (k == 3)) {
Q1[z % 6] = P[(mmm[z % 6] + FR) % 12];
trace(((((z % i) + " \u00B0 ") + ((mmm[z % 6] + FR) % 12)) + " \u00B0 ") + P[(mmm[z % 6] + FR) % 12]);
}
Q2 = "";
j = 0;
while (j < 6) {
Q2 = Q2 + Q1[j];
j++;
}
if (Q2 == "x x x x x x ") {
_root.btPlay._alpha = 50;
} else {
_root.btPlay._alpha = 100;
}
_root.notesNames.text = Q2;
}
function zip(z, k) {
clearit();
savirt[z % 6] = z;
if (k == "3") {
num2[z % 6] = (mmm[z % 6] + FR) % 12;
}
ttt = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
j = 0;
while (j < 6) {
if (num2[j] != 20) {
ttt[num2[j]] = 1;
}
j++;
}
}
FR = Math.floor(z / 6);
if ((z == "73") && (k == "4")) {
z = 72;
}
if ((z == "72") && (k == "4")) {
b = 0;
while (b < 6) {
if (num2[b] != 20) {
mmm[b] = num2[b];
}
savirt[b] = 99;
num2[b] = 20;
b++;
}
j = 0;
while (j < 72) {
j++;
}
Q1 = new Array("\u00D8 ", "\u00D8 ", "\u00D8 ", "\u00D8 ", "\u00D8 ", "\u00D8 ");
setune = "";
clearit();
b = 0;
while (b < 6) {
setune = setune + P[mmm[b]];
b++;
}
}
if (k) {
}
if ((savirt[z % 6] != 99) && (k == 3)) {
if (num2[z % 6] == ((mmm[z % 6] + FR) % 12)) {
k = 2;
num2[z % 6] = 20;
zip(z, k);
}
tmp = eval ("_root.frette" + savirt[z % 6]);
if (savirt[z % 6] < 6) {
tmp.fretteGfx.gotoAndStop(1);
tmp.frame = 0;
}
if (savirt[z % 6] >= 6) {
tmp.fretteGfx.gotoAndStop(1);
tmp.frame = 0;
}
num2[z % 6] = 20;
savirt[z % 6] = 99;
clearit();
binaar(ttt);
}
if (num2[z % 6] != ((mmm[z % 6] + FR) % 12)) {
docit(z, k);
}
if (k == "3") {
binaar(ttt);
}
return(z % 6);
}
function clearit() {
_root.result1.htmlText = "";
_root.result2.htmlText = "";
_root.result3.htmlText = "";
_root.result4.htmlText = "";
_root.result5.htmlText = "";
_root.result6.htmlText = "";
_root.analyse1.htmlText = "";
_root.analyse2.htmlText = "";
_root.analyse3.htmlText = "";
_root.analyse4.htmlText = "";
_root.analyse5.htmlText = "";
_root.analyse6.htmlText = "";
}
function binaar(ttt) {
var chord = "";
var Q = 1;
var V = 0;
c = 0;
while (c < 12) {
if (ttt[c] == 1) {
V = c;
var chord = P[V];
var sd = "";
var enrich = "";
inarow = ttt[(V + 11) % 12];
j = 0;
while (j < 12) {
if (ttt[(V + j) % 12] == 1) {
inarow++;
if (inarow == 3) {
_root.result3.htmlText = "impossible : 2 demi-tons cons\u00E9cutifs";
Q = Q + 1;
tt = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
return(false);
}
} else {
inarow = 0;
}
j++;
}
j = 0;
while (j < 12) {
if (ttt[(V + j) % 12] == 1) {
if ((j < 6) || (j > 8)) {
chord = chord + notes[j];
}
enrich = enrich + enrichissements[j];
tt[j] = 1;
sd = sd + pam[j];
}
j++;
}
j = 6;
while (j < 9) {
if (ttt[(V + j) % 12] == 1) {
chord = chord + notes[j];
}
j++;
}
if ((tt[5] && (tt[10])) && (tt[2] || (tt[4]))) {
chord = chord + "11 ";
}
if (chord.indexOf("11th") == "-1") {
if (sd.indexOf("4") > 0) {
chord = chord + "sus4 ";
}
}
if (tt[9] && (tt[10])) {
chord = chord + "13 ";
}
if (chord.indexOf("13th") == "-1") {
if (sd.indexOf("6") > 0) {
chord = chord + "6 ";
}
}
if (sd.indexOf("m33") == "1") {
chord = chord + "+9 ";
}
if (sd == "Rm3d56") {
chord = P[V] + "dim\u00BA ";
}
if (sd == "R235") {
chord = P[V] + "add9 ";
enrich = "";
}
if ((sd == "Rm335b7") || (sd == "Rm33b7")) {
chord = P[V] + "7 sharp 9th ";
}
if ((sd == "Rm335") || (sd == "Rm335")) {
chord = P[V] + "sharp 9th ";
}
if (sd == "Rm33d5b7") {
chord = P[V] + "7 aug9 dim\u00BA5 ";
}
if (((sd == "R235b7") || (sd == "R23b7")) || (sd == "R2b7")) {
chord = P[V] + "9 ";
enrich = "";
}
if ((sd == "R2m35b7") || (sd == "R2m3b7")) {
chord = P[V] + "m9 ";
enrich = "";
}
if ((sd == "R2357") || (sd == "R257")) {
chord = P[V] + "M9 ";
enrich = "";
}
if (sd == "R2m3d5b7") {
chord = P[V] + "m9 dim\u00BA5 ";
enrich = "";
}
if (sd == "R23d5b7") {
chord = P[V] + "9 dim\u00BA5 ";
enrich = "";
}
if (sd == "R23a5b7") {
chord = P[V] + "9 aug5 ";
enrich = "";
}
if (sd == "Rm357") {
chord = P[V] + "min/maj7 ";
}
if (sd == "Rd235b7") {
chord = P[V] + "7 dim\u00BA9 ";
enrich = "";
}
if (sd == "R25b7") {
chord = P[V] + "7sus2 ";
enrich = "";
}
if ((((((sd == "R2345b7") || (sd == "R34b7")) || (sd == "R234b7")) || (sd == "R24b7")) || (sd == "R345b7")) || (sd == "R245b7")) {
chord = P[V] + "11 ";
enrich = "";
}
if ((((sd == "R2m345b7") || (sd == "Rm34b7")) || (sd == "R2m34b7")) || (sd == "Rm345b7")) {
chord = P[V] + "m11 ";
enrich = "";
}
if ((((sd == "Rd2345b7") || (sd == "Rd245b7")) || (sd == "Rd234b7")) || (sd == "Rd24b7")) {
chord = P[V] + "11 dim\u00BA9 ";
enrich = "";
}
if ((((((((sd == "R2m3456b7") || (sd == "R2m346b7")) || (sd == "R2m356b7")) || (sd == "R2m36b7")) || (sd == "Rm3456b7")) || (sd == "Rm346b7")) || (sd == "Rm356b7")) || (sd == "Rm36b7")) {
chord = P[V] + "m13 ";
enrich = "";
}
if ((((((((((((((((sd == "R23456b7") || (sd == "R2346b7")) || (sd == "R2356b7")) || (sd == "R2456b7")) || (sd == "R246b7")) || (sd == "R236b7")) || (sd == "R256b7")) || (sd == "R26b7")) || (sd == "R3456b7")) || (sd == "R346b7")) || (sd == "R356b7")) || (sd == "R36b7")) || (sd == "R46b7")) || (sd == "R456b7")) || (sd == "R56b7")) || (sd == "R6b7")) {
chord = P[V] + "13 ";
enrich = "";
if (sd.indexOf("3") == -1) {
tt[4] = "0";
}
}
if ((((((((((((((((sd == "R234567") || (sd == "R23467")) || (sd == "R23567")) || (sd == "R24567")) || (sd == "R2467")) || (sd == "R2367")) || (sd == "R2567")) || (sd == "R267")) || (sd == "R34567")) || (sd == "R3467")) || (sd == "R3567")) || (sd == "R367")) || (sd == "R467")) || (sd == "R4567")) || (sd == "R567")) || (sd == "R67")) {
chord = P[V] + "M13 ";
enrich = "";
if (sd.indexOf("3") == -1) {
tt[4] = "0";
}
}
withwithout = "";
if ((tt[4] == "1") && (tt[3] == "1")) {
withwithout = withwithout + "w3 ";
}
if ((tt[7] == "1") && ((tt[6] == "1") || (tt[8] == "1"))) {
withwithout = withwithout + "w5 ";
}
if ((tt[4] == "0") && (tt[3] == "0")) {
if (chord.indexOf("sus4") == -1) {
withwithout = withwithout + "no3 ";
}
}
if (((tt[7] == "0") && (tt[6] != "1")) && (tt[8] != "1")) {
withwithout = withwithout + "no5 ";
}
if (withwithout != "") {
withwithout = ("(" + withwithout) + ")";
}
chord = chord + (enrich + withwithout);
backChord = chord;
if (sd == "R25") {
chord = P[V] + "sus2 ";
}
if (sd == "R3a5") {
chord = P[V] + "+ ";
}
if (sd == "Rm35") {
chord = P[V] + "m";
}
if (sd == "Rm3d5") {
chord = P[V] + "\u00B0 ";
}
if (sd == "R3a57") {
chord = P[V] + "M7(#5) ";
}
if (sd == "R3a5b7") {
chord = P[V] + "+7 ";
}
if (sd == "Rm3d56") {
chord = P[V] + "\u00B07 ";
}
if (sd == "R356") {
chord = P[V] + "6";
}
if (sd == "R2356") {
chord = P[V] + "6/9 ";
}
if (sd == "R23d56") {
chord = P[V] + "6(-5)add9";
}
if (sd == "R35b7") {
chord = P[V] + "7";
}
if (sd == "R3d5b7") {
chord = P[V] + "7(b5)";
}
if (sd == "Rd235b7") {
chord = P[V] + "7(b9) ";
}
if (sd == "R235b7") {
chord = P[V] + "9";
}
if (sd == "R2345b7") {
chord = P[V] + "11";
}
if (sd == "R357") {
chord = P[V] + "M7";
}
if (sd == "R2357") {
chord = P[V] + "M9";
}
if (sd == "R23457") {
chord = P[V] + "M11";
}
if (sd == "Rm356") {
chord = P[V] + "m6";
}
if (sd == "R2m356") {
chord = P[V] + "m6 add9 ";
}
if (sd == "Rm35b7") {
chord = P[V] + "m7 ";
}
if (sd == "Rm3d5b7") {
chord = P[V] + "\u00D8 ";
}
if (sd == "R2m35b7") {
chord = P[V] + "m9";
}
if (sd == "R2m345b7") {
chord = P[V] + "m11";
}
if (sd == "Rm357") {
chord = P[V] + "m(+7)";
}
if (sd == "R2m357") {
chord = P[V] + "m9(+7)";
}
if (sd == "R456") {
chord = P[V] + "6sus4";
}
if (sd == "R2456") {
chord = P[V] + "6sus4 add9";
}
if (sd == "R45b7") {
chord = P[V] + "7sus4";
}
if (sd == "R245b7") {
chord = P[V] + "9sus4";
}
if (sd == "R457") {
chord = P[V] + "M7sus4";
}
if (sd == "R2457") {
chord = P[V] + "M9sus4";
}
if (sd == "R2d55") {
chord = P[V] + "sus2 add11+";
}
if (sd == "R3d556") {
chord = P[V] + "6 add11+";
}
if (sd == "R3456") {
chord = P[V] + "6 add11";
}
altered = false;
if (chord == backChord) {
if (chord.charAt(1) != " ") {
altered = true;
} else {
chord = chord.charAt(0) + chord.substr(2);
}
eval ("_root.analyse" + Q).htmlText = sd;
eval ("_root.result" + Q).htmlText = chord;
eval ("_root.result" + Q).setTextFormat(0, 1, nomAccord);
if (altered) {
eval ("_root.result" + Q).setTextFormat(1, 2, alterationAccord);
}
} else {
if (chord.charAt(1) != " ") {
altered = true;
} else {
chord = chord.charAt(0) + chord.substr(2);
}
tmp = chord.length;
eval ("_root.analyse" + Q).htmlText = sd;
eval ("_root.result" + Q).htmlText = chord;
eval ("_root.result" + Q).setTextFormat(0, tmp, typeAccord);
eval ("_root.result" + Q).setTextFormat(0, 1, nomAccord);
if (altered) {
eval ("_root.result" + Q).setTextFormat(1, 2, alterationAccord);
}
}
Q = Q + 1;
tt = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
c++;
}
}
var nomAccord = new TextFormat();
nomAccord.size = 24;
var alterationAccord = new TextFormat();
alterationAccord.size = 22;
var normalAccord = new TextFormat();
normalAccord.size = 14;
var typeAccord = new TextFormat();
typeAccord.size = 20;
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 88 Button
on (release) {
getURL ("http://www.zikinf.com/");
}