NameError: name 'note' is not defined. Did you mean: 'None'?

25 views
Skip to first unread message

楊宗芳

unread,
Apr 21, 2024, 1:39:12 PMApr 21
to music21
Hi, I'm getting these errors and don't really know why, and also it happens when I use corpus. I'm new to python and this toolkit, please tell me did I install it wrongly or missing some essential component
螢幕擷取畫面 2024-04-22 013322.png螢幕擷取畫面 2024-04-22 013314.png

Jingxin Xu

unread,
Apr 23, 2024, 1:39:04 AMApr 23
to music21
Hello!

you just need to use music21.note.Note(). same for corpus. See https://stackoverflow.com/a/2360808/24275821 for more info.

or if you find music21 too long you can do aliasing, which is import music21 as m then m.note.Note(). Or from music 21 import note, corpus. 
Reply all
Reply to author
Forward
0 new messages