Testing version 5.7 with MusicBee 3.3.6998:
1. The generation of a spurious image when a stream is played immediately after a file is FIXED (hurrah!). Tried every combination I could to "break" it and could not. Only file images are now saved/displayed. Good job, zkhcohen!
2. The image folder is now silently cleared on startup if that option is selected, no more popup to "OK."
3. The seek within the spectrogram is now MUCH more accurate (frequency scale is enabled).
I realize the debug log is temporary, but wanted to mention that when an image IS generated for a file, the log gets very "excited":
3/2/2019 10:03:38 PM:
Track changed or Plugin Startup.
3/2/2019 10:03:38 PM: Current Song Duration: 178901
3/2/2019 10:03:38 PM: Get file path.
3/2/2019 10:03:38 PM: Raw Title: 1000 Tonnen Glück-Grossstadtgeflüster-701-250 ////// Processed Title: 1000TonnenGlück-Grossstadtgeflüster-701-250
3/2/2019 10:03:38 PM: Size: 1.9 MB
3/2/2019 10:03:38 PM: Path: C:\MusicBee\AppData\Dependencies\Spectrogram_Images\1000TonnenGlück-Grossstadtgeflüster-701-2501789016adc5a76f5844dca05007858ab172af3.png
3/2/2019 10:03:38 PM: Beginning generation of image.
3/2/2019 10:03:38 PM: FFMPEG Custom Path Set To: c:\ffmpeg\ffmpeg.exe
3/2/2019 10:03:38 PM: Raw Title: 1000 Tonnen Glück-Grossstadtgeflüster-701-250 ////// Processed Title: 1000TonnenGlück-Grossstadtgeflüster-701-250
3/2/2019 10:03:38 PM: FFMPEG Arguments: -i "E:\New Mx\Grossstadtgeflüster - 1000 Tonnen Glück.opus" -lavfi showspectrumpic=s=701x250:mode=combined:legend=enabled:saturation=2:color=rainbow:scale=log:win_func=hann:gain=1 "C:\MusicBee\AppData\Dependencies\Spectrogram_Images\1000TonnenGlück-Grossstadtgeflüster-701-2501789016adc5a76f5844dca05007858ab172af3".png
3/2/2019 10:03:41 PM: Image generated.
3/2/2019 10:03:41 PM: Image found.
3/2/2019 10:03:41 PM: Image found.
3/2/2019 10:03:41 PM: Image found.
3/2/2019 10:03:41 PM: Image found.
3/2/2019 10:03:41 PM: Image found.
3/2/2019 10:03:41 PM: Image found.
3/2/2019 10:03:41 PM: Image found.
3/2/2019 10:03:41 PM: Image found.
3/2/2019 10:03:41 PM: Image found.
3/2/2019 10:03:41 PM: Image found.
3/2/2019 10:03:41 PM: Image found.
3/2/2019 10:03:41 PM: Image found.
3/2/2019 10:03:41 PM: Image found.
3/2/2019 10:03:41 PM: Image found.
3/2/2019 10:03:41 PM: Image found.
3/2/2019 10:03:41 PM: Image found.
3/2/2019 10:04:39 PM: Image found.
3/2/2019 10:04:39 PM: Image found.
3/2/2019 10:04:39 PM: Image found.
3/2/2019 10:04:39 PM: Image found.
3/2/2019 10:04:39 PM: Image found.
3/2/2019 10:04:39 PM: Image found.
3/2/2019 10:04:39 PM: Image found.
3/2/2019 10:04:39 PM: Image found.
3/2/2019 10:04:39 PM: Image found.
3/2/2019 10:04:39 PM: Image found.
3/2/2019 10:04:39 PM: Image found.
3/2/2019 10:04:39 PM: Image found.
3/2/2019 10:04:39 PM: Image found.
3/2/2019 10:04:39 PM: Image found.
3/2/2019 10:04:39 PM: Image found.
3/2/2019 10:04:39 PM: Image found.
3/2/2019 10:04:43 PM: Image found.
3/2/2019 10:04:43 PM: Image found.
3/2/2019 10:04:43 PM: Image found.
3/2/2019 10:04:43 PM: Image found.
3/2/2019 10:04:43 PM: Image found.
3/2/2019 10:04:43 PM: Image found.
3/2/2019 10:04:43 PM: Image found.
3/2/2019 10:04:43 PM: Image found.
3/2/2019 10:04:43 PM: Image found.
3/2/2019 10:04:43 PM: Image found.
3/2/2019 10:04:43 PM: Image found.
3/2/2019 10:04:43 PM: Image found.
3/2/2019 10:04:43 PM: Image found.
3/2/2019 10:04:43 PM: Image found.
3/2/2019 10:04:43 PM: Image found.
3/2/2019 10:04:43 PM: Image found.
<then waits until a new file is played before writing>
I mention that in case all these "calls" are taking unnecessary CPU time and can be reduced. Also would like to suggest adding the OPTION to disable logging.
I would also like to submit a revised installation instruction for page one that more accurately reflects what I have experienced to get the plugin going (actually nothing needs to be "disabled then re-enabled", etc. like the popup indicates):
1. With MusicBee off, extract the file located in the "Plugins" folder to your MusicBee Plugins directory.
2. Start MusicBee.
3. A message will appear telling you where to place the plugin's "Dependencies" folder; extract the whole folder there now.
4. In MusicBee navigate to Edit > Edit Preferences > Plugins. Ensure that "spectrogram-display" appears. Enable it, and hit Save.
5. Navigate to View > Arrange Panels...
6. Drag the "spectrogram-display" element from the "available elements" window to the "main panel" section to your desired position, for instance above the "now playing bar" element. Note: This is not the required location of the plugin, but it is HIGHLY RECOMMENDED that you position it here. Hit Save.
7. Drag the top of the Spectrogram window where you have placed it to the desired height.
8. Try playing a song. After a second or two of processing, the spectrogram should appear. You can seek through the song if desired within the spectrogram window.
9. See the first post of the plugin's thread on the MusicBee forum for instructions on using the plugin's built-in Configuration Panel and other important information.
NOTE: If desired, the ffmpeg.exe supplied inside the Dependencies folder can be removed and a path given to your own copy of ffmpeg.exe elsewhere on the PC; see step #9 for more details. A 32-bit version of ffmpeg.exe (64-bit supplied) is necessary if you have a 32-bit OS. The latest static release build at the Zeranoe site has been tested and works fine (
https://ffmpeg.zeranoe.com/builds/).
Feel free to use any or none of the suggested modifications above.
Sir, GREAT JOB, and THANK YOU!