ASPiK SDK
Loading...
Searching...
No Matches
Advanced Analog VU Meters

The extended CVuMeter object may also display analog style VU meters. You can download the graphics for these meters at https://www.willpirkle.com and you will need to know several key pieces of information. First, the graphics file consists of a strip animation, assembled the same way as the CAnimKnob object and you may use KnobMan to do that. There are a few assumptions that are made that you may work around if you need to.

The first is the location of the zero-VU frame in the strip animation. This is the index of the frame that has the VU meter's needle set at the 0VU mark. For some users, this will be the very last image (or frame), if the VU meter ends at 0VU, but if the meter's needle can go above 0VU, then it will be one of the inner images. In any event, you need to know the index of that image/frame.

Next you need to know the dimensions of the strip animation and the height of one image - these are the same as for the Animated Knob control, but must be encoded in the meter's custom-view field. The dimensions are included with the meters at https://www.willpirkle.com/Downloads/analogmeters.zip; see the readme.txt file included in that archive.

Custom View Encoding:
In order to use the meters in ASPiK, you need to assign a special custom-view name. The parentheses ( ) are omitted from the final custom-view field value.

Normal Meter:
AnalogMeterView_H(height-of-one-image)_Z9(index of 0dBVU frame)

Inverted Meter (works in reverse):
InvertedAnalogMeterView_H(height-of-one-image)_Z9(index of 0dBVU frame)

So, for the medanalogvumeter.png file, the height of one image as noted in the readme.txt file would be 65 pixels and the zero-dB image is located at index 52. To encode it in the custom-view, you would write:

AnalogMeterView_H65_Z52
or
InvertedAnalogMeterView_H65_Z52