Safe Haskell | None |
---|---|
Language | Haskell98 |
Binary 'Graph Definition' as understood by scsynth
.
- type Name = ASCII
- type Control = (Name, Int)
- type Sample = Double
- data Input = Input Int Int
- input_ugen_ix :: Input -> Maybe Int
- type Output = Int
- type Rate = Int
- type Special = Int
- type UGen = (Name, Rate, [Input], [Output], Special)
- ugen_inputs :: UGen -> [Input]
- ugen_outputs :: UGen -> [Output]
- ugen_is_control :: UGen -> Bool
- ugen_rate :: UGen -> Rate
- input_is_control :: Graphdef -> Input -> Bool
- data Graphdef = Graphdef {
- graphdef_name :: Name
- graphdef_constants :: [Sample]
- graphdef_controls :: [(Control, Sample)]
- graphdef_ugens :: [UGen]
- graphdef_ugen :: Graphdef -> Int -> UGen
- graphdef_control :: Graphdef -> Int -> (Control, Sample)
- graphdef_constant_nid :: Graphdef -> Int -> Int
- graphdef_control_nid :: Graphdef -> Int -> Int
- graphdef_ugen_nid :: Graphdef -> Int -> Int
- read_i8 :: Handle -> IO Int
- read_i16 :: Handle -> IO Int
- read_i32 :: Handle -> IO Int
- read_sample :: Handle -> IO Sample
- read_pstr :: Handle -> IO ASCII
- read_control :: Handle -> IO Control
- read_input :: Handle -> IO Input
- read_output :: Handle -> IO Int
- read_ugen :: Handle -> IO UGen
- read_graphdef :: Handle -> IO Graphdef
- read_graphdef_file :: FilePath -> IO Graphdef
- encode_pstr :: ASCII -> ByteString
- encode_input :: Input -> ByteString
- encode_control :: Control -> ByteString
- encode_ugen :: UGen -> ByteString
- encode_sample :: Sample -> ByteString
- encode_graphdef :: Graphdef -> ByteString
- graphdef_stat :: Graphdef -> String
Type
input_ugen_ix :: Input -> Maybe Int Source
ugen_inputs :: UGen -> [Input] Source
ugen_outputs :: UGen -> [Output] Source
ugen_is_control :: UGen -> Bool Source
input_is_control :: Graphdef -> Input -> Bool Source
Graphdef | |
|
graphdef_ugen :: Graphdef -> Int -> UGen Source
graphdef_constant_nid :: Graphdef -> Int -> Int Source
graphdef_control_nid :: Graphdef -> Int -> Int Source
graphdef_ugen_nid :: Graphdef -> Int -> Int Source
Read
read_sample :: Handle -> IO Sample Source
read_control :: Handle -> IO Control Source
read_input :: Handle -> IO Input Source
read_output :: Handle -> IO Int Source
read_graphdef :: Handle -> IO Graphdef Source
Encode
encode_pstr :: ASCII -> ByteString Source
Pascal (length prefixed) encoding of string.
encode_input :: Input -> ByteString Source
Byte-encode Input
value.
encode_ugen :: UGen -> ByteString Source
Byte-encode UGen
.
encode_sample :: Sample -> ByteString Source
Stat
graphdef_stat :: Graphdef -> String Source