Documentation
¶
Index ¶
- Variables
- type Note
- func (*Note) Descriptor() ([]byte, []int)deprecated
- func (x *Note) GetAccidental() accidental.Accidental
- func (x *Note) GetDots() uint32
- func (x *Note) GetEmbellishment() *embellishment.Embellishment
- func (x *Note) GetFermata() bool
- func (x *Note) GetLength() length.Length
- func (x *Note) GetMovement() *movement.Movement
- func (x *Note) GetPitch() pitch.Pitch
- func (x *Note) GetTie() tie.Tie
- func (x *Note) IsOnlyAccidental() bool
- func (x *Note) IsValid() bool
- func (*Note) ProtoMessage()
- func (x *Note) ProtoReflect() protoreflect.Message
- func (x *Note) Reset()
- func (x *Note) String() string
- type Rest
- type Symbol
- func (*Symbol) Descriptor() ([]byte, []int)deprecated
- func (x *Symbol) GetComments() []string
- func (x *Symbol) GetInlineTexts() []string
- func (x *Symbol) GetNote() *Note
- func (x *Symbol) GetRest() *Rest
- func (x *Symbol) GetTempoChange() uint64
- func (x *Symbol) GetTimeline() *timeline.TimeLine
- func (x *Symbol) GetTuplet() *tuplet.Tuplet
- func (x *Symbol) IsNote() bool
- func (x *Symbol) IsOnlyAccidental() bool
- func (x *Symbol) IsOnlyDots() bool
- func (x *Symbol) IsOnlyEmbellishment() bool
- func (x *Symbol) IsOnlyFermata() bool
- func (x *Symbol) IsOnlyMovement() bool
- func (x *Symbol) IsOnlyTieEnd() bool
- func (x *Symbol) IsOnlyTieStart() bool
- func (x *Symbol) IsValidNote() bool
- func (*Symbol) ProtoMessage()
- func (x *Symbol) ProtoReflect() protoreflect.Message
- func (x *Symbol) Reset()
- func (x *Symbol) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_musicmodel_v1_symbols_note_proto protoreflect.FileDescriptor
View Source
var File_musicmodel_v1_symbols_rest_proto protoreflect.FileDescriptor
View Source
var File_musicmodel_v1_symbols_symbol_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Note ¶
type Note struct { Pitch pitch.Pitch `protobuf:"varint,1,opt,name=pitch,proto3,enum=musicmodel.v1.pitch.Pitch" json:"pitch,omitempty"` Length length.Length `protobuf:"varint,2,opt,name=length,proto3,enum=musicmodel.v1.length.Length" json:"length,omitempty"` Dots uint32 `protobuf:"varint,3,opt,name=dots,proto3" json:"dots,omitempty"` Accidental accidental.Accidental `protobuf:"varint,4,opt,name=accidental,proto3,enum=musicmodel.v1.symbols.accidental.Accidental" json:"accidental,omitempty"` Fermata bool `protobuf:"varint,5,opt,name=fermata,proto3" json:"fermata,omitempty"` Tie tie.Tie `protobuf:"varint,6,opt,name=tie,proto3,enum=musicmodel.v1.symbols.tie.Tie" json:"tie,omitempty"` Embellishment *embellishment.Embellishment `protobuf:"bytes,7,opt,name=embellishment,proto3" json:"embellishment,omitempty"` Movement *movement.Movement `protobuf:"bytes,8,opt,name=movement,proto3" json:"movement,omitempty"` // contains filtered or unexported fields }
func (*Note) Descriptor
deprecated
func (*Note) GetAccidental ¶
func (x *Note) GetAccidental() accidental.Accidental
func (*Note) GetEmbellishment ¶
func (x *Note) GetEmbellishment() *embellishment.Embellishment
func (*Note) GetFermata ¶
func (*Note) GetMovement ¶
func (*Note) IsOnlyAccidental ¶
func (*Note) ProtoMessage ¶
func (*Note) ProtoMessage()
func (*Note) ProtoReflect ¶
func (x *Note) ProtoReflect() protoreflect.Message
type Rest ¶
type Rest struct { Length length.Length `protobuf:"varint,1,opt,name=length,proto3,enum=musicmodel.v1.length.Length" json:"length,omitempty"` // contains filtered or unexported fields }
func (*Rest) Descriptor
deprecated
func (*Rest) ProtoMessage ¶
func (*Rest) ProtoMessage()
func (*Rest) ProtoReflect ¶
func (x *Rest) ProtoReflect() protoreflect.Message
type Symbol ¶
type Symbol struct { Note *Note `protobuf:"bytes,1,opt,name=note,proto3,oneof" json:"note,omitempty"` Rest *Rest `protobuf:"bytes,2,opt,name=rest,proto3,oneof" json:"rest,omitempty"` Tuplet *tuplet.Tuplet `protobuf:"bytes,3,opt,name=tuplet,proto3,oneof" json:"tuplet,omitempty"` Timeline *timeline.TimeLine `protobuf:"bytes,4,opt,name=timeline,proto3,oneof" json:"timeline,omitempty"` TempoChange *uint64 `protobuf:"varint,5,opt,name=tempo_change,json=tempoChange,proto3,oneof" json:"tempo_change,omitempty"` Comments []string `protobuf:"bytes,6,rep,name=comments,proto3" json:"comments,omitempty"` InlineTexts []string `protobuf:"bytes,7,rep,name=inline_texts,json=inlineTexts,proto3" json:"inline_texts,omitempty"` // contains filtered or unexported fields }
A Symbol represents a musical symbol. It can be a Note or a Rest. Symbol doesn't use the oneof pattern because it is not makes the resulting structs in Go too nested.
func (*Symbol) Descriptor
deprecated
func (*Symbol) GetComments ¶
func (*Symbol) GetInlineTexts ¶
func (*Symbol) GetTempoChange ¶
func (*Symbol) GetTimeline ¶
func (*Symbol) IsOnlyAccidental ¶
func (*Symbol) IsOnlyDots ¶
func (*Symbol) IsOnlyEmbellishment ¶
func (*Symbol) IsOnlyFermata ¶
func (*Symbol) IsOnlyMovement ¶
func (*Symbol) IsOnlyTieEnd ¶
func (*Symbol) IsOnlyTieStart ¶
func (*Symbol) IsValidNote ¶
func (*Symbol) ProtoMessage ¶
func (*Symbol) ProtoMessage()
func (*Symbol) ProtoReflect ¶
func (x *Symbol) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.