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

darrenyeats's Profile: http://forums.slimdevices.com/member.php?userid=10799
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 post 2 to set up a link from the LMS install to the clone for the
  main files.
  
  Place convert.conf(s) in correct location(s) as per post 1, as
  appropriate.
  
  
- Alternatively, download the changed files and overwrite the
  installed files manually as per post 1.
- Go to
  
https://github.com/darrenyeats/slimserver/commit/c51cf9c82c961a13eb120a837cf27aa45595a5b2
- Expand "7 changed files"
- For each .pm file: from hamburger menu top right (...) select 'View
  file'; then right click on 'Raw', use Save link as ...; then save to
  locations as per post 1.
- Similarly, place convert.conf(s) in correct location(s), as per post
  1, as appropriate.



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 set up a link from the LMS install to the clone for the
  main files.
  
  Copy in convert.confs to correct location as per post 1.
  
  
- Alternatively, download the changed files and overwrite the
  installed files manually as per post 1.
- Go to
  
https://github.com/darrenyeats/slimserver/commit/52814d0e983110af0b49eef49133a7e4ac323203
- Expand "7 changed files"
- For each file of interest: from hamburger menu top right (...)
  select 'View file'; then right click on 'Raw', use Save link as ...;
  then save to locations as per post 1.



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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=10799
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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.dr.loudness-war.info/

SB Touch

darrenyeats's Profile: http://forums.slimdevices.com/member.php?userid=10799
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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.dr.loudness-war.info/

SB Touch

darrenyeats's Profile: http://forums.slimdevices.com/member.php?userid=10799
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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.dr.loudness-war.info/

SB Touch

darrenyeats's Profile: http://forums.slimdevices.com/member.php?userid=10799
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 configured on the LMS and sox will dither the
volume but you cannot dynamically change the volume control from the
client.  Do you have a version of your hack for 7.9.2?  

Do you know if your hack would apply volume control before or after sox?
Marco, who developed C-3PO says that sox processing is best done in one
step, so I guess the ideal would be for the two to somehow work
together...



fsger's Profile: http://forums.slimdevices.com/member.php?userid=15977
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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/member.php?userid=10799
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 somehow already dithered, you just can't see how.

You can try to evaluate this by means of just listening, but doing so
reliably takes a trained ear, and not that many people actually have
them.

The best way to train your ears to hear the bad effects of a volume
control that is not properly dithered is with a known example of that
failure.

The worst way to train your ears is to read articles on the web by other
audiophiles, which is very often a classic case of the blind leading the
blind. 

Another way to detect an improperly dithered volume control is by means
of technical tests. But doing them and properly interpreting the results
is non trivial.

The most common way that a volume control is dithered implicitly is by
means of the low level noise that is present in just about all analog
sources. Since any live recording starts out in the analog domain, this
includes *everything* but carefully and purely digitally synthesized
music. IOW not does all music that is recorded with microphones have
enough low level noise to self-dither if played at regular volumes, so
does even some synthesized music because most musicians are not all that
careful about keeping their digitally synthesized music 100% in the
digital domain.

If a volume control is not properly dithered, it may actually fade the
music into audible distortion on a slow manual fade out by means of that
particular volume control. However, while that is an audible
imperfection and would be nice to eliminate, it actually bears very
little on normal listening. Note: other fade outs that are parts of
recordings may still be clean. 

Hope this helps.



arnyk's Profile: http://forums.slimdevices.com/member.php?userid=64365
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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.g. in combination with hi-res streams
  - For me, at the server end I'm combining the processing of dithered
  > volume control with sample rate conversion (PM me for more info) - I
  > wouldn't want to split these anyway.
  > > > 

Just wanted the Touch to do better volume without the fuzz of volume max
settings etc. And working with the standard remote and web interface.
That would have been nice. Personally I don't need/want SRC.

//



jonte0's Profile: http://forums.slimdevices.com/member.php?userid=11065
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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
- For me, at the server end I'm combining the processing of dithered
  volume control with sample rate conversion (PM me for more info) - I
  wouldn't want to split these anyway.



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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' line, but
missing the [flac] call to provide seek.



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 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 for system boot up. This is
> why client volume controls must be avoided. Also this is why VolumeLock
> plugin must be used - it near-instantly reduces to the set limit the
> server volume (but not the client volume which is always 100).
> 
So it is the very fact that the player volume is fixed to 100 which
necessitates the use of VolumeLock plugin, for protection.

