The documentation suggests that either:
note "note text" as notename
classname .. notename
or
note as notename
note text
end note
classname .. notename
should produce a note attached to classname, however they produce a free-floating note with class "classname" linked to a second class named "notename".
(Tested with 7963)