Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Win7-64: This is my only midi device: Microsoft GS Wavetable Synth, deviceid = 0.

Is there any way to tell if midi pitch bend is supported on this device?

share|improve this question
    
IMO if it's GM, it necessarily supports pitch bend, velocity, and some other basic controls and sysex. –  wazoox Mar 30 '10 at 20:34
    
Ok, I find it is supported on the default builtin software synth, Microsoft GS Wavetable Synth. I had to write a midi program to test it. –  P a u l Apr 6 '10 at 17:32
    
you should post that as an answer; answering your own question is encouraged. you don't need to post code if you don't want to, but feel free to go into as much detail as you like. –  quack quixote May 12 '10 at 13:03
add comment

2 Answers

up vote 3 down vote accepted

I tested this with default device 0 (Microsoft GS Wavetable Synth) and finished my solution using the C# Midi Toolkit. Here is the C# code that works with this toolkit. pitchBend is any integer from 0 to 16383. Pitch bend works. You have to turn a note on first (not shown).

if(pitchBend > 16383)
    pitchBend = 16383;

int mask = 127;

ChannelMessageBuilder builder = new ChannelMessageBuilder();

// Build pitch bend message;
builder.Command = ChannelCommand.PitchWheel;

// Unpack pitch bend value into two data bytes.
builder.Data1 = pitchBend & mask;
builder.Data2 = pitchBend >> 7;

// Build message.
builder.Build();

ChannelMessage pitchBendMessage = builder.Result;

// Send message (assumes we've created an output device).
outDevice.Send(pitchBendMessage);
share|improve this answer
add comment

Send it notes from an external keyboard with a pitch bend controller

share|improve this answer
    
Don't have that. What would be nice is full technical documentation on the software included with windows. You have to scrounge around on forums and google to find anything if you are lucky. –  P a u l Mar 31 '10 at 6:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.