create an audio meter in jitter
I wonder if it is possible to create something like the audio meter we have in max in jitter?
I have created a patch that responds to the volume input from the microphone. It will play different video in jitter as the input reaches a certain peak. Now I would like to add an audio meter/ volume bar on top of the video so that the users will be able to tell how much louder they have to be to activate the videos. I have been trying to visualise the volume level in jit but the closest thing I have got so far is jit.graph only, and I don't think it is not clear enough. I wonder if it is possible to create a volume visualisation like the audio meter in max itself in jitter?
Thanks
Maybe [jit.lcd].. or possibly a pixel shader using [jit.gl.pix]. Not necessarily a beginner project but certainly doable.
I suggest observing how the meter~ object does it. It measures peak amplitude of the incoming signal. (You can send it a single sample of 1 from the click~ object to verify that it measures peak rather than RMS.) It has 13 gray-or-colored rectangles, and it determines whether to show them in color based on a peak amplitude threshold for each. (See the patch here, which shows the threshold for each rectangle.) And it keeps the rightmost colored rectangle in its colored state for a certain amount of time after it would otherwise be reset to gray, to serve as a "peak hold" visualizer. You could try to replicate that by drawing colored rectangles in Jitter, with jit.lcd, for example.
Maybe a single indicator light in the corner of the video?