CLOSEST-HARM

[GENERIC-FUNCTION]


OMTristan
Function Reference
ARGUMENTS:
  - chord chord [default = (quote (4800 5250 5580))]
  - fund fund [default = 2400]
  - type type [default = (quote notes)]
&optional
 
  - unit unit [default = (quote midic)]

Description:

Calculates the closest partial of the harmonic series built on <fund> to each note of <chord> (For explanations on building harmonic series, see the object 'n-sp-gen').

If <chord> is a list of chords the result will contain the analyses of each successive chord.

The optional argument <unit> determines whether <chord> is entered in midicents, or in hertz. If 'midic' is selected the values will be converted to frequencies inside the function and then the output (if appropriate) is reconverted to midicents. If 'hz' is selected the entry, calculations and output (if appropriate) are all in hertz.

The optional argument <type> determines whether the output is a list of partial numbers/ranks or the actual notes corresponding to those partials.



Auto doc generation by OpenMusic 7.0 © 2022 IRCAM