Skip to content

Commit

Permalink
fix in essentia AudioLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
genisplaja committed Nov 27, 2024
1 parent 0f3ed2a commit 64b3415
Showing 1 changed file with 40 additions and 6 deletions.
46 changes: 40 additions & 6 deletions webbook/resources/exploring-performance.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Hola"
"# Exploring performance\n",
"\n",
"In this demo, we "
]
},
{
Expand Down Expand Up @@ -43,17 +45,37 @@
"AUDIO_PATH = os.path.join(\"..\", \"audio\", \"demos\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We will work on a concert led by Dr. Brindha Manickavasakan, a well-known Carnatic music performer and Doctor which has been very much involved in our research efforts. This concert happened within the December Season 2023 in Chennai, India, at the well-known Arkay Convention Centre. Please note this recording in particular is part of the newly published Saraga Audiovisual Dataset (A. Shankar et al., 2024), which will be soon available for access through ``mirdata`` and ``compIAM``.\n",
"\n",
"For now, we will download this particular concert and explore a given rendition."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"remove-output"
]
},
"outputs": [],
"source": [
"url = \"https://drive.google.com/uc?id=1IMVRrYqBwz_lxpMCq1XwPCV8wrIoGdOu&export=download\"\n",
"output = os.path.join(AUDIO_PATH, \"dr-brindha-manickavasakan.zip\")\n",
"gdown.download(url, output, quiet=False) "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Once the audio is download, we can extract all the files and remove the .zip file."
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -81,7 +103,14 @@
"metadata": {},
"outputs": [],
"source": [
"rendition = \"Valapu Thala\""
"rendition = \"Valapu Thala\" # Selecting a rendition"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We use ``Essentia`` to first load the mixture audio of the concert. The function ``AudioLoader`` can be used to load an audio signal from a file path and return the signal plus some important technical information about it."
]
},
{
Expand All @@ -91,12 +120,17 @@
"outputs": [],
"source": [
"file_path = os.path.join(AUDIO_PATH, rendition + \".wav\")\n",
"audio_mix, _, _, _, _, _ = estd.AudioLoader(\n",
" filename=file_path, sampleRate=44100\n",
")()\n",
"audio_mix, _, _, _, _, _ = estd.AudioLoader(filename=file_path)()\n",
"audio_mix.shape"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Let's quickly listed to 30 seconds of this incredible performance!"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 64b3415

Please sign in to comment.