package llama

  1. Overview
  2. Docs

Module LlamaSource

include module type of struct include Llama_core end
Sourcemodule Live : sig ... end
Sourceval play_signal : ?downsample:int -> ?scale_output_volume:float -> float Llama_core.Signal.t -> 'a

Play a given signal and never return. The optional downsample argument artificially reduces the sample rate (the sample rate is divided by this value) and is intended for use on slower computers which can't compute samples fast enough to keep up with the audio hardware's sample rate.

Sourceval play_signal_lwt : ?downsample:int -> ?scale_output_volume:float -> float Llama_core.Signal.t -> 'a Lwt.t

Like play_signal but returns a lwt that must be scheduled in order to run. Use this when visualizing a signal with Llama_graphical.

Sourcemodule Signal_player : sig ... end
Sourcemodule Signal = Llama_core.Signal
Sourcemodule Float = Llama_core.Float
Sourcemodule Music = Llama_core.Music
Sourcemodule Midi : sig ... end
OCaml

Innovation. Community. Security.