回答編集履歴

2

修正

2018/07/07 11:06

投稿

tachikoma
tachikoma

スコア3601

test CHANGED
@@ -12,9 +12,13 @@
12
12
 
13
13
  x = wf.readframes(wf.getnframes()*nchannels)
14
14
 
15
-
15
+ wf.close()
16
16
 
17
+
18
+
17
- wf.close()
19
+ # bytes arrayからnumpy.arrayに変換
20
+
21
+ x = np.frombuffer(x, dtype= "int16") / 32768.0
18
22
 
19
23
 
20
24
 

1

fix typo

2018/07/07 11:06

投稿

tachikoma
tachikoma

スコア3601

test CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  Lchannle = x[::2]
26
26
 
27
- Rchannle = x[::1]
27
+ Rchannle = x[1::2]
28
28
 
29
29
 
30
30