How to create and animate a signal/gain custom meter in GUI?
-
@christoph-hart said in How to create and animate a signal/gain custom meter in GUI?:
Master Chain
Thank you.
I am having troubles getting your code to work. What am I looking for to get the following line setup correctly?
// Grab the module you want to meter
const var MasterChain = Synth.getChildSynth("Master Chain");I have a Sampler titled KICK, which I want to meter. Is this what I need to specify and if so, what would the exact syntax be? If not, where from do I get the correct name for a particular Sampler?
I am getting an error that getCurrentLevel is Uknown function.
Thank you.
-
Hey guys,
after spending several hours banging my head on this, I am no closer to making this work than I was at the beginning. I read and re-read everything several times.I messed around with both the paint technique and filmstrip, unsuccessfully. At this stage I prefer to animate a filmstrip, as it will be a lot more straightforward for me.
I made a slider and assigned a filmstrip to it. It displays as it should and it works by dragging it with the mouse. It is located on the main canvas.
Now the challenge for me is to make it "dance" by reacting to incoming level. It doesn't need a separate left/right. Just the overall level. It is not connected to processorid or parameterid.Here are the specific labels I used:
Sampler- KICK
slider with the meter filmstrip- Knob13I'd like to see the "Knob13" display the signal output level of Sampler KICK.
@Christoph-Hart :folded_hands_light_skin_tone: Can you please give me code that I can copy+paste to see this magic happen? :folded_hands_light_skin_tone:
Once I have this one channel going, I will be able to easily replicate to the other channels.
Thanks so much!
-
@gorangrooves You might need to change the response of the slider. In the same properties window as you load in the filmstrip, under component specific properties, try selecting something like min -100, max 0. See if that helps. Might be an idea to export where you're up to as a snippet and post here if you're still having no joy.
-
Make sure you've got it set to vertical in the same section too, not knob.
-
@duno I can not make the filmstrip show up if I set the style as vertical. It only shows up when used within Knob style.
While I was able to see your example from hisesnippet, I wasn't able to get anything connected properly for my needs.
My brain hurts at this point -
Ha, I know how you feel! Gave you some bad info there, sorry. Keep it on knob for filmstrip, but try taking the min / max down to -100 to 0 or something, and play with the middle position too. And make sure all your components and modules that you're wanting to control are declared, and nothings spelt wrong, ie space where there shouldn't be one, or caps etc. If you right click on them you can copy a variable direct from there, and just paste it into your script.
Doesn't take long to wrap your head around whats going on, just look through as many snippets and demos as you can to see how everything connected.
-
Hey guys,
So, I managed to get a single meter working successfully. Thank you @A-Former-User and @Christoph-Hart !I am struggling with replicating that single meter for other channels (samplers). I get the following error message:
Interface:! Line 62, column 11: const var declaration must be on global level
The line in question is this:
const var StereoLevel = Content.getComponent("SnareMeter");
The working slider id is KickMeter and the sampler ID I am metering is KICK.
I created a new slider with ID SnareMeter and it is supposed to meter sampler id
SNARE.Here is the full script I tweaked and changed labels to make a bit clearer as to what is what.
// KICK METER const var StereoLevel = Content.getComponent("KickMeter"); const var masterMeterLeft = Synth.getChildSynth("KICK"); const var masterMeterRight = Synth.getChildSynth("KICK"); // Use this variable to update the change rate // (0.7 - 0.99, higher = slower decay) const var DECAY_RATE = 0.9; var PeakL = 0; var PeakR = 0; const var t = Engine.createTimerObject(); t.setTimerCallback(function() { var PeakL = masterMeterLeft.getCurrentLevel(1); var PeakR = masterMeterRight.getCurrentLevel(0); PeakL = Engine.getDecibelsForGainFactor(PeakL); PeakR = Engine.getDecibelsForGainFactor(PeakR); // Combine left and right channels to measure the sum var peak = Math.max(PeakL, PeakR); StereoLevel.setValue(peak); }); t.startTimer(50); }
-
What do I need to change in order to get it working for subsequent channels (samplers)?
-
As you can see, I used const DECAY_RATE, but the following line of code in the script, later on, did not work:
this.data.currentLevel *= DECAY_RATE;
What needs to be changed here for decay to work properly?
Thanks a lot!
-
-
This isn't the full script, you are opening a bracket somewhere before that.
The error you are seeing is created like this:
if(something) { const var s = 2; // const var must be on global level } const var s2 = ok;
The reason for this is that a const variable slot MUST be declared and can't be depending on the value of
something
.Also there are a few irregularities - you're creating a timer object which has no
data
property.I'd recommend you post a full snippet with the thing you want to show - it's impossible to spot the error with a partial code example like this.
-
@Christoph-Hart Thanks, Christoph.
I tried declaring the value of SnareMeter, but as soon as I try to do it, I get the same error that constant must be declared on a global level.I exported my script panel as a HISE snippet:
HiseSnippet 7616.3oc68zzbabbkCH0HIBSZSY6MUJW6V6DlOL3FQR7E+xpTL.A.onM+J.TNQUVE4g.M.FKfYPMy.JRqnXkrNwaR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8vvymgLcgSsOkKFExzy1gLs3KXgLEBVyRQQSdB87WJJZxnnIihlLJZxmgil7IAV5pM9Z91FSOTsgYloYgLsqLyvBYFWYlkExrtxbQVHWzUlKwB4RtxbYVHW1UlqvB4JtxbUVHW0MSvAKJkGdjSljatTJGroTt4SobvnR4lSkxAqJkadUJGLqT83VbsEqppbmpJx5pJTM1KSSAzUkEoSo.+13uERwcnXqtl81ZCgpbmpUQigyA8x7GhzgFhLgFhrgFhECMDKEZHVNzPrxI.AFWX9t5JsMFZDRXuRFlShUpm4jw49+gEQizO
Everything shows as compiled OK, until I try to declare a new element. Please let me know what I need to add/change and where exactly. I look forward to your findings.
Thank you so much! -
@Christoph-Hart said in How to create and animate a signal/gain custom meter in GUI?:
var invPeak = Math.range(1.0 - this.data.currentLevel, 0.0, 1.0);
HiseSnippet 1289.3oc2W0raaaDDdojXPkRcPSQJPORXzCzEoNRtIosHH0xV+DHD+ifksZ7IiUjqj1ZxcYWtTwpAFnuF4VeM5M+HzGidLm5U2YWRIR6xnlJ2VTDBYXrye629wYlcXWA2gDFxEHixGNMffL9PydSYxwMFioLTmlJAGRBkT1Hq9Gg1dZ.NLj3hLLJ9LkEFkKgzOuYyswdXlCIUDB0mScH6P8oxToA0eN0yqM1kbH0Oi0OrdGGNqA2iGAnonYUT.14T7HxdXkYELQF2pkKUxE8jXIIDYTZat6zdi4ujEaeeZHcfGQsnFpGDnXws4dtJDqjhZLl541c1oNDgLL6lxAEi4f6YtK0kNWdJW7QZEVodjkOLJrH3UKK7plK7plG7Lx.uRwv6tl8bDz.YpFE1tsYGljHFhgWAYgUrsnB+VAyFbvBlbce7oj1BXwbOreb0p225QUqt1SVoxJUfWDgRqIXA7N25oVy7aDQ1f6GvYvB6U6ezpW25cwgP.07E3lNQR6j5ToWYuZZxTh2Y8uYqFac7IGr0gs.2qt92TCrPI2IRnET8Z6mDj1hMhxHq6HH.sqRoD6O36INRaU3kqGRjZgMvddCfDJ6gQLGIkyrWqxqpTVEkIPTx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