dywapitchtrack-0.1.0.0: Bindings to the dywapitchtrack pitch tracking library

Safe HaskellNone
LanguageHaskell2010

DywaPitchTrack

Description

Note that because all parameters are hard-coded into the C library, you are limited to the following audio configuration:

  • raw (headerless) format
  • a sampling rate of 44100Hz,
  • a sample size of sizeof(double)
  • floating-point encoding
  • one channel (mono)

Synopsis

Documentation

runPitchTrack Source

Arguments

:: Int

Number of samples to be used for each computation

-> PitchTrack a

Computations

-> IO a 

Run the PitchTrack monad

computePitch Source

Arguments

:: ByteString

Samples

-> PitchTrack Double

Computed pitch

Compute the pitch.

The size of the ByteString must be equal to the number of samples set in runPitchTrack * the size of each sample (sampleSize).

Note: this pre-condition is not checked!

neededSampleNum Source

Arguments

:: Int

Lowest frequency, in Hz

-> Int

Number of samples needed for each computation

Calculate the number of samples needed, based on the lowest frequency

sampleSize :: Int Source

Sample size