Documentation
¶
Index ¶
- type ASTClassifier
- type ASTConverter
- type ASTType
- type ASTTypeClassifier
- type ChordConverter
- type Converter
- type DegreeChordConverter
- type MetaConverter
- type MetaConverterImpl
- type MetaInstanceModifier
- type MetaInstanceModifierImpl
- type ScaleChangeable
- type SyllableChordConverter
- type ValuesConverter
- type ValuesConverterImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ASTClassifier ¶
type ASTConverter ¶
type ASTConverter struct {
// contains filtered or unexported fields
}
func NewDegreeASTConverter ¶
func NewDegreeASTConverter() *ASTConverter
func NewSyllableASTConverter ¶
func NewSyllableASTConverter(scale *op.Scale) *ASTConverter
func (*ASTConverter) Convert ¶
func (c *ASTConverter) Convert(v ast.ChordOrRest) (*input.Instance, error)
type ASTTypeClassifier ¶
type ASTTypeClassifier struct{}
func NewASTClassifier ¶
func NewASTClassifier() *ASTTypeClassifier
type Converter ¶
type Converter interface { // Convert AST (from text) into Instance (yaml). Convert(v ast.ChordOrRest) (*input.Instance, error) }
type DegreeChordConverter ¶
type DegreeChordConverter struct{}
DegreeChordConverter converts AST contains only degrees.
type MetaConverterImpl ¶
type MetaConverterImpl struct{}
type MetaInstanceModifier ¶
type MetaInstanceModifierImpl ¶
type MetaInstanceModifierImpl struct{}
type ScaleChangeable ¶
type SyllableChordConverter ¶
type SyllableChordConverter struct {
// contains filtered or unexported fields
}
SyllableChordConverter converts AST contains only syllables.
func NewSyllableChordConverter ¶
func NewSyllableChordConverter(scale *op.Scale) *SyllableChordConverter
func (*SyllableChordConverter) ChangeScale ¶
func (c *SyllableChordConverter) ChangeScale(scale *op.Scale)
type ValuesConverter ¶
type ValuesConverter interface {
Convert(v *ast.ChordValues) ([]note.Value, error)
}
type ValuesConverterImpl ¶
type ValuesConverterImpl struct{}
func (ValuesConverterImpl) Convert ¶
func (c ValuesConverterImpl) Convert(v *ast.ChordValues) ([]note.Value, error)
Click to show internal directories.
Click to hide internal directories.