package mm
Install
Dune Dependency
Authors
Maintainers
Sources
md5=5338523070ce8aeae652b8680718c6d8
sha512=e12c2048c4438911578e2dbe109a1d1c98b1c05ef80b3a860a2e275eeb24d3831484d8e82ca34914da3b94850e96e3ef2c2e5c3801d031062780142b7fdca90c
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.
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 deinterleave :
int ->
(float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t ->
t
Pan a stereo buffer from left to right (the buffer should have exactly two channels!). The coefficient should be between -1.
and 1.
.
Buffers of variable size. These are particularly useful for temporary buffers.
Circular ringbuffers.