Under OS 3.5, I've had NO trouble playing system sounds, or playing notes using SndDoCmd with sndCmdFrqOn. But when I try to do a similar call using a MIDI note (sndCmdNoteOn), the command returns errNone but is silent. I've tried MIDI notes from 0 to 127. Just because I had nothing to lose, I've experimented by scaling the volume both to 127 (MIDI) or just 64 (sndMaxAmp). I've tried setting noWait to true and false. But still no sound. And no parameter errors... All of this works with sndCmdFrqOn, none of it works with a midi note. Is there an external context to using sndCmdNoteOn that I'm not aware of? Has anyone else had problems with getting MIDI notes to play? My syntax and parameters are identical to that of PlayShortSound(note) in RockMusic.c (as well as the documentation.) Also, I am running this on a the emulator with a debug 3.5 ROM, but as I mentioned, both other sound types work. And since the system alarm works, and that uses an smf, which in turn likely uses sndCmdNoteOn, I'm baffled. Also, since I can't actually hear the note until I resolve this, can anyone resolve this disparity: According to the sample code in RockMusic, he seems to be assigning 55 Hz (lowest A) to MIDI note 0. But according to MIDI documentation, middle C is defined as MIDI note 60, making lowest A = MIDI note 21 (and giving a greater range than a piano.) Which way does the PalmOS define it? Thanks for the advice. - Jeff -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
