public Note(string name, int octave, float dur) { noteName = name; noteNum = NoteNumber.GetNum(name, octave); noteOctave = octave; duration = dur; }
void Start() { key = this.gameObject; rend = key.GetComponent <Renderer>(); material = rend.material; col = material.color; string[] split = key.name.Split('.'); keyName = split[0]; octave = int.Parse(split[1]); keyNumber = NoteNumber.GetNum(split[0], octave); song = GameObject.Find("Song").GetComponent <EncodedSong>(); text = GameObject.Find("NoteQueue").GetComponent <DisplayNoteQueue>(); front = GameObject.Find("Front").GetComponent <DisplayNoteQueue>(); text_string = GameObject.Find("NoteQueue").GetComponent <Text>(); }