@libraz/libcantus - v0.9.3
    Preparing search index...

    Function voiceChordStyled

    • Realize a single chord as an explicit tertian voicing in a chosen style, independent of the SATB range search used by voiceChord.

      The chord tones are stacked in close position from the bass (bassPc, else rootPc) in the given scientific-pitch octave upward (octave 4 starts the bass near C4 = MIDI 60, matching midiToNote and the bass module). When topNote is given the stack is rotated so the highest voice's pitch class equals that note (or the nearest chord tone). The chosen VoicingStyle then transforms the stack, and the result is returned as ascending MIDI pitches (index 0 = lowest).

      Parameters

      Returns number[]

      MIDI pitches, ascending, one per retained voice.

      import { parseChordSymbol, voiceChordStyled } from '@libraz/libcantus';
      const chord = parseChordSymbol('Dm7');
      voiceChordStyled(chord, { style: 'drop2' }); // ascending MIDI pitches, drop-2 voicing