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 script discussion/help (Read 377524 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: JScript Panel script discussion/help

Reply #1650
@ilovefb2k

Thanks.  ;)



SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel script discussion/help

Reply #1651
Air Ken-  could you please post the scripts you used for the nice colored meter versions in your last post?

Also, do you have any idea on how to resolve my scripting ffprobe.exe for an external location as described in my previous post?

Thanks for any help!

Re: JScript Panel script discussion/help

Reply #1652
@sveakul

This is a default script.

Reply #1636 By: ilovefb2k
JSP3_64bit_VU_Meter_script.txt
https://hydrogenaud.io/index.php/topic,110516.msg1048520.html#msg1048520

https://hydrogenaud.io/index.php/topic,110516.msg1048559.html#msg1048559

> Also, do you have any idea on how to resolve my scripting ffprobe.exe for an external location as described in my previous post?

No. I just did as instructed

Reply #1636 By: ilovefb2k
> - dependency:  'ffprobe.exe' copied to as this folder: fb.ProfilePath + 'skins\\external_helper\\ffprobe.exe'

------

Reply #1592 By: ilovefb2k
JSPP3_fb2k0 (64 bit Windows11 - screen fullHD 150pct)_22Jul24.rar
https://hydrogenaud.io/index.php/topic,110516.msg1048254.html#msg1048254

Additional image folder
Reply #1593
{deployed} album_art [cd-vinyl].rar
https://hydrogenaud.io/index.php/topic,110516.msg1048255.html#msg1048255

Create an "external_helper" folder in the skin folder and put "ffprobe.exe" from the ffmpeg bin folder into the "external_helper" folder.

-----

"skins" folder:
\profile\skins or \AppData\Roaming\foobar2000-v2\skins

\profile\$recycle.bin folder

"Script":
\profile\skins\viking\scripts\jsp3  *.txt file (I am copying "JSP3_64bit_VU_Meter_script.txt" and "JSP3 64bit VUMeter_ver 1.1.1.txt" here)
\profile\skins\viking\scripts\jsp3_lib\vnav_mod  *.jis file
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel script discussion/help

Reply #1653
An application the size of ffprobe.exe should be able to be called from anywhere when needed in a script, not be forced to be inside the Foobar structure.  I have the portable version which I back up often, and that would add another 130mb to the folder size. For marc2k3's Spectrogram Seekbar, I already call ffmpeg.exe from an external location with a simple mod to that script.  I'm sure the same can be done here with ffprobe.exe.  Anyone?

Re: JScript Panel script discussion/help

Reply #1654
An application the size of ffprobe.exe should be able to be called from anywhere when needed in a script, not be forced to be inside the Foobar structure.  I have the portable version which I back up often, and that would add another 130mb to the folder size. For marc2k3's Spectrogram Seekbar, I already call ffmpeg.exe from an external location with a simple mod to that script.  I'm sure the same can be done here with ffprobe.exe.  Anyone?
Sure there is a way to make it work properly via CMD, but... nothing stops you to have a single place with the binary and create symlinks to it within foobar folder :)

@TT have nothing to add to your words and I mostly agree with all of them. Also found pretty weird to disregard a working 64 bits SMP and instead start an abstract new project without any deadline. But in the end of the day, anyone does whatever they wants with their work, so...

Re: JScript Panel script discussion/help

Reply #1655
Sure there is a way to make it work properly via CMD, but... nothing stops you to have a single place with the binary and create symlinks to it within foobar folder :)
Symlinks being a new concept for me I was hoping to not have to learn a new technique to be able to do a simple "the file is located here" js code replacement and have it work.  Actually it surprises me that files already specified in my PATH environmental variables would need to have their locations specified but that shows you I'm no javascript expert either.  More like monkey-see, monkey-do, haha..

Since you hint there is way to make it work properly using the "old school" method I would be grateful if you would share that with me.

Re: JScript Panel script discussion/help

Reply #1656
I found out that the path replacement for ffprobe.exe I already posted was working fine as far as displaying the basic meter and action, and didn't produce a "file not found" error.  However, I had installed the script directly into a new jsp3 panel, not into a "skins" subfolder nor did I have any of the viking scripts, vnav_mod etc. installed as linked to by Air Ken.  That's why the text values, extra colors, and proper movement of the circular meter weren't happening.  Anyway, for me, too much support files needed for a VU meter, albeit pretty.  I had figured it was just a straight JSP3 script addition, like a new sample.  Thanks though to ilovefb2k for posting his code, I just misunderstood the actual requirements.

