Margrete RPC

BeatEvent

A time-signature change, anchored at a bar.

The active set of beat events defines how (bar, beat, offset) positions map to absolute ticks (see :func:margrete_rpc.chart.pos_to_tick).

Attributes

attributebarint

Zero-based bar index from which this signature applies.

attributebeats_per_barint

Numerator of the time signature (beats per measure).

attributebeat_unitint

Denominator of the time signature (note value of one beat, e.g. 4).

Functions

funcfrom_proto(cls, proto) -> BeatEvent
paramcls
paramprotomessages_pb2.BeatChangeEvent

Returns

margrete_rpc.chart.events.BeatEvent
functo_proto(self) -> messages_pb2.BeatChangeEvent
paramself

Returns

margrete_rpc._proto.margrete.rpc.v1.messages_pb2.margrete_rpc._proto.margrete.rpc.v1.messages_pb2.BeatChangeEvent
func__init__(self, bar, beats_per_bar, beat_unit) -> None
paramself
parambarint
parambeats_per_barint
parambeat_unitint

Returns

None

On this page