#pragma noroot#pragma optimize -1#include <quickdraw.h>#include <control.h>#include "defines.h"#include <extern.h>extern int strings[6][13];extern int newnotes;extern int key;extern int notes;extern int strcount;extern int LowFret;extern int HiFret;Rect ClearBox={0,0,160,140};int array1[6]={20,40,60,80,100,120};// the x pos of the 6  stringsint array2[13]={20,30,40,50,60,70,80,90,100,110,120,130,140};// y pos of the 13 fret lines#pragma databank 1void DrawWindow (void){int i;	int j;int the_note;	SetPenMode (modeCopy);//clear the screen	SetSolidPenPat(3);//white        PaintRect(&ClearBox); //draw the lines of the neck   	SetSolidPenPat(0);//black 	SetPenSize (2, 1);	for (i=0;i<strcount;i++){		MoveTo(array1[i],array2[0]);		LineTo(array1[i],array2[12]);        }        for(i=0;i<13;i++){		MoveTo(array1[0],array2[i]);		LineTo(array1[strcount-1],array2[i]);        }//draw the notes   	SetSolidPenPat(1);	/* purple */        SetPenSize(7,3);	for (i=0;i<strcount;i++){		for(j=LowFret;j<HiFret;j++){	                //check if the note is desired                	if ( the_note=(newnotes & strings[i][j]) )                        {	                        /* check root */	                	if (the_note==(1<<key))                                {   					SetSolidPenPat (0x2);					MoveTo(array1[i]-3,array2[j]-3);                                	LineTo(array1[i]-3,array2[j]-3);   					SetSolidPenPat(1);                                                                 }                                else                                {					MoveTo(array1[i]-3,array2[j]-3);                                	LineTo(array1[i]-3,array2[j]-3);                                }	                }        	}       	}}#pragma databank 0
