Karya, built on 2018-05-31T02:46:59 (patch 0a1a35479c514820d77330ae8a978975ba22a47a)

Safe HaskellNone

Midi.State

Description

Simulate the state of a MIDI synthesizer.

Midi.Synth is different in that it wants to convert MIDI messages to higher level notes, but similar in that it's also simulating a synthesizer. This module focuses on the instantaneous state of the synth.

Synopsis

Documentation

newtype State Source #

Constructors

State (Map Addr Channel) 
Instances
Eq State # 
Instance details

Defined in Midi.State

Methods

(==) :: State -> State -> Bool #

(/=) :: State -> State -> Bool #

Show State # 
Instance details

Defined in Midi.State

Methods

showsPrec :: Int -> State -> ShowS #

show :: State -> String #

showList :: [State] -> ShowS #

Pretty.Pretty State # 
Instance details

Defined in Midi.State

data Channel Source #

Instances
Eq Channel # 
Instance details

Defined in Midi.State

Methods

(==) :: Channel -> Channel -> Bool #

(/=) :: Channel -> Channel -> Bool #

Show Channel # 
Instance details

Defined in Midi.State

Pretty.Pretty Channel # 
Instance details

Defined in Midi.State

data Control Source #

Instances
Eq Control # 
Instance details

Defined in Midi.State

Methods

(==) :: Control -> Control -> Bool #

(/=) :: Control -> Control -> Bool #

Ord Control # 
Instance details

Defined in Midi.State

Show Control # 
Instance details

Defined in Midi.State

Pretty.Pretty Control # 
Instance details

Defined in Midi.State

diff :: State -> State -> [Message] Source #

Emit msgs needed to take one State to another.