What "controller" exactly shows %? I'd assume any percentage is another
way of stating 1-100 i.e. 0.5dB increments as stated.

Note that after some investigation, the use of TPDF dither has been
confirmed as correct. This is the best kind of dither if further
processing is going to happen. Since most of us use upsampling DACs
(some with ASRC too) this is recommended. People using NOS DACs might
want to experiment with shaped dither ("dither -S" in convert.conf) but
TPDF is going to be fine even for them.



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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.



soundcheck's Profile: http://forums.slimdevices.com/member.php?userid=34383
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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.info/

SB Touch

darrenyeats's Profile: http://forums.slimdevices.com/member.php?userid=10799
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 Universal App for iPhone, iPad and Apple Watch*

pippin's Profile: http://forums.slimdevices.com/member.php?userid=13777
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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*

pippin's Profile: http://forums.slimdevices.com/member.php?userid=13777
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 on github, I think. At least it used to be.

7.8 is at https://code.google.com/p/squeezeslave/downloads/list. It
contains two Playback.lua files:

Code:


  ./share/jive/jive/audio/Playback.lua
  ./share/jive/applets/ScriptPlay/config/userpath/settings/Playback.lua
  




"To try to judge the real from the false will always be hard. In this
fast-growing art of 'high fidelity' the quackery will bear a solid gilt
edge that will fool many people" - Paul W Klipsch, 1953

Julf's Profile: http://forums.slimdevices.com/member.php?userid=42050
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 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*

pippin's Profile: http://forums.slimdevices.com/member.php?userid=13777
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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, Darren



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 penguinlovesmusic.com
*New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch*

pippin's Profile: http://forums.slimdevices.com/member.php?userid=13777
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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! http://www.dr.loudness-war.info/

SB Touch

darrenyeats's Profile: http://forums.slimdevices.com/member.php?userid=10799
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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.

> 
> Because the code has a parameter for the total volume range (74dB) that
> can be set to any value. Also parameters for the ramping. I infer there
> is no mapping to a custom table like for SB/Transporter.
> 
Where did you find that? Applets can override this behavior but I
haven't found any that does.

Could it be that what you found is for the volume control and defines
the stepping of the volume buttons/scale? That would still then be
translated based on this curve by the player.
Player and UI are separate logical entities in SqueezePlay (the UI can
connect to a remote player, for example).

> 
> I didn't write linear, I wrote equally divided by dB, which is itself a
> logarithmic scale.
> 
But _I_ wrote linear and wanted to make sure it's clear that what I
meant was a linear curve for the dB values which then represent a
logarithmic energy scale :)



---
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*

pippin's Profile: http://forums.slimdevices.com/member.php?userid=13777
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 become
> apparent if DBTs were used to evaluate the issues raised in this thread.
Right. Plus the studio probably does all sorts of processing in floating
point at a high bit rate - when they reduce effective bit depth for the
16/44 file they will have no choice but to add dither at 16 bits to
avoid distortion.

However a correctly implemented volume control will handle any type of
recording, at any bit depth, at any volume level, without adding any
distortion.



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 never said linear, it is equally divided by dB, which is itself a
logarithmic scale. The point is, I I fer there is no mapping to a custom
map like for SB/Transporter.
Darren



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 not sure about the
> Touch ...!
> 
> I'm given to understand it's SqueezePlay that runs on the Touch, is this
> true? From what I've seen of the SqueezePlay code, it uses a two part
> scale where 0=-74db, 25=-37dB and 100=0db and volume steps divided
> equally in dB in each scale. You can see the first part ramps rapidly.
> This actually fits with my user experience with the Touch. Until someone
> can explain otherwise, (_edit_*) I think the Touch likely truncates at
> every volume level below 100, with 16 or 24 bit sources.
> Darren
> 
> *Thanks Julf.

