package llama

  1. Overview
  2. Docs
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 map2 : 'a t -> 'b t -> f:('a -> 'b -> 'c) -> 'c t
val map3 : 'a t -> 'b t -> 'c t -> f:('a -> 'b -> 'c -> 'd) -> 'd 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 scale : float -> float t -> float t
val scale_div : 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 debug_print_float_endline : float t -> float t
val debug_print_sample_index_on_true : bool t -> bool 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
module Trigger : sig ... end
module Gate : sig ... end
val gate : bool t -> Gate.t
type waveform = Llama_core__Dsl.waveform =
  1. | Sine
  2. | Saw
  3. | Triangle
  4. | Pulse
  5. | Noise
val waveform_to_string : waveform -> string
val oscillator : ?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 : ?pulse_width_01:float t -> ?reset_offset_01:float t -> waveform t -> float t -> Trigger.t -> float t
val low_frequency_oscillator_01 : ?pulse_width_01:float t -> ?reset_offset_01:float t -> waveform t -> float t -> Trigger.t -> float t
val clock_of_frequency_hz : float t -> Trigger.t
val clock_of_period_s : float t -> Trigger.t
val clock_divide : int -> Trigger.t -> Trigger.t
val ar_linear : gate:Gate.t -> attack_s:float t -> release_s:float t -> float t
val adsr_linear : gate:Gate.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 : Llama_core__.Signal.Gate.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 -> Llama_core__.Signal.Trigger.t -> float sequencer_output
val generic_step_sequencer : 'a sequencer_step list -> Llama_core__.Signal.Trigger.t -> 'a sequencer_output
val random_sequencer : 'a t list -> float t -> Llama_core__.Signal.Trigger.t -> 'a sequencer_output
val value_sequencer : 'a t list -> Llama_core__.Signal.Trigger.t -> 'a t
val butterworth_low_pass_filter : ?filter_order_half:int -> float t -> cutoff_hz:float t -> float t
val butterworth_high_pass_filter : ?filter_order_half:int -> float t -> cutoff_hz:float t -> float t
val chebyshev_low_pass_filter : ?filter_order_half:int -> float t -> cutoff_hz:float t -> resonance:float t -> float t
val chebyshev_high_pass_filter : ?filter_order_half:int -> float t -> cutoff_hz:float t -> resonance:float t -> float t
val sample_and_hold : float t -> Trigger.t -> float t
val sample_player_mono : floatarray -> Trigger.t -> float t
val bitwise_trigger_sequencer : int -> int t list -> Trigger.t -> Trigger.t list
val delay : 'a t -> time_s:float t -> fill:'a -> 'a t
val clock_delay : float -> Trigger.t -> Trigger.t
val periodic_gate : frequency_hz:float t -> duty_01:float t -> Gate.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
val saturate : float t -> boost:float t -> threshold:float t -> float t
OCaml

Innovation. Community. Security.