ZynAddSubFX & PitchBend message

Official support for: zynaddsubfx.sourceforge.net
Post Reply New Topic
RELATED
PRODUCTS

Post

Hallo people,

I am using ZynAddSubFX as a standalone software synth. I noticed following odd behaviour while experimenting with pitch-bend messages. The default values for LSB & MSB seem to be 0x00 & 0x00 and not 0x40 & 0x40 as in the MIDI specification. All values above 00 increase the pitch. How can I send a bend-down message then?

Thanks,
Dimitris Tziouris

Post

Hi.
Thanks for telling me. Yes, this is a bug. The reason of the fact that the bug is very old, is that I could not test in windows (nor linux with open sound system), because my MIDI keyboard doesnt has any pitch bend controller.

I'll fix this and will be available in the next version (of course, if you know how to compile a software or you have a friend who know, you can download the latest source code that will contain the bugfix).
Paul

Post

This is right. I've noticed the problem before but I do not use standalone as ZynAddSubFX is working very ineffective in this mode. The problem is in WINMidiIn.C:

case(0xe)://pitch wheel
tmp=par1+par2*(long int) 128;


should be replaced with:

case(0xe)://pitch wheel
tmp=par1+par2*(long int) 128-8192;


(tested)


probably same with OSSMidiIn.C: cmdparams[1]=tmp+getmidibyte()*(int) 128-8192;

Best regards

Post

Please get the cvs version of zynaddsubfx to see if my changes (few weeks ago) are good.
Paul

Post

Yes, IMO Your version should work properly.

Best regards

Post Reply

Return to “ZynAddSubFX”