Re: JScript Panel script discussion/help

Reply #1657
Hi Air Ken,
You mean script "{deployed} album_art [cd-vinyl].txt" !?
This script from and @Jul23 as stated, and we also need some images from TT (TT-ReBORN.Georgia-ReBORN) to apply CD/Vinyl mask.
As such, i was hesitant to enclose them with the early post.

Attached is these images in their folder structure. we can unzip and copy them into [foobar2000] root folder and the script should be compiled without error.

Credit goes to Jul23, TT for their hard work in creating beautiful CD/vinyl images.

Artwork is randomly tilted.
Cheer.
note: as i am not sure about IP in other countries, whether or not some artworks were under public domain or not, i can not make any screenshot. sorry.
 I think of some pseudo screenshots.

It is weir that my web browser usually   get stuck (banned)  accessing this site.
The script "{deployed} album_art [cd-vinyl].txt" shows album art often in gray instead of color.

Re: JScript Panel script discussion/help

Reply #1658
Hi Air Ken,
You mean script "{deployed} album_art [cd-vinyl].txt" !?
This script from and @Jul23 as stated, and we also need some images from TT (TT-ReBORN.Georgia-ReBORN) to apply CD/Vinyl mask.
As such, i was hesitant to enclose them with the early post.

Attached is these images in their folder structure. we can unzip and copy them into [foobar2000] root folder and the script should be compiled without error.

Credit goes to Jul23, TT for their hard work in creating beautiful CD/vinyl images.

Artwork is randomly tilted.
Cheer.
note: as i am not sure about IP in other countries, whether or not some artworks were under public domain or not, i can not make any screenshot. sorry.
 I think of some pseudo screenshots.

It is weir that my web browser usually   get stuck (banned)  accessing this site.
The script "{deployed} album_art [cd-vinyl].txt" shows album art often in gray instead of color.

Send your new script of the vinyl . I would like to see it . Thanks you guys

Re: JScript Panel script discussion/help

Reply #1659
@Jul2323


Right click on the CD Panel > Spin

Reply #1592 By: ilovefb2k
JSPP3_fb2k0 (64 bit Windows11 - screen fullHD 150pct)_22Jul24.rar
https://hydrogenaud.io/index.php/topic,110516.msg1048254.html#msg1048254

Additional image folder
Reply #1593
{deployed} album_art [cd-vinyl].rar
https://hydrogenaud.io/index.php/topic,110516.msg1048255.html#msg1048255

"skins" folder:
\profile\skins or \AppData\Roaming\foobar2000-v2\skins

\profile\$recycle.bin folder

"Script":
\profile\skins\viking\scripts\jsp3  *.txt file
\profile\skins\viking\scripts\jsp3_lib\vnav_mod  *.jis file

------------------

\profile\skins\viking\scripts\jsp3\{deployed} album_art [cd-vinyl].txt

\profile\skins\viking\images\vnav_fb2k\mask\TT-ReBORN.Georgia-ReBORN (CD Image folder)

SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel script discussion/help

Reply #1660
Hi Air Ken,
You mean script "{deployed} album_art [cd-vinyl].txt" !?
This script from and @Jul23 as stated, and we also need some images from TT (TT-ReBORN.Georgia-ReBORN) to apply CD/Vinyl mask.
As such, i was hesitant to enclose them with the early post.

Attached is these images in their folder structure. we can unzip and copy them into [foobar2000] root folder and the script should be compiled without error.

Credit goes to Jul23, TT for their hard work in creating beautiful CD/vinyl images.

Artwork is randomly tilted.
Cheer.
note: as i am not sure about IP in other countries, whether or not some artworks were under public domain or not, i can not make any screenshot. sorry.
 I think of some pseudo screenshots.

It is weir that my web browser usually   get stuck (banned)  accessing this site.
The script "{deployed} album_art [cd-vinyl].txt" shows album art often in gray instead of color.

Send your new script of the vinyl . I would like to see it . Thanks you guys

Re: JScript Panel script discussion/help

Reply #1661
This also requires editing. You can change the CD image by changing the image file name.

