ayachanChart

package
v0.0.0-...-e9647d8 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AyachanChart

type AyachanChart []AyachanNote

func (AyachanChart) InitParseChart

func (chart AyachanChart) InitParseChart() (ParsedChart ParsedChart)

func (AyachanChart) Len

func (chart AyachanChart) Len() int

func (AyachanChart) Less

func (chart AyachanChart) Less(i, j int) bool

func (AyachanChart) Swap

func (chart AyachanChart) Swap(i, j int)

type AyachanNote

type AyachanNote struct {
	Type      NoteType    // 音符类型
	BPM       float64     // BPM信息
	Beat      float64     // 节拍数
	Time      float64     // 判定时间
	Lane      float64     // 轨道号
	Direction int         // 左右滑建,普通滑键的大小:-3~-1 左滑键;0 普通滑建;1~3右滑建
	Pos       int         // type为NoteType_Slide时,所属的绿条编号
	Status    SlideStatus // 是否为最后一个SlideTick
	Flick     bool        // 是否为粉键/滑键
	Hidden    bool        // 是否为隐藏音符
}

type HandType

type HandType int
const (
	UnknownHand HandType = iota
	LeftHand
	RightHand
	TryLeftHand
	TryRightHand
)

type NoteType

type NoteType int
const (
	NoteTypeBpm NoteType = iota
	NoteTypeSingle
	NoteTypeSlide
)

type ParsedChart

type ParsedChart []ParsedNote

func (ParsedChart) Len

func (chart ParsedChart) Len() int

func (ParsedChart) Less

func (chart ParsedChart) Less(i, j int) bool

func (ParsedChart) Swap

func (chart ParsedChart) Swap(i, j int)

type ParsedNote

type ParsedNote struct {
	AyachanNote
	Hand         HandType
	NotePrevious *ParsedNote
	NoteAfter    *ParsedNote
}

func (ParsedNote) GetGapFront

func (note ParsedNote) GetGapFront() (gap float64)

func (ParsedNote) GetInterval

func (note ParsedNote) GetInterval(note2 *ParsedNote) (interval float64)

func (ParsedNote) GetIntervalBack

func (note ParsedNote) GetIntervalBack() (interval float64)

func (ParsedNote) GetIntervalFront

func (note ParsedNote) GetIntervalFront() (interval float64)

type SlideStatus

type SlideStatus int
const (
	SlideTick SlideStatus = iota
	SlideStart
	SlideEnd
)

Jump to

Keyboard shortcuts

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