reactive-balsa-0.4.0.1: Programmatically edit MIDI events via ALSA and reactive-banana

Safe HaskellNone
LanguageHaskell98

Reactive.Banana.ALSA.Common

Contents

Synopsis

helper functions

exit :: Handle -> IO () Source #

setTimeStamping :: ReaderT Handle IO () Source #

make ALSA set the time stamps in incoming events

connect :: [String] -> [String] -> ReaderT Handle IO () Source #

Connect ourselve to an input client and an output client. The function expects a list of alternative clients that are checked successively.

send single events

events

class Reactor reactor where Source #

Minimal complete definition

reactorTime

Methods

reactorTime :: T reactor t a -> T Reactor t a Source #

Instances
Reactor Reactor Source # 
Instance details

Defined in Reactive.Banana.ALSA.Common

Methods

reactorTime :: T Reactor t a -> T Reactor t a Source #

class Events ev where Source #

This class unifies several ways of handling multiple events at once.

Minimal complete definition

flattenEvents

Methods

flattenEvents :: ev -> [Future Data] Source #

Instances
Events Data Source # 
Instance details

Defined in Reactive.Banana.ALSA.Common

Events ev => Events [ev] Source # 
Instance details

Defined in Reactive.Banana.ALSA.Common

Methods

flattenEvents :: [ev] -> [Future Data] Source #

Events ev => Events (Maybe ev) Source # 
Instance details

Defined in Reactive.Banana.ALSA.Common

(Events ev0, Events ev1) => Events (ev0, ev1) Source # 
Instance details

Defined in Reactive.Banana.ALSA.Common

Methods

flattenEvents :: (ev0, ev1) -> [Future Data] Source #

(Foldable f, Events ev) => Events (T f ev) Source # 
Instance details

Defined in Reactive.Banana.ALSA.Common

Methods

flattenEvents :: T f ev -> [Future Data] Source #

(Make key, VelocityField value) => Events (Boundary key value) Source # 
Instance details

Defined in Reactive.Banana.ALSA.Common

Methods

flattenEvents :: Boundary key value -> [Future Data] Source #

(Reactor m, Events ev) => Events (Future m ev) Source # 
Instance details

Defined in Reactive.Banana.ALSA.Common

Methods

flattenEvents :: Future m ev -> [Future0 Data] Source #

(Events ev0, Events ev1, Events ev2) => Events (ev0, ev1, ev2) Source # 
Instance details

Defined in Reactive.Banana.ALSA.Common

Methods

flattenEvents :: (ev0, ev1, ev2) -> [Future Data] Source #

effects

predicates - may be moved to midi-alsa package

checkMode :: (T -> Bool) -> Data -> Bool Source #