music

package
v0.0.0-...-41c7706 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate()

func GenerateAfterKnown

func GenerateAfterKnown()

func GenerateEgg

func GenerateEgg()

func GenerateEnterYourCar

func GenerateEnterYourCar()

func GenerateOldTime

func GenerateOldTime()

func GenerateOurSong

func GenerateOurSong()

func GenerateStillSing

func GenerateStillSing()

Types

type Line

type Line struct {
	Start   *Time
	End     *Time
	Content string
}

func GenerateLine

func GenerateLine(start *Time, end *Time, content string) *Line

func ReadLineFromString

func ReadLineFromString(line string) *Line

type Sentence

type Sentence struct {
	Offset   int64
	Title    string
	Album    string
	Artist   string
	Author   string
	Lyrics   string
	Composer string
	Lines    *[]*Line
}

func GenerateEmptySentence

func GenerateEmptySentence() *Sentence

func (*Sentence) AddLine

func (that *Sentence) AddLine(line *Line)

func (*Sentence) DealInfoChinese

func (that *Sentence) DealInfoChinese()

func (*Sentence) DealTimeOffset

func (that *Sentence) DealTimeOffset(time *Time) *Time

func (*Sentence) ExportFile

func (that *Sentence) ExportFile(path string)

func (*Sentence) ExportLRC

func (that *Sentence) ExportLRC(path string)

func (*Sentence) ExportSRT

func (that *Sentence) ExportSRT(path string)

func (*Sentence) LoadLines

func (that *Sentence) LoadLines(filePath string)

func (*Sentence) SetAlbum

func (that *Sentence) SetAlbum(album string)

func (*Sentence) SetArtist

func (that *Sentence) SetArtist(artist string)

func (*Sentence) SetAuthor

func (that *Sentence) SetAuthor(author string)

func (*Sentence) SetComposer

func (that *Sentence) SetComposer(composer string)

func (*Sentence) SetLyrics

func (that *Sentence) SetLyrics(lyrics string)

func (*Sentence) SetOffset

func (that *Sentence) SetOffset(offset int64)

func (*Sentence) SetTitle

func (that *Sentence) SetTitle(title string)

type Time

type Time struct {
	Hour        int64
	Minute      int64
	Second      int64
	MicroSecond int64
}

func GenerateTime

func GenerateTime(hour int64, minute int64, second int64, micro int64) *Time

func ReadTimeFromString

func ReadTimeFromString(time string) *Time

func TransferTimestampToTime

func TransferTimestampToTime(timestamp int64) *Time

func (*Time) ExportLRC

func (that *Time) ExportLRC() string

func (*Time) ExportSRT

func (that *Time) ExportSRT() string

func (*Time) ExportString

func (that *Time) ExportString() string

func (*Time) HourString

func (that *Time) HourString() string

func (*Time) MicroHundredString

func (that *Time) MicroHundredString() string

func (*Time) MicroTwoDecimalString

func (that *Time) MicroTwoDecimalString() string

func (*Time) MinuteString

func (that *Time) MinuteString() string

func (*Time) MinuteWithHourString

func (that *Time) MinuteWithHourString() string

func (*Time) SecondString

func (that *Time) SecondString() string

func (*Time) TransferTimeToTimestamp

func (that *Time) TransferTimeToTimestamp() int64

Jump to

Keyboard shortcuts

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