Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ivan-1f/phichain/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Notes are the gameplay elements that players interact with. Phichain supports four note types: Tap, Hold, Flick, and Drag.Types
Note
The main note type containing all note properties.The type of note (Tap, Hold, Flick, or Drag)
Whether the note appears above (true) or below (false) the judgment line
The beat position when the note should be hit
Horizontal position relative to the line center (-1.0 to 1.0 typically)
Speed multiplier for this note (1.0 = normal speed)
NoteKind
The type of note, each with different gameplay mechanics.Creating Notes
Working with Notes
JSON Serialization
Note Properties Explained
Position (x)
The horizontal position along the judgment line:0.0= center of the line- Positive values = right side
- Negative values = left side
- Typical range: -1.0 to 1.0, but can go beyond
Above/Below
Determines which side of the judgment line the note appears on:true= above the line (notes fall down)false= below the line (notes rise up)
Speed
Multiplies the note’s approach speed:1.0= normal speed (affected by line speed events)> 1.0= faster approach< 1.0= slower approach0.5= half speed (appears to move slowly)2.0= double speed (appears to move quickly)
Beat Position
Notes use the beat system with[beat, numerator, denominator] format (e.g., [0, 1, 4] for first quarter note). Notes are ordered by their beat position.
Examples
Notes
- Hold notes are the only note type with additional state (hold_beat)
- For non-hold notes,
end_beat()returns the same value asbeat - Notes are sorted by beat position when needed
- Speed only affects visual approach, not timing