1 {-# LANGUAGE Arrows #-}
3 module RCMA.Translator.Translator where
7 import RCMA.Translator.Message
8 import RCMA.Translator.SortMessage
10 -- Takes a stream of raw messages and translates them by type.
11 fromRaw :: SF [(Frames, RawMessage)]
12 ([(Frames, Note)], [(Frames, Controller)], [(Frames, RawMessage)])
13 fromRaw = proc input -> do
16 -- Takes a stream of high level messages and translates them by type.
17 toRaw :: SF (Note, Controller, RawMessage) RawMessage