stx

package
v0.0.0-...-bd044e5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoteEmpty = iota
	NoteTap
	NoteG
	NoteW
	NoteA
	NoteB
	NoteC
	NoteUnk7
	NoteUnk8
	NoteUnk9
	NoteHoldStart
	NoteHold
	NoteHoldEnd
)
View Source
const NotesPerRow = 13

Variables

This section is empty.

Functions

func WriteStx

func WriteStx(w *os.File, step *Step) error

Types

type Block

type Block struct {
	Bpm            float32
	BeatPerMeasure uint32
	BeatSplit      uint32
	Delay          uint32
	SetPerfect     DivisionSet
	SetGreat       DivisionSet
	SetGood        DivisionSet
	SetBad         DivisionSet
	SetMiss        DivisionSet
	SetStepG       DivisionSet
	SetStepW       DivisionSet
	SetStepA       DivisionSet
	SetStepB       DivisionSet
	SetStepC       DivisionSet
	Speed          uint32
	Notes          []byte
}

type Chart

type Chart struct {
	Difficulty uint32
	Blocks     []Block
}

type DivisionSet

type DivisionSet struct {
	First  uint32
	Second uint32
}

type Step

type Step struct {
	Title  string
	Artist string
	Author string
	Charts []Chart
}

func ParseStx

func ParseStx(data []byte) (Step, error)

Jump to

Keyboard shortcuts

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