MAP-CHORDS
Arguments: chs1 chs2 cf ca cr cn approx penal [generic-function]
map-chords takes a list of chords as a model, and another list of chords as a
reservoir. Then it picks chords in the reservoir and it builds up a new sequence,
trying to make that sequence look as much as possible like the model.
map-chords uses a euclidian distance measure between chords in the reservoir and
chords in the model. Dimensions used are : the number of common notes, the ambitus
(dist from the bottom to the to of the chord), the register (the gravity center of the chord),
the difference in the number of notes. The user has the ability to give a weighting
coefficient for any of these criteria thus influing on the resolution. If O the criterium is
totally ignored. Typical values are between 0 and 10.
There is also a penalty parameter for chord repetition : if this value is high, a chord cannot
be repeated in the sequence except if its first occurence is very far behind. Values typically
reservoir. Then it picks chords in the reservoir and it builds up a new sequence,
trying to make that sequence look as much as possible like the model.
map-chords uses a euclidian distance measure between chords in the reservoir and
chords in the model. Dimensions used are : the number of common notes, the ambitus
(dist from the bottom to the to of the chord), the register (the gravity center of the chord),
the difference in the number of notes. The user has the ability to give a weighting
coefficient for any of these criteria thus influing on the resolution. If O the criterium is
totally ignored. Typical values are between 0 and 10.
There is also a penalty parameter for chord repetition : if this value is high, a chord cannot
be repeated in the sequence except if its first occurence is very far behind. Values typically
between 0 (no penalty) and 10.
parameters
chs1 : a list of chords (chord-objects or midics) or a chord-seq This is the model.
chs2 : a list of chords (chord-objects or midics) or a chord-seq This is the reservoir.
cf : integer, coefficient for common notes criteria
ca : integer, coefficient for ambitus criteria
cr : integer, coefficient for register criteria
cn : integer, coefficient for number of notes criteria
approx: an integer between 1 and 16. Microtone approximation used in comparisons. 2 = 1/2tone.
penal : an integer >=0, penalty value for chord repetition
chs2 : a list of chords (chord-objects or midics) or a chord-seq This is the reservoir.
cf : integer, coefficient for common notes criteria
ca : integer, coefficient for ambitus criteria
cr : integer, coefficient for register criteria
cn : integer, coefficient for number of notes criteria
approx: an integer between 1 and 16. Microtone approximation used in comparisons. 2 = 1/2tone.
penal : an integer >=0, penalty value for chord repetition
output :
a chord-seq