-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add detune and Stereo balance #51
Conversation
@rsta2 this is so cool! Can it be that left and right are reversed in the GUI? |
@probonopd Thanks! Normally not. But swapping the left and right channels did occur earlier, especially with PWM in Circle. With which RPi model and which sound device have you noticed this? |
RPi 2, HDMI. If useful I can test other combinations tomorrow. |
I tested RPi 3B with PWM and HDMI and the left/right seems to be OK there. I will test RPi 2 with HDMI tomorrow here. |
I am going from the RPi 2 to a HDMI display then via its headphone jack to my headphones. Cannot exclude the possibility that the display is mixing it up. Will do systematic tests tomorrow. For now I am just enjoying this beautiful sound coming from multiple detuned and stereo-shifted tone generators 👍 |
OK. Yes, it's fun! ;) |
I tested the Stereo balance on two TV sets, and you are right, my own TV set swaps the channels with HDMI. Because I used this TV set as a reference, now the Circle HDMI driver swaps the channels and all existing Stereo application probably have the wrong channel assignment. :( Maybe some developers have recognized this already and swapped the channels back in their software. I think we need an option in minidexed.ini, which allows to assign the channels, as it is wanted. Perhaps there are other TV sets out there, which need this. BTW. I think this problem exists only with HDMI. PWM and I2S should be OK. |
PR #52 fixes the problem. |
Confirmed. Thanks @rsta2. One strange observation: PWM is relatively noisy and in one of the Stereo positions it is even more grave than in all others. I wonder why this is. To reproduce:
|
I would guess, that this is caused by rounding errors. There are only 16 bits resolution of the audio samples and for PWM it has to be round down to 11 bits. I cannot hear this noise. Maybe because I'm on the RPi 3B, because my headphones are not good enough, or my ears. ;) There is one thing, I can imagine. Maybe the TG mixer has to be protected by a spin lock, because when changing the Stereo balance, this may happen while the mixer is running and may influence the resulting signal. |
Thanks, will do more testing on other devices as well. |
This adds Detune and Stereo balance (pan) items to the UI menu.