CD Album Art
{deployed} album_art [cd-vinyl].txt
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel script discussion/help

Reply #1662
Sorry.
{deployed} album_art [cd-vinyl].txt:
I tried the following, but I got an error: Line 320: So I added // to the beginning of Line 320:

       gr.DrawImage(common-cd-blank, (www * 100) / 1390 , (whh * 48) / 2400, whh / circle2_ratio, whh / circle2_ratio, 0, 0, common-cd-blank.Width, common-cd-blank.Height, 1, angle_circle );

//       gr.DrawImage(common-cd-blank, (www * 100) / 1390 , (whh * 48) / 2400, whh / circle2_ratio, whh / circle2_ratio, 0, 0, common-cd-blank.Width, common-cd-blank.Height, 1, angle_circle );
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel script discussion/help

Reply #1663
Sorry.
{deployed} album_art [cd-vinyl].txt:
I tried the following, but I got an error: Line 320: So I added // to the beginning of Line 320:

       gr.DrawImage(common-cd-blank, (www * 100) / 1390 , (whh * 48) / 2400, whh / circle2_ratio, whh / circle2_ratio, 0, 0, common-cd-blank.Width, common-cd-blank.Height, 1, angle_circle );

//       gr.DrawImage(common-cd-blank, (www * 100) / 1390 , (whh * 48) / 2400, whh / circle2_ratio, whh / circle2_ratio, 0, 0, common-cd-blank.Width, common-cd-blank.Height, 1, angle_circle );
I'm saying that the artist picture is gray and should have nothing to do with vinyl_circle.png! I have logged out the vinyl_circle.png image.

Re: JScript Panel script discussion/help

Reply #1664
I'm not looking at other people's scripts but the code that makes it grayscale is ApplyEffect. Search for that and remove it. An example might look like...

Code: [Select]
img.ApplyEffect(0);

Re: JScript Panel script discussion/help

Reply #1665
@sq68

What?
I'm not talking to you.
I'm just talking about CD Album Art.
And we're talking about how to change the CD image.

This is a continuation of my Reply #1659 and Reply #1661.
If you read from the top, you will understand.

It was like I was talking to myself.

SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel script discussion/help

Reply #1666
@eurekagliese
You've seen these changes made to the Custom Track.

There are interesting ideas.


Re: JScript Panel script discussion/help

Reply #1667
@eurekagliese
You've seen these changes made to the Custom Track.

There are interesting ideas.



Looks nice!

Anyway, you may want to use other hosting image, that postimg links are flagged as Potential Security Issue and usually all the image you posted are not shown.

 

Re: JScript Panel script discussion/help

Reply #1668
now I'm no expert in scripting, but how hard is it to load a script in as simple as notepad, do a search for "whatever.exe" and change the path to wherever it is located on one's system?

example: latest script from ilovefb2k
Code: [Select]
var binaries = {
      ffprobe : fb.ProfilePath + 'skins\\external_helper\\ffprobe.exe',
}
don't understand what's so difficult in pointing that to wherever one wants...

I found out that the path replacement for ffprobe.exe I already posted was working fine as far as displaying the basic meter and action, and didn't produce a "file not found" error.  However, I had installed the script directly into a new jsp3 panel, not into a "skins" subfolder nor did I have any of the viking scripts, vnav_mod etc. installed as linked to by Air Ken.  That's why the text values, extra colors, and proper movement of the circular meter weren't happening.  Anyway, for me, too much support files needed for a VU meter, albeit pretty.  I had figured it was just a straight JSP3 script addition, like a new sample.  Thanks though to ilovefb2k for posting his code, I just misunderstood the actual requirements.
What? Support files?
I don't know how you've setup your FB2K env. I run it as a portable, and did just that... dumped the script into a new JSP3 Panel after chaning the path to my ffmpeg home (for ffprobe) and it works... no support files needed other than telling the script where to find ffprobe.

Re: JScript Panel script discussion/help

Reply #1669
@sq68
> The script "{deployed} album_art [cd-vinyl].txt" shows album art often in gray instead of color.

Reply #1660
https://hydrogenaud.io/index.php/topic,110516.msg1048728.html#msg1048728

Do you mean as weird as this picture?

\profile\skins\viking\images\vnav_fb2k\mask\TT-ReBORN.Georgia-ReBORN (CD Image folder)

