|
32 | 32 | "- http://zafarrafii.com\n", |
33 | 33 | "- https://github.com/zafarrafii\n", |
34 | 34 | "- https://www.linkedin.com/in/zafarrafii/\n", |
35 | | - "- 01/19/21" |
| 35 | + "- 01/20/21" |
36 | 36 | ] |
37 | 37 | }, |
38 | 38 | { |
|
100 | 100 | "background_signal = repet.original(audio_signal, sampling_frequency)\n", |
101 | 101 | "foreground_signal = audio_signal-background_signal\n", |
102 | 102 | "\n", |
103 | | - "# Write the background and foreground signals\n", |
104 | | - "# repet.wavwrite(background_signal, sampling_frequency, \"background_signal.wav\")\n", |
105 | | - "# repet.wavwrite(foreground_signal, sampling_frequency, \"foreground_signal.wav\")\n", |
| 103 | + "Write the background and foreground signals\n", |
| 104 | + "repet.wavwrite(background_signal, sampling_frequency, \"background_signal.wav\")\n", |
| 105 | + "repet.wavwrite(foreground_signal, sampling_frequency, \"foreground_signal.wav\")\n", |
106 | 106 | "\n", |
107 | 107 | "# Compute the mixture, background, and foreground spectrograms\n", |
108 | 108 | "window_length = pow(2, int(np.ceil(np.log2(0.04*sampling_frequency))))\n", |
|
164 | 164 | }, |
165 | 165 | { |
166 | 166 | "cell_type": "code", |
167 | | - "execution_count": 1, |
| 167 | + "execution_count": 2, |
168 | 168 | "metadata": {}, |
169 | 169 | "outputs": [ |
170 | 170 | { |
|
260 | 260 | }, |
261 | 261 | { |
262 | 262 | "cell_type": "code", |
263 | | - "execution_count": 1, |
| 263 | + "execution_count": 3, |
264 | 264 | "metadata": {}, |
265 | 265 | "outputs": [ |
266 | 266 | { |
|
356 | 356 | }, |
357 | 357 | { |
358 | 358 | "cell_type": "code", |
359 | | - "execution_count": 1, |
| 359 | + "execution_count": 4, |
360 | 360 | "metadata": {}, |
361 | 361 | "outputs": [ |
362 | 362 | { |
|
452 | 452 | }, |
453 | 453 | { |
454 | 454 | "cell_type": "code", |
455 | | - "execution_count": 1, |
| 455 | + "execution_count": 5, |
456 | 456 | "metadata": {}, |
457 | 457 | "outputs": [ |
458 | 458 | { |
|
492 | 492 | "background_signal = repet.simonline(audio_signal, sampling_frequency)\n", |
493 | 493 | "foreground_signal = audio_signal-background_signal\n", |
494 | 494 | "\n", |
495 | | - "# # Write the background and foreground signals\n", |
496 | | - "# repet.wavwrite(background_signal, sampling_frequency, \"background_signal.wav\")\n", |
497 | | - "# repet.wavwrite(foreground_signal, sampling_frequency, \"foreground_signal.wav\")\n", |
| 495 | + "# Write the background and foreground signals\n", |
| 496 | + "repet.wavwrite(background_signal, sampling_frequency, \"background_signal.wav\")\n", |
| 497 | + "repet.wavwrite(foreground_signal, sampling_frequency, \"foreground_signal.wav\")\n", |
498 | 498 | "\n", |
499 | 499 | "# Compute the mixture, background, and foreground spectrograms\n", |
500 | 500 | "window_length = pow(2, int(np.ceil(np.log2(0.04*sampling_frequency))))\n", |
|
0 commit comments