package mm
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=9316f8bce6e8b7a2c83aaab31d3326dc
sha512=489e082866fd7db77248cb7e3a5d0a7e5af6c3390c9b27b317cce9bb3a48f26e6a05d1d55a662a181b5dcbeeec59aded5d0f08bd33c0ee8554655c5cad69a782
doc/mm.audio/Mm_audio/Audio/index.html
Module Mm_audio.AudioSource
Operations on audio data.
At given sample rate, number of samples in given amount of time.
At given sample rate, duration of given number of samples.
Convert decibels to linear coefficient.
Convert linear coefficient to decibels.
An audio buffer.
create chans len creates a buffer with chans channels and len samples as duration.
Create a buffer with the same number of channels and duration as the given buffer.
Convert a buffer to a mono buffer by computing the mean of all channels.
Convert a mono buffer into a buffer. Notice that the original mono buffer is not copied an might thus be modified afterwards.
val copy_to_ba :
t ->
int ->
int ->
(float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t array ->
unitval copy_from_ba :
(float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t array ->
t ->
int ->
int ->
unitval to_ba :
t ->
int ->
int ->
(float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t arrayval copy_to_int16_ba :
t ->
int ->
int ->
(int, Bigarray.int16_signed_elt, Bigarray.c_layout) Bigarray.Array1.t array ->
unitval copy_from_int16_ba :
(int, Bigarray.int16_signed_elt, Bigarray.c_layout) Bigarray.Array1.t array ->
t ->
int ->
int ->
unitval of_int16_ba :
(int, Bigarray.int16_signed_elt, Bigarray.c_layout) Bigarray.Array1.t array ->
tval to_int16_ba :
t ->
int ->
int ->
(int, Bigarray.int16_signed_elt, Bigarray.c_layout) Bigarray.Array1.t arrayAmplify a portion of the buffer by a given coefficient.
Pan a stereo buffer from left to right (the buffer should have exactly two channels!). The coefficient should be between -1. and 1..
Add two buffers of the same length, storing the result in the first one.
Add to the first buffer, the second buffer multiplied by a coefficient.
Buffers of variable size. These are particularly useful for temporary buffers.
Circular ringbuffers.
Extensible ringbuffers.