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 411054 times) previous topic - next topic
IP974 and 3 Guests are viewing this topic.

Re: JScript Panel script discussion/help

Reply #1875
Hi :)
I have update withe the last version foo_jscript_panel3-3.8.2 but now, at the start of foobar2000 I received an error msg:

JScript Panel 3.8.2 (Last.fm Bio by marc2003)
Errore di run-time di JavaScript
'_text' non è definito
File: <main>
Line: 16, Col: 1

What I must do? :(

Re: JScript Panel script discussion/help

Reply #1876
my pc crashed and when it went up again, for some reasons my foobar is starting totally fresh and my component are all greyed out.
Is there any way to retrieve a script that i had in a panel ? (i'm quite desperate tbh)

Re: JScript Panel script discussion/help

Reply #1877
Panel configurations/code are stored inside profile\theme.fth for DUI users and profile\configuration\foo_ui_columns.dll.cfg for CUI users. But if those files are lost/reset/corrupted, you're stuffed.

On a working layout, it's perfectly safe to remove the component and you'll see this message in the Console when restarting Default UI.

Code: [Select]
UI Element instantiation failure: UI Element Not Found

This means fb2k is holding on to the configuration and it will be fully restored if the component is restored. Obviously you must not insert another UI element in the blank space that is left behind. If you did that, configuration would be lost.

But this does depend on the integrity of the theme file I mentioned.

edit: none of this is specific to JScript Panel. It applies to any component.

Re: JScript Panel script discussion/help

Reply #1878
Ok my foo_ui_columns.dll.cfg looks like below. I guess i'm stuffed.
I cant uninstall any components. the only option is "about".
Oh well :( thanks anyway for your help

X


EDIT : Got it back. Well, it was my bad. I had created a profile folder in my Foobar directory and i had forgotten about that.
Deleting that folder got it to work !
pffff


Re: JScript Panel script discussion/help

Reply #1879
Hi :)
I have update withe the last version foo_jscript_panel3-3.8.2 but now, at the start of foobar2000 I received an error msg:

Probably just have to do this ...

Quote
https://github.com/jscript-panel/release/releases/tag/latest
<!> Warning
If an update causes a script error from an included sample, simply re-import using the Samples button in the Configuration Window.

Re: JScript Panel script discussion/help

Reply #1880
Hi :)
I have update withe the last version foo_jscript_panel3-3.8.2 but now, at the start of foobar2000 I received an error msg:

Probably just have to do this ...

Quote
https://github.com/jscript-panel/release/releases/tag/latest
<!> Warning
If an update causes a script error from an included sample, simply re-import using the Samples button in the Configuration Window.


tHANKS :)
I have reload the scrip, I see a msg about "right click to set API key.

I have no idea what to enter, so I clicked on some random numbers and the script started working...mystery ^_^

Re: JScript Panel script discussion/help

Reply #1881
People always get offended when I ask if they're blind or stupid. What else am I supposed to think?

It's impossible to download this component without seeing this text. :/


Re: JScript Panel script discussion/help

Reply #1882
People always get offended when I ask if they're blind or stupid. What else am I supposed to think?

It's impossible to download this component without seeing this text. :/



your post says three things, that you don't consider that many people don't understand English, that many people don't read the info that is associated with a download and that you are not able to empathize with others

Re: JScript Panel script discussion/help

Reply #1883
your post says three things, that you don't consider that many people don't understand English, that many people don't read the info that is associated with a download and that you are not able to empathize with others

#1 & #3, all Marc.

#2 is on you.
If you're motivated enough to post here, then you should be motivated enough to actually read about what you install?

I have no idea what to enter, so I clicked on some random numbers and the script started working...mystery ^_^

Not crashing does not mean it is doing anything meaningful. You need to put your own LastFM API code in if you actually want your own data.

Re: JScript Panel script discussion/help

Reply #1884
your post says three things, that you don't consider that many people don't understand English, that many people don't read the info that is associated with a download and that you are not able to empathize with others

