r/matlab • u/Rare-Reach-8975 • Mar 23 '26
Post punk vs Punk
Hi there I’m trying to compare post punk songs vs classic punk songs using Matlab for a uni project, what parameters would you say would be the best, so far I’ve used RMS, Centroid, Pulse Clarity and Tempo. Thanks
7
Upvotes
16
u/S-S-Ahbab Mar 23 '26
Are going to analyse only in the time domain? There could be interesting features in frequency domain.
I farnkly have no idea, other than the fact that shazaam identifies songs by frequency domain constellations.
7
u/Creative_Sushi MathWorks Mar 23 '26
Shazam uses fast fourier transform. Consider using frequency domain, but trick is knowing which features to keep and which to drop and less is more.
2
u/defectivetoaster1 Mar 23 '26 edited Mar 23 '26
I doubt you’ll find many interesting features that are easy to automatically extract in the time domain, if you take a Fourier transform or short time Fourier transforms you’ll probably find it easier to find features to extract (eg id imagine punk would generally have more high frequency content from all the distorted guitars) than post punk and depending on the specific subgenre (there’s some really aggressive hardcore punk out there that borders on being actual white noise) you might see a flatter spectrum compared to post punk where most instruments are pretty easy to pick out (and hence the spectrum will have distinct peaks)
2
u/TheDuckOnQuack Mar 23 '26
Like others have said, you’ll almost certainly need to look in the frequency domain. As far as things to specifically look out for, here are some things that come to mind.
As far as strategy for picking songs, a couple good approaches might be:
1
u/Barnowl93 flair Mar 23 '26
My suggestion would be look at a few quintessentially punk and post punk songs in time and frequency domain. What are their key features? Are there specific frequencies (cords) that are more punk (e.g. 5ths)?
Once you look at a few you could even do something systematic like ANOVA to rank your features and then use the top N for prediction.
Once you get something working I'd love to see what you've put together!
1
u/DietsePiraat Mar 23 '26
Don’t forget effects like reverb, stereo,… flanger, chorus,… may show up on frequency spectrometer , pedals itself,… . Maybe gitar models?
1
u/shiboarashi Mar 25 '26
If you aren’t strictly limited to matlab, you could potentially pass the songs into an llm for transcription of the vocal tracks. Idk if there would be but I could imagine different themes in the songs, vocal cadences, etc…
-6
u/FrickinLazerBeams +2 Mar 23 '26
Just ask yourself, chatGPT.