From ba1abd426443162bc454f398fa258f60d1804608 Mon Sep 17 00:00:00 2001 From: "O. Inha" <50331907+olaviinha@users.noreply.github.com> Date: Sun, 7 May 2023 20:54:15 +0300 Subject: [PATCH] Description --- SloppyUpsampler.ipynb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/SloppyUpsampler.ipynb b/SloppyUpsampler.ipynb index bd68eae..eceb262 100644 --- a/SloppyUpsampler.ipynb +++ b/SloppyUpsampler.ipynb @@ -19,10 +19,10 @@ "#Sloppy Upsampler    |   Audio upsampler   |   Github\n", "\n", "Poor man's upsampling & highs restoration by traditional methods: \n", - "- convert to 44.1 kHz with interpolation filter ffmpeg -dither_scale 1 -resampler 'swr' -filter_size 32 -phase_shift 10\n", - "- pitch up one octave with librosa resample type soxr_hq\n", - "- highpass above 10k\n", - "- mix on original with low volume (~ 10 %)" + "- convert to 44.1 kHz with a decent interpolation filter (`ffmpeg -dither_scale 1 -resampler 'swr' -filter_size 32 -phase_shift 10`)\n", + "- pitch up one octave with very high quality (`librosa soxr_vhq`)\n", + "- highpass above 10kHz\n", + "- mix on original with low volume (50% vol highpass on 80% total vol)" ] }, { @@ -117,7 +117,7 @@ " sr = fs\n", " else:\n", " data, sr = librosa.load(input, sr=None, mono=False)\n", - " octave_up = librosa.effects.pitch_shift(data, sr=sr, n_steps=12) * hipass_vol\n", + " octave_up = librosa.effects.pitch_shift(data, sr=sr, n_steps=12, res_type='soxr_vhq') * hipass_vol\n", " hipass = highpass_audio(octave_up, cutoff, fx, order)\n", " return data*mix_vol+hipass\n", "\n", @@ -130,6 +130,7 @@ "cell_type": "code", "execution_count": null, "metadata": { + "cellView": "form", "id": "Znu4P-Gtsdrr" }, "outputs": [], @@ -221,7 +222,7 @@ "colab": { "provenance": [], "mount_file_id": "1KsC80bOcnAJ9K5UfpsF_saOywtPg7qT8", - "authorship_tag": "ABX9TyOk8pJ8GXWxxomD83BXRyqp", + "authorship_tag": "ABX9TyOqC6Mfjnh5x68XQLxKITGc", "include_colab_link": true }, "kernelspec": {