ref: 3328441c9a52aa745de12517f6f5e82f5bf9bc37
parent: 72a57224a2377df914d9549204a11ca427d32b6f
author: Iliyas Jorio <iliyas@jor.io>
date: Wed Feb 2 15:44:06 EST 2022
IBXM: Add stereo separation param for mod music
--- a/src/support/ibxm.c
+++ b/src/support/ibxm.c
@@ -8,6 +8,8 @@
static const int FP_SHIFT = 15, FP_ONE = 32768, FP_MASK = 32767;
+static const int MOD_STEREO_SEPARATION = 50; // ibxm default was 76.5
+
static const int exp2_table[] = {
32768, 32946, 33125, 33305, 33486, 33667, 33850, 34034,
34219, 34405, 34591, 34779, 34968, 35158, 35349, 35541,
@@ -747,9 +749,9 @@
return NULL;
}
for( idx = 0; idx < module->num_channels; idx++ ) {
- module->default_panning[ idx ] = 51;
+ module->default_panning[ idx ] = 128 - MOD_STEREO_SEPARATION / 2;
if( ( idx & 3 ) == 1 || ( idx & 3 ) == 2 ) {
- module->default_panning[ idx ] = 204;
+ module->default_panning[ idx ] = 128 + MOD_STEREO_SEPARATION / 2;
}
}
module_data_idx = 1084;