Skip to content

Commit

Permalink
small changes in notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
xserra committed Oct 19, 2021
1 parent 3e93dc3 commit 0db824a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions notebooks/E1-Python-and-sounds.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
"import sys\n",
"import os\n",
"import numpy as np\n",
"\n",
"# to use this notebook with colab uncomment the next line\n",
"# !git clone https://github.com/MTG/sms-tools.git\n",
"# and change the next line to sys.path.append('sms-tools/software/models/')\n",
"sys.path.append('../software/models/')\n",
"from utilFunctions import wavread, wavwrite"
]
Expand Down Expand Up @@ -311,7 +313,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.3"
"version": "3.9.0"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions notebooks/E2-Sinusoids-and-DFT.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"metadata": {},
"outputs": [],
"source": [
"# E2 - 2.2: Complete function the function gen_complex_sine()\n",
"# E2 - 2.1: Complete function the function gen_complex_sine()\n",
"\n",
"def gen_complex_sine(k, N):\n",
" \"\"\"Generate one of the complex sinusoids used in the DFT from its frequency index and the DFT lenght.\n",
Expand Down Expand Up @@ -376,7 +376,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.3"
"version": "3.9.0"
}
},
"nbformat": 4,
Expand Down
8 changes: 4 additions & 4 deletions notebooks/E3-Fourier-properties.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,15 @@
"def suppress_freq_dft_model(x, fs, N):\n",
" \"\"\"\n",
" Args:\n",
" x (np.array): input signal of length N (odd)\n",
" x (np.array): input signal of length M (odd size)\n",
" fs (float): sampling frequency (Hz)\n",
" N (int): FFT size\n",
" \n",
" Returns:\n",
" np.array: output signal with filtering (N samples long)\n",
" \"\"\"\n",
" N = len(x)\n",
" w = get_window('hamming', N)\n",
" M = len(x)\n",
" w = get_window('hamming', M)\n",
" outputScaleFactor = sum(w)\n",
" \n",
" ### Your code here\n"
Expand Down Expand Up @@ -375,7 +375,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.3"
"version": "3.9.0"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 0db824a

Please sign in to comment.