symbols

package
v1.0.0-beta1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Note.ProtoReflect.Descriptor instead.

func (*Note) GetAccidental

func (x *Note) GetAccidental() accidental.Accidental

func (*Note) GetDots

func (x *Note) GetDots() uint32

func (*Note) GetEmbellishment

func (x *Note) GetEmbellishment() *embellishment.Embellishment

func (*Note) GetFermata

func (x *Note) GetFermata() bool

func (*Note) GetLength

func (x *Note) GetLength() length.Length

func (*Note) GetMovement

func (x *Note) GetMovement() *movement.Movement

func (*Note) GetPitch

func (x *Note) GetPitch() pitch.Pitch

func (*Note) GetTie

func (x *Note) GetTie() tie.Tie

func (*Note) IsOnlyAccidental

func (x *Note) IsOnlyAccidental() bool

func (*Note) IsValid

func (x *Note) IsValid() bool

IsValid returns true if the note has a pitch and length.

func (*Note) ProtoMessage

func (*Note) ProtoMessage()

func (*Note) ProtoReflect

func (x *Note) ProtoReflect() protoreflect.Message

func (*Note) Reset

func (x *Note) Reset()

func (*Note) String

func (x *Note) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Rest.ProtoReflect.Descriptor instead.

func (*Rest) GetLength

func (x *Rest) GetLength() length.Length

func (*Rest) ProtoMessage

func (*Rest) ProtoMessage()

func (*Rest) ProtoReflect

func (x *Rest) ProtoReflect() protoreflect.Message

func (*Rest) Reset

func (x *Rest) Reset()

func (*Rest) String

func (x *Rest) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Symbol.ProtoReflect.Descriptor instead.

func (*Symbol) GetComments

func (x *Symbol) GetComments() []string

func (*Symbol) GetInlineTexts

func (x *Symbol) GetInlineTexts() []string

func (*Symbol) GetNote

func (x *Symbol) GetNote() *Note

func (*Symbol) GetRest

func (x *Symbol) GetRest() *Rest

func (*Symbol) GetTempoChange

func (x *Symbol) GetTempoChange() uint64

func (*Symbol) GetTimeline

func (x *Symbol) GetTimeline() *timeline.TimeLine

func (*Symbol) GetTuplet

func (x *Symbol) GetTuplet() *tuplet.Tuplet

func (*Symbol) IsNote

func (x *Symbol) IsNote() bool

func (*Symbol) IsOnlyAccidental

func (x *Symbol) IsOnlyAccidental() bool

func (*Symbol) IsOnlyDots

func (x *Symbol) IsOnlyDots() bool

func (*Symbol) IsOnlyEmbellishment

func (x *Symbol) IsOnlyEmbellishment() bool

func (*Symbol) IsOnlyFermata

func (x *Symbol) IsOnlyFermata() bool

func (*Symbol) IsOnlyMovement

func (x *Symbol) IsOnlyMovement() bool

func (*Symbol) IsOnlyTieEnd

func (x *Symbol) IsOnlyTieEnd() bool

func (*Symbol) IsOnlyTieStart

func (x *Symbol) IsOnlyTieStart() bool

func (*Symbol) IsValidNote

func (x *Symbol) IsValidNote() bool

func (*Symbol) ProtoMessage

func (*Symbol) ProtoMessage()

func (*Symbol) ProtoReflect

func (x *Symbol) ProtoReflect() protoreflect.Message

func (*Symbol) Reset

func (x *Symbol) Reset()

func (*Symbol) String

func (x *Symbol) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL