package brr

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Audio.ParamSource

Audio parameters.

Sourcemodule Automation_rate : sig ... end

Automation rate enumeration.

Sourcetype descriptor

The type for AudioParamDescriptor objects.

Sourceval descriptor : ?automation_rate:Automation_rate.t -> ?min_value:float -> ?max_value:float -> ?default_value:float -> Jstr.t -> descriptor

create name is an audio parameter descriptor with given properties.

Sourcetype t

The type for AudioParam objects.

Sourceval value : t -> float

value p is the value of p.

Sourceval set_value : t -> float -> unit

set_value p v sets the value of p to v.

Sourceval automation_rate : t -> Automation_rate.t

automation_rate p is the automation rate of p.

Sourceval set_automation_rate : t -> Automation_rate.t -> unit

set_automation_rate p r sets the automation_rate of p to r.

Sourceval default_value : t -> float

default_value p is the default value of p.

Sourceval min_value : t -> float

min_value p is the minimal value of p.

Sourceval max_value : t -> float

max_value p is the maximal value of p.

Sourceval set_value_at_time : t -> value:float -> time:float -> unit

set_value_at_time p ~value ~time sets p's value to value at time time.

Sourceval linear_ramp_to_value_at_time : t -> value:float -> end_time:float -> unit

linear_ramp_to_value_at_time p ~value ~end_time sets p's value to value at time end_time by linearly changing it starting from the previous event.

Sourceval exponential_ramp_to_value_at_time : t -> value:float -> end_time:float -> unit

exponential_ramp_to_value_at_time p ~value ~time sets p's value to value at time end_time by exponentially changing it starting from the previous event.

Sourceval set_target_at_time : t -> target:float -> start_time:float -> decay_rate:float -> unit

set_target_at_time p ~value ~time ~decay_rate transition p's value towards value at time time.

Sourceval set_value_curve_at_time : t -> Brr.Tarray.float32 -> start_time:float -> dur_s:float -> unit

set_value_curve_at_time p vs ~start_time ~dur_s transitions p's values through vs during dur_s seconds starting at time start_time.

Sourceval cancel_scheduled_values : t -> time:float -> unit

cancel_scheduled_value p ~time cancels scheduled changes to p.

Sourceval cancel_and_hold_at_time : t -> time:float -> unit

cancel_and_hold_at_time p ~time cancels scheduled changes to p and holds the value at the given time.