delay_times

Types

pub type DelayTimes {
  DelayTimes(
    v_whole: Float,
    v_half: Float,
    v_quarter: Float,
    v_8th: Float,
    v_16th: Float,
    v_32nd: Float,
    v_64th: Float,
    v_128th: Float,
  )
}

Constructors

  • DelayTimes(
      v_whole: Float,
      v_half: Float,
      v_quarter: Float,
      v_8th: Float,
      v_16th: Float,
      v_32nd: Float,
      v_64th: Float,
      v_128th: Float,
    )

The note modifier.

pub type NoteModifier {
  Normal
  Dotted
  Triplet
}

Constructors

  • Normal
  • Dotted
  • Triplet

The unit of the delay times.

pub type Unit {
  Ms
  Hz
}

Constructors

  • Ms
  • Hz

Functions

pub fn new(
  beats_per_minute: Float,
  modifier: NoteModifier,
  unit: Unit,
) -> DelayTimes

Constructs a new DelayTimes struct.

Search Document