package llama

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val go : unit -> float {Signal}2.t Stdlib.ref
module Ctx : sig ... end
module Raw : sig ... end
type 'a t = 'a Llama_core__Signal.t
val of_raw : 'a Raw.t -> 'a t
val of_ref : 'a Stdlib.ref -> 'a t
val sample : 'a t -> Ctx.t -> 'a
val map : 'a t -> f:('a -> 'b) -> 'b t
val both : 'a t -> 'b t -> ('a * 'b) t
val const : 'a -> 'a t
val var : 'a -> 'a t * 'a Stdlib.ref
val silence : float t
val never : bool t
val trigger : ?init:bool -> bool t -> bool t
val scale : float -> float t -> float t
val offset : float -> float t -> float t
val exp_01 : float -> float t -> float t
val debug : 'a t -> f:('a -> unit) -> 'a t
val to_01 : float t -> float t
val recip : float t -> float t
val sum : float t list -> float t
val mean : float t list -> float t
val add : float t -> float t -> float t
val (+..) : float t -> float t -> float t
val mul : float t -> float t -> float t
val (*..) : float t -> float t -> float t
val sub : float t -> float t -> float t
val (-..) : float t -> float t -> float t
val div : float t -> float t -> float t
val (/..) : float t -> float t -> float t
type waveform = Llama_core__Dsl.waveform =
  1. | Sine
  2. | Saw
  3. | Triangle
  4. | Square
  5. | Noise
val waveform_to_string : waveform -> string
val oscillator : ?square_wave_pulse_width_01:float t -> waveform t -> float t -> float t
val noise_01 : unit -> float t
val noise : min:float t -> max:float t -> float t
val low_frequency_oscillator : ?square_wave_pulse_width_01:float t -> ?reset_offset_01:float t -> waveform t -> float t -> bool t -> float t
val low_frequency_oscillator_01 : ?square_wave_pulse_width_01:float t -> ?reset_offset_01:float t -> waveform t -> float t -> bool t -> float t
val clock : float t -> bool t
val clock_of_period_s : float t -> bool t
val clock_divide : int -> bool t -> bool t
val asr_linear : gate:bool t -> attack_s:float t -> release_s:float t -> float t
val adsr_linear : gate:bool t -> attack_s:float t -> decay_s:float t -> sustain_01:float t -> release_s:float t -> float t
type !'a sequencer_output = 'a Llama_core__Dsl.sequencer_output = {
  1. value : 'a Llama_core__.Signal.t;
  2. gate : bool Llama_core__.Signal.t;
}
type !'a sequencer_step = 'a Llama_core__Dsl.sequencer_step = {
  1. value : 'a Llama_core__.Signal.t;
  2. period_s : float Llama_core__.Signal.t;
}
val sustained_step_sequencer : float sequencer_step option list -> bool t -> float sequencer_output
val generic_step_sequencer : 'a sequencer_step list -> bool t -> 'a sequencer_output
val random_sequencer : 'a t list -> float t -> bool t -> 'a sequencer_output
val value_sequencer : 'a t list -> bool t -> 'a t
val butterworth_low_pass_filter : ?filter_order_half:int -> float t -> half_power_frequency_hz:float t -> float t
val butterworth_high_pass_filter : ?filter_order_half:int -> float t -> half_power_frequency_hz:float t -> float t
val chebyshev_low_pass_filter : ?filter_order_half:int -> float t -> cutoff_hz:float t -> epsilon:float t -> float t
val chebyshev_high_pass_filter : ?filter_order_half:int -> float t -> cutoff_hz:float t -> epsilon:float t -> float t
val sample_and_hold : float t -> bool t -> float t
val sample_player_mono : float array -> bool t -> float t
val bitwise_trigger_sequencer : int -> int t list -> bool t -> bool t list
val delay : 'a t -> time_s:float t -> fill:'a -> 'a t
val clock_delay : float -> bool t -> bool t
val pulse : frequency_hz:float t -> duty_01:float t -> bool t
val feedback : f:(float t -> float t) -> float t -> float t
val echo : f:(float t -> float t) -> delay_s:float t -> float t -> float t
val lazy_amplifier : float t -> volume:float t -> float t
OCaml

Innovation. Community. Security.