Skip to content

Commit

Permalink
deploy: 3f202ff
Browse files Browse the repository at this point in the history
  • Loading branch information
genisplaja committed Apr 19, 2024
1 parent ce789e6 commit d50f347
Show file tree
Hide file tree
Showing 12 changed files with 177 additions and 152 deletions.
Binary file added _images/compiam_31_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed _images/compiam_32_1.png
Binary file not shown.
File renamed without changes
11 changes: 2 additions & 9 deletions _sources/introduction/compiam.ipynb
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -386,7 +379,7 @@
"our_track = saraga_tracks[\"109_Sri_Raghuvara_Sugunaalaya\"]\n",
"\n",
"# Predict!\n",
"predicted_pitch = ftanet_carnatic.predict(our_track.audio_path, out_step=0.01)"
"predicted_pitch = ftanet_carnatic.predict(our_track.audio_path, out_step=0.005)"
]
},
{
Expand Down Expand Up @@ -428,7 +421,7 @@
"audio, sr = our_track.audio\n",
"\n",
"# Plotting waveform\n",
"pitch_frames = int(segment_in_seconds * ftanet_carnatic.sample_rate * 0.01)\n",
"pitch_frames = int(segment_in_seconds * ftanet_carnatic.sample_rate * 0.005)\n",
"plot_pitch(\n",
" pitch=predicted_pitch[:pitch_frames, 1],\n",
" times=predicted_pitch[:pitch_frames, 0],\n",
Expand Down
14 changes: 3 additions & 11 deletions _sources/melodic_analysis/tonic-identification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"import importlib.util\n",
"if importlib.util.find_spec('compiam') is None:\n",
" ## Bear in mind this will only run in a jupyter notebook / Collab session\n",
" %pip install compiam\n",
" %pip install git+git://github.com/MTG/compIAM.git\n",
"import compiam\n",
"\n",
"# Import extras and supress warnings to keep the tutorial clean\n",
Expand Down Expand Up @@ -93,11 +93,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": [
"remove-output"
]
},
"metadata": {},
"outputs": [],
"source": [
"%pip install essentia"
Expand All @@ -106,11 +102,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": [
"remove-output"
]
},
"metadata": {},
"outputs": [],
"source": [
"# Importing the tool\n",
Expand Down
9 changes: 3 additions & 6 deletions _sources/rhythmic_analysis/meter_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"import importlib.util\n",
"if importlib.util.find_spec('compiam') is None:\n",
" ## Bear in mind this will only run in a jupyter notebook / Collab session\n",
" %pip install compiam\n",
" %pip install git+git://github.com/MTG/compIAM.git\n",
"import compiam\n",
"\n",
"# Import extras and supress warnings to keep the tutorial clean\n",
Expand All @@ -32,10 +32,7 @@
"import IPython.display as ipd\n",
"\n",
"import warnings\n",
"warnings.filterwarnings('ignore')\n",
"\n",
"import logging\n",
"logging.basicConfig(level=logging.WARNING)\n"
"warnings.filterwarnings('ignore')\n"
]
},
{
Expand Down Expand Up @@ -187,7 +184,7 @@
"track = cmr.load_tracks()[\"10001\"]\n",
"audio, sr = track.audio\n",
"ipd.Audio(\n",
" data=audio[:10*sr],\n",
" data=audio[:, :10*sr],\n",
" rate=sr\n",
")"
]
Expand Down
6 changes: 3 additions & 3 deletions introduction/compiam.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions melodic_analysis/exploring-raga.html
Original file line number Diff line number Diff line change
Expand Up @@ -1434,14 +1434,14 @@ <h3>3.1 Predominant pitch extraction<a class="headerlink" href="#predominant-pit
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-04-19 15:05:40.413042: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library &#39;libcudart.so.11.0&#39;; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/cv2/../../lib64:
2024-04-19 15:05:40.413071: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-04-19 16:49:17.502058: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library &#39;libcudart.so.11.0&#39;; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/cv2/../../lib64:
2024-04-19 16:49:17.502083: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-04-19 15:05:41.601709: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library &#39;libcuda.so.1&#39;; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/cv2/../../lib64:
2024-04-19 15:05:41.601736: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
2024-04-19 15:05:41.601759: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (fv-az1432-143): /proc/driver/nvidia/version does not exist
2024-04-19 15:05:41.601939: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-04-19 16:49:18.739634: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library &#39;libcuda.so.1&#39;; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/cv2/../../lib64:
2024-04-19 16:49:18.739661: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
2024-04-19 16:49:18.739679: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (fv-az979-882): /proc/driver/nvidia/version does not exist
2024-04-19 16:49:18.739860: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
</pre></div>
</div>
Expand Down Expand Up @@ -1729,7 +1729,27 @@ <h3>3.2 Visualising predominant pitch<a class="headerlink" href="#visualising-pr
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>{54.997834212038505: &#39;R2&#39;,
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>{82.40364421278775: &#39;D2&#39;,
164.8072884255755: &#39;D2&#39;,
329.614576851151: &#39;D2&#39;,
659.229153702302: &#39;D2&#39;,
1318.458307404604: &#39;D2&#39;,
87.30361988416256: &#39;N2&#39;,
174.60723976832512: &#39;N2&#39;,
349.21447953665023: &#39;N2&#39;,
698.4289590733005: &#39;N2&#39;,
1396.857918146601: &#39;N2&#39;,
58.268175617345825: &#39;G2&#39;,
116.53635123469165: &#39;G2&#39;,
233.0727024693833: &#39;G2&#39;,
466.1454049387666: &#39;G2&#39;,
932.2908098775332: &#39;G2&#39;,
48.9975: &#39;S&#39;,
97.995: &#39;S&#39;,
195.99: &#39;S&#39;,
391.98: &#39;S&#39;,
783.96: &#39;S&#39;,
54.997834212038505: &#39;R2&#39;,
109.99566842407701: &#39;R2&#39;,
219.99133684815402: &#39;R2&#39;,
439.98267369630804: &#39;R2&#39;,
Expand All @@ -1739,31 +1759,11 @@ <h3>3.2 Visualising predominant pitch<a class="headerlink" href="#visualising-pr
261.6152630187851: &#39;M1&#39;,
523.2305260375701: &#39;M1&#39;,
1046.46105207514: &#39;M1&#39;,
87.30361988416256: &#39;N2&#39;,
174.60723976832512: &#39;N2&#39;,
349.21447953665023: &#39;N2&#39;,
698.4289590733005: &#39;N2&#39;,
1396.857918146601: &#39;N2&#39;,
73.4133009992652: &#39;P&#39;,
146.8266019985304: &#39;P&#39;,
293.6532039970608: &#39;P&#39;,
587.3064079941216: &#39;P&#39;,
1174.6128159882435: &#39;P&#39;,
82.40364421278775: &#39;D2&#39;,
164.8072884255755: &#39;D2&#39;,
329.614576851151: &#39;D2&#39;,
659.229153702302: &#39;D2&#39;,
1318.458307404604: &#39;D2&#39;,
48.9975: &#39;S&#39;,
97.995: &#39;S&#39;,
195.99: &#39;S&#39;,
391.98: &#39;S&#39;,
783.96: &#39;S&#39;,
58.268175617345825: &#39;G2&#39;,
116.53635123469165: &#39;G2&#39;,
233.0727024693833: &#39;G2&#39;,
466.1454049387666: &#39;G2&#39;,
932.2908098775332: &#39;G2&#39;}
1174.6128159882435: &#39;P&#39;}
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -2202,7 +2202,7 @@ <h4>Fixing tonic errors in folded plots<a class="headerlink" href="#fixing-tonic
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7f99d00d9c70&gt;]
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7fa6f1f74190&gt;]
</pre></div>
</div>
<img alt="../_images/exploring-raga_110_1.png" src="../_images/exploring-raga_110_1.png" />
Expand Down Expand Up @@ -2319,7 +2319,7 @@ <h4>Fixing tonic errors in folded plots<a class="headerlink" href="#fixing-tonic
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7f99d00066d0&gt;]
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7fa6f1be3e50&gt;]
</pre></div>
</div>
<img alt="../_images/exploring-raga_120_1.png" src="../_images/exploring-raga_120_1.png" />
Expand Down Expand Up @@ -2668,8 +2668,8 @@ <h3>3.5 Pitch density across rāga<a class="headerlink" href="#pitch-density-acr
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Rītigauḷa: {&#39;R2&#39;, &#39;M1&#39;, &#39;P&#39;, &#39;N2&#39;, &#39;D2&#39;, &#39;S&#39;, &#39;G2&#39;}
Bhairavi: {&#39;R2&#39;, &#39;M1&#39;, &#39;N2&#39;, &#39;P&#39;, &#39;D2&#39;, &#39;S&#39;, &#39;G2&#39;, &#39;D1&#39;}
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Rītigauḷa: {&#39;D2&#39;, &#39;N2&#39;, &#39;G2&#39;, &#39;S&#39;, &#39;R2&#39;, &#39;M1&#39;, &#39;P&#39;}
Bhairavi: {&#39;D2&#39;, &#39;N2&#39;, &#39;G2&#39;, &#39;S&#39;, &#39;R2&#39;, &#39;P&#39;, &#39;M1&#39;, &#39;D1&#39;}
</pre></div>
</div>
</div>
Expand Down
131 changes: 128 additions & 3 deletions melodic_analysis/tonic-identification.html

Large diffs are not rendered by default.

37 changes: 0 additions & 37 deletions reports/tonic-identification.log

This file was deleted.

55 changes: 5 additions & 50 deletions rhythmic_analysis/meter_analysis.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit d50f347

Please sign in to comment.