Struct libosu::TimingPoint[][src]

pub struct TimingPoint {
    pub time: TimeLocation,
    pub kiai: bool,
    pub sample_set: SampleSet,
    pub sample_index: u32,
    pub volume: u16,
    pub mpb: f64,
    pub kind: TimingPointKind,
}

A timing point, which represents configuration settings for a timing section.

This is a generic timing point struct representing both inherited and uninherited timing points, distinguished by the kind field.

Fields

The timestamp of this timing point, represented as a TimeLocation.

Whether or not Kiai time should be on for this timing point.

The sample set associated with this timing section.

Index (if using a custom sample)

Volume of this timing section.

Milliseconds per beat

The type of this timing point. See TimingPointKind.

Methods

impl TimingPoint
[src]

Creates a TimingPoint from the *.osz format

Serializes this TimingPoint into the *.osz format.

impl TimingPoint
[src]

Sets the parent of this TimingPoint to the given TimingPoint.

Gets the closest parent that is an uninherited timing point.

Gets the BPM of this timing section by climbing the timing section tree.

Gets the meter of this timing section by climbing the timing section tree.

Returns the number of milliseconds in a beat for this timing section.

Trait Implementations

impl Clone for TimingPoint
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for TimingPoint
[src]

Formats the value using the given formatter. Read more

impl Eq for TimingPoint
[src]

impl PartialEq for TimingPoint
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Ord for TimingPoint
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for TimingPoint
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Serialize for TimingPoint
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for TimingPoint

impl Sync for TimingPoint