/$ mezzomusic-init float Frequencies[12]; string noten[8]; int notenumToFreq[8]; int length[12]; string bmpNote[12]; string bmpRest[12]; string bmpFlat; string bmpNat; string bmpSharp; int cStaffTop; int noteSize; int pow2[10]; int recNote[250]; int recOctave[250]; int recAcc[250]; int recLength[250]; int recCount; string bmpBtnAcc; string bmpBtnPlay; int curAcc; int curNoteLength; int curMode; initPow2(){ int k;int n; n=1; for(k=0;k<10;k++){ pow2[k]=n; n=n*2; } } SetupNotes() { noten[0]="c"; noten[1]="d"; noten[2]="e"; noten[3]="f"; noten[4]="g"; noten[5]="a"; noten[6]="b"; notenumToFreq[0]=0; notenumToFreq[1]=2; notenumToFreq[2]=4; notenumToFreq[3]=5; notenumToFreq[4]=7; notenumToFreq[5]=9; notenumToFreq[6]=11; Frequencies[0]=32.70; Frequencies[1]=34.65; Frequencies[2]=36.71; Frequencies[3]=38.89; Frequencies[4]=41.20; Frequencies[5]=43.65; Frequencies[6]=46.25; Frequencies[7]=49.00; Frequencies[8]=51.91; Frequencies[9]=55.00; Frequencies[10]=58.27; Frequencies[11]=61.74; length[0]=96;//whole bmpNote[0]="08000000000000000000003048844830"; bmpRest[0]="08000000ff3c3c000000000000000000"; length[1]=72;//dot half length[2]=48;//half bmpNote[2]="0800040404040404040404344c844830"; bmpRest[2]="08000000003c3cff0000000000000000"; length[3]=36;//dot quarter length[4]=24;//quarter bmpNote[4]="0800040404040404040404347cfc7830"; bmpRest[4]="08081830303018183030303018080000"; length[5]=18;//dot eigth length[6]=12;//eigth bmpNote[6]="0800060707050505050506357cfc7830"; bmpRest[6]="080000747c0808101020000000000000"; length[7]=9;//dot 16th length[8]=6;//16th bmpNote[8]="0800060707050607070504347cfc7830"; bmpRest[8]="080000747c0878701020200000000000"; length[9]=32;//quartrip length[10]=16;//eigtrip length[11]=8;//sixtrip } initConstants(){ cStaffTop=32; //cLineSize=5; bmpBtnAcc="0a1201207f81201207f81201200000001001201601a01201201601a01200200001001001001001c01201201c0000 "; bmpBtnPlay="0a0000800c00e00f00f80f00e00c0080"; noteSize=5; bmpFlat="054040605060"; bmpSharp="0550f850f850"; }