Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data T = Cons {}
- deflt :: T
- data Channel
- data Clip = Clip {}
- data Sequence = Sequence {
- maxSamples_ :: Int
- sampleFormat_ :: SampleFormat
- numSamples_ :: Int
- blocks_ :: [Block]
- data SampleFormat
- intFromSampleFormat :: SampleFormat -> Int
- data Block = Block {}
- data BlockFile = PCMAliasBlockFile {}
- toXML :: T -> [[T T String]]
- clipToXML :: Clip -> [[T T String]]
- sequenceToXML :: Sequence -> [[T T String]]
- blockToXML :: Block -> [[T T String]]
- pcmAliasSequence :: Monad m => SampleFormat -> Int -> Int -> FilePath -> Int -> Monad m Sequence
- pcmAliasSequenceFromStorableVector :: MonadIO m => Int -> FilePath -> Int -> Vector Float -> Monad m Sequence
- pcmAliasSequenceFromSummary :: MonadIO m => FilePath -> Int -> [T] -> Monad m Sequence
- data BlockOrder
- pcmAliasSequencesFromStorableVectorChannels :: MonadIO m => BlockOrder -> Int -> FilePath -> [Vector Float] -> Monad m [Sequence]
- pcmAliasSequencesFromChannelSummaries :: MonadIO m => BlockOrder -> FilePath -> [[T]] -> Monad m [Sequence]
- blocksFromChannelSummaries :: MonadIO m => BlockOrder -> FilePath -> [[T]] -> Monad m [[Block]]
- sequenceFromBlocks :: [Block] -> Sequence
- sequenceFromBlocksSize :: Int -> [Block] -> Sequence
- storeSummary :: MonadIO m => FilePath -> Int -> Int -> T -> Monad m Block
Documentation
Sequence | |
|
data SampleFormat Source #
pcmAliasSequence :: Monad m => SampleFormat -> Int -> Int -> FilePath -> Int -> Monad m Sequence Source #
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.
pcmAliasSequenceFromStorableVector :: MonadIO m => Int -> FilePath -> Int -> Vector Float -> Monad m Sequence Source #
data BlockOrder Source #
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.
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] Source #
It is an unchecked error if StorableVectors have different lengths.
pcmAliasSequencesFromChannelSummaries :: MonadIO m => BlockOrder -> FilePath -> [[T]] -> Monad m [Sequence] Source #
blocksFromChannelSummaries :: MonadIO m => BlockOrder -> FilePath -> [[T]] -> Monad m [[Block]] Source #
sequenceFromBlocks :: [Block] -> Sequence Source #