diff options
Diffstat (limited to 'apps/plugins/midi/synth.c')
-rw-r--r-- | apps/plugins/midi/synth.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/midi/synth.c b/apps/plugins/midi/synth.c index c210f046d3..42ca9ddaf6 100644 --- a/apps/plugins/midi/synth.c +++ b/apps/plugins/midi/synth.c | |||
@@ -67,7 +67,7 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig) | |||
67 | chPanLeft[a]=64; /* Center */ | 67 | chPanLeft[a]=64; /* Center */ |
68 | chPanRight[a]=64; /* Center */ | 68 | chPanRight[a]=64; /* Center */ |
69 | chPat[a]=0; /* Ac Gr Piano */ | 69 | chPat[a]=0; /* Ac Gr Piano */ |
70 | chPW[a]=64; /* .. not .. bent ? */ | 70 | chPW[a]=256; /* .. not .. bent ? */ |
71 | } | 71 | } |
72 | for(a=0; a<128; a++) | 72 | for(a=0; a<128; a++) |
73 | { | 73 | { |
@@ -281,7 +281,7 @@ inline signed short int synthVoice(void) | |||
281 | so->cp += so->delta; | 281 | so->cp += so->delta; |
282 | } | 282 | } |
283 | 283 | ||
284 | cpShifted = so->cp >> 10; | 284 | cpShifted = so->cp >> 10; //Was 10 |
285 | 285 | ||
286 | if( (cpShifted > (wf->numSamples) && (so->state != STATE_RAMPDOWN))) | 286 | if( (cpShifted > (wf->numSamples) && (so->state != STATE_RAMPDOWN))) |
287 | { | 287 | { |
@@ -295,7 +295,7 @@ inline signed short int synthVoice(void) | |||
295 | { | 295 | { |
296 | if(wf->mode & LOOP_REVERSE) | 296 | if(wf->mode & LOOP_REVERSE) |
297 | { | 297 | { |
298 | so->cp = (wf->endLoop)<<10; | 298 | so->cp = (wf->endLoop)<<10; //Was 10 |
299 | cpShifted = wf->endLoop; | 299 | cpShifted = wf->endLoop; |
300 | s2=getSample((cpShifted)); | 300 | s2=getSample((cpShifted)); |
301 | } else | 301 | } else |
@@ -310,7 +310,7 @@ inline signed short int synthVoice(void) | |||
310 | so->loopState = STATE_LOOPING; | 310 | so->loopState = STATE_LOOPING; |
311 | if((wf->mode & (24)) == 0) | 311 | if((wf->mode & (24)) == 0) |
312 | { | 312 | { |
313 | so->cp = (wf->startLoop)<<10; | 313 | so->cp = (wf->startLoop)<<10; //Was 10 |
314 | cpShifted = wf->startLoop; | 314 | cpShifted = wf->startLoop; |
315 | s2=getSample((cpShifted)); | 315 | s2=getSample((cpShifted)); |
316 | } else | 316 | } else |
@@ -321,8 +321,8 @@ inline signed short int synthVoice(void) | |||
321 | } | 321 | } |
322 | 322 | ||
323 | /* Better, working, linear interpolation */ | 323 | /* Better, working, linear interpolation */ |
324 | s1=getSample((cpShifted)); | 324 | s1=getSample((cpShifted)); //\|/ Was 1023)) >> 10 |
325 | s = s1 + ((signed)((s2 - s1) * (so->cp & 1023))>>10); | 325 | s = s1 + ((signed)((s2 - s1) * (so->cp & 1023))>>10); //Was 10 |
326 | 326 | ||
327 | 327 | ||
328 | /* ADSR COMMENT WOULD GO FROM HERE.........*/ | 328 | /* ADSR COMMENT WOULD GO FROM HERE.........*/ |