cuesheetgo

package module
v0.0.0-...-ca11745 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Unlicense Imports: 9 Imported by: 1

README

Cue

Coverage

Cue is a Go library for parsing, generating, and manipulating Cue Sheet (.cue) files. Cue Sheet files are commonly used in conjunction with audio file formats like WAV, FLAC, and APE to describe the layout of tracks and other metadata.

Features

  • Parse Cue Sheet files into structured data.
  • Generate Cue Sheet files from structured data.
  • Extract track information such as title, performer, index points, etc.
  • Validate Cue Sheet files for syntax errors and compliance with the Cue Sheet specification.

Installation

To use Cue in your project, import it using Go modules:

go get github.com/lmvgo/cue

Usage

API Reference

Contributing

Contributions to CueSheetGo are welcome! If you find a bug, have a feature request, or would like to contribute code, please open an issue or submit a pull request on GitHub.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileCommand = Command{Name: "FILE", ExactParams: 2}
View Source
var PerformerCommand = Command{Name: "PERFORMER", MinParams: 1}
View Source
var RemCommand = Command{Name: "REM", MinParams: 1}
View Source
var RemDateCommand = Command{Name: "DATE", MinParams: 1}
View Source
var RemGenreCommand = Command{Name: "GENRE", MinParams: 1}
View Source
var TitleCommand = Command{Name: "TITLE", MinParams: 1}
View Source
var TrackCommand = Command{Name: "TRACK", ExactParams: 2}
View Source
var TrackIndexCommand = Command{Name: "INDEX", ExactParams: 2}

Functions

This section is empty.

Types

type Command

type Command struct {
	Name        string
	ExactParams int
	MinParams   int
}

type CueSheet

type CueSheet struct {
	AlbumPerformer string
	AlbumTitle     string
	Date           string
	Format         string
	FileName       string
	Genre          string
	Tracks         []*Track
}

CueSheet represents the contents of a cue sheet file. Required fields: FileName, Format, Tracks.

func Parse

func Parse(reader io.Reader) (*CueSheet, error)

Parse reads the cue sheet data from the provided reader and returns a parsed CueSheet struct.

type IndexPoint

type IndexPoint struct {
	Frame     int
	Timestamp time.Duration
}

type Track

type Track struct {
	Title   string
	Type    string
	Index01 IndexPoint
}

Track represents a single track in a cue sheet file. Required fields: Index01, Type.

Jump to

Keyboard shortcuts

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