That's only half true.
1. Yes, SqueezePlay does have two overlapping volume ramps and there's
actually even a volume level at which increasing the "logical" volume
level by one decreases the actual volume level.
The reason for this is that you want different levels of volume change
for high and low relative volume levels. A "linear" (of course it's
actually logarithmic) change would either have too big steps at high
volume levels or too small steps at low levels.
So if you don't like the ramp using an external volume control might
help.

2. SqueezePlay never clips with 16 bit material. The reason is simple:
it doesn't divide but multiplies with pre-divided scale factors from a
scaling table. This is an in-range multiplication which never clips and
doesn't lose any accuracy, the scaling is exact. There is no noise being
added whatsoever.
So with 16 bit material dithering doesn't make any sense from a noise
perspective.

3. For 24 bit material EVERY volume control will clip, even a dithering
one.
It does clip at -144dB, though so if any your dithering effect will be a
noise "optimization" (it's not a reduction because as mentioned before
dithering itself is just adding noise, too) of -147dB. Worthwhile all
the hassle?



---
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*

pippin's Profile: http://forums.slimdevices.com/member.php?userid=13777
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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'm not sure about the
> Touch ...!
> 
> I'm given to understand it's SqueezePlay that runs on the Touch, is this
> true? From what I've seen of the SqueezePlay code, it uses a two part
> scale where 0=-74db, 25=-37dB and 100=0db and volume steps divided
> equally in dB in each scale. You can see the first part ramps rapidly.
> This actually fits with my user experience with the Touch. Until someone
> can explain otherwise, (_edit_*) I think the Touch likely truncates at
> every volume level below 100, with 16 or 24 bit sources.
> Darren
> 
> *Thanks Julf.

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 become
apparent if DBTs were used to evaluate the issues raised in this thread.



arnyk's Profile: http://forums.slimdevices.com/member.php?userid=64365
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 the DAC ( like transporter )




Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x
MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3
sub.
Bedroom/Office: Boom
Kitchen: Touch + powered Fostex PM0.4
Misc use: Radio (with battery)
iPad1 with iPengHD & SqueezePad
(spares Touch, SB3, reciever ,controller )
server HP proliant micro server N36L with ClearOS Linux

http://people.xiph.org/~xiphmont/demo/neil-young.html

Mnyb's Profile: http://forums.slimdevices.com/member.php?userid=4143
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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-change



Transporter (modded) -> RG142 -> Avantgarde Acoustic based 500VA
monoblocks -> Sommer SPK240 -> self-made speakers

Wombat's Profile: http://forums.slimdevices.com/member.php?userid=4113
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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

darrenyeats's Profile: http://forums.slimdevices.com/member.php?userid=10799
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 Touch is bit perfect at any volume level
> or any bit depth.

Adjusting volume (scaling the data) is never bit perfect (except at full
volume, when there is no scaling/adjustment) by definition.



"To try to judge the real from the false will always be hard. In this
fast-growing art of 'high fidelity' the quackery will bear a solid gilt
edge that will fool many people" - Paul W Klipsch, 1953

Julf's Profile: http://forums.slimdevices.com/member.php?userid=42050
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 this holds for the Touch ...!

I'm given to understand it's SqueezePlay that runs on the Touch, is this
true? From what I've seen of the Squeezeplay code, it uses a two part
scale where 0=-74db, 25=-38dB and 100=0db and volume steps divided
equally in dB in each scale. You can see the first part ramps rapidly.
This actually fits with my user experience with the Touch. From this
code, I have no confidence that the Touch is bit perfect at any volume
level or any bit depth.
Darren



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 would
> actually provide a technically inferior result.
> 
> And might I suggest that the most common real-world scenario is playback
> of 16 bit sources with less than 35dB of attenuation? So in practical
> terms, adding dither to a Squeezebox system is actually making things
> worse - not that it will be audibly different, of course.
Exactly and with 24bit sources someone can argue about even more
theoretical numbers. Several bits below 16bit in a 24bit file doesn't
have to do with the music at all.



Transporter (modded) -> RG142 -> Avantgarde Acoustic based 500VA
monoblocks -> Sommer SPK240 -> self-made speakers

