私は132300のエントリを持つ1次元配列yを持っています。
print y.ndim
私に1を与えます。
ここで、write( '440saw2000.wav'、 '44100'、'y')を使用すると、次のエラーメッセージが表示されます。
Traceback (most recent call last):
File "C:\Users\Matt\The Mathematics Of Digital Synthesizers\Scripts\filter.py", line 47, in <module>
write('440saw2000.wav', '44100', 'y')
File "C:\Python27\lib\site-packages\scipy\io\wavfile.py", line 161, in write
if data.ndim == 1:
AttributeError: 'str' object has no attribute 'ndim'
どうすればこれを解決できますか?
ありがとう。