hsc3-sf-0.15: Haskell SuperCollider SoundFile

Safe HaskellNone
LanguageHaskell98

Sound.File.Encode

Description

Encode audio data.

Synopsis

Documentation

interleave :: [[a]] -> [a] Source

Interleave channel data, ie. concat . transpose.

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

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

Given Encoding and a set of channels, interleave and encode as ByteString.