public Measure(String measureDefinition) {
		measureType = null;
		beats = new ArrayList<SongEvent>();
		try {
			if (measureDefinition.length() < 2) {
				throw new Exception("Invalid measure definition: " + 
						measureDefinition);
			}
			
			switch (measureDefinition.charAt(0)) {
			case 'm':
				measureType = MeasureType.NORMAL;
				parseNormal(measureDefinition);
				break;
			case 'r':
				measureType = MeasureType.REST;
				parseRest(measureDefinition);
				break;
			case 's':
				measureType = MeasureType.STUTTER;
				stutterPattern = measureDefinition;
				
			}
		} catch (Exception e) {
			System.err.println(e.getMessage());
		}
	}