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

Safe HaskellNone

Synthesizer.MIDI.Value.BendModulation

Description

Combine pitchbend and modulation in one data type.

Synopsis

Documentation

data T a Source

bend is a frequency factor and depth is a modulation depth to be interpreted by the instrument.

Constructors

Cons 

Fields

bend :: a
 
depth :: a
 

Instances

Functor T 
Applicative T 
Foldable T 
Traversable T 
Eq a => Eq (T a) 
Show a => Show (T a) 
Storable a => Storable (T a) 
NFData a => NFData (T a) 

deflt :: C a => T aSource

force :: T a -> T aSource

shift :: C a => a -> T a -> T aSource

Multiply the pitch bend by a given factor. This way you can e.g. shift the pitch bend from around 1 to the actual frequency.

fromBendWheelPressure :: (C a, C a) => Int -> a -> a -> T -> T aSource