hosc-0.8: Haskell Open Sound Control

Sound.OpenSoundControl.Coerce

Description

OSC packet coercion and normalization.

Synopsis

Documentation

coerce :: (Datum -> Datum) -> OSC -> OSCSource

Map a normalizing function over datum at an osc packet.

f_to_d :: Datum -> DatumSource

Coerce Float to Double.

if_to_d :: Datum -> DatumSource

Coerce Int and Float to Double.

fd_to_i :: Datum -> DatumSource

Coerce Float and Double to Int.

normalize :: OSC -> OSCSource

A normalized osc packet has only Int and Double numerical values.