Copyright | (c) OleksandrZhabenko 2020-2021 |
---|---|

License | MIT |

Maintainer | olexandr543@yahoo.com |

Stability | Experimental |

Safe Haskell | None |

Language | Haskell2010 |

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 StrengthsDb = Array Int Float
- dBOmegaRatio :: Float -> Float -> Float
- strength2dB_Abs :: Float -> Float
- strengthdB2ampl :: Float -> Float
- strengths2dB :: Strengths -> StrengthsDb
- strengthsDb2ampl :: StrengthsDb -> Strengths

# Type synonym with different semantics

type StrengthsDb = Array Int 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

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 #