public void drawArray(Graphics g) {
		// white keys
		for (int i = 0; i < 45; i++) {
			if (whiteSpaces[i] == 1) {
				if (whiteSpacesColor[i] == 0)
					g.setColor(Color.BLUE);
				else if (whiteSpacesColor[i] == 1)
					g.setColor(Color.RED);	
				g.fillRect(i * widthWhite + leftOffset, offset + keylength + 5,
						widthWhite, 7);

			}
		}

		for (int i = 0; i < 44; i++) {
			if (blackSpaces[i] == 1) {
				if (blackSpacesColor[i] == 0)
					g.setColor(Color.BLUE);
				else if(blackSpacesColor[i] == 1)
					g.setColor(Color.RED);
				g.fillRect(widthWhite * i + widthWhite - widthBlack / 2
						+ leftOffset, offset - 10, widthBlack, 8);
			}
		}

	}