The CD images in the "TT-ReBORN.Georgia-ReBORN (CD Image folder)" folder will be changed in order or randomly. Isn't that it?
Click the Next button to confirm.

SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel script discussion/help

Reply #1670
@sq68
> The script "{deployed} album_art [cd-vinyl].txt" shows album art often in gray instead of color.

Reply #1660
https://hydrogenaud.io/index.php/topic,110516.msg1048728.html#msg1048728

Do you mean as weird as this picture?

\profile\skins\viking\images\vnav_fb2k\mask\TT-ReBORN.Georgia-ReBORN (CD Image folder)

The CD images in the "TT-ReBORN.Georgia-ReBORN (CD Image folder)" folder will be changed in order or randomly. Isn't that it?
Click the Next button to confirm.


Yes, and sometimes normal colors. Thank you!

Re: JScript Panel script discussion/help

Reply #1671
now I'm no expert in scripting, but how hard is it to load a script in as simple as notepad, do a search for "whatever.exe" and change the path to wherever it is located on one's system?

...what's so difficult in pointing that to wherever one wants...

What? Support files?
I don't know how you've setup your FB2K env. I run it as a portable, and did just that... dumped the script into a new JSP3 Panel after chaning the path to my ffmpeg home (for ffprobe) and it works... no support files needed other than telling the script where to find ffprobe.
True, it's not difficult.  I changed the pointer to ffprobe : "C:\\ffprobe\\ffprobe.exe", and it finds that file just fine.
Then I dumped the script "JSP3_64bit_VU_Meter_script.txt" from ilovefb2k's reply #1636 into a JSP3 panel with that path mod.
On playing files however, I only got a fundamental bar image which is reactive but missing both the dB scale and the RMS channel level summaries below it:



I then read Air Ken's post where at the end he mentions a "skins" folder (I don't have any skins), and also says concerning scripts that:
"Script":
\profile\skins\viking\scripts\jsp3  *.txt file (I am copying "JSP3_64bit_VU_Meter_script.txt" and "JSP3 64bit VUMeter_ver 1.1.1.txt" here)
\profile\skins\viking\scripts\jsp3_lib\vnav_mod  *.jis file"

As I have just a straight JSP3 install and his comment mentions skins and "jsp3_lib\vnav_mod  *.jis file"  I assume I am missing some kind of support files needed to produce the missing scale and RMS summaries below the meter image.

I'm happy to take any guidance that will help me produce the image ilovefb2k originally attached:


Re: JScript Panel script discussion/help

Reply #1672
ilovefb2k's Script
I'll just paste the link

Reply #1570 By: ilovefb2k
https://hydrogenaud.io/index.php/topic,110516.msg1048177.html#msg1048177

Scree Shot
https://hydrogenaud.io/index.php/topic,110516.msg1048256.html#msg1048256

New:
Reply #1592
https://hydrogenaud.io/index.php/topic,110516.msg1048254.html#msg1048254

Reply #1593
CD image folder
https://hydrogenaud.io/index.php/topic,110516.msg1048255.html#msg1048255
----------
Reply #1636 By: ilovefb2k
JSP3_64bit_VU_Meter_script.txt
https://hydrogenaud.io/index.php/topic,110516.msg1048520.html#msg1048520
- dependency:  'ffprobe.exe' copied to as this folder: fb.ProfilePath + 'skins\\external_helper\\ffprobe.exe'

https://hydrogenaud.io/index.php/topic,110516.msg1048559.html#msg1048559
----------
Again, I followed the developer's instructions (read.me), which is what I always do when I do testing, and then edited what I could.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel script discussion/help

Reply #1673
New:
Reply #1648 By: ilovefb2k
JSP3 64bit VUMeter_ver 1.1.1
https://hydrogenaud.io/index.php/topic,110516.msg1048606.html#msg1048606

https://hydrogenaud.io/index.php/topic,110516.msg1048610.html#msg1048610
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel script discussion/help

Reply #1674
@eurekagliese
You've seen these changes made to the Custom Track.

There are interesting ideas.



Looks nice!

Anyway, you may want to use other hosting image, that postimg links are flagged as Potential Security Issue and usually all the image you posted are not shown.

@eurekagliese

If you then confirm that this site for uploading images is fine.

Thank you