package mm

  1. Overview
  2. Docs
The mm library contains high-level APIs to create and manipulate multimedia streams (audio, video, MIDI)

Install

Dune Dependency

Authors

Maintainers

Sources

v0.8.6.tar.gz
md5=003b6e873fe6158dda4627bb674fb57b
sha512=c486e8eaa5dd25a2629c9486c4048ffa2cdeae9e56f73bc8d01a86413038dd3473ebd383abb06f08a2a24a78a335f22aede98ac92436e42a9c6eb1a856f92dab

doc/mm.audio/Mm_audio/Audio/Mono/Analyze/FFT/index.html

Module Analyze.FFTSource

Simple implementation of the FFT algorithm. For fastest implementations optimized libraries such as fftw are recommended.

Sourcetype t

Internal data for computing FFT.

Sourceval init : int -> t

Initialize FFT for an analysis of 2^n samples.

Sourceval length : t -> int

Length of the FFT buffer analysis in samples.

Sourceval complex_create : buffer -> int -> int -> Complex.t array

complex_create buf off len create a array of complex numbers by copying data from buf (the imaginary part is null).

Sourceval fft : t -> Complex.t array -> unit

Perform an FFT analysis.

Sourceval band_freq : int -> t -> int -> float

Frequency associated to the k-th coefficient of an FFT.

Sourcemodule Window : sig ... end

Windowing functions. Thses can be used to on complex buffers in order to improve the quality of the FFT, see http://en.wikipedia.org/wiki/Windowing_functions.

Sourceval notes : int -> t -> ?note_min:int -> ?note_max:int -> ?volume_min:float -> ?filter_harmonics:bool -> buffer -> (Note.t * float) list
Sourceval loudest_note : (Note.t * float) list -> (Note.t * float) option
OCaml

Innovation. Community. Security.