CENTER-FREQ

[GENERIC-FUNCTION]


OMTristan
Function Reference
ARGUMENTS:
  - chord pitches [default = (quote (6000))]
  - unit unit [default = (quote midic)]

Description:

Returns the note which is at the minimum possible distance from the
frequencies of all the notes of <chord> (minimum sum of the squares of
the distances). This note can be thought of as a sort of center of gravity
for <chord> (it is usually not a member of the chord).

If <chord> is a list of chords the box returns a list of center frequencies.

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



Auto doc generation by OpenMusic 7.0 © 2022 IRCAM