NoteInfo
The full field set of a single note node, shared by typed notes and :class:RawNote.
This is the low-level bag of attributes (type, geometry, direction, color, timing) that
backs every note. Typed notes expose the relevant fields as their own properties;
construct :class:NoteInfo directly only for raw/manual work. Timing accepts a tick
t or a :data:Position p; option_value accepts an :data:DivisionLike.
Attributes
attributetype= typeattributelong_attr= long_attrattributeex_attr= ex_attrattributex= xattributew= wattributeh= hattributetil= tilattributedirectionDirectionattributevariation_idColorattributetintattributepPositionTiming as a (bar, beat, offset) :class:Position; the read-only view of t.
attributeoption_valueintattribute__repr__= __str__Functions
func__init__(self, type=NoteType.UNKNOWN, long_attr=LongAttr.NONE, direction=Direction.UP, ex_attr=ExAttr.NONE, variation_id=Color.DEFAULT, x=0, w=0, h=DEFAULT_H, t=0, til=0, option_value=0, *, p=None) -> NoneparamselfparamtypeNoteType= NoteType.UNKNOWNparamlong_attrLongAttr= LongAttr.NONEparamdirectionDirectionValue | str= Direction.UPparamex_attrExAttr= ExAttr.NONEparamvariation_idColorLike | int= Color.DEFAULTparamxint= 0paramwint= 0paramhint= DEFAULT_Hparamtint= 0paramtilint= 0paramoption_valueint | DivisionLike= 0parampPositionLike | None= NoneReturns
Nonefunccopy(self, **changes) -> NoteInfoReturn a copy with any given fields overridden by keyword.
paramselfparamchangesAny= {}Returns
margrete_rpc.chart.notes.types.NoteInfofunc__eq__(self, other) -> boolparamselfparamotherobjectReturns
boolfunc__str__(self) -> strparamselfReturns
str