Safe Haskell | Safe-Inferred |
---|
Audio utilities. This is named AUtil instead of the more obvious Audio to avoid clashing with Util.Audio.Audio.
Synopsis
- type Audio = Audio.AudioIO Config.SamplingRate Channels
- type Audio1 = Audio.AudioIO Config.SamplingRate 1
- type NAudio = Audio.NAudioIO Config.SamplingRate
- type Channels = 2
- toFrames :: RealTime.RealTime -> Frames
- toSeconds :: Frames -> RealTime.RealTime
- blockFrames2 :: Audio.Block -> Frames
- framesCount2 :: Frames -> Audio.Count
- outputFormat :: Sndfile.Format
- catchSndfile :: IO a -> IO (Either Text a)
- dbToLinear :: Float -> Float
- volume :: Audio1 -> Audio -> Audio
- debugAudio :: Audio.Audio (Resource.ResourceT IO) rate chan -> [Audio.Block]
- debugAudioN :: Audio.NAudio (Resource.ResourceT IO) rate -> [[Audio.Block]]
Documentation
type Audio1 = Audio.AudioIO Config.SamplingRate 1 Source #
Synth output is pretty tied to 2 channels, but I may as well at least document the things that depend on that.
toFrames :: RealTime.RealTime -> Frames Source #
toSeconds :: Frames -> RealTime.RealTime Source #
blockFrames2 :: Audio.Block -> Frames Source #
framesCount2 :: Frames -> Audio.Count Source #
dbToLinear :: Float -> Float Source #
Convert a volume in dB to linear.
debug utils
debugAudio :: Audio.Audio (Resource.ResourceT IO) rate chan -> [Audio.Block] Source #
debugAudioN :: Audio.NAudio (Resource.ResourceT IO) rate -> [[Audio.Block]] Source #