Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2021-12-05 Thread darrenyeats
Part update for newer SoX, part fix, to convert.conf examples: https://github.com/darrenyeats/slimserver/commit/8cbcdb3324fbc6ec015b4055c0fd9115914da59f Check it, add to it! http://www.dr.loudness-war.info/ SB Touch dar

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2021-10-16 Thread darrenyeats
Updates for LMS 8.3 at https://github.com/darrenyeats/slimserver. Check it, add to it! http://www.dr.loudness-war.info/ SB Touch darrenyeats's Profile: http://forums.slimdevices.com/member.php?userid=10799 View this thre

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2019-10-26 Thread darrenyeats
My hack based on 7.9.2 nightly build is in this fork of slimserver: https://github.com/darrenyeats/slimserver/commits/public/7.9 Commit "Volume as capability A in convert.conf; re-tokenize on volume change" Two methods. Clone my fork https://github.com/darrenyeats/slimserver.git Use po

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2019-10-26 Thread darrenyeats
My hack based on 7.9.2 nightly build is in this fork of slimserver: https://github.com/darrenyeats/slimserver/commits/public/7.9 Commit "Dithered SoX volume control/re-sampling hack by Darren Yeats" Two methods. Clone my fork https://github.com/darrenyeats/slimserver.git Use post 2 to

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2019-10-25 Thread darrenyeats
I rebased this in my local clone onto 7.9.2 (latest nightly build). PM me for details. Check it, add to it! http://www.dr.loudness-war.info/ SB Touch darrenyeats's Profile: http://forums.slimdevices.com/member.php?userid

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2019-09-19 Thread darrenyeats
Sorry I missed the above post. Yes it would be possible for me to rebase this hack on to 7.9.2. Yes this uses SoX itself. In fact the way I have it set up at home I do bit shift, up-sampling, volume control and dither all in one SoX call for maximum precision. Check it, add to it! http://ww

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2019-09-19 Thread darrenyeats
Sorry I missed the above post. Yes it would be possible for me to rebase this hack on to 7.9.2. Yes this uses SoX itself. In fact the way I have it set up at home I do bit shift, up-sampling, volume control and dither all in one SoX call for maximum precision. Check it, add to it! http://ww

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2019-09-19 Thread darrenyeats
Sorry I missed the above post. Yes it would be possible for me to rebase this hack on to 7.9.2. Yes this uses SoX itself. In fact the way I have it set up at home I do bit shift, up-sampling volume control and dither all in one SoX call for maximum precision. Check it, add to it! http://www

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2019-01-31 Thread fsger
darrenyeats wrote: > Mods rebased on to latest public/7.9 (7.9.1). See new sub-folder at > original dropbox link in post 1. Hi Darren, I have read this thread with interest as I would like to try digital volume control. I have been using the very good C-3PO plug-in which allows sox to be confi

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2018-03-24 Thread darrenyeats
Mods rebased on to latest public/7.9 (7.9.1). See new sub-folder at original dropbox link in post 1. Check it, add to it! http://www.dr.loudness-war.info/ SB Touch darrenyeats's Profile: http://forums.slimdevices.com/memb

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2017-04-17 Thread arnyk
jonte0 wrote: > Would it be possible to add a dithered volume control in the client SW? > > // A possibly relevant question is: "Is adding dither to this volume control something that will actually improve sound quality?" The answer may be: "No". The leading reason is: The volume control is

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2017-04-17 Thread jonte0
darrenyeats wrote: > In theory, yes. But: > > > > - I'm not aware of a practical way to do it - this needs an > enhancement to the firmware code (or for a software client, the > client code). - I'm not sure if the hardware clients would have enough processing > power to do this, e.

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2017-04-17 Thread darrenyeats
In theory, yes. But: - I'm not aware of a practical way to do it - this needs an enhancement to the firmware code (or for a software client, the client code). - I'm not sure if the hardware clients would have enough processing power to do this, e.g. in combination with hi-res streams -

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2017-04-16 Thread jonte0
Would it be possible to add a dithered volume control in the client SW? // jonte0's Profile: http://forums.slimdevices.com/member.php?userid=11065 View this thread: http://forums.slimdevices.com/showthread.php?t=104629 __

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2017-03-12 Thread darrenyeats
soundcheck wrote: > > What's "fab4" in you convert.conf? > flc flc fab4 * > Hi Soundcheck, Sorry I missed this until recently. And then I wasn't sure of the answer. But the other day I found that Qobuz wouldn't work without it - so I guess it's added for Qobuz. It's like the usual 'flc flc' l

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2017-01-01 Thread darrenyeats
The dithered volume control is server-side (SoX) so I think it could work with other clients. Re: VolumeLock plugin please see post 2. darrenyeats wrote: > > Fixing client volume to 100 disables the attenuation on the client, > however, the server-side volume can still be adjusted (it simply wi

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2016-12-23 Thread toby10
Fab4 was the name given to the Touch player during development and beta user testing, prior to it's official release. toby10's Profile: http://forums.slimdevices.com/member.php?userid=12553 View this thread: http://forums.s

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2016-12-23 Thread soundcheck
Darren. How does your process work with squeezelite as client? The volume-lock plugin on the server is meant for squeeze HW as far as the description suggests. There's no problem to lock the volume on the squeezelite client though. And. What's "fab4" in you convert.conf? flc flc fab4 * Thx.

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-22 Thread darrenyeats
Pippin, Julf, Thanks for the information on Playback.lua. Check it, add to it! http://www.dr.loudness-war.info/ SB Touch darrenyeats's Profile: http://forums.slimdevices.com/member.php?userid=10799 View this thread: http:

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-22 Thread darrenyeats
Ok guys, the dithered volume control change is now immediate! (There's a small pause whilst stream resumes, since this uses SoX server-side. This is minimal and unavoidable.) See "V0.3" folder in Dropbox link from post 1 for this update. Darren Check it, add to it! http://www.dr.loudness-war.i

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-20 Thread pippin
Ok, that ScriptPlay thing is just for desktop SqueezePlay and overrides the model name. Irrelevant here. --- learn more about iPeng, the iPhone and iPad remote for the Squeezebox and Logitech UE Smart Radio as well as iPeng Party, the free Party-App, at penguinlovesmusic.com *New: iPeng 9, the

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-20 Thread pippin
Interesting. What's ScriptPlay? Hadn't seen that one. --- learn more about iPeng, the iPhone and iPad remote for the Squeezebox and Logitech UE Smart Radio as well as iPeng Party, the free Party-App, at penguinlovesmusic.com *New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch* --

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-20 Thread Julf
pippin wrote: > It's not part of the server, it's part of SqueezePlay. You need to > download the SqueezePlay source code. > The server doesn't contain any client-side code, the firmware is just > used as complete bundle packages and even these are only downloaded at > runtime. > > The code is o

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-20 Thread pippin
It's not part of the server, it's part of SqueezePlay. You need to download the SqueezePlay source code. The server doesn't contain any client-side code, the firmware is just used as complete bundle packages and even these are only downloaded at runtime. --- learn more about iPeng, the iPhone a

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-20 Thread darrenyeats
Pippin, Sorry for the twenty questions. Where can I find Playback.lua? I can see it's referred to in ./Slim/Utils/OS/SqueezeOS.pm but I can find neither Playback.lua nor /etc/squeezeplay/userpath/settings/ in slimserver repo from github - nor even on my file system where LMS is installed. Thanks

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-20 Thread pippin
It's not in the firmware, it's in SqueezePlay. Both technically and really. It's in Playback.lua It's not overridden per device. --- learn more about iPeng, the iPhone and iPad remote for the Squeezebox and Logitech UE Smart Radio as well as iPeng Party, the free Party-App, at penguinlovesmusi

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-20 Thread darrenyeats
Pippin, So the table is in the Touch (for example) firmware? And the table translates incoming dB values to the nearest value that matches it in the table? Thanks, Darren PS: I ask out of curiosity only, since I listen over wide volume range and I have 24 bit music ... Check it, add to it! ht

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-19 Thread pippin
darrenyeats wrote: > Pippin, I've seen such custom tables but are you SURE that SqueezePlay > uses such a table? > Yes, I am sure. The player even matches gain values coming from the server (e.g. when using replay gain or fade-in/-out) to the table and picks a matching gain value from the table.

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-19 Thread darrenyeats
arnyk wrote: > I'll add something here. There is something called self-dither. Most > commercial recordings have so much built-in random noise that they > effectively dither the downstream reproduction chain and cover up any > stages that should be dithered but aren't. This would probably becom

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-18 Thread darrenyeats
Pippin, I've seen such custom tables but are you SURE that SqueezePlay uses such a table? Because the code has a single parameter for the total volume range (74dB) that can be set to any value. Also parameters for the ramping, and the comment says the volume steps are equally divided by dB. I nev

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-18 Thread pippin
darrenyeats wrote: > Dither is still the correct way to do volume control ...! Because I want > to play anything, over a usable volume range, without worrying about it. > > I'll add something here. Though I accept you might live within the > limits of the SB and Transporter volume controls, I'm

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-18 Thread arnyk
darrenyeats wrote: > Dither is still the correct way to do volume control ...! Because I want > to play anything, over a usable volume range, without worrying about > it. > > I'll add something here. Though I accept you might live within the > limits of the SB and Transporter volume controls, I'

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-18 Thread Mnyb
re gain staging for use without preamp for example . What you usually do is to adjust the analog gain of the system so that 90-100 of the digital volume is your loudest ever listening level but not louder . You can do that with passive attenuators , adjustable power amps , adjustable outputs on t

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-18 Thread Wombat
Julf wrote: > Adjusting volume (scaling the data) is never bit perfect (except at full > volume, when there is no scaling/adjustment) by definition. One exception is shifting bitwise. http://forums.slimdevices.com/showthread.php?98706-Idea-to-increase-quot-Headroom-quot-with-lossless-volume-chan

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-18 Thread darrenyeats
Julf wrote: > Adjusting volume (scaling the data) is never bit perfect (except at full > volume, when there is no scaling/adjustment) by definition. Ooh, you know what I meant Julf! Check it, add to it! http://www.dr.loudness-war.info/ SB Touch

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-18 Thread Julf
darrenyeats wrote: > Dither is still the correct way to do volume control ...! It is not always the correct way. Dither adds noise. It should only be used under the right conditions, when we know the added noise is a smaller degradation than the truncation noise. > I have no confidence that the

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-18 Thread darrenyeats
Dither is still the correct way to do volume control ...! Because I want to play anything, over a usable volume range, without worrying about it. But I have to add something else here. Though I accept you might live within the limitations of the SB and Transporter volume controls, I'm not sure th

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-18 Thread Wombat
cliveb wrote: > But in the context of 16 bit sources and Squeezebox players, the > firmware is carefully arranged to attenuate by discrete steps such that > there is no truncation until you get down to around -35dB or so. (I know > that you already understand this). To add dither in this case wou

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-18 Thread cliveb
darrenyeats wrote: > Clive, it's -30dB (volume 40) where it becomes bit imperfect with 16 bit > data. And I regularly listen at less than this level. Also I have 24 bit > recordings for which it's always bit imperfect. > > A usable range and being source-agnostic are reasonable things for which

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-18 Thread darrenyeats
Clive, it's -30dB (volume 40) where it becomes bit imperfect with 16 bit data. And I regularly listen at less than this level. Also I have many 24 bit recordings so for those it's always bit imperfect. But digressions aside: the correct way to do digital volume control is with dither! This isn't

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-18 Thread cliveb
darrenyeats wrote: > But the technically correct way to reduce volume is with dither True, if the attenuations you are performing are entirely arbitrary. But in the context of 16 bit sources and Squeezebox players, the firmware is carefully arranged to attenuate by discrete steps such that there

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-18 Thread darrenyeats
Julf wrote: > Indeed, if you can have it for free. But seems that in your case it is > not entirely free - you pay for it in some inconvenience and > limitations. Hi Julf, True. I attack everything in terms of technical improvement and try not to philosophise about the audibility of each part -

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-18 Thread darrenyeats
Wombat, without looking into it further, the result seems to be in the right ball park. The 24th bit probably equates to -144db or so from peak signal. Bear in mind, though, with digital volume control the signal itself moves down in level so then relatively this distortion could be -100db from p

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-18 Thread Julf
darrenyeats wrote: > Dither adds noise around the LSB (least significant bit) in this case > 24th bit. But truncation adds distortion (very non-harmonic at that) > around the same level. Noise is far more benign than any type of > distortion, let alone non-harmonic distortion. But that distortio

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-17 Thread Wombat
I found something older dealing with dither against no dither: https://www.hydrogenaud.io/forums/index.php?s=&showtopic=104660&view=findpost&p=858410 No idea this really helps but some may find it interesting. I tried the sweep file created in line 1 and applied 2 volume changes on the resulting 2

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-17 Thread darrenyeats
True, SoX by default doesn't dither if there is no truncation error in the processing it's doing. However, unless you attenuate by bit shifting (which is quite coarse-grained) you will tend to get truncation errors. Also, with 24 bit music there will be truncation errors no matter what. Dither al

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-17 Thread Wombat
I'm still not convinced nor do i have hard numbers but SoX does by purpose not dither in such cases. I may create a delta file of the added distortion against the dither when i am bored. Transporter (modded) -> RG142 -> Avantgarde Acoustic based 500VA monoblocks -> Sommer SPK240 -> self-made sp

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-17 Thread darrenyeats
Wombat wrote: > A simple volume change only creates an absolutely small rounding error. > Agreed. Wombat wrote: > Did you check if a volume change of a 16bit file and playing the 24bit > result without dither has more degration as the noise from dither. I > doubt this but to be honest didn't t

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-17 Thread Wombat
A simple volume change only creates an absolutely small rounding error. Did you check if a volume change of a 16bit file and playing the 24bit result without dither has more degration as the noise from dither. I doubt this but to be honest didn't try hard :) Transporter (modded) -> RG142 -> Av

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-17 Thread adamdea
darrenyeats wrote: > Adam, > > No. > > I think so, if you're able to do the equivalent of all the listed > steps. > > Have a look in Dropbox (post 1) there are now folders for 7.7.6 and 7.9. > I renamed the capability to A (done in both) since G is used for > something else in 7.9. > > The gi

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-17 Thread darrenyeats
New Dropbox link in post 1. Also folder structure includes versions. Check it, add to it! http://www.dr.loudness-war.info/ SB Touch darrenyeats's Profile: http://forums.slimdevices.com/member.php?userid=10799 View this th

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-16 Thread darrenyeats
Adam, adamdea wrote: > Does the native LMS volume control not dither? > No. adamdea wrote: > Could you produce a version for 7.9. Have a look in Dropbox, there are now folders for 7.7.6 and 7.9. Had to rename the capability to A (done in both) because because G is used something else in 7.9! T

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-16 Thread adamdea
darrenyeats wrote: > Fixing client volume to 100 disables the attenuation on the client, > however, the server-side volume can still be adjusted (it simply will > not be pushed to client). > > But any time you reset the volume from the client end, the client pushes > its volume (100) to the serv

Re: [SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-15 Thread darrenyeats
How does it work? Fixing client volume to 100 disables the attenuation on the client, however, the server-side volume can still be adjusted (it simply will not be pushed to client). But any time you reset the volume from the client end, the client pushes its volume (100) to the server. Same goes

[SlimDevices: Audiophiles] Dithered volume control for Squeezebox

2015-11-15 Thread darrenyeats
What you get - Volume control via phone/tablet/web for FLAC and MP3 - It should be possible to set this up for Spotify too - TBD. - You must avoid volume control via IR remote or client controls - Volume change is not immediate but takes place on: - a new track being played - next/previous track s