public void addNotes(String noteData)
	{
		boolean complete = false;
		
		while (!complete)
		{
			String currentNote;
			boolean done1 = false;
			int i = 0;
			while (!done1)
			{
				if (noteData.substring(i).equals("") || noteData.substring(i, i+1).equals(","))
					done1 = true;
				i++;
			}
			currentNote = noteData.substring(0, i-1);
			
			int n = 0;
			boolean done2 = false;
			while(!done2)
			{
				if (currentNote.substring(n, n+1).equals(" "))
					done2 = true;
				n++;
			}
			String currentPitch = currentNote.substring(0, n-1);
			
			int currentOctave;
			if ((currentNote.substring(n, n+1)).equals("-"))
			{
				n++;
				currentOctave = Integer.parseInt(currentNote.substring(n, n+1)) * (-1);
			}
			else
				currentOctave = Integer.parseInt(currentNote.substring(n, n+1));
			
			double currentDuration = Double.parseDouble(currentNote.substring(n+2));
			
			
			addNote(currentPitch, currentOctave, currentDuration);
			
			if (i+1 < noteData.length())
				noteData = noteData.substring(i+1);
			else
				complete = true;
		}
	}