VU meter audio signal break up

Ok thanks for confirming that, how do I convert this:
and this:
into .h and .cpp files?

With the rename command? Those are the contents of the .h and .cpp files. Just save them with the appropriate extension.