Description:
Distorts the frequencies of <chord> so that the lowest note is changed to
<minout> and the highest note to <maxout>. Interior notes are rescaled so
as to preserve the relative positions of their frequencies.
The optional inputs <minin> and <maxin> allow the scaling to be done
relative to two selected reference notes rather than the highest and
lowest notes of the chord. The note entered as <minin> will be moved to
<minout>, and <maxin> to <maxout> the rest of the chord is then
rescaled accordingly.
If <chord> is a list of chords, output will be a corresponding list of
distorted chords.
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.
The optional argument <output> determines whether the non-distorted
<chord> is included ('inclu') or excluded ('exclu') from the output list.
If included the non-distorted notes will be mixed with the distorted into
a single chord.
|