Fixed spectrogram checking on librosa 0.10.x (#2899)

This commit is contained in:
T145 2023-09-04 03:58:27 -07:00 committed by GitHub
parent b3b1555d82
commit cdc971ff74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -254,8 +254,8 @@
" wav_gen = AP.inv_spectrogram(spec)\n",
" wavs.append(wav_gen)\n",
" plt.subplot(len(values), 2, 2*idx + 2)\n",
" display.waveplot(wav, alpha=0.5)\n",
" display.waveplot(wav_gen, alpha=0.25)\n",
" display.waveshow(wav, alpha=0.5)\n",
" display.waveshow(wav_gen, alpha=0.25)\n",
" plt.title(\"{}={}\".format(attribute, val))\n",
" plt.tight_layout()\n",
" \n",
@ -288,7 +288,7 @@
},
"outputs": [],
"source": [
"compare_values(\"ref_level_db\", [2, 5, 10, 15, 20, 25, 30, 35, 40, 1000])"
"compare_values(\"ref_level_db\", [2, 5, 10, 15, 20, 25, 30, 35, 40])"
]
}
],