~ubuntu-branches/ubuntu/lucid/timidity/lucid

« back to all changes in this revision

Viewing changes to timidity/m2m.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Wenning
  • Date: 2009-05-08 22:55:09 UTC
  • mfrom: (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090508225509-9ays3b9pm70vongw
Tags: 2.13.2-22ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/control: Remove libarts1-dev from build depends and update
    timidity package description.
  - debian/rules: Remove arts from list of output options.
  - debian/timidity.default: Enable MIDI sequencer by default

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
 * lookup_table[mod_vol][expression, volume]
170
170
 */
171
171
static char vol_nonlin_to_lin[128][2] = {
172
 
      0, 127,   7, 125,  11, 120,  14, 121,  16, 126,  19, 121,  21, 122,
173
 
     23, 122,  25, 122,  26, 126,  28, 125,  30, 123,  31, 126,  33, 124,
174
 
     34, 126,  36, 124,  37, 125,  38, 126,  40, 124,  41, 125,  42, 126,
175
 
     43, 127,  45, 125,  46, 125,  47, 126,  48, 126,  49, 127,  50, 127,
176
 
     52, 125,  53, 125,  54, 125,  55, 125,  56, 126,  57, 126,  58, 126,
177
 
     59, 126,  60, 126,  61, 126,  62, 126,  63, 126,  64, 126,  65, 126,
178
 
     66, 126,  67, 125,  68, 125,  69, 125,  69, 127,  70, 127,  71, 126,
179
 
     72, 126,  73, 126,  74, 126,  75, 126,  76, 125,  76, 127,  77, 127,
180
 
     78, 126,  79, 126,  80, 126,  81, 126,  81, 127,  82, 126,  83, 126,
181
 
     84, 126,  85, 126,  85, 127,  86, 126,  87, 126,  88, 126,  88, 127,
182
 
     89, 127,  90, 126,  91, 126,  91, 127,  92, 127,  93, 126,  94, 126,
183
 
     94, 127,  95, 127,  96, 126,  97, 126,  97, 127,  98, 126,  99, 126,
184
 
    100, 126, 100, 127, 101, 126, 102, 126, 102, 127, 103, 126, 104, 126,
185
 
    104, 127, 105, 127, 106, 126, 106, 127, 107, 127, 108, 126, 108, 127,
186
 
    109, 127, 110, 126, 110, 127, 111, 127, 112, 126, 112, 127, 113, 127,
187
 
    114, 126, 114, 127, 115, 127, 116, 126, 116, 127, 117, 126, 118, 126,
188
 
    118, 127, 119, 126, 120, 126, 120, 127, 121, 126, 121, 127, 122, 126,
189
 
    123, 126, 123, 127, 124, 126, 124, 127, 125, 127, 126, 126, 126, 127,
190
 
    127, 126, 127, 127 };
 
172
     { 0, 127, },{  7, 125,  },{11, 120, },{ 14, 121, },{ 16, 126, },{ 19, 121, },{ 21, 122,},
 
173
     { 23, 122, },{ 25, 122, },{ 26, 126,  },{28, 125, },{ 30, 123, },{ 31, 126, },{ 33, 124,},
 
174
     { 34, 126, },{ 36, 124, },{ 37, 125, },{ 38, 126, },{ 40, 124, },{ 41, 125, },{ 42, 126, },
 
175
     { 43, 127, },{ 45, 125, },{ 46, 125, },{ 47, 126, },{ 48, 126, },{ 49, 127, },{ 50, 127, },
 
176
     { 52, 125, },{ 53, 125, },{ 54, 125, },{ 55, 125, },{ 56, 126, },{ 57, 126, },{ 58, 126, },
 
177
     { 59, 126, },{ 60, 126, },{ 61, 126, },{ 62, 126, },{ 63, 126,  },{64, 126, },{ 65, 126, },
 
178
     { 66, 126, },{ 67, 125, },{ 68, 125, },{ 69, 125, },{ 69, 127, },{ 70, 127, },{ 71, 126, },
 
179
     { 72, 126, },{ 73, 126, },{ 74, 126, },{ 75, 126, },{ 76, 125, },{ 76, 127, },{ 77, 127, },
 
180
     { 78, 126, },{ 79, 126, },{ 80, 126, },{ 81, 126, },{ 81, 127, },{ 82, 126, },{ 83, 126, },
 
181
     { 84, 126, },{ 85, 126, },{ 85, 127, },{ 86, 126, },{ 87, 126, },{ 88, 126, },{ 88, 127, },
 
182
     { 89, 127, },{ 90, 126, },{ 91, 126, },{ 91, 127, },{ 92, 127, },{ 93, 126, },{ 94, 126, },
 
183
     { 94, 127, },{ 95, 127, },{ 96, 126, },{ 97, 126, },{ 97, 127, },{ 98, 126, },{ 99, 126, },
 
184
    { 100, 126, },{100, 127, },{101, 126, },{102, 126, },{102, 127, },{103, 126, },{104, 126, },
 
185
    { 104, 127, },{105, 127, },{106, 126, },{106, 127, },{107, 127, },{108, 126, },{108, 127, },
 
186
    { 109, 127, },{110, 126, },{110, 127, },{111, 127, },{112, 126, },{112, 127, },{113, 127, },
 
187
    { 114, 126, },{114, 127, },{115, 127, },{116, 126, },{116, 127, },{117, 126, },{118, 126, },
 
188
    { 118, 127, },{119, 126, },{120, 126, },{120, 127, },{121, 126, },{121, 127, },{122, 126, },
 
189
    { 123, 126, },{123, 127, },{124, 126, },{124, 127, },{125, 127, },{126, 126, },{126, 127, },
 
190
    { 127, 126, }, { 127, 127 }, };
191
191
 
192
192
/*
193
193
 * Uses the volume curve specified by the -V or --volume-curve option.
964
964
    uint32 oldtime = 0, deltatime;
965
965
    double time = 0;
966
966
    int chord, chord_type, chord_subtype;
967
 
    int ch, n, old_ch, newnote, mod_sample, expression;
 
967
    int ch, n, old_ch, newnote, mod_sample=0, expression=0;
968
968
    int extra;
969
969
 
970
970
    /* go through the list for real this time */