logoalt Hacker News

dupedtoday at 5:10 AM3 repliesview on HN

Are you making this up? What spectral analysis libraries or tools?

String instruments create similar harmonic series to horns, winds, and voice (because everything is a string in some dimension) and the major differences are in the spectral envelope, something that STFT tools are just ok at approximating because of the time/frequency tradeoff (aka: the uncertainty principle).

This is a very hard problem "in theory" to me, and I'm just above casually versed in it.


Replies

613styletoday at 5:26 AM

He's not making it up and there's no reason for that tone. Strings are more straightforward to isolate compared to vocals/horns/etc because they produce a near-perfect harmonic series in parallel lines in a spectrogram. The time/frequency tradeoff exists, but it's less of a problem for strings because of their slow attack.

You can look up HPSS and python libraries like Essentia and Librosa.

show 2 replies
jb1991today at 7:16 AM

If you look at the actual harmonics of a string and of horn, you will see how wrong you are. There is a reason why they sound different to the ear.

It’s because of this that you can have a relatively inexpensive synthesizer (not sample or PCM based) that does a crude job of mimicking these different instruments by just changing the harmonics.

show 1 reply
dleeftinktoday at 5:56 AM

I might misremember, but iZotope RX and Melodyne were pretty useful in this regard.