lyrics

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(file string, opts ...Option) (output string, err error)

Types

type Json

type Json struct {
	File string `json:"file"`

	Tracks []*Track `json:"tracks,omitempty"`
	// contains filtered or unexported fields
}

func (*Json) EndOfTrack

func (t *Json) EndOfTrack(p reader.Position)

func (*Json) Instrument

func (t *Json) Instrument(p reader.Position, name string)

func (*Json) Lyric

func (t *Json) Lyric(p reader.Position, text string)

func (*Json) Program

func (t *Json) Program(p reader.Position, name string)

func (*Json) Text

func (t *Json) Text(p reader.Position, text string)

func (*Json) Track

func (t *Json) Track(p reader.Position, name string)

type Option

type Option func(*config)

func OptionIncludeText

func OptionIncludeText() Option

func OptionJSONOutput

func OptionJSONOutput() Option

func OptionTrackNo

func OptionTrackNo(no uint16) Option

type Track

type Track struct {
	Program    string   `json:"program,omitempty"`
	Name       string   `json:"name,omitempty"`
	Instrument string   `json:"instrument,omitempty"`
	Texts      []string `json:"texts,omitempty"`
	Lyrics     []string `json:"lyrics,omitempty"`
	No         int      `json:"no"`
}

Jump to

Keyboard shortcuts

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