hsc3-auditor-0.15: Haskell SuperCollider Auditor

Safe HaskellNone
LanguageHaskell98

Sound.SC3.Auditor

Contents

Description

Auditor functions common to all sample libraries.

Synopsis

Documentation

type Amplitude = Double Source

Amplitude (linear gain)

type Index = Int Source

Buffer index.

type NC = Int Source

Number of channels

data Note Source

Constructors

Note 

Instances

type Chord = [Note] Source

Chord

type Sample_Loader = [Index] -> [Message] Source

Function to generate the set of OSC commands required to load the set of Indexed files.

type PP = Tseq Time Chord Source

Shorthand

to_p :: (a -> Index, a -> Amplitude) -> (Time, [a]) -> (Time, Chord) Source

pp_duration :: Tseq Time Chord -> Time Source

Start time of last element (this is not the same as tseq_dur).

pp_indices :: Tseq Time Chord -> [Index] Source

The set (unique, sorted) of indices referenced.

pp_nrt_write :: FilePath -> NC -> Sample_Loader -> Tseq Time Chord -> IO () Source

Variant of pp_osc that writes NRT score to named file using writeNRT.

pp_audition :: Tseq Time Chord -> IO () Source

audition of pp_nrt (two channels, no loader).

Loader

au_loader :: [Int] -> [String] -> Sample_Loader Source

Given 0-indexed list of channels to read, and an ordered sequence of filenames make Sample_Loader.

au_loader_dir :: [Int] -> FilePath -> [FilePath] -> Sample_Loader Source

Variant where all files are in the same directory, so given as directory and file list.