module Sound.Sc3.Server.Command.Plain.Completion where
import Sound.Osc.Core
import Sound.Sc3.Server.Enum
import Sound.Sc3.Server.Synthdef
encode_blob :: PacketOf Message -> Datum
encode_blob :: PacketOf Message -> Datum
encode_blob = Blob -> Datum
Blob (Blob -> Datum)
-> (PacketOf Message -> Blob) -> PacketOf Message -> Datum
forall b c a. (b -> c) -> (a -> b) -> a -> c
. PacketOf Message -> Blob
encodePacket
d_recv :: PacketOf Message -> Synthdef -> Message
d_recv :: PacketOf Message -> Synthdef -> Message
d_recv PacketOf Message
pkt Synthdef
d = Address_Pattern -> [Datum] -> Message
Message Address_Pattern
"/d_recv" [Blob -> Datum
Blob (Synthdef -> Blob
synthdefData Synthdef
d), PacketOf Message -> Datum
encode_blob PacketOf Message
pkt]
d_load :: PacketOf Message -> String -> Message
d_load :: PacketOf Message -> Address_Pattern -> Message
d_load PacketOf Message
pkt Address_Pattern
p = Address_Pattern -> [Datum] -> Message
Message Address_Pattern
"/d_load" [Address_Pattern -> Datum
string Address_Pattern
p, PacketOf Message -> Datum
encode_blob PacketOf Message
pkt]
d_loadDir :: PacketOf Message -> String -> Message
d_loadDir :: PacketOf Message -> Address_Pattern -> Message
d_loadDir PacketOf Message
pkt Address_Pattern
p = Address_Pattern -> [Datum] -> Message
Message Address_Pattern
"/d_loadDir" [Address_Pattern -> Datum
string Address_Pattern
p, PacketOf Message -> Datum
encode_blob PacketOf Message
pkt]
b_alloc :: PacketOf Message -> Int -> Int -> Int -> Message
b_alloc :: PacketOf Message -> Int -> Int -> Int -> Message
b_alloc PacketOf Message
pkt Int
nid Int
frames Int
channels = Address_Pattern -> [Datum] -> Message
Message Address_Pattern
"/b_alloc" [Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
nid, Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
frames, Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
channels, PacketOf Message -> Datum
encode_blob PacketOf Message
pkt]
b_allocRead :: PacketOf Message -> Int -> String -> Int -> Int -> Message
b_allocRead :: PacketOf Message -> Int -> Address_Pattern -> Int -> Int -> Message
b_allocRead PacketOf Message
pkt Int
nid Address_Pattern
p Int
f Int
n = Address_Pattern -> [Datum] -> Message
Message Address_Pattern
"/b_allocRead" [Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
nid, Address_Pattern -> Datum
string Address_Pattern
p, Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
f, Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
n, PacketOf Message -> Datum
encode_blob PacketOf Message
pkt]
b_allocReadChannel :: PacketOf Message -> Int -> String -> Int -> Int -> [Int] -> Message
b_allocReadChannel :: PacketOf Message
-> Int -> Address_Pattern -> Int -> Int -> [Int] -> Message
b_allocReadChannel PacketOf Message
pkt Int
nid Address_Pattern
p Int
f Int
n [Int]
cs = Address_Pattern -> [Datum] -> Message
Message Address_Pattern
"/b_allocReadChannel" ([Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
nid, Address_Pattern -> Datum
string Address_Pattern
p, Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
f, Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
n] [Datum] -> [Datum] -> [Datum]
forall a. [a] -> [a] -> [a]
++ (Int -> Datum) -> [Int] -> [Datum]
forall a b. (a -> b) -> [a] -> [b]
map Int -> Datum
forall n. Integral n => n -> Datum
int32 [Int]
cs [Datum] -> [Datum] -> [Datum]
forall a. [a] -> [a] -> [a]
++ [PacketOf Message -> Datum
encode_blob PacketOf Message
pkt])
b_free :: PacketOf Message -> Int -> Message
b_free :: PacketOf Message -> Int -> Message
b_free PacketOf Message
pkt Int
nid = Address_Pattern -> [Datum] -> Message
Message Address_Pattern
"/b_free" [Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
nid, PacketOf Message -> Datum
encode_blob PacketOf Message
pkt]
b_close :: PacketOf Message -> Int -> Message
b_close :: PacketOf Message -> Int -> Message
b_close PacketOf Message
pkt Int
nid = Address_Pattern -> [Datum] -> Message
Message Address_Pattern
"/b_close" [Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
nid, PacketOf Message -> Datum
encode_blob PacketOf Message
pkt]
b_read :: PacketOf Message -> Int -> String -> Int -> Int -> Int -> Bool -> Message
b_read :: PacketOf Message
-> Int -> Address_Pattern -> Int -> Int -> Int -> Bool -> Message
b_read PacketOf Message
pkt Int
nid Address_Pattern
p Int
f Int
n Int
f' Bool
z = Address_Pattern -> [Datum] -> Message
Message Address_Pattern
"/b_read" [Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
nid, Address_Pattern -> Datum
string Address_Pattern
p, Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
f, Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
n, Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
f', Int -> Datum
forall n. Integral n => n -> Datum
int32 (Bool -> Int
forall a. Enum a => a -> Int
fromEnum Bool
z), PacketOf Message -> Datum
encode_blob PacketOf Message
pkt]
b_readChannel :: PacketOf Message -> Int -> String -> Int -> Int -> Int -> Bool -> [Int] -> Message
b_readChannel :: PacketOf Message
-> Int
-> Address_Pattern
-> Int
-> Int
-> Int
-> Bool
-> [Int]
-> Message
b_readChannel PacketOf Message
pkt Int
nid Address_Pattern
p Int
f Int
n Int
f' Bool
z [Int]
cs = Address_Pattern -> [Datum] -> Message
Message Address_Pattern
"/b_readChannel" ([Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
nid, Address_Pattern -> Datum
string Address_Pattern
p, Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
f, Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
n, Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
f', Int -> Datum
forall n. Integral n => n -> Datum
int32 (Bool -> Int
forall a. Enum a => a -> Int
fromEnum Bool
z)] [Datum] -> [Datum] -> [Datum]
forall a. [a] -> [a] -> [a]
++ (Int -> Datum) -> [Int] -> [Datum]
forall a b. (a -> b) -> [a] -> [b]
map Int -> Datum
forall n. Integral n => n -> Datum
int32 [Int]
cs [Datum] -> [Datum] -> [Datum]
forall a. [a] -> [a] -> [a]
++ [PacketOf Message -> Datum
encode_blob PacketOf Message
pkt])
b_write :: PacketOf Message -> Int -> String -> SoundFileFormat -> SampleFormat -> Int -> Int -> Bool -> Message
b_write :: PacketOf Message
-> Int
-> Address_Pattern
-> SoundFileFormat
-> SampleFormat
-> Int
-> Int
-> Bool
-> Message
b_write PacketOf Message
pkt Int
nid Address_Pattern
p SoundFileFormat
h SampleFormat
t Int
f Int
s Bool
z = Address_Pattern -> [Datum] -> Message
Message Address_Pattern
"/b_write" [Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
nid, Address_Pattern -> Datum
string Address_Pattern
p, Address_Pattern -> Datum
string (SoundFileFormat -> Address_Pattern
soundFileFormatString SoundFileFormat
h), Address_Pattern -> Datum
string (SampleFormat -> Address_Pattern
sampleFormatString SampleFormat
t), Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
f, Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
s, Int -> Datum
forall n. Integral n => n -> Datum
int32 (Bool -> Int
forall a. Enum a => a -> Int
fromEnum Bool
z), PacketOf Message -> Datum
encode_blob PacketOf Message
pkt]
b_zero :: PacketOf Message -> Int -> Message
b_zero :: PacketOf Message -> Int -> Message
b_zero PacketOf Message
pkt Int
nid = Address_Pattern -> [Datum] -> Message
Message Address_Pattern
"/b_zero" [Int -> Datum
forall n. Integral n => n -> Datum
int32 Int
nid, PacketOf Message -> Datum
encode_blob PacketOf Message
pkt]