#1 & #3, all Marc.

#2 is on you.
If you're motivated enough to post here, then you should be motivated enough to actually read about what you install?

I have no idea what to enter, so I clicked on some random numbers and the script started working...mystery ^_^

Not crashing does not mean it is doing anything meaningful. You need to put your own LastFM API code in if you actually want your own data.



I didn't think I asked for anyone else's opinion and I don't think the thread needs useless discussions. But, please, I'll answer you.

1 I'd like to see you if you were to go to a site written in Chinese and needed an update for a program you already use, if you would start translating the info, which usually tells you about the changes made since the latest version.

2 Your motivation comes from the problem that arose, not from installing a program you already use and know. Many people have a lot to do in life and only get involved when a problem arises. Maybe you don't have commitments and responsibilities and then you have time to read all the manuals you find around

The ability to empathize is exactly what I described and that you don't have either, but don't worry, it's not a quality that many people have. However, you will have made Marc happy by showing that you rushed to his aid, even though he was wrong but, for some, right or wrong doesn't matter :)

Now let's end here because I've wasted too much time.

If it hasn't blocked, it's fine with me because the singer's info appears.

Re: JScript Panel script discussion/help

Reply #1885
People always get offended when I ask if they're blind or stupid. What else am I supposed to think?
It's impossible to download this component without seeing this text. :/
You can think what you want, but you don't have to write it!?  ::)
For example, you could write "Please read ! Important notice carefully."
And skipped the insults... just my 2 cents.
“A little kindness goes a long way”
What is the opposite of music? ~ Everyone is entitled to his own opinion, but not his own facts.

Re: JScript Panel script discussion/help

Reply #1886
Thanks for your words:)
moreover we are in a forum, places born precisely to help each other in our small or big, stupid or intelligent questions. Evidently there are people who "have only this"

Re: JScript Panel script discussion/help

Reply #1887
Just my 2 cents: Be careful not to bite the hand that feeds.

The "elders" who contribute so much that the rest of us freeload on, purely from personal interest and with no recompense, should be forgiven the occasional lack of patience when obliged to answer the same question for the umpteenth time.

The point about the comprehension of English is irrelevant.  English is the official language of the forum, and there are adequate translation facilities available these days.  If somebody doesn't feel able to communicate in English, then they have the option not to use the software.  Nobody's forced to, take it or leave it.

The only suggestion I might make is to not dive in with a reply every time; if the question niggles then let somebody else answer it.  And yes, it does niggle when people ignore what's in front of them.
It's your privilege to disagree, but that doesn't make you right and me wrong.

Re: JScript Panel script discussion/help

Reply #1888
The only suggestion I might make is to not dive in with a reply every time... 
Look who's talking...
What is the opposite of music? ~ Everyone is entitled to his own opinion, but not his own facts.

Re: JScript Panel script discussion/help

Reply #1889
Just my 2 cents: Be careful not to bite the hand that feeds.

The "elders" who contribute so much that the rest of us freeload on, purely from personal interest and with no recompense, should be forgiven the occasional lack of patience when obliged to answer the same question for the umpteenth time.

The point about the comprehension of English is irrelevant.  English is the official language of the forum, and there are adequate translation facilities available these days.  If somebody doesn't feel able to communicate in English, then they have the option not to use the software.  Nobody's forced to, take it or leave it.

The only suggestion I might make is to not dive in with a reply every time; if the question niggles then let somebody else answer it.  And yes, it does niggle when people ignore what's in front of them.

I would like to remind you that no one is obliged to respond, if a person helps another (as I do in my field) they do it out of education, generosity or vanity. No one does something without having a personal gain, unless we are talking about saints.

Your considerations are superficial (to be good) and the only thing I feel like telling you is to stop LICK. I believe there is a tail and I do not believe that Marc needs it, above all, it is not useful for his human growth.

Stop talking about me

Re: JScript Panel script discussion/help

