Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: JScript Panel (Read 292772 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Re: JScript Panel

Reply #675
I can do it but it will display cached images only. It will not generate new images as selection changes because it takes at least a few seconds each time.
Glad to see this addition, thanks!

Re: JScript Panel

Reply #676
Not bad mod Marc  , Nice what a refresh can do , not for me tho as I wish to keep the lists/albumlist/lyrics  panels as  per the original, had a little play trying to amend back to Tedgo/Gerhards panels but with little sucess.

Re: JScript Panel

Reply #677
You can replace/reorder any of the 6 panels here.



After doing that, highlight the Panel Stack Splitter marked in green and click the Configure panel button.



From here, you must ensure the Forced layout option is checked for any panels you've added and you can change the Caption used for the text labels which switch the panels.

Re: JScript Panel

Reply #678
Great thanks for that , am away for a couple of days but will give this a go when i get back

Re: JScript Panel

Reply #679

Thanks Marc , it was easier than i expected, i do have a horizontal scroll bar  along bottom of album list which i can't seem to get rid off.


Re: JScript Panel

Reply #681
Dig in to the main Preferences>Media Library>Album list panel>Advanced tab.

Thank you   sorted  , your help is appreciated , can't wait for the w/e  so I can play about  some more .

 

Re: JScript Panel

Reply #682

Hi Marc,

Sorry to be a pain , Probably another easy one for you,  ratings are displayed as boxes , a font issue I presume but font in CUI is set same as my original version of dark one , is there another setting im missing to display rating as *

Re: JScript Panel

Reply #683

Ignore that one marc  solved rating by installing the fontawesome.webfont which I downloaded but never installed doh!

Re: JScript Panel

Reply #684

Hi Marc, 

I've managed to re-add lyrics and my other mods but only  query I have is there a way to cycle the images ,   front/back etc.  when album is playing .


Re: JScript Panel

Reply #685
The album art script isn't really designed for that but you can right click>Configure and choose the Thumbs script from the Samples menu. It defaults to the same folder as the playing track and cycle mode is off but there are loads of options on the right click menu.

Re: JScript Panel

Reply #686
The album art script isn't really designed for that but you can right click>Configure and choose the Thumbs script from the Samples menu. It defaults to the same folder as the playing track and cycle mode is off but there are loads of options on the right click menu.
Thanks for quick response , yes that option  works for me, more playing about on my secondary  system , but looking good.
Thanks again for your help/guidance..



Re: JScript Panel

Reply #689
https://github.com/marc2k3/foo_jscript_panel/releases

v2.7.2.2
- The `thumbs` sample now supports multiple folders when in custom folder mode. Just separate each one with a `|`.
- Fix bug with `Text Display` sample where it used `utils.ReadUTF8` internally meaning `ANSI` and `UCS2-LE` files were not handled properly. It now uses `utils.ReadTextFile` which supports them.
- It's no longer possible to compile the component with `Visual Studio 2019`. `Visual Studio 2022` is now required.



Re: JScript Panel

Reply #692
v2.7.3.2

https://github.com/marc2k3/foo_jscript_panel/releases

## v2.7.3.2
- Fix `JS Smooth Playlist` error when re-ordering playlists.

## v2.7.3.1
- Fix minor autocompete regressions in `v2.7.3`.
- `JS Smooth Playlist` and `JS Smooth Playlist Manager` now have support for custom background images in addition to the previous front cover support. `JS Smooth Browser` no longer supports background images of any kind.

Re: JScript Panel

Reply #693
v2.7.4

https://github.com/marc2k3/foo_jscript_panel/releases

- The `Spectrogram Seekbar` samples no longer require `SoX` and use `ffmpeg` exclusively.

  For existing users using default settings, the difference should not be noticeable. However, if changes were made to the `SoX` options, these are no longer supported and you can use the `ffmpeg` options documented here instead:

  https://ffmpeg.org/ffmpeg-filters.html#showspectrumpic

  All previously cached images are now obsolete and can be removed using the relevant menu item when right clicking the panel.

- Fix `JS Smooth Playlist` bug where info bar didn't update when the active playlist was renamed.
- Remove `preprocessors` and `notes + hints` from the `Docs` folder. The content is now on the [wiki](https://github.com/marc2k3/foo_jscript_panel/wiki).
- Add `GitHub` menu to the [Configuration Window](https://github.com/marc2k3/foo_jscript_panel/wiki/Configuration-Window).
- More autocomplete fixes.

If anyone really wants to keep the old SoX version, remove this line from the preprocessor section at the start of the script.

Code: [Select]
// @import "%fb2k_component_path%samples\js\seekbar.js"

Now copy the contents of this file and insert it after the comments but before the code in your main panel script.

https://raw.githubusercontent.com/marc2k3/foo_jscript_panel/008a382716fad5f9bb9806eeacd70fb4a8d3128b/component/samples/js/seekbar.js


Re: JScript Panel

Reply #694
The default looks the same as SoX

Code: [Select]
s=1024x128


Per channel
Code: [Select]
s=1024x128:mode=separate


Different colour per channel
Code: [Select]
s=1024x128:mode=separate:color=channel


Rainbow
Code: [Select]
s=1024x128:color=rainbow


Here's the link again for all colours/other options.

https://ffmpeg.org/ffmpeg-filters.html#showspectrumpic



Re: JScript Panel

Reply #695
Thanks for 2.7.4 marc2k3, nice New Year's gift!  Spectrogram image seems to be created a little faster now, am pointed at a 64-bit ffmpeg.exe (v4.4.1).  Nice to be able to change colors so easily.

Re: JScript Panel

Reply #696
Looks great added to my visualizer window!  Suggestion: an option for Cached images "Clear all on exit".


Re: JScript Panel

Reply #697
I'm not adding it for everyone because scripts can't tell when they're being updated/removed from a layout and fb2k shutting down.

You can try this adding this in your main window so long as you know anything that causes the panel to reload will clear the images.

Code: [Select]
function on_script_unload() {
utils.ListFiles(spectrogram_cache).toArray().forEach(function (item) {
_deleteFile(item);
});
}

Re: JScript Panel

Reply #698
This script works beautifully, clearing image cache automatically when exiting Foobar.  Thank you, much appreciated!

Re: JScript Panel

Reply #699
v2.7.5

https://github.com/marc2k3/foo_jscript_panel/releases

- Add `plman.InvertSelection`. The included `JSPlaylist` and `JS Smooth Playlist` scripts have this option added to their context menus.
- The `Spectrogram Seekbar` samples now support files encoded with `exhale` if you use a special build of `ffmpeg` with `libfdk-aac` support. See here:

  https://hydrogenaud.io/index.php?topic=118888.msg1006624#msg1006624

  The script should auto-detect these files and update the command line it passes automatically. The only user action necessary is replacing the existing `ffmpeg` executable.
- `IMetadbHandle` `GetAlbumArt` may return the url of remote images when playing certain radio streams. Requires `foobar2000` `v1.6.6` or later. The included `Album Art` sample has been updated and tested with `radioparadise`.