|
|
|
10-23-2016, 10:10 AM
|
#321
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,167
|
With the latest LUA file, I'm getting this error loading a previous design:
"... \LBX Stripper.lua:3305: bad argument #2 to 'TrackFX_AddByName' (string expected, got nil)"
--- edit ----
Oh wait ... going back to previous LUA version [the one I used to update a design] now also gives this error :|
This was from working on it from last night ... loading that up is error'ing out
---- edit 2 ----
I think I had renamed the JS plugs to custom names [the TBPro A/B]. Just recalling some mention of something said earlier.
If that is the case ... is there any way I can edit my previous design to get it back running ? or is it a start over :|
thx
Last edited by RJHollins; 10-23-2016 at 10:33 AM.
|
|
|
10-23-2016, 10:35 AM
|
#322
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Quote:
Originally Posted by RJHollins
With the latest LUA file, I'm getting this error loading a previous design:
"... \LBX Stripper.lua:3305: bad argument #2 to 'TrackFX_AddByName' (string expected, got nil)"
--- edit ----
Oh wait ... going back to previous LUA version [the one I used to update a design] now also gives this error :|
This was from working on it from last night ... loading that up is error'ing out
|
Is this when you're importing a strip?
The saved strip might be broken due to a cock up in the handling of JSFX plugs - but you should be able to fix it. This was because my script was not handling the names well. The new one *should*. Check the saved strip file (it's only a text file - edit in notepad/notepad++ or similar) and make sure each section holding fx data (generally towards the top of the file) has an ["fxname"] entry - equal to that of teh JSFX it's trying to load (the text file name - not the reported name in reapers fx browser.
eg:
["fxchunk"]="JS LOSER/5BandSplitter ""\
200.000000 2000.000000 5000.000000 8000.000000 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ",
["fxenabled"]=true,
["fxname"]="5BandSplitter",
["fxguid"]="8EF71553-C1D3-445F-9137-4C6744BA8613",
},
If the bold bit is missing above - just add it in - the name should match that after the 'JS .../' up until the space in the associated fxchunk bit.
I'm still working on this - but it seems JS plugs are a bit of an arse compared to VSTs when parsing the chunk data. I think I've fixed it - but not entirely sure...
If you're really stuck - send me the strip file and I'll try to fix it for you in an hour or two when I have a mo
|
|
|
10-23-2016, 10:56 AM
|
#323
|
Human being with feelings
Join Date: Mar 2007
Location: I'm in a barn
Posts: 4,467
|
Quote:
Originally Posted by lb0
I was a little frustrated that you also couldn't save created images (at least as far as I could tell in the time i spent researching).
|
well, you could technically get each pixel in the desired area. (w,h)
then store the w,h and each pixel value into the reaper-extstate.ini. - or even as a string in some other text file in the resources folder.
then you'd need some function to get those values out of the file and then put those values into a buffer, and blit it to the main frame.
I guess there could be a dedicated bitmapped knob and other element creator script that would save the info. Then stripper would just need to look in the extstate for the info - like it does for .pngs. Then redraw it to a buffer and blit it.
I'll make the editor
- and I guess there could be a native one in stripper. We'd just need to standardize a format for storing the info.
******
Question!?
Can Reascript lua read text files? EEL can, but I don't see those functions for lua. If that's the case, the reaper-extstate.ini would have to be used since there is an API function to read from it.
Last edited by James HE; 10-23-2016 at 11:03 AM.
|
|
|
10-23-2016, 11:02 AM
|
#324
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Quote:
Originally Posted by James HE
well, you could technically get each pixel in the desired area. (w,h)
then store the w,h and each pixel value into the reaper-extstate.ini. - or even as a string in some other text file in the resources folder.
then you'd need some function to get those values out of the file and then put those values into a buffer, and blit it to the main frame.
I guess there could be a dedicated bitmapped knob and other element creator script that would save the info. Then stripper would just need to look in the extstate for the info - like it does for .pngs. Then redraw it to a buffer and blit it.
I'll make the editor
- and I guess there could be a native one in stripper. We'd just need to standardize a format for storing the info.
|
Nice idea = but before you do anything - I got around my need to do this - by just recreating the strip when you click on it in the strip browser. This is the image of the strip that gets dragged onto the control surface. I thought if I could create an image and save it with the strip (in the same folder) - it would be quicker when clicking on the strip to drag onto the surface. Would also save the need of having to temporarily load all the different knobs/background images etc when recreating.
However - I still think if it would be quicker - then it might be worth looking into.
|
|
|
10-23-2016, 11:05 AM
|
#325
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Quote:
Originally Posted by RJHollins
With the latest LUA file, I'm getting this error loading a previous design:
"... \LBX Stripper.lua:3305: bad argument #2 to 'TrackFX_AddByName' (string expected, got nil)"
--- edit ----
Oh wait ... going back to previous LUA version [the one I used to update a design] now also gives this error :|
This was from working on it from last night ... loading that up is error'ing out
---- edit 2 ----
I think I had renamed the JS plugs to custom names [the TBPro A/B]. Just recalling some mention of something said earlier.
If that is the case ... is there any way I can edit my previous design to get it back running ? or is it a start over :|
thx
|
Ha - seems my latest one still doesn't cope with the LM_AB plugins... still working on it then... Will get it working - it's not rocket science - I'm just a bit of a rookie when working with the different combinations of things in the fx chunk, and pattern matching in particular (I like it - but sometimes I should just go old school and develop my own simple character based Instr like functions to do the work. I guess string.find would work ok.
|
|
|
10-23-2016, 11:08 AM
|
#326
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Quote:
Originally Posted by James HE
well, you could technically get each pixel in the desired area. (w,h)
then store the w,h and each pixel value into the reaper-extstate.ini. - or even as a string in some other text file in the resources folder.
then you'd need some function to get those values out of the file and then put those values into a buffer, and blit it to the main frame.
I guess there could be a dedicated bitmapped knob and other element creator script that would save the info. Then stripper would just need to look in the extstate for the info - like it does for .pngs. Then redraw it to a buffer and blit it.
I'll make the editor
- and I guess there could be a native one in stripper. We'd just need to standardize a format for storing the info.
******
Question!?
Can Reascript lua read text files? EEL can, but I don't see those functions for lua. If that's the case, the reaper-extstate.ini would have to be used since there is an API function to read from it.
|
Yes - reading text files is easy enough. Although I've been using the pickle/unpickle functions to save entire tables - so if the data could be put in some table format - then that would be even easier. (there are some restrictions to pickle - so would need to be slightly careful.
|
|
|
10-23-2016, 11:29 AM
|
#327
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Quote:
Originally Posted by RJHollins
With the latest LUA file, I'm getting this error loading a previous design:
"... \LBX Stripper.lua:3305: bad argument #2 to 'TrackFX_AddByName' (string expected, got nil)"
--- edit ----
Oh wait ... going back to previous LUA version [the one I used to update a design] now also gives this error :|
This was from working on it from last night ... loading that up is error'ing out
---- edit 2 ----
I think I had renamed the JS plugs to custom names [the TBPro A/B]. Just recalling some mention of something said earlier.
If that is the case ... is there any way I can edit my previous design to get it back running ? or is it a start over :|
thx
|
just seen your 2nd edit - yes you should get it working ok by editing the strip file as detailed in my previous reply (just don't include the renamed name in the fxname entry). You will need to create fxname entries for all the instances of LM_AB (source and control).
Now - you will have problems saving the strip until I fix it - but you can still work on it and save it as part of the project (just don't save the strip).
will have a fix soon - when the kids are in bed...
|
|
|
10-23-2016, 11:53 AM
|
#328
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,167
|
Hi lb0,
Thanks for looking at this ... seems you've identified the issue.
Earlier I did look at the .strip file with NotePad.
I think I'll wait till you've had time with it [I understand about the kids]
Meanwhile ... I've been in contact with Hopi, looking at some graphics details. The script in question is the one I was having the problem with. We'll come back to it afterward.
Big THANKS to you, lb0
|
|
|
10-23-2016, 11:57 AM
|
#329
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Quote:
Originally Posted by RJHollins
With the latest LUA file, I'm getting this error loading a previous design:
"... \LBX Stripper.lua:3305: bad argument #2 to 'TrackFX_AddByName' (string expected, got nil)"
--- edit ----
Oh wait ... going back to previous LUA version [the one I used to update a design] now also gives this error :|
This was from working on it from last night ... loading that up is error'ing out
---- edit 2 ----
I think I had renamed the JS plugs to custom names [the TBPro A/B]. Just recalling some mention of something said earlier.
If that is the case ... is there any way I can edit my previous design to get it back running ? or is it a start over :|
thx
|
Hi again RJ,
I'm a step further along now - the new version (in github) should now deal with most cases of JSFX - even renamed ones I think although haven't tested names with spaces yet.
I found an error case in that one JS plugin created not only a '<JS ' but also a '<JS_SER' entry in the chunk - WTH!! This through my retrieving chunk data code - so now instead of searching for '<JS' - I'm looking for '<JS ' (with space) - which doesn't get caught out by this extra JS_SER entry.
I've also made loading the strip more robust - in that if the fxname is missing (due to failed pattern match of plug name) - it will try to pattern match the saved chunk entry. This has the advantage that if you've saved a strip ok - but something happened with the fxname match on saving - so you lost it - like i think what's happened in your case. As long as you keep the strip file - I can fix the matching algorithm - and you should then be able to reload your strip file without editing it. You'd just have to wait for the fix from me. Obviously I hope to have all cases covered eventually - so you won't be on tenderhooks anymore as to whether the saved strip will actually re-import. I think we're pretty much there - but there do seem to be a large number of possibilities - with no standard to work with...
Still - if you haven't tried to edit the strip file like I suggested earlier - I think the new version may be able to load it anyway
|
|
|
10-23-2016, 11:58 AM
|
#330
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Quote:
Originally Posted by RJHollins
Hi lb0,
Thanks for looking at this ... seems you've identified the issue.
Earlier I did look at the .strip file with NotePad.
I think I'll wait till you've had time with it [I understand about the kids]
Meanwhile ... I've been in contact with Hopi, looking at some graphics details. The script in question is the one I was having the problem with. We'll come back to it afterward.
Big THANKS to you, lb0
|
Please read my new reply (above) - think you'll be able to load your 'broken' strip file again (fingers crossed). If not - please send to me and I'll see what's going on.
|
|
|
10-23-2016, 12:04 PM
|
#331
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
VU Meter NEXT
let's see if and how this version behaves
https://stash.reaper.fm/v/28699/VU%20%20NEXT.zip
previous one on stash is now deleted
please try it also with the JS vurmsmeter [ the one in post #284 ]
I don't understand something about that JS... see what you think
put meters on everything it provides...
L, R and Stereo
especially on the VU L,R, and Stereo [but do the RMS also plz]
the L and R on VU seem correct but the Stereo it clipping... I don't see why that should be since looking at the values in JS GUI, all three seem to be the same...
possible bug in the JS????
|
|
|
10-23-2016, 12:46 PM
|
#332
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,167
|
Quote:
Originally Posted by lb0
Please read my new reply (above) - think you'll be able to load your 'broken' strip file again (fingers crossed). If not - please send to me and I'll see what's going on.
|
OK ... just tested the very latest LUA.
The 'problem' STRIP did load up ... kinda :|
The A/B plugs show a red text message 'Plugin not found'. [there are 6 of them].
The 5 Nebula plugins loaded in, but only the 1st one works, with the knobs visible and functioning. For the other 4 Nebula GUI knobs, they look disabled and have no label info, nor do they function.
I'm not going to re-save ... but if you still want, I can send you the STRIP file ? But I'd need an email addy.
|
|
|
10-23-2016, 01:09 PM
|
#333
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Quote:
Originally Posted by RJHollins
OK ... just tested the very latest LUA.
The 'problem' STRIP did load up ... kinda :|
The A/B plugs show a red text message 'Plugin not found'. [there are 6 of them].
The 5 Nebula plugins loaded in, but only the 1st one works, with the knobs visible and functioning. For the other 4 Nebula GUI knobs, they look disabled and have no label info, nor do they function.
I'm not going to re-save ... but if you still want, I can send you the STRIP file ? But I'd need an email addy.
|
Yeah - somethings still missing - the disabled looking knob happens for all subsequent plugin knobs when a plugin fails to load. Still something I need to make more robust - there is code there to try and deal with this - but it obviously isn't complete/working properly yet.
EDIT: If you still have the project where you originally created this strip - you can load that and try saving teh strip again (under a new name). See if it works now.
EDIT 2: Still be good to see your strip file to see what's going on... but i think it's due to dodgy coding yesterday - but still i thought my new version might load it up correctly. have PMd
|
|
|
10-23-2016, 01:34 PM
|
#334
|
Human being with feelings
Join Date: Mar 2007
Location: I'm in a barn
Posts: 4,467
|
Quote:
Originally Posted by lb0
Yes - reading text files is easy enough. Although I've been using the pickle/unpickle functions to save entire tables - so if the data could be put in some table format - then that would be even easier. (there are some restrictions to pickle - so would need to be slightly careful.
|
Ahh.. I dug around looking at some of my old knob functions and I remembered that getting and setting individual pixels loses any anti aliasing and looks pretty bad. I knew there was some reason I stopped developing those things.. ha. So, scrap that idea...
|
|
|
10-23-2016, 01:35 PM
|
#335
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
The meters look seriously good to me. And pretty accurate comparing to StereoChannel.
It does seem that StereoChannel seems to go into the red further - quicker - but I've no idea the difference in calibration between the VU meter code, nor how accurate StereoChannel is.
https://youtu.be/lXYwgcdDm5g
|
|
|
10-23-2016, 01:37 PM
|
#336
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Quote:
Originally Posted by James HE
Ahh.. I dug around looking at some of my old knob functions and I remembered that getting and setting individual pixels loses any anti aliasing and looks pretty bad. I knew there was some reason I stopped developing those things.. ha. So, scrap that idea...
|
I guess that makes sense - shame. But does not Getting a pixel - actually get the anti-aliased value?
|
|
|
10-23-2016, 02:10 PM
|
#337
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
Quote:
Originally Posted by lb0
The meters look seriously good to me. And pretty accurate comparing to StereoChannel.
It does seem that StereoChannel seems to go into the red further - quicker - but I've no idea the difference in calibration between the VU meter code, nor how accurate StereoChannel is.
https://youtu.be/lXYwgcdDm5g
|
thanks and yes seem to be coming along... what I'm seeing is the ones that seem to tell the truest tale, compared to reapers own metering, are the ones in the JS for RMS... and then set that very botton slider to about 300 or a little more...
Still don't understand the diff in VU part between L, R and Stereo.. but I am suspecting there is something not quite right in the JS code...
BUT... I'm not a code guy so can't help ... gotta leave that to James and TBPro... and you...%^)
|
|
|
10-23-2016, 02:54 PM
|
#338
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Quote:
Originally Posted by hopi
thanks and yes seem to be coming along... what I'm seeing is the ones that seem to tell the truest tale, compared to reapers own metering, are the ones in the JS for RMS... and then set that very botton slider to about 300 or a little more...
Still don't understand the diff in VU part between L, R and Stereo.. but I am suspecting there is something not quite right in the JS code...
BUT... I'm not a code guy so can't help ... gotta leave that to James and TBPro... and you...%^)
|
The only difference I'm seeing between the stereo VU and mono LR is that sometimes the stereo one peaks a fraction different from the LR ones. But I would assume that's because of the signals being combined and averaged - giving a slightly higher overall level. But I'm a luddite when it comes to this stuff.
You have the latest version of my script ? There is a fix where I now normalize everything my end - because something strange was happening with Reapers own normalized values.
|
|
|
10-23-2016, 02:58 PM
|
#339
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Quote:
Originally Posted by RJHollins
OK ... just tested the very latest LUA.
The 'problem' STRIP did load up ... kinda :|
The A/B plugs show a red text message 'Plugin not found'. [there are 6 of them].
The 5 Nebula plugins loaded in, but only the 1st one works, with the knobs visible and functioning. For the other 4 Nebula GUI knobs, they look disabled and have no label info, nor do they function.
I'm not going to re-save ... but if you still want, I can send you the STRIP file ? But I'd need an email addy.
|
Hi RJ - have emailed you - but also mention on here for record that my script wasn't quite coping with pulling the plugin name from the chunk when it was encased within quotes (something I think Veto mentioned and possibly provided a solution for yesterday - which I hadn't thought would be an issue) - seems I was wrong - not the first time - anyway - just uploaded a version that hopefully copes with this scenario better - removing a trailing " if one exists from the previous captured name.
|
|
|
10-23-2016, 03:04 PM
|
#340
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Oh - new version also has a working but very untested Cycle Button option. Still in early stages - but if you select CYCLE BTN option in the CTL OPTIONS - you can hit the little << button that appears to open another window CYCLE OPTS
In here you can choose how many states you wish to have - and then click each numbered state and alter it with the knob at the top. Please not this alters the live knob being edited too. I suspect it will do strange things if you have more than one control selected - possibly ignore all but first selected - or set them all up but give incorrect readouts within the CYCLE OPTS screen if you inspect the later selected controls later on. If the selected controls all have the same name and readout - then it might work ok - just depends if I coded it to update all the selected controls - can't actually remember what I did so far!! lol!
As I said - pretty much untested - but works on a basic level so far.
This might break previously saved strips. :/ not sure yet - so bear with me for the moment.
|
|
|
10-23-2016, 03:34 PM
|
#341
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
Quote:
Originally Posted by lb0
The only difference I'm seeing between the stereo VU and mono LR is that sometimes the stereo one peaks a fraction different from the LR ones. But I would assume that's because of the signals being combined and averaged - giving a slightly higher overall level. But I'm a luddite when it comes to this stuff.
You have the latest version of my script ? There is a fix where I now normalize everything my end - because something strange was happening with Reapers own normalized values.
|
Just getting that newer version... the last one was giving me strange prob's anyway...
ludite... yeah me too, and I'd think the same as what said, except for watching values in the JS GUI itself and not seeing the stereo really adding the L and R...
|
|
|
10-23-2016, 03:47 PM
|
#342
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
RJ... plz chk yer email about that guage... I 'think' I made you an OK one...
|
|
|
10-23-2016, 04:09 PM
|
#343
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Quote:
Originally Posted by hopi
Just getting that newer version... the last one was giving me strange prob's anyway...
ludite... yeah me too, and I'd think the same as what said, except for watching values in the JS GUI itself and not seeing the stereo really adding the L and R...
|
Yeah - I apologise for a few hiccups with recent updates. It's mainly with backwards compatibility with older versions where you may have created strips or had projects saved.
Whenever I change or add new data to be saved and loaded - it plays havoc with existing projects that do not have that data in the save file. I can of course make it survive and default that data if it's not there - but it can be fiddly and I don't always think of each and every case.
Hopefully the latest version is not too bad - but if it is you could try reverting to an older version - but if that doesn't work you may need to start again or report the errors and wait for me to fix the problem :/
|
|
|
10-23-2016, 04:59 PM
|
#345
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Quote:
Originally Posted by hopi
|
Thanks for these - had a quick look at some of the image files - and they look great! Will be very useful
|
|
|
10-23-2016, 06:19 PM
|
#346
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,167
|
It was ME causing all the delays ...
But I'm happy to report that lb0 has corrected the issue, and now I'm back to play
I've been following the thread, and hope to soon check out the talk of 'meters'.
If I follow correctly, the talk of discrepancy between a single and double meter ... there would be a gain value difference of +3 dB going to the single [mono] meter. I should know that stuff ... but I will check my sources.
Anyway ... I need to catch-up on the latest here. Going to check out the meter posting from Hopi.
To Hopi: I got the email, but there was no attachment included. But I sent you an email from an earlier message.
onward to testing.
|
|
|
10-23-2016, 07:01 PM
|
#347
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
darn OK RJ will send it again in just a moment
https://***************/i/pnEai9cMg
damn that url don't work in my own browser K-Meleon... maybe in yours? or maybe imageshack is broken?
hell it works in Palemoon...
Last edited by hopi; 10-23-2016 at 07:10 PM.
|
|
|
10-23-2016, 08:22 PM
|
#348
|
Human being with feelings
Join Date: Apr 2010
Location: Turkey/Istanbul
Posts: 1,820
|
Hi,
this 4th (and much proper i guess) "Thank You!" video demonstration
also thanks to FSCapture there is no video choppiness anymore.
https://www.youtube.com/watch?v=9Fh1LWJn1Rg
Thank you so much!
|
|
|
10-23-2016, 09:35 PM
|
#349
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,167
|
Quote:
Originally Posted by hopi
darn OK RJ will send it again in just a moment
https://***************/i/pnEai9cMg
damn that url don't work in my own browser K-Meleon... maybe in yours? or maybe imageshack is broken?
hell it works in Palemoon...
|
AHHHH it was there ... apologies already send. :|
finding a transparent graphic embedded on a white background [my email] ... I was looking for just
a download attachment [ye old paperclip].
Got it, and now importing to see in Stripper.
Yours, embarrassingly ...
RJ
|
|
|
10-23-2016, 09:56 PM
|
#350
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,167
|
Question ...
What location in the Resource Folder do METERS go ??
thx
|
|
|
10-23-2016, 10:15 PM
|
#351
|
Human being with feelings
Join Date: May 2014
Location: Germany
Posts: 643
|
Quote:
Originally Posted by hopi
let's see if and how this version behaves
https://stash.reaper.fm/v/28699/VU%20%20NEXT.zip
previous one on stash is now deleted
please try it also with the JS vurmsmeter [ the one in post #284 ]
I don't understand something about that JS... see what you think
put meters on everything it provides...
L, R and Stereo
especially on the VU L,R, and Stereo [but do the RMS also plz]
the L and R on VU seem correct but the Stereo it clipping... I don't see why that should be since looking at the values in JS GUI, all three seem to be the same...
possible bug in the JS????
|
I tested VU next and it seems that calibration is still a little bit inaccurate if i compare readout values with needle position.
For accurate calibration you may use JSFX Tone Generator in order to get specific loudness levels.
|
|
|
10-23-2016, 10:17 PM
|
#352
|
Human being with feelings
Join Date: May 2014
Location: Germany
Posts: 643
|
VU/RMS Meter 1.0
Just in case ...
Code:
// This effect Copyright (C) 2016 and later TBProAudio
// License: GPL - http://www.gnu.org/licenses/gpl.html
desc: VU/RMS Meter 1.0 (TBProAudio)
slider1:0<-20,3,0.1>,VU Left (dB)
slider2:0<-20,3,0.1>,VU Right (dB)
slider3:0<-20,3,0.1>,VU Stereo (dB)
slider4:0<-60,0,0.1>,RMS Left (dB)
slider5:0<-60,0,0.1>,RMS Right (dB)
slider6:0<-60,0,0.1>,RMS Stereo (dB)
slider10:300<10,3000,1>Raise/Fall Time (ms)
slider11:-18<-18,0,1>-VU Offset (dB)
slider12:0<-18,0,1>-RMS Offset (dB)
slider21:0<-20,3,0.1>,-OUT:VU Left
slider22:0<-20,3,0.1>,-OUT:VU Right
slider23:0<-20,3,0.1>,-OUT:VU Stereo
slider24:0<-60,0,0.1>,-OUT:RMS Left
slider25:0<-60,0,0.1>,-OUT:RMS Right
slider26:0<-60,0,0.1>,-OUT:RMS Stereo
@init
function dround(x, n)
local (scale)
(
scale = pow(10.0, n);
floor(x * scale + 0.5) / scale;
);
function RMSQ_Reset()
(
this.runave = 0.0;
this.runmax = 0.0;
);
function RMSQ_Init(_rmswindow_s, _srate)
(
this.rmscoef = pow(10,-1.0/(_rmswindow_s * _srate));
this.Amp2DBFS = 6.0/log(2.0);
this.RMSQ_Reset();
);
function RMSQ_Process(_in0, _in1)
(
this.maxspl = (_in0 * _in0 + _in1 * _in1);
this.runave = this.maxspl + this.rmscoef * (this.runave - this.maxspl);
this.runmax = max(this.runmax, this.runave);
);
function RMSQ_Get()
(
sqrt(this.runave);
);
function RMSQ_Get_dB()
(
log(this.RMSQ_Get())*this.Amp2DBFS;
);
function RMSQ_GetMax()
(
sqrt(this.runmax);
);
function RMSQ_GetMax_dB()
(
log(this.RMSQ_GetMax())*this.Amp2DBFS;
);
function VUMeter_Reset()
(
this.runave = 0.0;
this.runmax = 0.0;
);
function VUMeter_Init(_rmswindow_s, _srate)
(
this.rmscoef = pow(10,-1.0/(_rmswindow_s * _srate));
this.vu_factor = $PI/4;
this.Amp2DBFS = 6.0/log(2.0);
this.VUMeter_Reset();
);
function VUMeter_Process(_in0, _in1)
(
this.maxspl = (abs(_in0) + abs(_in1));
this.runave = this.maxspl + this.rmscoef * (this.runave - this.maxspl);
this.runmax = max(this.runmax, this.runave);
);
function VUMeter_Get()
(
this.runave*this.vu_factor;
);
function VUMeter_Get_dB()
(
log(this.VUMeter_Get())*this.Amp2DBFS;
);
function VUMeter_GetMax()
(
this.runmax*this.vu_factor;
);
function VUMeter_GetMax_dB()
(
log(this.VUMeter_GetMax())*this.Amp2DBFS;
);
VUMeterS.VUMeter_Init(slider10/1000.0, srate);
VUMeterL.VUMeter_Init(slider10/1000.0, srate);
VUMeterR.VUMeter_Init(slider10/1000.0, srate);
RMSS.RMSQ_Init(slider10/1000.0, srate);
RMSL.RMSQ_Init(slider10/1000.0, srate);
RMSR.RMSQ_Init(slider10/1000.0, srate);
slider21 = slider1;
slider22 = slider2;
slider23 = slider3;
slider24 = slider4;
slider25 = slider5;
slider26 = slider6;
slider_automate(slider21);
slider_automate(slider22);
slider_automate(slider23);
slider_automate(slider24);
slider_automate(slider25);
slider_automate(slider26);
@slider
VUMeterS.VUMeter_Init(slider10/1000.0, srate);
VUMeterL.VUMeter_Init(slider10/1000.0, srate);
VUMeterR.VUMeter_Init(slider10/1000.0, srate);
RMSL.RMSQ_Init(slider10/1000.0, srate);
RMSR.RMSQ_Init(slider10/1000.0, srate);
RMSS.RMSQ_Init(slider10/1000.0, srate);
@block
slider1=dround(VUMeterL.VUMeter_Get_dB()-slider11,1);
slider2=dround(VUMeterR.VUMeter_Get_dB()-slider11,1);
slider3=dround(VUMeterS.VUMeter_Get_dB()-slider11,1);
slider4=dround(RMSL.RMSQ_Get_dB()-slider12,1);
slider5=dround(RMSR.RMSQ_Get_dB()-slider12,1);
slider6=dround(RMSS.RMSQ_Get_dB()-slider12,1);
slider21 = slider1;
slider22 = slider2;
slider23 = slider3;
slider24 = slider4;
slider25 = slider5;
slider26 = slider6;
slider_automate(slider21);
slider_automate(slider22);
slider_automate(slider23);
slider_automate(slider24);
slider_automate(slider25);
slider_automate(slider26);
@sample
VUMeterL.VUMeter_Process(spl0,spl0);
VUMeterR.VUMeter_Process(spl1,spl1);
VUMeterS.VUMeter_Process(spl0,spl1);
RMSL.RMSQ_Process(spl0,0);
RMSR.RMSQ_Process(spl1,0);
RMSS.RMSQ_Process(spl0,spl1);
|
|
|
10-23-2016, 10:51 PM
|
#353
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,167
|
Hi TBPro, so good to see you on this thread.
On a different note ... I wanted to ask.
I use your A/B Level Matching JSFX throughout my Mastering FX chain, basically 'bookend-ing' a list of NEBULA plugins. It is so helpful to quickly UNITY gain-stage through the chain.
Within LBX-Stripper, I've been able to start testing to include important A/B LM controls and readouts within the GUI design. Things are working at this early stage.
But there is one parameter that I've not been able to access. The RESET button that restarts the calculations when clicked.
Would it be at all possible to be able to get at that function [parameter], and thereby bring all important functions right on to the Stripper GUI ?
Thank-you for your comments, your excellent script ... and consideration.
thx
|
|
|
10-23-2016, 11:58 PM
|
#354
|
Human being with feelings
Join Date: May 2014
Location: Germany
Posts: 643
|
Quote:
Originally Posted by RJHollins
But there is one parameter that I've not been able to access. The RESET button that restarts the calculations when clicked.
|
I have just updated AB_LM JSFX, it has now a reset parameter. If set to 1 (On) it resets measurement and switches back automatically to 0 (Off).
Please let me know if this works for you. The updated package could be found on our download page.
|
|
|
10-24-2016, 12:51 AM
|
#355
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,167
|
Wow ... will check. Thanks TBProAudio !
LBX-Stripper ... KNOB question.
OK, I'm using KnobMan to build a knob. Unfortunately, I can't seem to get it displayed in LBX.
Maybe I'm confused as to which folder to locate files.
1. PNG generated graphics file of the knob, the other, is the .knob file created by knobman.
I see knob files in both the control folder and the knob folder.
BUT ... the file extensions are: .knb mine are .knob ?!?
I tried renaming the extension ... that crashed LBX-Stripper.
How are we suppose to do this ?
thanks
|
|
|
10-24-2016, 12:56 AM
|
#356
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Quote:
Originally Posted by timbralzoom
|
Love it!!
I wonder if you might get something out of the new cycle btn feature - as mentioned - it's not properly tested - it works for me though. Cannot guarantee it won't break old projects - but if you're running any version from yesterday - the latest is the most stable - and has the working cycle button. Would be great for jumping through preset lists and things...
|
|
|
10-24-2016, 12:58 AM
|
#357
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Quote:
Originally Posted by RJHollins
Wow ... will check. Thanks TBProAudio !
LBX-Stripper ... KNOB question.
OK, I'm using KnobMan to build a knob. Unfortunately, I can't seem to get it displayed in LBX.
Maybe I'm confused as to which folder to locate files.
1. PNG generated graphics file of the knob, the other, is the .knob file created by knobman.
I see knob files in both the control folder and the knob folder.
BUT ... the file extensions are: .knb mine are .knob ?!?
I tried renaming the extension ... that crashed LBX-Stripper.
How are we suppose to do this ?
thanks
|
Haha - just to annoy you...
place the pngs in controls/
Create a text file with .knb extension (nothing to do with knobman file) - copy one of the others in the folder - and rename. Then edit it - ensuring the details match that of your new control. There's only three parameters stored in the knb file. Just don't change any of the formatting or my script won't load it!
Last edited by lb0; 10-24-2016 at 01:35 AM.
|
|
|
10-24-2016, 01:30 AM
|
#358
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,167
|
ok ... got it working ... we have knob.
... and I never would have figured that out. :|
--- edit ---
Speaking of Knobs ...
1. When we make them, I see mention of 100 snapshots. If we used less [like say 31] would we have 'stepped' increments ? that is, snapping to a value, rather than contiguous ?
|
|
|
10-24-2016, 01:41 AM
|
#359
|
Human being with feelings
Join Date: Dec 2014
Posts: 417
|
lb0,
WOW! Cycle buttons rock! Working well here so far.
Thank you so much.
Have'nt tried yet, but is it possible to assign a stack of images to the cycle buttons? For example a stack of images of numbers that correlate to which state the button is in?
|
|
|
10-24-2016, 01:43 AM
|
#360
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,175
|
Quote:
Originally Posted by RJHollins
ok ... got it working ... we have knob.
... and I never would have figured that out. :|
--- edit ---
Speaking of Knobs ...
1. When we make them, I see mention of 100 snapshots. If we used less [like say 31] would we have 'stepped' increments ? that is, snapping to a value, rather than contiguous ?
|
Yes - hopefully. basically to decide which frame to display it takes the normalized parameter value (between 0 and 1) - multiplies by number of frames-1, and rounds the result. So 0 would display 0*(31-1) = frame 0 (always starts from 0), 0.5 would display 0.5*(31-1) = round(15) = frame 15, 1 would display 1*(31-1) = frame 30. In real terms frame 30 is actually frame 31, frame 15 is actually 16 etc (as the frames are counted 0-(framecount-1)...
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 12:19 PM.
|