hsc3-sf-0.15: Haskell SuperCollider SoundFile

Safe HaskellNone
LanguageHaskell98

Sound.File.Decode

Description

Decoder for audio data.

Synopsis

Documentation

decode :: (Real n, Floating n) => Encoding -> Int -> ByteString -> [[n]] Source

Given an Encoding and the number of channels, decode a ByteString to set of deinterleaved channels.

deinterleave :: Int -> [a] -> [[a]] Source

Given channel count, deinterleave list to set of channels.

deinterleave 2 [0..9] == [[0,2,4,6,8],[1,3,5,7,9]]