honk-1.2.0.0: Cross-platform interface to the PC speaker.

Safe HaskellSafe-Inferred

Sound.Honk.Util

Contents

Description

Random utility functions.

Synopsis

Conversions

freqToMidi :: Floating a => a -> aSource

Convert a frequency to a MIDI note value.

midiToFreq :: Floating a => a -> aSource

Convert a MIDI note value to a frequency.

Combinators

loop :: Int -> [a] -> [a]Source

Repeat a sequence a specified number of times.