Reply #1890
@ilovefb2k
Hi.
JSP AIMP analog VU Meter:
context menu > Setting > check setting > FL > FR OK → OK

Is this automatic?
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 #1891
Is there any real advantage of the JSP3 script VU meter over the recent and terrific re-work of foo_vis_vumeter by oops?  With all due respect to ilovefb2k, I did get a meter to show up, but that script is a nightmare.

Re: JScript Panel script discussion/help

Reply #1892
Is there any real advantage of the JSP3 script VU meter over the recent and terrific re-work of foo_vis_vumeter by oops?  With all due respect to ilovefb2k, I did get a meter to show up, but that script is a nightmare.
It runs (with modification) with transparant background and under CUI. So it is promising.

Re: JScript Panel script discussion/help

Reply #1893
Is there any real advantage of the JSP3 script VU meter over the recent and terrific re-work of foo_vis_vumeter by oops?  With all due respect to ilovefb2k, I did get a meter to show up, but that script is a nightmare.

Is there any real advantage of the JSP3 script VU meter over the recent and terrific re-work of foo_vis_vumeter by oops?  With all due respect to ilovefb2k, I did get a meter to show up, but that script is a nightmare.
It runs (with modification) with transparant background and under CUI. So it is promising.
hi @sveakul,
thank you for your feedback. It is just an attempt for us to play around and tune it to suit our specific look & feel. e.g. we may construct ourself a fb2k theme/skin and let this help us in manipulating  a VU Meter.
It is in no way can compared with well-coded,  beautiful and rich-feature one of @oops' or the 32x version.

hi @Defender,
yeah, you are totally right.    

wish you both a nice day.
@ilovefb2k

Re: JScript Panel script discussion/help

Reply #1894
@ilovefb2k
Hi.
JSP AIMP analog VU Meter:
context menu > Setting > check setting > FL > FR OK → OK

Is this automatic?
hi @Air KEN,
What i have tried to 'try' there is to mimic something that i do not fully understand at all, in terms of  AIMP_VU_Mete-literate background: Some parameters /MobilityNegative, MobilityPositive/ are ignored or they are not applicable in other audio engine than native AIMP !? If we arbitrarily to replicate some parameter (e.g. ZeroLevel, which i guess is always 0 dB ?), then !? but, i thinks they are there because they are needed. 
we may get back to this later on, if have more information. 
in saying so,
1- that function (context menu > Setting > check setting > FL > FR OK → OK )will retrieve parameters from INI file, which belong to each skin, and calculated based on the  standard formular  found here (by @Black_AVP_Bim // https://www.aimp.ru/forum/index.php?topic=52865.msg325066#msg325066):
Spoiler (click to show/hide)

I, then, quickly adapted to JSP3's @marc2003 to render image (DrawImage()): A = Am* (  10^((L - Lm)/20)) - 0.5)
but, it should be: A= Am* (  10^((L - Lm)/20)) - MinAngle/Am)

2- and, let the peak needle on show: cause i do not know the native AIMP VU Meter follows peak or RMS. as my observation, native analog AIMP VU Meter is very sensitive to tempo, or they are quick in terms of decay/attack or fall/rise. 
3- the needle arrow  seems to not follow/point exactly at  the skin curve where the meter signal ( -~ , -20, -10, -5, . . 0, 1,2,3, +~ ). this may be that curve line is calculated by  one  base while the needle cycle by a another (3,14) base !?
   
Having sad that, it is for look & feel only or we have to create skin for ourself. that is , maybe, the most outcome of this script along with the case as @Defeneder pointed out in previous post.
i will have a look at this over the weekend to make the script cover the other skins where the needles are upside down.
wish you al the best, @Air KEN
@ilovefb2k

Re: JScript Panel script discussion/help

Reply #1895
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 #1896
@ilovefb2k :  I didn't know that responding "OK" to the two error messages about FL/FR actually "did" anything to the movement, thanks for that info;  I just thought "dang, starting with 2 error messages is not good!"

