dobutokO2-0.43.0.0: Helps to create experimental music from a file (or its part) and a Ukrainian text.

Copyright(c) OleksandrZhabenko 2020
LicenseMIT
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010

DobutokO.Sound.Decibel

Contents

Description

Maintainer : olexandr543@yahoo.com

Helps to create experimental music from a file (or its part) and a Ukrainian text. It can also generate a timbre for the notes. Uses SoX inside.

Synopsis

Type synonym with different semantics

type StrengthsDb = Vector Float Source #

Is used to represent a set of volumes in the dB scale for SoX "vol" effect. Usually, the zero value corresponds to the sound with volume level equal by absolute value to 1.0 (the extremum one). So for most cases, its elements are negative numbers not less than (-120).

Working with StrengthsDb and Strengths and others

dBOmegaRatio :: Float -> Float -> Float Source #

Returns the frequency for which its ratio with the second Float argument being under lg and being multiplied with 20 returns the first Float argument. For example, dBOmegaRatio 6 440 ~ 880 (actually, 877.9154185863069).

strength2dB_Abs :: Float -> Float Source #

Converts the absolute value of the argument to dB value compared to 1.0. Usually, is less than 0. The argument should not be equal to zero (0), otherwise, it is equal to -Infinity.

strengthdB2ampl :: Float -> Float Source #

Converts the absolute value of the argument from dB value to amplitude with 0 equivalent to amplitude of 1.0 (or -1.0 for inverted sound). Usually, is used for negative arguments (or at least not positive ones).

strengths2dB :: Strengths -> StrengthsDb Source #

Converts the Vector of the absolute values of the argument to the Vector of dB values compared to 1.0. Usually, its elements are less than 0. If some element in the argument is equal to zero (0), the corresponding resulting element is equal to -Infinity.

strengthsDb2ampl :: StrengthsDb -> Strengths Source #

Converts the Vector of dB values to the Vector of the amplitudes with 0 being equivalent to amplitude of 1.0 (or -1.0 for inverted sound). Usually, is used for negative elements of the first argument (or at least not positive ones).