From 981c197bef18230cfbc41476fc602856fc8ede9a Mon Sep 17 00:00:00 2001
From: Ashutosh Garg <45094210+ashutosh321607@users.noreply.github.com>
Date: Thu, 11 Feb 2021 00:12:42 +0530
Subject: [PATCH] just-for-fun
---
Music_Genre_Classification.ipynb | 68 ++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
create mode 100644 Music_Genre_Classification.ipynb
diff --git a/Music_Genre_Classification.ipynb b/Music_Genre_Classification.ipynb
new file mode 100644
index 0000000..73e9647
--- /dev/null
+++ b/Music_Genre_Classification.ipynb
@@ -0,0 +1,68 @@
+{
+ "nbformat": 4,
+ "nbformat_minor": 0,
+ "metadata": {
+ "colab": {
+ "name": "Music-Genre-Classification.ipynb",
+ "provenance": [],
+ "authorship_tag": "ABX9TyP2DxvypbZ/lJZIf4buX3+M",
+ "include_colab_link": true
+ },
+ "kernelspec": {
+ "name": "python3",
+ "display_name": "Python 3"
+ }
+ },
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "id": "view-in-github",
+ "colab_type": "text"
+ },
+ "source": [
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "id": "IvpkMvZ7Ll0T"
+ },
+ "source": [
+ "# Music Genre Classification"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "metadata": {
+ "colab": {
+ "base_uri": "https://localhost:8080/",
+ "height": 129
+ },
+ "id": "w75KASilP1Ap",
+ "outputId": "2d3c4335-31ee-45e7-e279-490b9675b9a4"
+ },
+ "source": [
+ "import librosa\n",
+ "audio_path = '../T08-violin.wav'\n",
+ "x , sr = librosa.load(audio_path)\n",
+ "print(type(x), type(sr))\n",
+ " \n",
+ "print(x.shape, sr)\n",
+ "(396688,) 22050"
+ ],
+ "execution_count": 1,
+ "outputs": [
+ {
+ "output_type": "error",
+ "ename": "SyntaxError",
+ "evalue": "ignored",
+ "traceback": [
+ "\u001b[0;36m File \u001b[0;32m\"\"\u001b[0;36m, line \u001b[0;32m5\u001b[0m\n\u001b[0;31m \u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file