I find the needle response very "stiff" on most of the supplied meters. while seeming to correctly point at RMS, comparing it to the JSP3 bar meters by Case and marc2k3.  That "peak" needle hanging off the bottom really threw me, seems to only serve a purpose with the BMW 750 skin (lovely colors there BTW).  Suggestions after my first use of the script would be:

1.  Please provide a way to toggle a reading for "RMS" or "Peak" from the normal single needle meters without requiring that second "hanging ghost needle"

2.  Change the two "check setting" error messages to indicate something has been adjusted, not that "it's screwed up"

3.  Please point to the places in the script where users that can make manual changes to adjust speed of needle response and decay, layout, gain, etc.  if these cannot be added to the GUI context menu

BTW the script *.txt can be imported into the JSP3 panel from anywhere, it doesn't need to reside first on the path given in the "// import@" line.   You can change the path of the skin folder to outside fb2k and without all the "viking", etc. on line 69 of the script.  For example, mine is set to
Code: [Select]
var aimp_path = "c:\\beat_audio_vu_meter\\";
I didn't change the actual folder name in case that was referred to elsewhere in the script.  I dumped all the skins from both the "HA_aimp_Vu_meter_1.0.1.rar" and "HA_aimp_Vu_meter.rar" files into it.  On first run, it complains about not being able to find the default skin, but then goes on to display the first skin from alphabetical order in the folder, and never complains again. All the skins appear and are selectable from the context menu, and it remembers the last skin used.

While I do have foo_uie_jsplitter installed (Foobar v2.24 x64), the whole panel creation/config import operation here was done just with JSP3.

Thanks ilovefb2k for this promising "proof of concept" addition to the fb2k meter display group and I look forward to a revised version soon!!

Re: JScript Panel script discussion/help

Reply #1897
@ilovefb2k :  I didn't know that responding "OK" to the two error messages about FL/FR actually "did" anything to the movement, thanks for that info;  I just thought "dang, starting with 2 error messages is not good!"

I find the needle response very "stiff" on most of the supplied meters. while seeming to correctly point at RMS, comparing it to the JSP3 bar meters by Case and marc2k3.  That "peak" needle hanging off the bottom really threw me, seems to only serve a purpose with the BMW 750 skin (lovely colors there BTW).  Suggestions after my first use of the script would be:

1.  Please provide a way to toggle a reading for "RMS" or "Peak" from the normal single needle meters without requiring that second "hanging ghost needle"

2.  Change the two "check setting" error messages to indicate something has been adjusted, not that "it's screwed up"

3.  Please point to the places in the script where users that can make manual changes to adjust speed of needle response and decay, layout, gain, etc.  if these cannot be added to the GUI context menu

BTW the script *.txt can be imported into the JSP3 panel from anywhere, it doesn't need to reside first on the path given in the "// import@" line.   You can change the path of the skin folder to outside fb2k and without all the "viking", etc. on line 69 of the script.  For example, mine is set to
Code: [Select]
var aimp_path = "c:\\beat_audio_vu_meter\\";
I didn't change the actual folder name in case that was referred to elsewhere in the script.  I dumped all the skins from both the "HA_aimp_Vu_meter_1.0.1.rar" and "HA_aimp_Vu_meter.rar" files into it.  On first run, it complains about not being able to find the default skin, but then goes on to display the first skin from alphabetical order in the folder, and never complains again. All the skins appear and are selectable from the context menu, and it remembers the last skin used.

While I do have foo_uie_jsplitter installed (Foobar v2.24 x64), the whole panel creation/config import operation here was done just with JSP3.

Thanks ilovefb2k for this promising "proof of concept" addition to the fb2k meter display group and I look forward to a revised version soon!!
hi @sveakul ,
Thank you for your feedback.
The script is just there for us to see how far we can, via JSP3's @marc2003, play around with 'VU meter' and, as such, it can not serve all cases as we want , not to saying, in no way compared with @oops' vu_meter in any aspects.
It is not mentioned that script is based on little understanding of VU meter. So please accept my apology.

