NAudio Midi ProgramChange

Discussion in 'C#' started by CloneXpert, Aug 28, 2010.

  1. CloneXpert

    CloneXpert New Member

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I'm writing in the hope that somebody is familiour with the NAudio library , and can tell me how to change instrument on a channel.

    I kept trying like this, but didn't work out...

    midiout.Send(new PatchChangeEvent(0,1,30).GetAsShortMessage());
    midiout.Send(new NoteOnEvent(0, 1, 0, 127, 100).GetAsShortMessage());
    Thanks!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice