Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Notes
Synopsis
- playableTonesPitches :: [(Tone, Pitch)]
- amountOfNotes :: Int
- generateNotes :: Frequency -> Map Note Frequency
- generateNote :: Frequency -> Int -> (Note, Frequency)
- frequencySteps :: Double -> Int -> Double
- numberOfSemitones :: Double -> Double -> Int
- frequencyToWaveLength :: Double -> Double
- wavelengthToFrequency :: Double -> Double
Documentation
playableTonesPitches :: [(Tone, Pitch)] Source #
amountOfNotes :: Int Source #
length octaves * length playableTonesPitches
Arguments
:: Frequency | Base frequency for note A4 (Most used value: 440 Hz) |
-> Map Note Frequency | Returns list of notes with their frequency |
Generates a Map of notes and their frequency given a base frequency for note A4
Arguments
:: Frequency | The frequency of note C0 |
-> Int | The offset from the note C0 |
-> (Note, Frequency) | A tuple with the note and their frequency |
Generates a note and their frequency given the frequency for the note C0 and the offset from C0
Arguments
:: Double | The number of half steps away from the fixed note |
-> Int | The frequency of one fixed note |
-> Double | The frequency of the note n half steps away |
The basic formula for the frequencies of the notes of the equal tempered scale.
Arguments
:: Double | The base frequency |
-> Double | The frequency half steps away from the base frequency |
-> Int | The number of half steps away from the base frequency |
Calculates the number n of semitones away from the base frequency
frequencyToWaveLength Source #
Converts the frequency to the wavelength in meters.
wavelengthToFrequency Source #
Converts the wavelength to the frequency in Hz.