Need feedback: Tool to restore high frequencies
Posted: Mon Jan 06, 2020 4:04 am
Hello!
The last weeks i tried a project that should restore high frequencies to audio files that are not high-res or just saved as mp3 recording. I got to a result now after some days of work and wanted to ask for feedback.
I am planning a release of this tool but not today, but I will show you a converted file.
Preview:
As you know restoring something that is not present anymore is quite impossible - it is that impossible that it took quite long to get an idea how to restore something. So, if you restore something it is not the original - the goal just was to get a better sound - better than low quality mp3 and also better if you do an up-sampling from 44,1kHz to 96kHz.
Somebody in the old SynthMaker forum said, you can change a cow into a burger but not a burger into a cow.
I may have to add something here: You still can make the burger look like a cow.
You can look down for some theories / ideas I did here.
I need feedback:
I would like to know if you like the result and if you may have additional ideas here.
I have taken an “open source track” I linke from “TheFatRat” – “Monody (feat. Laura Brehm)”
YouTube: https://www.youtube.com/watch?v=B7xai5u_tnk
I got this music as lossless wav and converted it to mp3 128 kbps (to here more restoring)
I also made an experiment to upsample it from 44100Hz/16bit to 96kHz/24bit
I made Multi-Track-MKV/MKA files – If you play the files with VLC-Media player you can go to “Audio -> Audio Track” and select the Audio Track you want.
Download Multi-Track-Audio: https://www.dropbox.com/s/acx0nsenjno48 ... D.zip?dl=0
Well if they all sound the same, you may take a look here: I did speed the track down to the half speed. (Here you will here the restoring operations):
Download Half-Speed Multi-Track-Audio: https://www.dropbox.com/s/i4uqwo26twqv5 ... D.zip?dl=0
Some theory behind this:
My Denon AVR (and also Maranz) has a restorer for lossy audio materials. As I wathed the spectrum what this thing does I found out, that they add high frequencies.
You all may have herd from harmonics that an additive OSC will generate. Those harmonics are calculated by a row series. So, the harmonics follow the same scheme each octave falling off a constant value in db. If you need more high frequencies you just generate more through the “Fourier series”.
Music Instruments operate most from 20Hz to 4200 Hz. Every frequency generated after 4200 Hz are harmonics and follow the scheme of the falling Fourier series.
So why not taking the last frequency were a song has the "fall off" because of samplerate, grabbing the last octave with a sinc-Kaiser filter and pitch it up with a phase-neutral pitch-shifter and applying some negative gain-offset. The result was that great that I got interested in this.
My words to Mp3:
Well, LAME mp3 for example uses this Fourier series to get down the data-rate. But a Mp3 file with 128kHz will lose frequencies especially all over 15-16kHz. I do not get more fare into this – if you really like listening to music you should not have mp3 under 320 kbps…
CD / Wave / Flac:
A CD-Audio with 44100 Hz would be able to store frequencies up to 22050 Hz. Most people hear till 18-20 kHz. So, you might think that this is enough. But listening to High-Res audio still sounds more interesting than CD-Audio (Or mp3…)
But getting real High-Res audio is quite difficult – I self had to complain at a high-res store that offered just simple upsampled 96kHz/24bit that came from the original CD with 44100 Hz.
And sometimes you do not get any better quality (Live-Concerts, low quality mastering, …) – so you need a restorer.
And yes it "works" and makes a little enhancement.
MP3 Spectrum normal speed:
44.1 kHz to 96 kHz half speed:
Kind Regards,
C.Hackl
Edit: corr. links.
Edit: Link for alpha release post:
viewtopic.php?f=3&t=36500
The last weeks i tried a project that should restore high frequencies to audio files that are not high-res or just saved as mp3 recording. I got to a result now after some days of work and wanted to ask for feedback.
I am planning a release of this tool but not today, but I will show you a converted file.
Preview:
As you know restoring something that is not present anymore is quite impossible - it is that impossible that it took quite long to get an idea how to restore something. So, if you restore something it is not the original - the goal just was to get a better sound - better than low quality mp3 and also better if you do an up-sampling from 44,1kHz to 96kHz.
Somebody in the old SynthMaker forum said, you can change a cow into a burger but not a burger into a cow.
I may have to add something here: You still can make the burger look like a cow.
You can look down for some theories / ideas I did here.
I need feedback:
I would like to know if you like the result and if you may have additional ideas here.
I have taken an “open source track” I linke from “TheFatRat” – “Monody (feat. Laura Brehm)”
YouTube: https://www.youtube.com/watch?v=B7xai5u_tnk
I got this music as lossless wav and converted it to mp3 128 kbps (to here more restoring)
I also made an experiment to upsample it from 44100Hz/16bit to 96kHz/24bit
I made Multi-Track-MKV/MKA files – If you play the files with VLC-Media player you can go to “Audio -> Audio Track” and select the Audio Track you want.
Download Multi-Track-Audio: https://www.dropbox.com/s/acx0nsenjno48 ... D.zip?dl=0
Code: Select all
Track 1: Lossless Original
Track 2: Mp3 128 kbps Original Codec
Track 3: Mp3 128 kbps reencoded to FLAC (To exclude a restoring by any media player)
Track 4: Restored Mp3 by the restorer-tool
Track 5: Upsampled 96kHz with no restoring
Track 6: Restored upsampling to 96kHzWell if they all sound the same, you may take a look here: I did speed the track down to the half speed. (Here you will here the restoring operations):
Download Half-Speed Multi-Track-Audio: https://www.dropbox.com/s/i4uqwo26twqv5 ... D.zip?dl=0
Code: Select all
Track 1: Half-Speed Lossless Original
Track 2: Half-Speed reencoded Mp3 (Yes mp3 is really that lossy)
Track 3: Half-Speed restored Mp3
Track 4: Half-Speed Upsampled without restoring to 96kHz
Track 5: Half-Speed 96kHz restoredSome theory behind this:
My Denon AVR (and also Maranz) has a restorer for lossy audio materials. As I wathed the spectrum what this thing does I found out, that they add high frequencies.
You all may have herd from harmonics that an additive OSC will generate. Those harmonics are calculated by a row series. So, the harmonics follow the same scheme each octave falling off a constant value in db. If you need more high frequencies you just generate more through the “Fourier series”.
Music Instruments operate most from 20Hz to 4200 Hz. Every frequency generated after 4200 Hz are harmonics and follow the scheme of the falling Fourier series.
So why not taking the last frequency were a song has the "fall off" because of samplerate, grabbing the last octave with a sinc-Kaiser filter and pitch it up with a phase-neutral pitch-shifter and applying some negative gain-offset. The result was that great that I got interested in this.
My words to Mp3:
Well, LAME mp3 for example uses this Fourier series to get down the data-rate. But a Mp3 file with 128kHz will lose frequencies especially all over 15-16kHz. I do not get more fare into this – if you really like listening to music you should not have mp3 under 320 kbps…
CD / Wave / Flac:
A CD-Audio with 44100 Hz would be able to store frequencies up to 22050 Hz. Most people hear till 18-20 kHz. So, you might think that this is enough. But listening to High-Res audio still sounds more interesting than CD-Audio (Or mp3…)
But getting real High-Res audio is quite difficult – I self had to complain at a high-res store that offered just simple upsampled 96kHz/24bit that came from the original CD with 44100 Hz.
And sometimes you do not get any better quality (Live-Concerts, low quality mastering, …) – so you need a restorer.
And yes it "works" and makes a little enhancement.
MP3 Spectrum normal speed:
44.1 kHz to 96 kHz half speed:
Kind Regards,
C.Hackl
Edit: corr. links.
Edit: Link for alpha release post:
viewtopic.php?f=3&t=36500