Ejemplo n.º 1
0
	public void AnalyseNote(Gnote cGnote, GnoteBar cBar, GnoteBar pBar){
		Gnote matchGnote = Metrognome.Instance.GetMatch (cGnote, pBar);
		if (matchGnote==null) {
			// No match
			// some sort of sound if they were on a streak.
		} else {
			// Match!
			matchGnote.SetMatched(true);
			KeyScoreValue ksv = KeyData.Instance.GetKeyScoreValue(cGnote.GetKey());
			string comment = "+"+ksv.points+"\n"+ksv.name;
			keyCount++;
			if(gnotes.Contains(cGnote)){
			}else{
				uniqueKeyCount++;
				cGnote.scoreComment += "\nUNIQUE";
			}
			cGnote.scoreComment = comment;
			cGnote.score = ksv.points;
			keyDistances += DistanceBetweenKeys (cGnote.GetKey(), LastNote().GetKey ());
			Metrognome.Instance.SetHolderHit (cGnote.GetDivision ());
			Displays.Instance.GnoteMatch (cGnote);
		}
	}
Ejemplo n.º 2
0
	public void AddGnote(Gnote g){
		gnotes.Add (g);
		strings.Add (g.GetKey ());
	}