CloneXpert 20 Junior Poster in Training

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!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.