Analyse de la basse et réalisation harmonique en cours…
Réalisation terminée
Aperçu du résultat
the digital baroque workshop
Téléversez un fichier MusicXML contenant une ligne de basse pour générer une réalisation de continuo historiquement informée, basée sur les règles de St. Lambert (1707), Dandrieu (1719), Heinichen (1728) et l'arbre de décision de Wead & Knopke (ICMC 2007).
Analyse de la basse et réalisation harmonique en cours…
Aperçu du résultat
Les règles appliquées par le moteur pour placer les voix supérieures, chargées depuis la base et classées par priorité. Ouvrez-en une pour lire son énoncé original, sa traduction et le code qui l'implémente.
The upper voice must never go beyond e'' or f''; the lower limit is normally d'.
Each upper voice must stay within its assigned MIDI range (soprano: D4–E5; alto: A3–C5; tenor: G3–A4). Notes outside these bounds incur a penalty proportional to the distance.
$cost = 0.0;
foreach ($ctx['curr'] as $i => $midi) {
[$lo, $hi] = $ctx['ranges'][$ctx['voiceNames'][$i]];
if ($midi < $lo) { $cost += ($lo - $midi) * 3; }
if ($midi > $hi) { $cost += ($midi - $hi) * 3; }
}
return $cost;
The tenor must not descend below G3 so as not to be confused with the bass.
The tenor (lowest of the three right-hand voices) must stay at or above G3 (MIDI 55). Descending below this point blurs the distinction between tenor and bass, and produces a muddy texture.
if (($ctx['voiceNames'][0] ?? '') !== 'tenor') { return 0.0; }
$tenor = $ctx['curr'][0];
if ($tenor < 55) { return (55 - $tenor) * 50.0; }
return 0.0;
The third of the chord must always be present in the upper voices.
The third above the bass must be represented in at least one of the three upper voices. Without the third the chord is incomplete and the harmony ambiguous.
$tonicPc = $ctx['keyMode'] === 'minor'
? ((($ctx['keyFifths'] * 7) - 3) % 12 + 12) % 12
: (($ctx['keyFifths'] * 7) % 12 + 12) % 12;
$steps = $ctx['keyMode'] === 'minor' ? [0,2,3,5,7,8,10] : [0,2,4,5,7,9,11];
$scalePcs = array_map(fn($i) => ($tonicPc + $i) % 12, $steps);
$bassPc = $ctx['bassCurr'] % 12;
$deg = array_search($bassPc, $scalePcs);
if ($deg === false) { return 0.0; } // chromatic bass — skip
$thirdPc = $scalePcs[($deg + 2) % 7];
$upperPcs = array_map(fn($m) => $m % 12, $ctx['curr']);
// Either third (a figured ♯3 / ♭3 is still the third)
foreach ([$thirdPc, ($thirdPc + 1) % 12, ($thirdPc + 11) % 12] as $pc) {
if (in_array($pc, $upperPcs, true) || $pc === $ctx['melodyPc']) { return 0.0; }
}
return 25.0;
The soprano must never go beyond E5 (e'').
The soprano (top voice of the right hand) must not exceed E5 (MIDI 76). Notes above this limit incur a penalty proportional to the excess.
$soprano = end($ctx['curr']);
if ($soprano > 76) { return ($soprano - 76) * 5.0; }
return 0.0;
The span between soprano and tenor in the right hand must not exceed a ninth.
The interval between the highest and lowest notes of the right hand must not exceed a ninth (14 semitones). Wider spacings are physically awkward and produce a thin, unsupported texture between the outer voices.
if (count($ctx['curr']) < 2) { return 0.0; }
$span = end($ctx['curr']) - $ctx['curr'][0]; // top - bottom of the right hand
if ($span > 14) { return ($span - 14) * 10.0; }
return 0.0;
Parallel fifths between any two voices moving in the same direction are forbidden.
When any two voices both move and the interval between them is a fifth (7 semitones mod 12) both before and after the motion, a parallel fifth results. Each such pair incurs a heavy penalty.
if ($ctx['isStart']) { return 0.0; }
$cost = 0.0;
$allCurr = array_merge($ctx['curr'], [$ctx['bassCurr']]);
$allPrev = array_merge($ctx['prev'], [$ctx['bassPrev']]);
$n = count($allCurr);
for ($a = 0; $a < $n; $a++) {
for ($b = $a + 1; $b < $n; $b++) {
if (!isset($allPrev[$a]) || !isset($allPrev[$b])) { continue; } // a voice that enters
$prevInt = abs($allPrev[$a] - $allPrev[$b]) % 12;
$currInt = abs($allCurr[$a] - $allCurr[$b]) % 12;
$moved = ($allPrev[$a] !== $allCurr[$a]) || ($allPrev[$b] !== $allCurr[$b]);
if ($moved && $prevInt === 7 && $currInt === 7) { $cost += 400.0; }
}
}
return $cost;
The leading tone must never be doubled in any pair of voices.
The leading tone (major seventh of the scale, one semitone below the tonic) must appear in at most one voice. Doubling it creates an obligatory parallel motion to the tonic, which causes parallel octaves.
$tonicPc = $ctx['keyMode'] === 'minor'
? ((($ctx['keyFifths'] * 7) - 3) % 12 + 12) % 12
: (($ctx['keyFifths'] * 7) % 12 + 12) % 12;
$ltPc = ($tonicPc + 11) % 12;
$allPcs = array_map(fn($m) => $m % 12, array_merge($ctx['curr'], [$ctx['bassCurr']]));
$count = count(array_filter($allPcs, fn($pc) => $pc === $ltPc));
if ($count > 1) { return 100.0 * ($count - 1); }
return 0.0;
Never double a chromatically altered note that functions as a leading tone.
Never double a chromatically altered note that functions as a leading tone (i.e. any note outside the diatonic scale of the current key). One occurrence is permissible; two or more are forbidden.
$tonicPc = $ctx['keyMode'] === 'minor'
? ((($ctx['keyFifths'] * 7) - 3) % 12 + 12) % 12
: (($ctx['keyFifths'] * 7) % 12 + 12) % 12;
$steps = $ctx['keyMode'] === 'minor' ? [0,2,3,5,7,8,10] : [0,2,4,5,7,9,11];
$scalePcs = array_map(fn($i) => ($tonicPc + $i) % 12, $steps);
$allPcs = array_map(fn($m) => $m % 12, array_merge($ctx['curr'], [$ctx['bassCurr']]));
$cost = 0.0;
$chromCounts = [];
foreach ($allPcs as $pc) {
if (!in_array($pc, $scalePcs, true)) {
$chromCounts[$pc] = ($chromCounts[$pc] ?? 0) + 1;
}
}
foreach ($chromCounts as $count) {
if ($count > 1) { $cost += 50.0 * ($count - 1); }
}
return $cost;
The dissonant seventh must not be doubled in any pair of voices.
The dissonant seventh of a chord (the pitch a minor or major seventh above the bass) must never be doubled in any pair of voices.
$bassPc = $ctx['bassCurr'] % 12;
$seventhCount = 0;
foreach ($ctx['curr'] as $m) {
$interval = ($m % 12 - $bassPc + 12) % 12;
if ($interval === 10 || $interval === 11) { $seventhCount++; }
}
if ($seventhCount > 1) { return 80.0 * ($seventhCount - 1); }
return 0.0;
The dissonant ninth must not be doubled in any pair of voices.
The dissonant ninth must never be doubled in any pair of voices. Only one voice may hold a ninth above the bass at a time.
$count = 0;
foreach ($ctx['curr'] as $m) {
$sem = $m - $ctx['bassCurr'];
// A ninth (minor or major) above the bass, simple or compound
if ($sem > 12 && in_array($sem % 12, [1, 2], true)) { $count++; }
}
if ($count > 1) { return 50.0 * ($count - 1); }
return 0.0;
Parallel octaves between any two voices moving in the same direction are forbidden.
When any two voices both move and the interval between them is an octave (0 semitones mod 12) both before and after the motion, a parallel octave results. Each such pair incurs a heavy penalty.
if ($ctx['isStart']) { return 0.0; }
$cost = 0.0;
$allCurr = array_merge($ctx['curr'], [$ctx['bassCurr']]);
$allPrev = array_merge($ctx['prev'], [$ctx['bassPrev']]);
$n = count($allCurr);
for ($a = 0; $a < $n; $a++) {
for ($b = $a + 1; $b < $n; $b++) {
if (!isset($allPrev[$a]) || !isset($allPrev[$b])) { continue; } // a voice that enters
$prevInt = abs($allPrev[$a] - $allPrev[$b]) % 12;
$currInt = abs($allCurr[$a] - $allCurr[$b]) % 12;
$moved = ($allPrev[$a] !== $allCurr[$a]) || ($allPrev[$b] !== $allCurr[$b]);
if ($moved && $prevInt === 0 && $currInt === 0) { $cost += 400.0; }
}
}
return $cost;
The leading tone must resolve upward to the tonic.
Whatever voice holds a leading tone (major 7th of the scale) must move upward — to the tonic — in the following chord. A voice that stayed on or descended from the leading tone incurs a penalty.
if ($ctx['isStart']) { return 0.0; }
$tonicPc = $ctx['keyMode'] === 'minor'
? ((($ctx['keyFifths'] * 7) - 3) % 12 + 12) % 12
: (($ctx['keyFifths'] * 7) % 12 + 12) % 12;
$ltPc = ($tonicPc + 11) % 12;
$currPcs = array_map(fn($m) => $m % 12, array_merge($ctx['curr'], [$ctx['bassCurr']]));
// Only an obligation when the next chord resolves it: no leading tone left
// in it, and the tonic present.
if (in_array($ltPc, $currPcs, true) || !in_array($tonicPc, $currPcs, true)) { return 0.0; }
$cost = 0.0;
foreach ($ctx['curr'] as $i => $curr) {
$prev = $ctx['prev'][$i] ?? null;
if ($prev === null || ($prev % 12) !== $ltPc) { continue; }
// Up a semitone to the tonic. An inner voice may fall to the fifth
// (Christensen 2002, 18) — tolerated at a smaller cost.
if ($curr === $prev + 1) { continue; }
$isTop = ($i === count($ctx['curr']) - 1);
$cost += $isTop ? 80.0 : 20.0;
}
return $cost;
The dissonant seventh invariably resolves one step downward.
Whatever the case, the dissonant seventh invariably resolves one step downward. A voice that held a seventh above the previous bass must move down in the current chord.
if ($ctx['isStart']) { return 0.0; }
$bassPrev = $ctx['bassPrev'];
$cost = 0.0;
foreach ($ctx['curr'] as $i => $curr) {
$prev = $ctx['prev'][$i] ?? null;
if ($prev === null) { continue; }
$iv = ($prev - $bassPrev) % 12;
if (!($iv === 10 || $iv === 11)) { continue; }
if ($curr === $prev - 1 || $curr === $prev - 2) { continue; } // resolves down by step
// Held over a moving bass that turns it into a consonance (3rd/6th):
// the bass has resolved it.
$now = (($curr - $ctx['bassCurr']) % 12 + 12) % 12;
if ($curr === $prev && $ctx['bassCurr'] !== $bassPrev && in_array($now, [3, 4, 8, 9], true)) { continue; }
$cost += 120.0;
}
return $cost;
The suspended fourth is always resolved downward by step to the third (4–3).
A suspended fourth occurring in any upper voice is always sustained and resolved downward by step to the third. A voice that held a fourth (5 semitones) above the previous bass must move down.
if ($ctx['isStart']) { return 0.0; }
$bassPrev = $ctx['bassPrev'];
$cost = 0.0;
// Only a suspended / cadential fourth: a fourth with no third beside it
// (in 4/3 and 4/2 chords the fourth is a consonant chord tone).
$prevPcs = array_map(fn($m) => (($m - $bassPrev) % 12 + 12) % 12, array_filter($ctx['prev'], fn($m) => $m !== null));
if (in_array(3, $prevPcs, true) || in_array(4, $prevPcs, true) || in_array(2, $prevPcs, true)) { return 0.0; }
foreach ($ctx['curr'] as $i => $curr) {
$prev = $ctx['prev'][$i] ?? null;
if ($prev === null) { continue; }
$iv = ($prev - $bassPrev) % 12;
if (!($iv === 5)) { continue; }
if ($curr === $prev - 1 || $curr === $prev - 2) { continue; } // resolves down by step
// Held over a moving bass that turns it into a consonance (3rd/6th):
// the bass has resolved it.
$now = (($curr - $ctx['bassCurr']) % 12 + 12) % 12;
if ($curr === $prev && $ctx['bassCurr'] !== $bassPrev && in_array($now, [3, 4, 8, 9], true)) { continue; }
$cost += 120.0;
}
return $cost;
The suspended ninth is always resolved downward by step to the octave.
The suspended ninth invariably resolves downward by step to the octave. Any upper voice holding a ninth (13 or 14 semitones) above the preceding bass must move down in the next chord.
if ($ctx['isStart']) { return 0.0; }
$bassPrev = $ctx['bassPrev'];
$cost = 0.0;
foreach ($ctx['curr'] as $i => $curr) {
$prev = $ctx['prev'][$i] ?? null;
if ($prev === null) { continue; }
$iv = ($prev - $bassPrev) % 12;
if (!(($iv === 1 || $iv === 2) && $prev - $bassPrev > 12)) { continue; }
if ($curr === $prev - 1 || $curr === $prev - 2) { continue; } // resolves down by step
// Held over a moving bass that turns it into a consonance (3rd/6th):
// the bass has resolved it.
$now = (($curr - $ctx['bassCurr']) % 12 + 12) % 12;
if ($curr === $prev && $ctx['bassCurr'] !== $bassPrev && in_array($now, [3, 4, 8, 9], true)) { continue; }
$cost += 120.0;
}
return $cost;
The augmented fifth, when it appears in the top voice, resolves upward to the sixth.
The augmented fifth (#5 = 8 semitones above the bass), when it appears in the soprano (top voice), must resolve upward to the sixth. It acts as a secondary leading tone.
if ($ctx['isStart']) { return 0.0; }
// Only a figured ♯5 — a minor sixth has the same semitone count.
$isAugFifth = false;
foreach ($ctx['prevIntervals'] as $iv) {
if (($iv['interval'] ?? 0) === 5 && ($iv['alter'] ?? 0) > 0) { $isAugFifth = true; }
}
if (!$isAugFifth) { return 0.0; }
$cost = 0.0;
foreach ($ctx['curr'] as $i => $curr) {
$prev = $ctx['prev'][$i] ?? null;
if ($prev === null || ($prev - $ctx['bassPrev']) % 12 !== 8) { continue; }
if ($curr <= $prev) { $cost += 30.0; } // must resolve upward
}
return $cost;
Hidden (direct) fifths between soprano and bass are avoided when the soprano leaps.
Hidden fifths occur when soprano and bass move in the same direction by leap into a perfect fifth. Penalise when the soprano leaps more than a step, both voices move in the same direction, and the resulting outer-voice interval is a fifth or octave.
if ($ctx['isStart']) { return 0.0; }
$soprano = end($ctx['curr']);
$sopranoPrev = end($ctx['prev']);
if ($sopranoPrev === null || $sopranoPrev === false) { return 0.0; }
$bassDir = $ctx['bassCurr'] - $ctx['bassPrev'];
$sopDir = $soprano - $sopranoPrev;
if ($bassDir === 0 || abs($sopDir) <= 2) { return 0.0; } // only a leaping soprano
$currOuterInt = abs($soprano - $ctx['bassCurr']) % 12;
if (($sopDir > 0) === ($bassDir > 0) && ($currOuterInt === 7 || $currOuterInt === 0)) { return 30.0; }
return 0.0;
The upper voices must not cross one another.
The tenor, alto, and soprano voices must always remain in ascending order of pitch. A voice that crosses below a lower voice incurs a heavy penalty.
$cost = 0.0;
for ($i = 0; $i < count($ctx['curr']) - 1; $i++) {
if ($ctx['curr'][$i] > $ctx['curr'][$i + 1]) { $cost += 100.0; }
}
return $cost;
Retain common tones between consecutive chords in the same voice whenever possible.
If a pitch-class is shared between two consecutive chords, it should be kept in the same voice rather than being transferred. Unnecessary motion away from a common tone incurs a penalty.
if ($ctx['isStart']) { return 0.0; }
$cost = 0.0;
$prevUpper = array_values(array_filter($ctx['prev'], fn($m) => $m !== null));
$prevPcs = array_values(array_unique(array_map(fn($m) => $m % 12, array_merge($prevUpper, [$ctx['bassPrev']]))));
$currPcs = array_values(array_unique(array_map(fn($m) => $m % 12, array_merge($ctx['curr'], [$ctx['bassCurr']]))));
$aPrev = $prevPcs; $aCurr = $currPcs; sort($aPrev); sort($aCurr);
$sameChord = ($aPrev === $aCurr);
if ($sameChord) {
foreach ($ctx['curr'] as $i => $midi) {
$prev = $ctx['prev'][$i] ?? null;
if ($prev === null) { continue; }
[$lo, $hi] = $ctx['ranges'][$ctx['voiceNames'][$i]];
if ($midi === $prev && abs($midi - ($lo + $hi) / 2) > ($hi - $lo) * 0.35) {
$cost += 3.0;
}
}
return $cost;
}
foreach ($ctx['curr'] as $i => $midi) {
$prev = $ctx['prev'][$i] ?? null;
if ($prev === null) { continue; }
if (in_array($prev % 12, $currPcs, true) && ($midi % 12) !== ($prev % 12)) {
$cost += 8.0;
}
}
return $cost;
The suspended fourth must not be doubled; only one voice may hold it at a time.
The suspended fourth must never be doubled. Only one upper voice may hold a fourth (5 semitones) above the bass at a time, since it is a dissonance requiring a single prepared resolution.
$bassPc = $ctx['bassCurr'];
$count = 0;
foreach ($ctx['curr'] as $m) {
$interval = ($m - $bassPc + 1200) % 12;
if ($interval === 5) { $count++; } // perfect fourth = 5 semitones
}
if ($count > 1) { return 50.0 * ($count - 1); }
return 0.0;
Prefer common tones, then stepwise motion; penalize leaps according to size.
Smooth voice leading is the primary criterion for chord position. Common tones cost nothing; semitone or whole-tone steps cost little; leaps grow increasingly expensive.
if ($ctx['isStart'] || empty($ctx['prev'])) { return 0.0; }
$cost = 0.0;
foreach ($ctx['curr'] as $i => $midi) {
$prev = $ctx['prev'][$i] ?? null;
if ($prev === null) { continue; }
$motion = abs($midi - $prev);
// Each voice is an independent line that must move smoothly: common tones
// and steps are nearly free, a third is idiomatic, but anything beyond a
// fourth is a real leap and is penalised steeply (matching the editorial
// reference, whose voices leap past a fourth only a few % of the time).
if ($motion === 0) { $cost -= 2.0; /* common tone — retained */ }
elseif ($motion <= 2) { $cost += 1.0; }
elseif ($motion <= 4) { $cost += 3.0; }
elseif ($motion === 5) { $cost += 7.0; }
elseif ($motion <= 7) { $cost += 16.0; }
elseif ($motion <= 9) { $cost += 28.0; }
else { $cost += $motion * 4.0; }
}
return $cost;
With a seventh chord, it is better to play the third and fifth than the third and octave.
When realizing a seventh chord, it is better to include the fifth rather than the octave of the bass. If the chord contains a seventh but has an octave doubling of the bass instead of a fifth, apply a soft penalty.
$bassPc = $ctx['bassCurr'] % 12;
$allPcs = array_map(fn($m) => $m % 12, $ctx['curr']);
$hasSeventh = false;
foreach ($allPcs as $pc) {
$iv = ($pc - $bassPc + 12) % 12;
if ($iv === 10 || $iv === 11) { $hasSeventh = true; break; }
}
if (!$hasSeventh) { return 0.0; }
$hasFifth = false;
$hasOctave = false;
foreach ($allPcs as $pc) {
$iv = ($pc - $bassPc + 12) % 12;
if ($iv === 7) { $hasFifth = true; }
if ($iv === 0) { $hasOctave = true; }
}
if ($hasOctave && !$hasFifth) { return 15.0; }
return 0.0;
The soprano and bass should move in contrary motion whenever possible.
The Soprano and Bass should move in contrary motion whenever possible. Similar motion between outer voices is penalised.
if ($ctx['isStart']) { return 0.0; }
$sopranoPrev = end($ctx['prev']);
if ($sopranoPrev === null || $sopranoPrev === false) { return 0.0; }
$bassDir = $ctx['bassCurr'] - $ctx['bassPrev'];
$sopDir = end($ctx['curr']) - $sopranoPrev;
if ($bassDir === 0 || $sopDir === 0) { return 0.0; }
if (($bassDir > 0) === ($sopDir > 0)) { return 6.0; }
return 0.0;
In a sequence of seventh chords with bass moving up a fourth or down a fifth, alternate the fifth and the octave between consecutive chords.
In a sequence of seventh chords where the bass moves up a fourth or down a fifth, alternate between playing the fifth (and omitting the octave) in one chord and the octave (omitting the fifth) in the next. Two consecutive seventh chords that both include the fifth cause parallel fifths; two that both omit it sound thin.
if ($ctx['isStart']) { return 0.0; }
// Only applies when a 7th was present in the previous chord
$prevBassPc = $ctx['bassPrev'] % 12;
$hasPrevSeventh = false;
foreach (array_filter($ctx['prev'], fn($m) => $m !== null) as $m) {
$iv = ($m % 12 - $prevBassPc + 12) % 12;
if ($iv === 10 || $iv === 11) { $hasPrevSeventh = true; break; }
}
if (!$hasPrevSeventh) { return 0.0; }
// Check if current chord also has a seventh
$currBassPc = $ctx['bassCurr'] % 12;
$hasCurrSeventh = false;
foreach ($ctx['curr'] as $m) {
$iv = ($m % 12 - $currBassPc + 12) % 12;
if ($iv === 10 || $iv === 11) { $hasCurrSeventh = true; break; }
}
if (!$hasCurrSeventh) { return 0.0; }
// Bass motion: up a 4th (5 semitones) or down a 5th (7 semitones)
$bassMotion = ($ctx['bassCurr'] - $ctx['bassPrev'] + 12) % 12;
if ($bassMotion !== 5 && $bassMotion !== 7) { return 0.0; }
// Check if both chords have a fifth — that causes parallel fifths → penalise
$prevHasFifth = false; $currHasFifth = false;
foreach (array_filter($ctx['prev'], fn($m) => $m !== null) as $m) { if (($m % 12 - $prevBassPc + 12) % 12 === 7) { $prevHasFifth = true; break; } }
foreach ($ctx['curr'] as $m) { if (($m % 12 - $currBassPc + 12) % 12 === 7) { $currHasFifth = true; break; } }
if ($prevHasFifth && $currHasFifth) { return 20.0; } // both have fifth → likely parallel fifths
return 0.0;
Sur une basse conjointe, seules les notes des temps forts sont harmonisées ; les notes intermédiaires sont traitées comme notes de passage — sauf si elles portent un chiffrage.
Documentaire : le moteur harmonise aujourd'hui chaque note de basse. Appliquer cette règle demanderait de connaître la métrique et la position de la note dans la mesure.
return 0.0;
Dans une mesure ternaire rapide, un seul accord par mesure suffit, dès lors que la basse est conjointe ou se meut à l'intérieur de l'harmonie.
Documentaire : suppose la connaissance du tempo et du chiffre de mesure, absents du contexte transmis aux règles.
return 0.0;
Dans une mesure ternaire, on ne réalise normalement que les premier et troisième temps.
Documentaire : suppose la position métrique de la note.
return 0.0;
Les accompagnateurs du XVIIIe siècle ne liaient jamais une note par-dessus la barre de mesure, d'un temps faible vers un temps fort.
Documentaire : le moteur ne produit pas de liaisons entre accords.
return 0.0;
Le tiret d'un chiffrage prolonge l'harmonie : la main droite tient l'accord sans le rejouer. Règle empirique, que la conduite des voix peut contredire.
Documentaire : le moteur ne lit pas les tirets de prolongation.
return 0.0;
Dans un tempo vif, sur les notes de basse tombant dans la seconde moitié d'un temps fort, on ne frappe que les sons absents de l'accord précédent, gardant tout ce qui convient encore.
Documentaire : Christensen précise que seul Delair décrit cette pratique et qu'on ne peut se prononcer sur sa validité générale.
return 0.0;
La main gauche peut doubler la basse à l'octave d'un bout à l'autre, sauf si le tempo est trop rapide.
Documentaire : le moteur ne connaît ni le tempo ni la main gauche, qu'il écrit à une seule voix.
return 0.0;
Au clavecin, plus la texture est fournie, plus le son est harmonieux ; à l'orgue, on évite le plein jeu dans la musique douce et hors des tutti.
Documentaire : le moteur ne sait pas sur quel instrument la réalisation sera jouée.
return 0.0;
Au clavecin, on double parfois toutes les notes de l'accord pour remplir la texture, bien que cela soit contraire aux règles.
Documentaire : licence d'exécution, non un critère de choix de voix.
return 0.0;
On peut réduire l'accord à trois voix quand une basse aiguë rencontre un passage grave de la mélodie, mais jamais plus de trois ou quatre accords de suite.
Documentaire : demanderait au moteur de compter les accords à trois voix consécutifs, ce qu'il ne fait pas.
return 0.0;
Le réalisateur implémente l'arbre de décision décrit par Wead & Knopke (ICMC 2007), s'appuyant sur des traités baroques :
| Triades | ||
| (none) / 5 | 5 | tierce en état fondamental |
| 6 | 6 | accord au premier renversement |
| 6 4 | 6 4 | accord au deuxième renversement — cadentiel ou de passage |
| Accords de septième | ||
| 7 | 7 5 | accord de septième, état fondamental |
| 6 5 | 6 5 | accord de septième, premier renversement (variante V⁶₅) |
| ♭5 | ♭5 6 | accord de quinte diminuée = V⁶₅ (premier renversement de l'accord de dominante) |
| 4 3 | 4 3 | accord de septième, deuxième renversement / suspension 4–3 |
| 2 (= 4 2) | 4 2 | accord de septième, troisième renversement |
| ♯4 | ♯4 2 | accord du triton = V⁴₂ (troisième renversement de l'accord de dominante) |
| Neuvièmes | ||
| 9 | 9 5 | accord de neuvième / suspension 9–8 |
| 9 7 | 9 7 5 | neuvième avec septième |
| Suspensions | ||
| 7 6 | 7 6 | suspension 7–6 |
| 5 4 | 5 4 | suspension 5–4 (–3) |
| Chromatique / Altéré | ||
| ♯5 | ♯5 7 9 | accord de quinte augmentée — 3, ♯5, 7, 9 (Christensen §14) |
| ♭7 | ♭7 5 | accord de septième diminuée — 3, 5, ♭7 (Christensen §15) |
| Spécial | ||
| 8 | 8 | octave explicite au-dessus de la basse |
| ♯ / ♭ / ♮ | préfixe d'altération — ♯ élève, ♭ abaisse, ♮ annule l'intervalle chiffré | |
Laisser un commentaire
Ce site est encore en construction et en constante évolution. Si vous avez des idées d'ajouts, d'améliorations ou de corrections, n'hésitez pas à me laisser un petit message.