magenta / magenta-demos

Demonstrations of Magenta Models
Apache License 2.0
1.3k stars 416 forks source link

Cannot read property 'playNote' of undefined #25

Open vjasterix opened 6 years ago

vjasterix commented 6 years ago

When solo is off, I get no sound. So I looked in console:

Uncaught TypeError: Cannot read property 'playNote' of undefined at MagentaInstance.sendKeyDown (eval at (1.js:25), :97:23) at Keyboard.keyDown (eval at (1.js:37), :179:30) at KeyboardElement.eval (eval at (1.js:37), :94:10) at KeyboardElement.EventEmitter.emit (eval at (1.js:31), :81:17) at HTMLDivElement.eval (eval at (1.js:55), :146:12) sendKeyDown @ Magenta.js?3a80:71 keyDown @ Keyboard.js?3167:125 (anonymous) @ Keyboard.js?3167:60 EventEmitter.emit @ events.js?7c71:81 (anonymous) @ Element.js?74ca:111 Magenta.js?3a80:75 Uncaught TypeError: Cannot read property 'stopNote' of undefined at MagentaInstance.sendKeyUp (eval at (1.js:25), :102:23) at Keyboard.keyUp (eval at (1.js:37), :201:30) at KeyboardElement.eval (eval at (1.js:37), :98:10) at KeyboardElement.EventEmitter.emit (eval at (1.js:31), :81:17) at HTMLDivElement.eval (eval at (1.js:55), :152:12)

vjasterix commented 6 years ago

Also the rnn's do not appear to have downloaded

vjasterix commented 6 years ago

File "maybe_download_mags.py", line 15 print 'File %s already present' % mag_file ^ SyntaxError: Missing parentheses in call to 'print' bash: midi_clock: command not found bash: magenta_midi: command not found bash: magenta_midi: command not found

DWitol commented 6 years ago

I am facing the same problems but I can help with the RNN's. You need to use Python 2.7 for the maybe_download_mags.py portion to work. You could also edit the file to add () around all the print statements. (There are only 2 in the program) If you have any luck fixing the bash commands not found please add it here. I would appreciate it.