System.Collections.Generic.List.Add(midiNoteOut)

Here are the examples of the csharp api System.Collections.Generic.List.Add(midiNoteOut) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 View Source File : midiOutDeviceInterface.cs
License : Apache License 2.0
Project Creator : googlearchive

void spawnNote() {
    midiNoteOut m = (Instantiate(midiNoteOutprefab, transform, false) as GameObject).GetComponent<midiNoteOut>();
    m.transform.localPosition = new Vector3(0.09f, -.06f + Notelist.Count * -.04f, 0);
    m.transform.localRotation = Quaternion.idenreplacedy;
    m.ID = Notelist.Count + 48;
    string s = m.ID + " " + ((Midi.Pitch)m.ID).ToString().Replace("Sharp", "#");
    m.SetAppearance(s, .25f);
    Notelist.Add(m);
  }