Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
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.