Add waveform / o-scope display option in analyzer
-
Add waveform / o-scope display option in analyzer
I never knew why Clementine didn't include this, since VLC has had it for years.
I have spent a lot of time ripping / remastering my vinyl collection into hi-res flacs and have come to enjoy the look of a good waveform along the way. Spectrograms and the like are boring. Maybe I was a sound engineer in a past life, I dunno...
It doesn't have to be scientific instrument accuracy -- just a reasonable facsimile of what is being played.
Could this be done in a way with minimal performance impact?
PS I am a long-time Clementine user and brand-new to Strawberry. I just installed it from the AUR on an Arch machine. The existing analyzer items don't seem to be working for me at all, anyway while playing FLAC files from CD or my hi-res rips.
Thanks,
- Michael
-
@poppop said in Add waveform / o-scope display option in analyzer:
Add waveform / o-scope display option in analyzer
I never knew why Clementine didn't include this, since VLC has had it for years.
I have spent a lot of time ripping / remastering my vinyl collection into hi-res flacs and have come to enjoy the look of a good waveform along the way. Spectrograms and the like are boring. Maybe I was a sound engineer in a past life, I dunno...
It doesn't have to be scientific instrument accuracy -- just a reasonable facsimile of what is being played.
Could this be done in a way with minimal performance impact?
I doubt we will add another analyzer as there aren't any contributors with the knowledge.
PS I am a long-time Clementine user and brand-new to Strawberry. I just installed it from the AUR on an Arch machine. The existing analyzer items don't seem to be working for me at all, anyway while playing FLAC files from CD or my hi-res rips.
Do you know what bit depth the audio files are in?
The analyzer only supports S16LE, S32LE, F32LE and S24LE. -
@jonas Thanks for the prompt response! PS I hope you saw my fanboy comment in that thread of your forum. I love Strawberry!
I try to standardize the flacs in my collection.
The stuff I rip from vinyl I do at 96/S24LE. The CD rips I aim for 44/S16LE.I would add this morning I uninstalled and reinstalled from AUR the git version because I wanted your new feature to turn off the even/odd row zebra stripes which became a tired visual metaphor in about 2003 I think haha. (That plus removing the crazy "delete file" from the context menu are alone worth their weight in gold as clementine improvements.) The new version doesn't seem to be making any difference for the analyzer. I would add, when I enable the block analyzer for example, the little half-second animation at start up occurs but then it goes dormant.
I am running typically in DWM window manager and no fat desktop environment on this machine, and sometimes there are weird little theme-related artifacts for some software. I will start up in plasma and report back soon if that makes a difference.
Thanks!
- Michael
- edit to show S24LE and S16LE. I have always been an integer man myself and don't trust floating point numbers
-
@poppop FYI - running Strawberry in Plasma on same machine had no impact on analyzer bug. Also, FWIW using Clementine to playing the same file has a working analyzer.
-
Further update and I will stop beatin' this poor dead horse:
Turns out the S'berry analyzer does work for me with 44.1 rips of CDs, but not on my flac files w sampling rate of 96kHz. (Clementine does OK with same.)
I will start coding my oscilloscope analyzer meantime
-
@poppop said in Add waveform / o-scope display option in analyzer:
Further update and I will stop beatin' this poor dead horse:
Turns out the S'berry analyzer does work for me with 44.1 rips of CDs, but not on my flac files w sampling rate of 96kHz. (Clementine does OK with same.)
Run strawberrry from a terminal window and you should see something like this:
"Unsupported audio format for the analyzer". -
Sorry, I see that the relevant error message is actually a debug message, so to see it you need to run strawberry with:
strawberry --log-levels 3
Strawberry also needs to be compiled in debug (usually all Linux distros do that).
Then you should see the format that isn't supported being logged on the console if you play a song where the analyzer isn't working.
One thing I see is that if the volume control in Strawberry is disabled, and the DAC don't handle S24LE directly when you play 24-bit audo files, it will use a S24_32LE format (24 bits in 32 bits, signed, little endian), which the code in strawberry currently doesn't handle. I have no idea how to convert that, I have to study it.
Clementine works with all formats because it splits the pipeline and uses gstreamer to handle the conversion, but it has a bug that makes both the audio sink and the analyzer sink convert to S16LE, the bug has always been there, so Clementine has never worked as intended. -
@jonas Tonight I have installed Version 1.0.0-11-gb1f70982 and I am happy to report that despite having volume control disabled, for my 96kbps / L24E flac file, the analyzer is analyzing away!
PS dig my crazy color scheme -- it clashes with everything else visually but I think it fits Strawberry motif to a T!