N-SP-GEN

[GENERIC-FUNCTION]


OMTristan
Function Reference
ARGUMENTS:
  - fund Fundamental [default = 3600]
  - nth Ranks [default = (quote (1 2 3 4 5))]
  - dist% Distor [default = 0]
&optional
 
  - offset Offset [default = 0]
  - approx Approx  

Description:

Returns the <nth> partial(s) of fundamental <fund>. <fund> can be an atom or a list any depth ; <nth> can be an atom or a list ; <nth> may be a non-integer. ÔdÕ allows to input a distortion factor immediately.

The following algorithm is used: p = f * r ^ d + offset.
Here, d = 1 + dist%/100 (dist% = distortion percentage).
In case d = 1, there is no distortion (dist% = 0) and the series is harmonic.
In case d < 1, we have a distorted (i.e. inharmonic) spectrum which is compressed.
In case of d > 1 we have a distorted (i.e. inharmonic) spectrum which is expanded.

Optional: With ÔoffsetÕ a frequency shift may be added to the function. ÔapproxÕ allows to specify the desired approximation of the pitches to the nearest 1/2 th, 1/4 th, or 1/8th tone.



Auto doc generation by OpenMusic 7.0 © 2022 IRCAM