The problem of Protracker MODs is there are only mono voices (when played with
SDL_mixer). It sounds bad, especially on headphones.
I want to mix half of the music’s stereo input from the left to the right and
from the right to the left side.
The mixer matrix would look like this:
| L-out | R-out-----+-------+------
L-in | 1.0 | 0.5
R-in | 0.5 | 1.0
No effect channels are allowed to be effected by this of course.
How can this be achieved?
I can’t find any appropriate SDL_mixer function, and user filters can only
process effect channels or music+effects but not the music alone.
The problem of Protracker MODs is there are only mono voices (when played with
SDL_mixer). It sounds bad, especially on headphones.
I want to mix half of the music’s stereo input from the left to the right and
from the right to the left side.
The mixer matrix would look like this:
| L-out | R-out
-----±------±-----
L-in | 1.0 | 0.5
R-in | 0.5 | 1.0
No effect channels are allowed to be effected by this of course.
How can this be achieved?
I can’t find any appropriate SDL_mixer function, and user filters can only
process effect channels or music+effects but not the music alone.
I don’t know, offhand. However, I will note, your matrix should actually
look more like:
| L-out | R-out
-----±------±-----
L-in | 2/3 | 1/3
R-in | 1/3 | 2/3
Otherwise, you’re increasing volume by 58% (log (1.0+1.5) / log(2)).
-CrystalOn Fri, 23 Jan 2009, Markus Wolf wrote:
The problem of Protracker MODs is there are only mono voices (when played
with
SDL_mixer). It sounds bad, especially on headphones.
I want to mix half of the music’s stereo input from the left to the right
and
from the right to the left side.
The mixer matrix would look like this:
| L-out | R-out
-----±------±-----
L-in | 1.0 | 0.5
R-in | 0.5 | 1.0
No effect channels are allowed to be effected by this of course.
How can this be achieved?
I can’t find any appropriate SDL_mixer function, and user filters can only
process effect channels or music+effects but not the music alone.
I don’t know, offhand. However, I will note, your matrix should actually
look more like:
| L-out | R-out
-----±------±-----
L-in | 2/3 | 1/3
R-in | 1/3 | 2/3
Otherwise, you’re increasing volume by 58% (log (1.0+1.5) / log(2)).
Brain no worky. I should have just said “increasing the volume” and left
it at that. It’s increasing by 6dB per factor of 2, so:
6dB * log (1.0+1.5) / log(2) = 3.48dB increase.
Anyway, the number is not important, the fact that it’s nonzero is.
-CrystalOn Fri, 23 Jan 2009, Crystal Jacobs wrote:
On Fri, 23 Jan 2009, Markus Wolf wrote: