Example #1
0
 private void Awake()
 {
     aNote = 0;
     //currentOctave = (octave)1;
     noteText.text = aNote.ToString();
     //octaveText.text = currentOctave.ToString();
     volumeText.text = theCurrentVolumeSetting.ToString();
 }
Example #2
0
 private void receiver_pitchUpdateEvent(int value)
 {
     if (value == 0)
     {
         aNote--;
         if (aNote.CompareTo(musicNotes.lowC) < 0)
         {
             aNote = musicNotes.highC;
         }
     }
     else if (value == 2)
     {
         aNote++;
         if (aNote.CompareTo(musicNotes.highC) > 0)
         {
             aNote = 0;
         }
     }
     noteText.text = aNote.ToString();
 }