with regard to needle speed, please navigate to the the following scrip, which is originally setup and created by @Case and @marc2003.i have just made a very little modification.
Code: [Select]
function AIMP_VU_Meter_update() { //@case, @marc2003
if (!aimp_skin_check) return;

var cur_time = fb.PlaybackTime;
if (cur_time > rms_window) {
var chunk = fb.GetAudioChunk(rms_window);
if (chunk) {
var data = chunk.Data.toArray(); //data.length = chunk.ChannelCount * chunk.SampleCount
var frame_len = chunk.SampleCount; // 4410 per 100ms, 44100 per 1s
if (data && chunk.ChannelCount > 0 && frame_len > 0) {

// we get data for 2 channels only : FL, FR or vice versa !?
for (var c = 0; c < channels_count; c++) {
var sum = 0, peak = 0, peak_rms =0;

for (var i = c; i < data.length; i += chunk.ChannelCount) {
var s = Math.abs(data[i]);
sum += s * s;

if (properties.peak_needle && s > peak) peak = s;
}

// RMS level
peak_rms =  Math.sqrt(sum/frame_len);
if (peak_rms > RMS_levels[c]) RMS_levels[c] = peak_rms;
else RMS_levels[c] *= peak_fall_mul;

// peak level
if (properties.peak_needle)
if (peak > Peak_levels[c]) Peak_levels[c] = peak;
else Peak_levels[c] *= peak_fall_mul;
}

window.Repaint();
}
}
}
}

I have well noted your suggestions and may have them revised to next updates, if any. 
Once again, thank you very much for your feedback.
@ilovefb2k.

 

Re: JScript Panel script discussion/help

Reply #1898
@ilovefb2k
Hi.
JSP AIMP analog VU Meter:
context menu > Setting > check setting > FL > FR OK → OK

Is this automatic?
Hi @Air KEN and @all,
As per some feedback and suggestions , please find the JSP3 "AIMP Analog VU Meter" update attached, version named "1.0.1 QM 05-11-24" for convenient reference.

This update addresses some points:
- High CPU load.
- Covering some very special cases, which were not easy to find a skin for, but they are there, finally. We also attached some for your quick loading:
   + The needle is upside down. Technically, the y_needle coordinates can be in (>=0) or outside (<0) the background area.
   + The needle is horizontal.
   We find it very interesting as, to some extent, we could not think of such skins existing early on. Wow, what creativity from us as an audio lovers community.

On the way back home, I also thought of an option (as per @Air KEN's feedback of 'check setting'), where we can adjust a little bit the Max/MinLevel to let the needle follow fb2k's audio engine (tweak): push the MaxLevel straight up to +3dB, and pull the MinLevel back to earth at -60dB. This, as my quick observation, has very little impact on the needle movement. But, it is there, so why not give it a try.

Consequently, I am quite confident that this update covers almost 99% of analog/needle (not LED) AIMP VU meter skins as listed here [https://www.aimp.ru/forum/index.php?topic=52865.0].

As noted, please unzip the attached file to retain the folder structure, then copy them to the root or 'profile' folder of fb2k (or we can make some changes as suggested by @sveakul https://hydrogenaud.io/index.php?msg=1053489)
Thank you to those who have given us positive and constructive feedback to keep the light going on. I hope this brings you all a little bit more joy.
Important: Please note that this is for look & feel only, not real VU meter. and, the formula is as following:
Spoiler (click to show/hide)
and those script to adapt AIMP Vu Meter into @marc2003's JSP3  [now, i have no idea why some text is there]
Spoiler (click to show/hide)
due to my limited-resource, i am sorry in advance for later reply, if any.
And now, I have to rush for a 4P pizza  as my lovely wife is right behind me.

Regards,
@ilovefb2k

Re: JScript Panel script discussion/help

Reply #1899
Thank you for the quick update. Enjoy your pizza.
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)