pub struct TimingPoint {
pub offset: f32,
pub ms_per_beat: f32,
pub meter: i32,
pub sample_set: i32,
pub sample_index: i32,
pub volume: i32,
pub inherited: bool,
pub kiai_mode: bool,
}
Represents a single timing point
Is the number of milliseconds from the start of the song, and defines
when the timing point starts. A timing point ends when the next one
starts. The first timing point starts at 0, disregarding its offset.
Defines the duration of one beat. It affect the scrolling speed in
osu!taiko or osu!mania, and the slider speed in osu!standard, among
other things.
When positive, it is faithful to its name. When negative, it is a
percentage of previous non-negative milliseconds per beat. For
instance, 3 consecutive timing points with 500
, -50
, -100
will have a resulting beat duration of half a second, a quarter of
a second, and half a second, respectively.
Defines the number of beats in a measure.
Is the default volume that hitobjects inherit. It ranges from 0
to 100
.
Tells if the timing point can be inherited from. Inherited is
redundant with the milliseconds per beat field. A positive milliseconds
per beat implies inherited is true
, and a negative one implies it is
false
.
Defines whether or not Kiai Time
effects are active.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static