hsc3-sf-0.11: Haskell SuperCollider SoundFile

Sound.File.Decode

Description

Decoder for audio data.

Synopsis

Documentation

decode :: Encoding -> Int -> ByteString -> [[Double]]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]]