Index
Segments
HCP
Segs

Functor

Import

Export

Define

proc{HomophonicChordProgression Args MyScore}
Top-level script or subscript for creating homophonic chord progressions. The individual voices are created with Segs.makeCounterpoint_Seq, the underlying chords (and optionally scales) are given as arguments.

Score topology (chords and scales are optional, see below):

sim([seq(note+)+
seq(chord+)
seq(scale+)])

The number of chords determines the number of notes per voice, the start time of each chord equals the start times of the sim notes (so the resulting score is truely homophonic), and the sim notes must sound all pitch classes of the chord (i.e. arg voiceNo must be high enough, see below). No voice crossing is permitted, the highest voice is the first and so forth. For inversion chords, the bass plays the bass pitch class of the chord (the soprano pitch class is ignored). The upper voices are at maximum an ocatve apart of each other.

Args:
'isToplevel' (default true): if true, returns fully initialised score where chords and scales are part of score, otherwise score is not fully initialised and chords/scales are left out.
'voiceNo' (default 4): number of voices
'chords' (default {HS.score.makeChords unit}): non-nil list of chords. Remember that neither score objects nor variables can be in the top-level space, so the chords (and scales) to HomophonicChordProgression must be created inside a script.
'scales' (default nil): list of scales.
'restrictMelodicIntervals' (default unit(minPercent:60 maxPercent:100)): if non-false then the intervals between upper voices are a fifths at most, and the bass is a fifths at most or an octave. The args minPercent/maxPercent specify the percentage boudary of the number of steps in the upper voices. Disabled if false.
'commonPitchesHeldOver' (default true): if true, the notes of the harmonic band stay in the same voice and octave.
'noParallels' (default true): if true, no parallel perfect consonances are permitted.
'sliceRule' (default proc {$ Xs} skip end): unary constraint applied to the list MyChords | Notes at each "time slice" (i.e., for each chord and the notes sim to this chord). Notes are the notes in descending order (i.e. Bass last).

Further Args.iargs, Args.rargs: as for Segs.makeCounterpoint_Seq
Args.iargs.n overwritten (is length of chords)
Further Args: for top-level sim.



End