Exactly what is this opcode intended to do ? Also, you could provide more details about your sfplay instrument: perhaps what you want can be done easily without a new opcode. On Friday 09 June 2006 17:42, Dr. Richard Boulanger wrote: > ipgm, ichan pgmin > > Currently I am parsing my mid input using the midiin opcode and > looking for status 192 and then using > the data1 value to change the ipres parameter on the sfplay opcode, > but it is not > reliable - as seen below > > kstatus, kchan, kdata1, kdata2 midiin > > if (kstatus==192 && kchan==1) then > ipres = i(kdata1) > endif > > What I want is a way to directly map program change messages into my > instrument (the sfplay opcode actually) > without all these additional tests and use it to select samples from > within a soundfont bank. > > What I am getting currently is a new program change for every note i > play on the midi keyboard > > Hope one of you can help. _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net