Here is a very simple solution, which should work (it definitely does for me).
I don't know HiTBiT-PA's skin and I know you've posted a link, but I didn't download it. But I think you should try first to add the following solution to your code, to see if it's working as you want.
Before posting my solution, I have to say, I'm not an expert of the AudioLevel plugin, which is a complex plugin. Here probably eclectic-tech could help you better, who has a lot of this kind of skins published, being an "expert" of this plugin, but I try however.
So, first you'll need a measure (in fact two measures, one for each channel, L and R) which returns the largest value achieved by the appropriate measures ([mLeft] and [mRight]) so far. Add the following measures to your code:
Code: Select all
[mLeftMax]
Measure=Calc
Formula=( Max ( mLeft, mLeftMax ))
[mRightMax]
Measure=Calc
Formula=( Max ( mRight, mRightMax ))
[mLeftMax] returns the largest value of the [mLeft] measure, while [mRightMax] does the same for the right channel.
After this, you need two meters which show the peaks for each channel. Add the following meters:
Code: Select all
[MeterLeftPeak]
Meter=Image
SolidColor=255,0,0
X=([Left:W]*[mLeftMax]+[Left:X])
Y=[Left:Y]
W=3
H=[Left:H]
DynamicVariables=1
[MeterRightPeak]
Meter=Image
SolidColor=255,240,0
X=([Right:W]*[mRightMax]+[Right:X])
Y=[Right:Y]
W=3
H=[Right:H]
DynamicVariables=1
[MeterLeftPeak] shows the peak of the left channel and [MeterRightPeak] shows the same for the right channel. I used red color for the peak of the left channel and yellow for the right channel, but you can change them, through the SolidColor options of the last two meters, or can use images, as you want. I saw the [PeakLeft] meter of your code (however I couldn't find a corresponding [PeakRight] meter), but not having your images, I don't think using a Bar meter for a such thing would be a good idea. That's why I finally added these Image meters.
I tried this solution using a specific image for the Bar meters, but I don't have yours, as I said above. I hope this solution will work well for you, but if it doesn't, please pack the whole config and upload it. This way I'll have the needed files, to can see what's the problem.