[gen] [sharing is barking]

Graham Wakefield's icon

I thought it would be fun to try and build a bark spectrum analyzer in gen~, as the foundation for some other stuff. I think I have the basic algorithm down, but I'm not 100% sure I have the math right. Any spectral analysis gurus out there able to take a look?

Thanks!

This is meant to go in a pfft~:

Max Patch
Copy patch and select New From Clipboard in Max.

vichug's icon

hey, i'm no guru at all, on the opposite was wondering what exactly is a bark analysis ; is it related to the bark scale https://en.wikipedia.org/wiki/Bark_scale ? so analyzing the energy of 25 bands of psychoacoustic interest dividing the frequency spectrum ?

Graham Wakefield's icon

Yes exactly -- producing the Bark scale coefficients from a spectrum. Sorry, 'bark analysis' is probably not proper terminology.

Graham Wakefield's icon

I guess Mel scale could be interesting too. They seem to be fairly similar. Mainly I'm interested in a psychoacoustically based dimension reduction. 25 bands is a lot more manageable.

Chris Vik's icon

Hey Graham,

I've done a lot of work with bark scale spectrum analysis in gen~. I'm happy to pop the code up on GitHub, as I actually need a bit of help with certain parts of the project.

I'll have a look at your code when I get home.

Chris.

loadmess's icon

Hello Maxers,

I'm trying to port the bark scale analysis that comes with Gen~ examples to Jit.Gen.
Has a newbie I'm doing lots of things wrong for sure, so I think I reached a point were I need help from a Gen Guru.
If anyone could take a look at the patch and point me in a good direction I would be extremely grateful.

My ultimate goal here is to use Jit.Gen to do offline processing on audio signals.

gen~.bark.maxpat
Max Patch

pfft.bark.maxpat
Max Patch

Thank you in advance!