1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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