Safe Haskell | Safe-Inferred |
---|
Synopsis
- renderAll :: SamplingRate -> (Instrument, Score) -> (Text, Text)
- verify :: Instrument -> Score -> [Text]
- data Instrument = Instrument {
- iName :: Text
- iNormalize :: Bool
- iAirbox :: Airbox
- iPlates :: [Plate]
- iMembranes :: [Membrane]
- iDrumshells :: [Drumshell]
- iObjects :: Instrument -> [Text]
- renderInstrument :: SamplingRate -> Instrument -> Text
- data Airbox = Airbox {}
- data AirboxOutput = AirboxOutput {}
- data Plate = Plate {}
- data Material = Material {}
- data PlateOutput = PlateOutput {}
- renderPlateOutputs :: [Plate] -> [Text]
- data Membrane = Membrane {}
- data Drumshell = Drumshell {}
- data Score = Score {}
- type Force = Double
- data Strike = Strike {}
Documentation
renderAll :: SamplingRate -> (Instrument, Score) -> (Text, Text) Source #
instrument
data Instrument Source #
Instrument | |
|
Instances
Show Instrument Source # | |
Defined in Ness.Multiplate showsPrec :: Int -> Instrument -> ShowS # show :: Instrument -> String # showList :: [Instrument] -> ShowS # | |
Eq Instrument Source # | |
Defined in Ness.Multiplate (==) :: Instrument -> Instrument -> Bool # (/=) :: Instrument -> Instrument -> Bool # | |
Ord Instrument Source # | |
Defined in Ness.Multiplate compare :: Instrument -> Instrument -> Ordering # (<) :: Instrument -> Instrument -> Bool # (<=) :: Instrument -> Instrument -> Bool # (>) :: Instrument -> Instrument -> Bool # (>=) :: Instrument -> Instrument -> Bool # max :: Instrument -> Instrument -> Instrument # min :: Instrument -> Instrument -> Instrument # |
iObjects :: Instrument -> [Text] Source #
renderInstrument :: SamplingRate -> Instrument -> Text Source #
• airbox defines the dimensions and other parameters of the airbox. Parameters are the width, the depth, the height, c_a and rho_a. Only one airbox can be defined currently.
data AirboxOutput Source #
• airbox output defines an output taken from within the airbox. The parameters are its X, Y and Z position.
Instances
Show AirboxOutput Source # | |
Defined in Ness.Multiplate showsPrec :: Int -> AirboxOutput -> ShowS # show :: AirboxOutput -> String # showList :: [AirboxOutput] -> ShowS # | |
Eq AirboxOutput Source # | |
Defined in Ness.Multiplate (==) :: AirboxOutput -> AirboxOutput -> Bool # (/=) :: AirboxOutput -> AirboxOutput -> Bool # | |
Ord AirboxOutput Source # | |
Defined in Ness.Multiplate compare :: AirboxOutput -> AirboxOutput -> Ordering # (<) :: AirboxOutput -> AirboxOutput -> Bool # (<=) :: AirboxOutput -> AirboxOutput -> Bool # (>) :: AirboxOutput -> AirboxOutput -> Bool # (>=) :: AirboxOutput -> AirboxOutput -> Bool # max :: AirboxOutput -> AirboxOutput -> AirboxOutput # min :: AirboxOutput -> AirboxOutput -> AirboxOutput # | |
Render AirboxOutput Source # | |
Defined in Ness.Multiplate render :: AirboxOutput -> Text Source # |
• plate defines a plate within the airbox. The first parameter is a name for the plate which must be a unique string and is used to refer to it for the purposes of outputs and strikes. The numeric parameters are size X, size Y, centre X, centre Y, centre Z, rho, H, E, nu, T60, sig1.
data PlateOutput Source #
• plate output defines an output taken from a plate. The parameters are the name of the plate and the X and Y position for the output. The position values are normalised to the range -1 to +1.
Instances
Show PlateOutput Source # | |
Defined in Ness.Multiplate showsPrec :: Int -> PlateOutput -> ShowS # show :: PlateOutput -> String # showList :: [PlateOutput] -> ShowS # | |
Eq PlateOutput Source # | |
Defined in Ness.Multiplate (==) :: PlateOutput -> PlateOutput -> Bool # (/=) :: PlateOutput -> PlateOutput -> Bool # | |
Ord PlateOutput Source # | |
Defined in Ness.Multiplate compare :: PlateOutput -> PlateOutput -> Ordering # (<) :: PlateOutput -> PlateOutput -> Bool # (<=) :: PlateOutput -> PlateOutput -> Bool # (>) :: PlateOutput -> PlateOutput -> Bool # (>=) :: PlateOutput -> PlateOutput -> Bool # max :: PlateOutput -> PlateOutput -> PlateOutput # min :: PlateOutput -> PlateOutput -> PlateOutput # |
renderPlateOutputs :: [Plate] -> [Text] Source #
• membrane defines a circular drum membrane within the airbox. The first parameter is a name for the membrane which must be a unique string and is used to refer to it for the purposes of outputs and strikes. The numeric parameters are the radius, centre X, centre Y, centre Z, rho, H, T, E, nu, T60 and sig1.
• drumshell defines a cylindrical drum shell that acts as a barrier within the airbox. The first parameter is a name for the drum shell which must be a unique string. The numeric parameters are centre X, centre Y, bottom Z, radius and shell height.