synthesizer-midi-0.6.1: Render audio signals from MIDI files or realtime messages
Synthesizer.MIDI.Value.BendModulation
Description
Combine pitchbend and modulation in one data type.
Synopsis
data T a Source #
bend is a frequency factor and depth is a modulation depth to be interpreted by the instrument.
bend
depth
Constructors
Fields
Instances
Methods
fmap :: (a -> b) -> T a -> T b #
(<$) :: a -> T b -> T a #
pure :: a -> T a #
(<*>) :: T (a -> b) -> T a -> T b #
liftA2 :: (a -> b -> c) -> T a -> T b -> T c #
(*>) :: T a -> T b -> T b #
(<*) :: T a -> T b -> T a #
fold :: Monoid m => T m -> m #
foldMap :: Monoid m => (a -> m) -> T a -> m #
foldr :: (a -> b -> b) -> b -> T a -> b #
foldr' :: (a -> b -> b) -> b -> T a -> b #
foldl :: (b -> a -> b) -> b -> T a -> b #
foldl' :: (b -> a -> b) -> b -> T a -> b #
foldr1 :: (a -> a -> a) -> T a -> a #
foldl1 :: (a -> a -> a) -> T a -> a #
toList :: T a -> [a] #
null :: T a -> Bool #
length :: T a -> Int #
elem :: Eq a => a -> T a -> Bool #
maximum :: Ord a => T a -> a #
minimum :: Ord a => T a -> a #
sum :: Num a => T a -> a #
product :: Num a => T a -> a #
traverse :: Applicative f => (a -> f b) -> T a -> f (T b) #
sequenceA :: Applicative f => T (f a) -> f (T a) #
mapM :: Monad m => (a -> m b) -> T a -> m (T b) #
sequence :: Monad m => T (m a) -> m (T a) #
(==) :: T a -> T a -> Bool #
(/=) :: T a -> T a -> Bool #
showsPrec :: Int -> T a -> ShowS #
show :: T a -> String #
showList :: [T a] -> ShowS #
sizeOf :: T a -> Int #
alignment :: T a -> Int #
peekElemOff :: Ptr (T a) -> Int -> IO (T a) #
pokeElemOff :: Ptr (T a) -> Int -> T a -> IO () #
peekByteOff :: Ptr b -> Int -> IO (T a) #
pokeByteOff :: Ptr b -> Int -> T a -> IO () #
peek :: Ptr (T a) -> IO (T a) #
poke :: Ptr (T a) -> T a -> IO () #
rnf :: T a -> () #
deflt :: C a => T a Source #
force :: T a -> T a Source #
shift :: C a => a -> T a -> T a Source #
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 a Source #