Wombat's Profile: http://forums.slimdevices.com/member.php?userid=4113
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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
> to ask. This is why the correct way to do digital volume control is with
> dither.
I wasn't trying to diss your efforts - just pointing out that for the
majority of typical users it's not really beneficial.
I think that your personal scenario (low level listening, lots of 24 bit
sources) is quite unusual.

Slightly off topic: if you are routinely doing critical listening at
levels below -30dB, could it be that your gain staging is out?
(I also sometimes put stuff on at very low levels in the background, but
can't say that I ever *listen* at such levels. When I want to really
enjoy my music, the volume on the Transporter is typically 80 or
higher).



Transporter -> ATC SCM100A

cliveb's Profile: http://forums.slimdevices.com/member.php?userid=348
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 a contentious statement, except perhaps in
Logitech Audiophile forum!
Darren



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 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 would
actually provide a technically inferior result.

And might I suggest that the most common real-world scenario is playback
of 16 bit sources with less than 35dB of attenuation? So in practical
terms, adding dither to a Squeezebox system is actually making things
worse - not that it will be audibly different, of course.



Transporter -> ATC SCM100A

cliveb's Profile: http://forums.slimdevices.com/member.php?userid=348
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 - I just hope the
cumulative effect will shake out. Put another way, avoid "analysis
paralysis". This approach has paid dividends in the last couple of
years.

It would be nice if the convert.conf got re-tokenized on every volume
change (this isn't impossible to do but I wouldn't be surprised if it
would involve many more changes, as I said I'm busy).
Darren



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 peak level.

But the technically correct way to reduce volume is with dither -
whether the effects are audible or not. If it's free then why not.
Darren



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 distortion would be at a level of less than 0.1%. Do you
think that is audible?

> A valid question, as you wrote, is can you hear it? I'm trying to
> side-step that because I don't want to create an argument here. For me,
> it's enough to know it's technically better and I can have it for free
> ... 

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.



"To try to judge the real from the false will always be hard. In this
fast-growing art of 'high fidelity' the quackery will bear a solid gilt
edge that will fool many people" - Paul W Klipsch, 1953

Julf's Profile: http://forums.slimdevices.com/member.php?userid=42050
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 24bit file, -5.01dB followed by +5.01 without dither. I
had no better idea to find a way to compare it to the source.
So for 2x volume changes the resulting distortion with SoX stats for the
mixdown: I attached the file.
DC offset  -0.00
Min level  -0.00
Max level   0.00
Pk lev dB-138.47
RMS lev dB   -142.04
RMS Pk dB-141.81
RMS Tr dB-142.27
Crest factor1.51
Flat factor 3.86
Pk count   96.9k
Bit-depth   1/24
Num samples 221k
Length s   5.000
Scale max   1.00
Window s   0.050


+---+
|Filename: diff.zip |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=19250|
+---+


Transporter (modded) -> RG142 -> Avantgarde Acoustic based 500VA
monoblocks -> Sommer SPK240 -> self-made speakers

Wombat's Profile: http://forums.slimdevices.com/member.php?userid=4113
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 allows any volume level and any source material to be distortion
free, guaranteed. You just get a bit of noise at the LSB, and that
really IS inaudible.



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 speakers

Wombat's Profile: http://forums.slimdevices.com/member.php?userid=4113
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 try hard :)
Dither adds noise around the LSB (least significant bit) in this case
24th bit. But truncation errors adds distortion (very non-harmonic)
around the same level.

In relative terms, absolutely dither is the correct way to implement
digital volume control. The question, as you say, is whether you can
hear it or not, but if you can have something technically better for
free ... why not? I love the LMS platform!
Darren



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 -> Avantgarde Acoustic based 500VA
monoblocks -> Sommer SPK240 -> self-made speakers

Wombat's Profile: http://forums.slimdevices.com/member.php?userid=4113
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 git repo doesn't have a label for 7.9.x, so I just merged onto head
> of public/7.9, which is the latest and greatest. Anyway I don't have 7.9
> installed but give it a try.
> Darren
Thanks Darren I'm a a bit tied up for a couple of days but will give it
is try then.



