Skip to content

Commit 0a2509b

Browse files
committed
Fix mismatched notes length
from 17 to 3 + 13 retrieved by `len()`
1 parent e15fd1e commit 0a2509b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebooks/chapter11_image/07_synth.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@
111111
},
112112
"outputs": [],
113113
"source": [
114-
"notes = zip('C,C#,D,D#,E,F,F#,G,G#,A,A#,B,C'.split(','),\n",
115-
" 440. * 2 ** (np.arange(3, 17) / 12.))"
114+
"keys = 'C,C#,D,D#,E,F,F#,G,G#,A,A#,B,C'.split(',')\n",
115+
"notes = zip(keys, 440. * 2 ** (np.arange(3, 3 + len(keys)) / 12.))"
116116
]
117117
},
118118
{

0 commit comments

Comments
 (0)