Safe Haskell | Safe-Inferred |
---|
Ness.Multiplate
Contents
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 #
Constructors
Instrument | |
Fields
|
Instances
Show Instrument Source # | |
Defined in Ness.Multiplate Methods showsPrec :: Int -> Instrument -> ShowS # show :: Instrument -> String # showList :: [Instrument] -> ShowS # | |
Eq Instrument Source # | |
Defined in Ness.Multiplate | |
Ord Instrument Source # | |
Defined in Ness.Multiplate Methods 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.
Constructors
Airbox | |
data AirboxOutput Source #
• airbox output defines an output taken from within the airbox. The parameters are its X, Y and Z position.
Constructors
AirboxOutput | |
Instances
Show AirboxOutput Source # | |
Defined in Ness.Multiplate Methods showsPrec :: Int -> AirboxOutput -> ShowS # show :: AirboxOutput -> String # showList :: [AirboxOutput] -> ShowS # | |
Eq AirboxOutput Source # | |
Defined in Ness.Multiplate | |
Ord AirboxOutput Source # | |
Defined in Ness.Multiplate Methods 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 Methods 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.
Constructors
Plate | |
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.
Constructors
PlateOutput | |
Instances
Show PlateOutput Source # | |
Defined in Ness.Multiplate Methods showsPrec :: Int -> PlateOutput -> ShowS # show :: PlateOutput -> String # showList :: [PlateOutput] -> ShowS # | |
Eq PlateOutput Source # | |
Defined in Ness.Multiplate | |
Ord PlateOutput Source # | |
Defined in Ness.Multiplate Methods 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.
Constructors
Membrane | |
• 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.
Constructors
Drumshell | |
Instances
Show Drumshell Source # | |
Eq Drumshell Source # | |
Ord Drumshell Source # | |
Render Drumshell Source # | |
score
The first parameter of a strike is the start time. The other parameters are the name of the plate, the X position, the Y position, the duration, and the maximum force. The position values are normalised to the range 0-1.
Constructors
Strike | |