adamdea's Profile: http://forums.slimdevices.com/member.php?userid=37603
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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!

The git repo doesn't have a label for 7.9.x, so I just merged onto head
of public/7.9, which is the latest and greatest. I don't have 7.9
installed so just give it a try!
Darren



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 server. Same goes for system boot up. This is
> why client volume controls must be avoided. Also this is why VolumeLock
> plugin must be used - it near-instantly reduces to the set limit the
> server volume (but not the client volume which is always 100).
> 
> The gain adjustment is achieved by adding to the Perl code for
> convert.conf a new capability, 'G', to control sox gain value. Also,
> convert.conf has to use the capability correctly. This is why volume is
> applied on new track, prev/next track and skipping in the track – this
> is when convert.conf is reapplied (“tokenized”) in the code.
> 
> The capability G can be added for other codecs and even in other
> 'convert.conf's, I think. Have a look at the convert.conf to get the
> idea.
> 
> I developed the changes by soft linking from my LMS install into my git
> clone of the slimserver repo. There was no tag for 7.7.6 though by my
> reckoning the commit for 7.7.6 (or near enough) was 1269a64. I branched
> from there. So I can I patch these changes to other branches. I could
> even put in a pull request to the project but a hack in this form is in
> no fit state for that.
> 
> Anybody got a better idea? Or does a developer want to take the idea and
> re-code something that's less of a hack? In my defense, I'm not a
> developer (though I know Perl). And I'm too busy.
> 
> Regards,
> Darren
Interesting idea Darren. Does the native LMS volume control not dither?
Will this work for any LMS platform (eg QNAP). Could you produce a
version for 7.9. I'm guessing that most people are on that these days.



adamdea's Profile: http://forums.slimdevices.com/member.php?userid=37603
View this thread: http://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


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 for system boot up. This is
why client volume controls must be avoided. Also this is why VolumeLock
plugin must be used.

The gain adjustment is achieved by adding to the Perl code for
convert.conf a new capability, 'G', to control sox gain value. This is
why volume changes on new track, prev/next track and skipping in the
track – this is when convert.conf is reapplied (“tokenized”) in the
code.

Anybody got a better idea? Perhaps this will give inspiration to a
developer to do something a little less hacky! In my defense, I'm not a
developer (though I know Perl).

Regards,
Darren



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles


[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 selected
- time skip within the track
- Volume control via Sox dithered at 24 bits, no player attenuation.
- Each volume step is 0.5dB.
- Volume 0 is -50dB (not off).

Notes:
- The server volume level will try to return to 100 every time you use
the IR remote's volume buttons, or on system start. For this reason
- VolumeLock plugin (first step below) is important. And you must use
phone/tablet/web for volume control.
- You won't be able to time skip with MP3.
- The files are patched based on 7.7.6. If you need a patch for a
different version, PM me and I will provide them.

Steps (assuming Linux)
Install the VolumeLock plugin and set the maximum volume level to a safe
level
Install VolumeLock via Settings > Plugins
Set volume to the desired maximum (don't choose anything above 90).
Set max volume level via Settings > Player > VolumeLock player settings
> 'Set current volume as maximum' > Apply
Set player volume level fixed to 100%
Settings > Player > Audio > Volume Control > 'Output level is fixed at
100%' > Apply
For MP3 support you should install the package 'libsox-fmt-mp3'.
Patch convert.conf(s)  - see below.
Patch perl files – see below.
Restart LMS.
Verify.
Settings > Advanced > File Types
Check that FLAC-FLAC says 'flac/sox', others in the group disabled 
Check that MP3-FLAC says 'sox/sox', others in the group disabled
Apply.

Where can I get the files?
https://www.dropbox.com/sh/4oshksnzgrys7af/AABfwj-LYo4qY0VWcyvLNWe6a?dl=0.
convert.conf should replace that found in /etc/squeezeboxserver (copy
original first)
The *.pm files found under the structure in Slim, should replace those
found in the equivalent locations in /usr/share/perl5/Slim (copy
originals first)

Regards,
Darren



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://forums.slimdevices.com/showthread.php?t=104629

___
audiophiles mailing list
audiophiles@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/audiophiles