package llama_interactive
Module Llama_interactiveSource
include module type of struct include Llama end
include module type of struct include Llama_core end
Source
val play_signal :
?downsample:int ->
?scale_output_volume:float ->
float Llama_core.Signal.t ->
'aPlay 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.
Source
val play_signal_lwt :
?downsample:int ->
?scale_output_volume:float ->
float Llama_core.Signal.t ->
'a Lwt.tLike play_signal but returns a lwt that must be scheduled in order to run. Use this when visualizing a signal with Llama_graphical.
module Dsl = Llama.Dslmodule Signal = Llama.Signalmodule Float = Llama.Floatmodule Music = Llama.Musicmodule List = Llama.Listmodule Array = Llama.ArraySource
val play_signal_visualized_lwt :
?title:string ->
?width:int ->
?height:int ->
?fps:float ->
?background_rgba_01:(float * float * float * float) ->
?f_delay_s:float ->
?pixel_scale:int ->
?sample_scale:float ->
?sample_to_rgba_01:(float -> float * float * float * float) ->
?stride:int ->
?scale_output_volume:float ->
?stable:bool ->
float Signal.t ->
'a Lwt.tSource
val play_signal_visualized :
?title:string ->
?width:int ->
?height:int ->
?fps:float ->
?background_rgba_01:(float * float * float * float) ->
?f_delay_s:float ->
?pixel_scale:int ->
?sample_scale:float ->
?sample_to_rgba_01:(float -> float * float * float * float) ->
?stride:int ->
?scale_output_volume:float ->
?stable:bool ->
float Signal.t ->
'a