Safe Haskell | None |
---|---|
Language | Haskell98 |
Auditor functions common to all sample libraries.
- type Amplitude = Double
- type Index = Int
- type NC = Int
- data Note = Note {}
- type Chord = [Note]
- type Sample_Loader = [Index] -> [Message]
- type PP = Tseq Time Chord
- to_p :: (a -> Index, a -> Amplitude) -> (Time, [a]) -> (Time, Chord)
- chord_indices :: Chord -> [Index]
- pp_start_times :: Tseq Time Chord -> [Time]
- pp_chords :: Tseq Time Chord -> [Chord]
- pp_duration :: Tseq Time Chord -> Time
- pp_indices :: Tseq Time Chord -> [Index]
- chd_osc :: Chord -> [Message]
- p_osc :: (Time, Chord) -> Bundle
- pp_nrt :: NC -> Maybe Sample_Loader -> Tseq Time Chord -> NRT
- pp_nrt_write :: FilePath -> NC -> Sample_Loader -> Tseq Time Chord -> IO ()
- pp_audition :: Tseq Time Chord -> IO ()
- au_loader :: [Int] -> [String] -> Sample_Loader
- au_loader_dir :: [Int] -> FilePath -> [FilePath] -> Sample_Loader
Documentation
type Sample_Loader = [Index] -> [Message] Source
chord_indices :: Chord -> [Index] Source
pp_duration :: Tseq Time Chord -> Time Source
Start time of last element (this is not the same as tseq_dur
).
pp_nrt :: NC -> Maybe Sample_Loader -> Tseq Time Chord -> NRT Source
Generate NRT
given NC
, Sample_Loader
and PP
.
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
.
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.