RawNote
A note as a raw protobuf tree: a :class:NoteInfo plus child notes.
This is the low-level model used when an edit is opened with raw_notes=True and the
target of :meth:Note.to_raw. Long notes are represented as a begin node with joint
children. The convenience properties (type, t, x, w, ...) read and
write the underlying :attr:info. Prefer the typed notes for authoring; use
:class:R to build raw trees by hand.
Attributes
attributeinfoNoteInfo= field(default_factory=NoteInfo)The note's fields (:class:NoteInfo).
attributechildrenlist[RawNote]= field(default_factory=list)Child raw notes (e.g. a long note's joints, or an attached air).
attribute_idint | None= field(default=None)attributetypeNoteTypeThe note type (:class:NoteType); view of info.type.
attributelong_attrLongAttrattributedirDirectionattributeex_attrExAttrattributevariation_idColorattributexintattributeoption_valueintattributetintattributepPositionattributewintattributehintattributetilintattribute__repr__= __str__Functions
func__str__(self) -> strparamselfReturns
strfuncchild(self, *children) -> RawNoteSet this note's children to children and return self (for chaining).
paramselfparamchildrenRawNote= ()Returns
margrete_rpc.chart.notes.raw.RawNotefuncfrom_proto(cls, proto) -> RawNoteBuild a :class:RawNote (and its subtree) from a protobuf Note.
paramclsparamprotomessages_pb2.NoteReturns
margrete_rpc.chart.notes.raw.RawNotefuncto_proto(self) -> messages_pb2.NoteSerialize this note (and its subtree) to a protobuf Note.
paramselfReturns
margrete_rpc._proto.margrete.rpc.v1.messages_pb2.margrete_rpc._proto.margrete.rpc.v1.messages_pb2.Notefunc__init__(self, info=NoteInfo(), children=list(), _id=None) -> NoneparamselfparaminfoNoteInfo= NoteInfo()paramchildrenlist[RawNote]= list()param_idint | None= NoneReturns
None