Ticket #9791: 0001-adjust-fluidsynth-fine-tuning-range-to-match-standar.patch

File 0001-adjust-fluidsynth-fine-tuning-range-to-match-standar.patch, 1.3 KB (added by Pete, 8 years ago)
  • src/libs/fluidsynth/src/fluid_chan.c

    From b91a1d2dead222188206cf6ed565906be8106cc6 Mon Sep 17 00:00:00 2001
    From: Pete Goodeve <pete.goodeve@computer.org>
    Date: Fri, 24 May 2013 19:33:20 -0700
    Subject: [PATCH] adjust fluidsynth fine tuning range to match standard
    
    ---
     src/libs/fluidsynth/src/fluid_chan.c |    4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/libs/fluidsynth/src/fluid_chan.c b/src/libs/fluidsynth/src/fluid_chan.c
    index 3406c4b..d007e4d 100644
    a b fluid_channel_cc(fluid_channel_t* chan, int num, int value)  
    268268        fluid_channel_pitch_wheel_sens (chan, value);   /* Set bend range in semitones */
    269269        /* FIXME - Handle LSB? (Fine bend range in cents) */
    270270        break;
    271       case RPN_CHANNEL_FINE_TUNE:   /* Fine tune is 14 bit over 1 semitone (+/- 50 cents, 8192 = center) */
     271      case RPN_CHANNEL_FINE_TUNE:   /* Fine tune is 14 bit over +/-1 semitone (+/- 100 cents, 8192 = center) */
    272272        fluid_synth_set_gen(chan->synth, chan->channum, GEN_FINETUNE,
    273                 (data - 8192) / 8192.0 * 50.0);
     273                (data - 8192) / 8192.0 * 100.0);
    274274        break;
    275275      case RPN_CHANNEL_COARSE_TUNE: /* Coarse tune is 7 bit and in semitones (64 is center) */
    276276        fluid_synth_set_gen(chan->synth, chan->channum, GEN_COARSETUNE,