Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone

Ness.BowedString

Synopsis

Documentation

instrument

data Instrument Source #

Constructors

Instrument 

Fields

Instances

Instances details
Eq Instrument # 
Instance details

Defined in Ness.BowedString

Show Instrument # 
Instance details

Defined in Ness.BowedString

data String Source #

strings (array of structs) can be used to specify all the string parameters manually instead of using a preset instrument. Each string has members f0 (frequency), rho (density), rad (radius), E (Young’s Modulus), T60 (array of T60 values at 0Hz and 1KHz), and L (length).

Instances

Instances details
Eq String # 
Instance details

Defined in Ness.BowedString

Methods

(==) :: String -> String -> Bool #

(/=) :: String -> String -> Bool #

Ord String # 
Instance details

Defined in Ness.BowedString

Show String # 
Instance details

Defined in Ness.BowedString

data Bow Source #

Constructors

Bow 

Fields

Instances

Instances details
Eq Bow # 
Instance details

Defined in Ness.BowedString

Methods

(==) :: Bow -> Bow -> Bool #

(/=) :: Bow -> Bow -> Bool #

Show Bow # 
Instance details

Defined in Ness.BowedString

Methods

showsPrec :: Int -> Bow -> ShowS #

show :: Bow -> String #

showList :: [Bow] -> ShowS #

Render Bow # 
Instance details

Defined in Ness.BowedString

Methods

render :: Bow -> Text Source #

data Finger Source #

Constructors

Finger 

Fields

Instances

Instances details
Eq Finger # 
Instance details

Defined in Ness.BowedString

Methods

(==) :: Finger -> Finger -> Bool #

(/=) :: Finger -> Finger -> Bool #

Show Finger # 
Instance details

Defined in Ness.BowedString

Render Finger # 
Instance details

Defined in Ness.BowedString

Methods

render :: Finger -> Text Source #

score

data Score Source #

Constructors

Score 

Instances

Instances details
Eq Score # 
Instance details

Defined in Ness.BowedString

Methods

(==) :: Score -> Score -> Bool #

(/=) :: Score -> Score -> Bool #

Show Score # 
Instance details

Defined in Ness.BowedString

Methods

showsPrec :: Int -> Score -> ShowS #

show :: Score -> String #

showList :: [Score] -> ShowS #

data BowMovement Source #

bowgest (array of structs) specifies the movement of the bows in the simulation. Each bow has the following members: stringnumber (which string the bow is on, numbered from 1), w0, vw0, u0, vu0 (initial positions and velocities), times (an array of times in seconds for which the bow position and force are given), pos (an array of bow positions at the specified times), force w (an array of vertical force values at the specified times), and force u (an array of horizontal force values at the specified times).

Instances

Instances details
Eq BowMovement # 
Instance details

Defined in Ness.BowedString

Show BowMovement # 
Instance details

Defined in Ness.BowedString

data FingerMovement Source #

finggest (array of structs) specifies the movement of the fingers in the simulation. Each finger has the same members described in the bow gesture above, but with one addition: a vibrato array. This is a 2D array, each row of which contains 5 values: a start time, an end time, a ramp time (all in seconds), an amplitude and a frequency, for a vibrato motion.

Instances

Instances details
Eq FingerMovement # 
Instance details

Defined in Ness.BowedString

Show FingerMovement # 
Instance details

Defined in Ness.BowedString

data Vibrato Source #

Instances

Instances details
Eq Vibrato # 
Instance details

Defined in Ness.BowedString

Methods

(==) :: Vibrato -> Vibrato -> Bool #

(/=) :: Vibrato -> Vibrato -> Bool #

Show Vibrato # 
Instance details

Defined in Ness.BowedString

data Breakpoint Source #

Constructors

Breakpoint 

Instances

Instances details
Eq Breakpoint # 
Instance details

Defined in Ness.BowedString

Show Breakpoint # 
Instance details

Defined in Ness.BowedString

util

scalar :: Render a => Text -> a -> Text Source #

array :: Render a => Text -> [a] -> Text Source #