intro2musictech icon indicating copy to clipboard operation
intro2musictech copied to clipboard

00-Hello 这节

Open wanbing0610 opened this issue 2 years ago • 1 comments

换了台新win电脑,抛弃mac m1, 继续音乐入门之路; 我是遵循教程,通过pip安装的第三方包,如果通过这种方式安装librosa则是最新版本; 在00-Hello.ipynb这个文件下中,librosa.display.waveplot(x, sr, alpha=0.8) 这段代码,其中waveplot函数已经过时,报错'AttributeError: module 'librosa.display' has no attribute 'waveplot''; image

需改成librosa.display.waveshow(x, sr=sr); image

wanbing0610 avatar Oct 07 '23 08:10 wanbing0610

这节是好几年前写的,当时基于librosa 0.6.1版本(requirements.txt里有版本依赖声明),如果你使用最新版的包,请以最新版本为主。

beiciliang avatar Oct 08 '23 20:10 beiciliang