[haiku-commits] Re: r41777 - haiku/trunk/src/kits/midi

  • From: scottmc <scottmc2@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 27 May 2011 11:36:03 -0700

On Fri, May 27, 2011 at 11:29 AM,  <korli@xxxxxxxxxxxxxxxx> wrote:
> Author: korli
> Date: 2011-05-27 20:29:07 +0200 (Fri, 27 May 2011)
> New Revision: 41777
> Changeset: https://dev.haiku-os.org/changeset/41777
> Ticket: https://dev.haiku-os.org/ticket/7581
>
> Modified:
>   haiku/trunk/src/kits/midi/SoftSynth.cpp
> Log:
> Patch from Pete Goodeve (ticket #7581): MIDI Pitchbend scaled wrongly.
>
>
> Modified: haiku/trunk/src/kits/midi/SoftSynth.cpp
> ===================================================================
> --- haiku/trunk/src/kits/midi/SoftSynth.cpp     2011-05-27 16:52:27 UTC (rev 
> 41776)
> +++ haiku/trunk/src/kits/midi/SoftSynth.cpp     2011-05-27 18:29:07 UTC (rev 
> 41777)
> @@ -356,7 +356,8 @@
>        if (InitCheck()) {
>                snooze_until(MAKE_BIGTIME(time), B_SYSTEM_TIMEBASE);
>                // fluid_synth only accepts an int
> -               fluid_synth_pitch_bend(fSynth, channel - 1, ((uint32)(msb & 
> 0x7f) << 8) | (lsb & 0x7f));
> +               fluid_synth_pitch_bend(fSynth, channel - 1,
> +                       ((uint32)(msb & 0x7f) << 7) | (lsb & 0x7f));
>        }
>  }
>


That looks simple enough, should it be in alpha3?
-scottmc

Other related posts: