Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Non-primitve math Ugens.
Synopsis
- ugen_if :: Num a => a -> a -> a -> a
- ugen_integral_and_fractional_parts :: Ugen -> Ugen
- ugen_fmidi_to_midi_detune :: Ugen -> Ugen
Documentation
ugen_if :: Num a => a -> a -> a -> a Source #
Select q or r by p, ie. if p == 1 then q else if p == 0 then r
.
ugen_integral_and_fractional_parts :: Ugen -> Ugen Source #
Separate input into integral and fractional parts.
ugen_integral_and_fractional_parts 1.5 == mce2 1 0.5
ugen_fmidi_to_midi_detune :: Ugen -> Ugen Source #
Fractional midi into integral midi and cents detune.
ugen_fmidi_to_midi_detune 60.5 == mce2 60 50