ParentContentsIndex
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 Signal
(.=>) :: (Effect a, Effect b) => a -> b -> Play (Signal -> Signal)
class Sound a where
Minimal complete definition: play.
Methods
play :: a -> Play Signal
playMono :: a -> Play [Mono]
playStereo :: a -> Play [Stereo]
Instances
Sound ()
Sound (Play Signal)
Sound (Play [Mono])
Sound (Play [Stereo])
Sound Signal
Sound [Mono]
Sound [Stereo]
Sound Mono
Sound Stereo
Sound (Track Signal)
Sound (Track [Mono])
Sound (Track [Stereo])
Sound Interpolate
Sound PlayWav
(Sound a, Sound b) => Sound (Lowpass a b)
(Sound a, Sound b) => Sound (Highpass a b)
Sound Envelope
Sound [(Env, EnvLength)]
Sound Noise
(Sound a, Sound b, Sound c) => Sound (Bandpass a b c)
(Sound a) => Sound (Morphfilter a)
(Sound a) => Sound (Stretchfilter a)
class Effect a where
Methods
effect :: a -> Play (Signal -> Signal)
effectMono :: a -> Play ([Mono] -> [Mono])
effectStereo :: a -> Play ([Stereo] -> [Stereo])
Instances
(Sound a) => Effect (Play Signal -> a)
(Sound a) => Effect (Play [Mono] -> a)
(Sound a) => Effect (Play [Stereo] -> a)
Effect (Play (Signal -> Signal))
Effect (Signal -> Signal)
Effect ([Mono] -> [Mono])
Effect ([Stereo] -> [Stereo])
(Sound a) => Effect (Filter a)
(Sound a) => Effect (FilterFFT a)
(Sound a) => Effect (Amplifier a)
(Sound a) => Effect (AddTo a)
Effect Infinite
Effect ToFreq
(Sound a) => Effect (ToFreqDyn a)
Effect WaveForm
Effect Oscillator
Effect OscWav
Effect PitchWav
Effect ScratchWav
Effect Delay
Effect ToMono
Effect Average
(Sound a) => Effect (SampleAndHold a)
(Sound a) => Effect (Compressor a)
(Sound a) => Effect (Follow a)
(Sound a) => Effect (Panorama a)
(<+>) :: (Sound a, Sound b) => a -> b -> Play Signal
(<*>) :: (Sound a, Sound b) => a -> b -> Play Signal
Sound Generators and Transformers
data WaveForm
Constructors
Sinus
Cosinus
Rect
Saw
Tri
Instances
Effect WaveForm
Eq WaveForm
Read WaveForm
Show WaveForm
playWaveForm :: WaveForm -> [Double] -> [Double]
data Oscillator
Constructors
Oscillator WaveForm Double
Instances
Effect Oscillator
data ToFreq
Turns pitch to frequency.
Constructors
ToFreq Double
Instances
Effect ToFreq
data ToFreqDyn a
Constructors
ToFreqDyn a
Instances
(Sound a) => Effect (ToFreqDyn a)
data Noise
Constructors
Noise
Instances
Sound Noise
newtype PlayWav
Constructors
PlayWav FilePath
Instances
Sound PlayWav
data OscWav
Constructors
OscWav FilePath Double
Instances
Effect OscWav
data PitchWav
Constructors
PitchWav FilePath
Instances
Effect PitchWav
data ScratchWav
Constructors
ScratchWav FilePath
Instances
Effect ScratchWav
data Filter a
Constructors
Filter a
Instances
(Sound a) => Effect (Filter a)
data FilterFFT a
Constructors
FilterFFT Int a
Instances
(Sound a) => Effect (FilterFFT a)
data Lowpass width cutoff
Width and cutoff.
Constructors
Lowpass width cutoff
Instances
(Sound a, Sound b) => Sound (Lowpass a b)
data Highpass width cutoff
Width and cutoff.
Constructors
Highpass width cutoff
Instances
(Sound a, Sound b) => Sound (Highpass a b)
data Bandpass width slope cutoff
Constructors
Bandpass width slope cutoff
Instances
(Sound a, Sound b, Sound c) => Sound (Bandpass a b c)
data Morphfilter cutoff
Constructors
Morphfilter FilterSpec FilterSpec cutoff
Instances
(Sound a) => Sound (Morphfilter a)
data Stretchfilter cutoff
Constructors
Stretchfilter FilterSpec cutoff
Instances
(Sound a) => Sound (Stretchfilter a)
data Envelope
Constructors
Envelope EnvMode EnvShape ADSR
Instances
Sound Envelope
Eq Envelope
Read Envelope
Show Envelope
data Amplifier volume
Constructors
Amplifier volume
Instances
(Sound a) => Effect (Amplifier a)
data AddTo summand
Constructors
AddTo summand
Instances
(Sound a) => Effect (AddTo a)
data Infinite
The result will be infinite, with given offset.
Constructors
Infinite Double
Instances
Effect Infinite
data Delay
Constructors
AbsDelay Int Absolute Delay
RelDelay Dur Relative Delay with respect to the current duration
Instances
Effect Delay
data ToMono
Constructors
ToMono
Instances
Effect ToMono
data Average
Constructors
Average Int
Instances
Effect Average
data SampleAndHold trigger
Constructors
SampleAndHold trigger
Instances
(Sound a) => Effect (SampleAndHold a)
data Compressor a
Constructors
Compressor a
Instances
(Sound a) => Effect (Compressor a)
data Follow a
Constructors
Follow Double a
Instances
(Sound a) => Effect (Follow a)
data Panorama balance
Constructors
Panorama balance
Instances
(Sound a) => Effect (Panorama a)
Produced by Haddock version HADDOCK_VERSION