Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cross-platform interface to the PC speaker.
Here's an example:
simpleBeep = play [Note 1.0 440]
For more examples, see the readme.
Output
Types
Represents a single note, with a duration in seconds and a frequency in hertz.
Utility functions
freqToMidi :: Floating a => a -> a Source
Convert a frequency to a MIDI note value.
midiToFreq :: Floating a => a -> a Source
Convert a MIDI note value to a frequency.