config

package
v0.0.0-...-efee7b9 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Directory       = kingpin.Arg("directory", "Song/chart directory").Required().ExistingDir()
	CpuProfile      = kingpin.Flag("profile", "Profile CPU").String()
	DebugUpdateRate = kingpin.Flag("debug-update-rate", "Every n frames").Default("240").Uint16()
	Input           = kingpin.Flag("input", "Input device").Default("/dev/input/by-id/usb-OLKB_Planck-event-kbd").Short('i').ExistingFile()
	Rate            = kingpin.Flag("rate", "Playback % rate").Default("100").Short('r').Uint16()
	Offset          = kingpin.Flag("offset", "Global offset").Default("0ms").Short('o').Duration()
	Delay           = kingpin.Flag("delay", "Start delay").Default("1.5s").Short('d').Duration()
	ColumnSpacing   = kingpin.Flag("spacing", "Columns between keys").Default("12").Short('S').Uint16()
	RefreshRate     = kingpin.Flag("refresh-rate", "Monitor refresh rate").Default("240.0").Short('R').Float()
	FramePeriod     = kingpin.Flag("frame-period", "Render frame period").Default("1ms").Short('p').Duration()

	BarOffsetFromBottom = kingpin.Flag("bar-row", "Console row to render hit bar").Default("8").Uint16()
	BarSym              = kingpin.Flag("bar-decoration", "Decoration at the hitfield").Default("\033[2m\033[1D[ ]").String()
	NoteSym             = kingpin.Flag("note-symbol", "Restricted to 1 column").Default("⬤").String()
	MineSym             = kingpin.Flag("mine-symbol", "Restricted to 1 column").Default("⨯").String()

	Keys4      [4]uint16
	Keys6      [6]uint16
	Keys8      [8]uint16
	NsToRow    float64
	Judgements []game.Judgement
)

Functions

func Init

func Init()

func KeyColumn

func KeyColumn(r uint16, nKeys uint8) (uint8, error)

func Keys

func Keys(nKeys uint8) []uint16

Types

This section is empty.

Jump to

Keyboard shortcuts

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