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 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)
Click to show internal directories.
Click to hide internal directories.