Karya, built on 2022-03-21T01:30:44 (patch 89d1651424c35e564138d93424a157ff87457245)
Safe HaskellSafe-Inferred

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

Instances details
Show State Source # 
Instance details

Defined in Midi.State

Methods

showsPrec :: Int -> State -> ShowS #

show :: State -> String #

showList :: [State] -> ShowS #

Eq State Source # 
Instance details

Defined in Midi.State

Methods

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

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

Pretty.Pretty State Source # 
Instance details

Defined in Midi.State

data Channel Source #

Instances

Instances details
Show Channel Source # 
Instance details

Defined in Midi.State

Eq Channel Source # 
Instance details

Defined in Midi.State

Methods

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

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

Pretty.Pretty Channel Source # 
Instance details

Defined in Midi.State

data Control Source #

Instances

Instances details
Show Control Source # 
Instance details

Defined in Midi.State

Eq Control Source # 
Instance details

Defined in Midi.State

Methods

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

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

Ord Control Source # 
Instance details

Defined in Midi.State

Pretty.Pretty Control Source # 
Instance details

Defined in Midi.State

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

Emit msgs needed to take one State to another.