Exemplo n.º 1
0
    //SpriteRenderer sr;
    //private Sprite[] sprites;

    // Use this for initialization
    void Start()
    {
        sequencer = new MIDISequencer();
        sequencer.LoadCompleted += Sequencer_LoadCompleted;
        Thread t = new Thread(() => { sequencer.Init(); });

        t.Start();
        t.Join();

        sequencer.ShowDebug = true;

        sequencer.Load("C:/repo/Piano/Assets/bach.mid");
    }
Exemplo n.º 2
0
 private void btnLoad_Click(object sender, EventArgs e)
 {
     Sequencer.Stop();
     Sequencer.Reset();
     Sequencer.Load(Path);
 }