audacity-0.0.2: Interchange with the Audacity sound signal editor

Safe HaskellNone
LanguageHaskell2010

Sound.Audacity.Project.Track.Wave

Synopsis

Documentation

data T #

Constructors

Cons 
Instances
Show T # 
Instance details

Defined in Sound.Audacity.Project.Track.Wave

Methods

showsPrec :: Int -> T -> ShowS #

show :: T -> String #

showList :: [T] -> ShowS #

deflt :: T #

data Clip #

Constructors

Clip 
Instances
Show Clip # 
Instance details

Defined in Sound.Audacity.Project.Track.Wave

Methods

showsPrec :: Int -> Clip -> ShowS #

show :: Clip -> String #

showList :: [Clip] -> ShowS #

data Sequence #

Instances
Show Sequence # 
Instance details

Defined in Sound.Audacity.Project.Track.Wave

data SampleFormat #

data Block #

Constructors

Block 
Instances
Show Block # 
Instance details

Defined in Sound.Audacity.Project.Track.Wave

Methods

showsPrec :: Int -> Block -> ShowS #

show :: Block -> String #

showList :: [Block] -> ShowS #

toXML :: T -> [[T T String]] #

clipToXML :: Clip -> [[T T String]] #

pcmAliasSequence :: Monad m => SampleFormat -> Int -> Int -> FilePath -> Int -> Monad m Sequence #

maxSamples_ must be at least 1024, otherwise you get an error about clip values if you load the project to Audacity. However, 1024 is not necessarily a good value. Audacity uses 524288 by default.

data BlockOrder #

This type lets you specify how to order blocks of multi-channel sounds. Both orders always work but Haskell's garbage collector works best, if the order matches the order of the data production.

Constructors

Serial

All blocks of a channel are stored adjacently.

Interleaved

Blocks of channels are interleaved.

pcmAliasSequencesFromStorableVectorChannels :: MonadIO m => BlockOrder -> Int -> FilePath -> [Vector Float] -> Monad m [Sequence] #

It is an unchecked error if StorableVectors have different lengths.

storeSummary :: MonadIO m => FilePath -> Int -> Int -> T -> Monad m Block #