hsc3-lang-0.13: Haskell SuperCollider Language

Safe HaskellSafe-Inferred

Sound.SC3.Lang.Data.Vowel

Contents

Description

Data set giving formant locations for Vowels.

Synopsis

Lookup functions

formant :: Num n => Fn -> Fdata n -> (n, n, n)Source

Extract Fnth formant triple of an Fdata.

 formant F1 (fdata Bass I) == (1750,-30,90)

fdata :: Num n => Voice -> Vowel -> Fdata nSource

Lookup formant Fdata given Voice and Vowel.

 fdata Bass I == (Bass,I,[250,1750,2600,3050,3340]
                        ,[0,-30,-16,-22,-28]
                        ,[60,90,100,120,120])

formants :: Num n => Fdata n -> [(n, n, n)]Source

Formant triples of an Fdata.

 formants (fdata Bass I) == [(250,0,60)
                            ,(1750,-30,90)
                            ,(2600,-16,100)
                            ,(3050,-22,120)
                            ,(3340,-28,120)]

Data types

data Voice Source

Enumeration of voices.

Constructors

Soprano 
Alto 
CounterTenor 
Tenor 
Bass 

data Vowel Source

Enumeration of vowels.

Constructors

A 
E 
I 
O 
U 

type Fdata n = (Voice, Vowel, [n], [n], [n])Source

Vowel tuple of form (Voice,Vowel,freq,db,bw).

data Fn Source

Enumeration of formant indices.

Constructors

F0 
F1 
F2 
F3 
F4 

Instances

Table

fdata_table :: Num n => [Fdata n]Source

Fdata table.

Tuple/List functions

triple :: [a] -> Maybe (a, a, a)Source

Construct a triple from a three element list.

 triple [1..3] == Just (1,2,3)

triple' :: [a] -> (a, a, a)Source

Partial variant of triple.

 triple' [1..3] == (1,2,3)