synthesizer-midi-0.6.1: Render audio signals from MIDI files or realtime messages

Safe HaskellNone
LanguageHaskell2010

Synthesizer.MIDI.PiecewiseConstant

Description

Convert MIDI events of a MIDI controller to a control signal.

Synopsis

Documentation

zipWith :: C time => (a -> b -> c) -> T time a -> T time b -> T time c #

initWith :: (y -> c) -> c -> T StrictTime [y] -> T c Source #

controllerLinear :: (C event, C y) => Channel -> Controller -> (y, y) -> y -> Filter event (T y) Source #

controllerExponential :: (C event, C y) => Channel -> Controller -> (y, y) -> y -> Filter event (T y) Source #

pitchBend :: (C event, C y) => Channel -> y -> y -> Filter event (T y) Source #

pitchBend channel range center: emits frequencies on an exponential scale from center/range to center*range.

channelPressure :: (C event, C y) => Channel -> y -> y -> Filter event (T y) Source #

bendWheelPressure :: (C event, C y, C y) => Channel -> Int -> y -> y -> Filter event (T (T y)) Source #

bendWheelPressureZip :: (C event, C y, C y) => Channel -> Int -> y -> y -> Filter event (T (T y)) Source #

This one is certainly not as efficient as bendWheelPressure since it first slices the event list and then zips the slices together.