csound-expression-opcodes-0.0.3: opcodes for the library csound-expression

Safe HaskellNone
LanguageHaskell98

Csound.Typed.Opcode.PitchConverters

Contents

Synopsis

Functions.

cent :: SigOrD a => a -> a Source

Calculates a factor to raise/lower a frequency by a given amount of cents.

 cent (x) 

csound doc: http://www.csounds.com/manual/html/cent.html

cpsmidinn :: SigOrD a => a -> a Source

Converts a Midi note number value to cycles-per-second.

 cpsmidinn  (MidiNoteNumber)  (init- or control-rate args only)

csound doc: http://www.csounds.com/manual/html/cpsmidinn.html

cpsoct :: SigOrD a => a -> a Source

Converts an octave-point-decimal value to cycles-per-second.

 cpsoct  (oct)  (no rate restriction)

csound doc: http://www.csounds.com/manual/html/cpsoct.html

cpspch :: SigOrD a => a -> a Source

Converts a pitch-class value to cycles-per-second.

 cpspch  (pch)  (init- or control-rate args only)

csound doc: http://www.csounds.com/manual/html/cpspch.html

octave :: SigOrD a => a -> a Source

Calculates a factor to raise/lower a frequency by a given amount of octaves.

 octave (x)

csound doc: http://www.csounds.com/manual/html/octave.html

octcps :: SigOrD a => a -> a Source

Converts a cycles-per-second value to octave-point-decimal.

 octcps  (cps)  (init- or control-rate args only)

csound doc: http://www.csounds.com/manual/html/octcps.html

octmidinn :: SigOrD a => a -> a Source

Converts a Midi note number value to octave-point-decimal.

 octmidinn  (MidiNoteNumber)  (init- or control-rate args only)

csound doc: http://www.csounds.com/manual/html/octmidinn.html

octpch :: SigOrD a => a -> a Source

Converts a pitch-class value to octave-point-decimal.

 octpch  (pch)  (init- or control-rate args only)

csound doc: http://www.csounds.com/manual/html/octpch.html

pchmidinn :: SigOrD a => a -> a Source

Converts a Midi note number value to octave point pitch-class units.

 pchmidinn  (MidiNoteNumber)  (init- or control-rate args only)

csound doc: http://www.csounds.com/manual/html/pchmidinn.html

pchoct :: SigOrD a => a -> a Source

Converts an octave-point-decimal value to pitch-class.

 pchoct  (oct)  (init- or control-rate args only)

csound doc: http://www.csounds.com/manual/html/pchoct.html

semitone :: SigOrD a => a -> a Source

Calculates a factor to raise/lower a frequency by a given amount of semitones.

 semitone (x)

csound doc: http://www.csounds.com/manual/html/semitone.html

Tuning Opcodes.

cps2pch :: D -> D -> D Source

Converts a pitch-class value into cycles-per-second (Hz) for equal divisions of the octave.

icps  cps2pch  ipch, iequal

csound doc: http://www.csounds.com/manual/html/cps2pch.html

cpstun :: Sig -> Sig -> Tab -> Sig Source

Returns micro-tuning values at k-rate.

kcps  cpstun  ktrig, kindex, kfn

csound doc: http://www.csounds.com/manual/html/cpstun.html

cpstuni :: D -> Tab -> D Source

Returns micro-tuning values at init-rate.

icps  cpstuni  index, ifn

csound doc: http://www.csounds.com/manual/html/cpstuni.html

cpsxpch :: D -> D -> D -> D -> D Source

Converts a pitch-class value into cycles-per-second (Hz) for equal divisions of any interval.

Converts a pitch-class value into cycles-per-second (Hz) for equal divisions of any interval. There is a restriction of no more than 100 equal divisions.

icps  cpsxpch  ipch, iequal, irepeat, ibase

csound doc: http://www.csounds.com/manual/html/cpsxpch.html