package mm
Install
Dune Dependency
Authors
Maintainers
Sources
md5=34564f61473e235e81330a53f3dbf869
sha512=de153182cd51a52e55e7df6bf4abf46a19d7ebfc81dc13c6715a7f6321f77b8b321ee80343db9e84fdf7d0ea08d31c16fe0f646ad770937e884da7500a8e65e5
doc/mm.audio/Mm_audio/Audio/index.html
Module Mm_audio.Audio
Source
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 ->
unit
val copy_from_ba :
(float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t array ->
t ->
int ->
int ->
unit
val to_ba :
t ->
int ->
int ->
(float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t array
Amplify 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.