hommage-0.0.5: Haskell Offline Music Manipulation And Generation EDSLSource codeContentsIndex
Sound.Hommage.Sound
Contents
Classes
Sound Generators and Transformers
Synopsis
(==>) :: (Sound a, Effect b) => a -> b -> Play Signal
(.=>) :: (Effect a, Effect b) => a -> b -> Play (Signal -> Signal)
class Sound a where
play :: a -> Play Signal
playMono :: a -> Play [Mono]
playStereo :: a -> Play [Stereo]
class Effect a where
effect :: a -> Play (Signal -> Signal)
effectMono :: a -> Play ([Mono] -> [Mono])
effectStereo :: a -> Play ([Stereo] -> [Stereo])
(<+>) :: (Sound a, Sound b) => a -> b -> Play Signal
(<*>) :: (Sound a, Sound b) => a -> b -> Play Signal
data WaveForm
= Sinus
| Cosinus
| Rect
| Saw
| Tri
playWaveForm :: WaveForm -> [Double] -> [Double]
data Oscillator = Oscillator WaveForm Double
data ToFreq = ToFreq Double
data ToFreqDyn a = ToFreqDyn a
data Noise = Noise
newtype PlayWav = PlayWav FilePath
data OscWav = OscWav FilePath Double
data PitchWav = PitchWav FilePath
data ScratchWav = ScratchWav FilePath
data Filter a = Filter a
data FilterFFT a = FilterFFT Int a
data Lowpass width cutoff = Lowpass width cutoff
data Highpass width cutoff = Highpass width cutoff
data Bandpass width slope cutoff = Bandpass width slope cutoff
data Morphfilter cutoff = Morphfilter FilterSpec FilterSpec cutoff
data Stretchfilter cutoff = Stretchfilter FilterSpec cutoff
data Envelope = Envelope EnvMode EnvShape ADSR
data Amplifier volume = Amplifier volume
data AddTo summand = AddTo summand
data Infinite = Infinite Double
data Delay
= AbsDelay Int
| RelDelay Dur
data ToMono = ToMono
data Average = Average Int
data SampleAndHold trigger = SampleAndHold trigger
data Compressor a = Compressor a
data Follow a = Follow Double a
data Panorama balance = Panorama balance
Classes
(==>) :: (Sound a, Effect b) => a -> b -> Play SignalSource
(.=>) :: (Effect a, Effect b) => a -> b -> Play (Signal -> Signal)Source
class Sound a whereSource
Minimal complete definition: play.
Methods
play :: a -> Play SignalSource
playMono :: a -> Play [Mono]Source
playStereo :: a -> Play [Stereo]Source
show/hide Instances
class Effect a whereSource
Methods
effect :: a -> Play (Signal -> Signal)Source
effectMono :: a -> Play ([Mono] -> [Mono])Source
effectStereo :: a -> Play ([Stereo] -> [Stereo])Source
show/hide Instances
(<+>) :: (Sound a, Sound b) => a -> b -> Play SignalSource
(<*>) :: (Sound a, Sound b) => a -> b -> Play SignalSource
Sound Generators and Transformers
data WaveForm Source
Constructors
Sinus
Cosinus
Rect
Saw
Tri
show/hide Instances
playWaveForm :: WaveForm -> [Double] -> [Double]Source
data Oscillator Source
Constructors
Oscillator WaveForm Double
show/hide Instances
data ToFreq Source
Turns pitch to frequency.
Constructors
ToFreq Double
show/hide Instances
data ToFreqDyn a Source
Constructors
ToFreqDyn a
show/hide Instances
data Noise Source
Constructors
Noise
show/hide Instances
newtype PlayWav Source
Constructors
PlayWav FilePath
show/hide Instances
data OscWav Source
Constructors
OscWav FilePath Double
show/hide Instances
data PitchWav Source
Constructors
PitchWav FilePath
show/hide Instances
data ScratchWav Source
Constructors
ScratchWav FilePath
show/hide Instances
data Filter a Source
Constructors
Filter a
show/hide Instances
data FilterFFT a Source
Constructors
FilterFFT Int a
show/hide Instances
data Lowpass width cutoff Source
Width and cutoff.
Constructors
Lowpass width cutoff
show/hide Instances
(Sound a, Sound b) => Sound (Lowpass a b)
data Highpass width cutoff Source
Width and cutoff.
Constructors
Highpass width cutoff
show/hide Instances
(Sound a, Sound b) => Sound (Highpass a b)
data Bandpass width slope cutoff Source
Constructors
Bandpass width slope cutoff
show/hide Instances
(Sound a, Sound b, Sound c) => Sound (Bandpass a b c)
data Morphfilter cutoff Source
Constructors
Morphfilter FilterSpec FilterSpec cutoff
show/hide Instances
data Stretchfilter cutoff Source
Constructors
Stretchfilter FilterSpec cutoff
show/hide Instances
data Envelope Source
Constructors
Envelope EnvMode EnvShape ADSR
show/hide Instances
data Amplifier volume Source
Constructors
Amplifier volume
show/hide Instances
data AddTo summand Source
Constructors
AddTo summand
show/hide Instances
Sound a => Effect (AddTo a)
data Infinite Source
The result will be infinite, with given offset.
Constructors
Infinite Double
show/hide Instances
data Delay Source
Constructors
AbsDelay IntAbsolute Delay
RelDelay DurRelative Delay with respect to the current duration
show/hide Instances
data ToMono Source
Constructors
ToMono
show/hide Instances
data Average Source
Constructors
Average Int
show/hide Instances
data SampleAndHold trigger Source
Constructors
SampleAndHold trigger
show/hide Instances
data Compressor a Source
Constructors
Compressor a
show/hide Instances
data Follow a Source
Constructors
Follow Double a
show/hide Instances
data Panorama balance Source
Constructors
Panorama balance
show/hide Instances
Produced by Haddock version 2.4.2