all_voicings_pi_chord: All voicings (pi_chord)

Description Usage Arguments Details Value

View source: R/voice-pi-chord.R

Description

Lists all the possible voicings for an object of class pi_chord.

Usage

1
2
3
all_voicings_pi_chord(x, min_octave, max_octave, dbl_change, min_notes,
  max_notes, fix_melody = NA_integer_, fix_content = integer(),
  fix_chord = NULL)

Arguments

x

Object to voice.

min_octave

See voice_opt.

max_octave

See voice_opt.

dbl_change

See voice_opt.

min_notes

See voice_opt.

max_notes

See voice_opt.

fix_melody

(Numeric scalar) Determines the MIDI pitch for the melody (i.e. the top note of the voicing). If NA, no constraint is applied.

fix_content

(Numeric vector) Specifies a set of MIDI pitches that must be contained in the voicing.

fix_chord

(NULL or numeric vector) If not NULL, the function returns just one voicing with the MIDI pitches specified in this vector.

Details

By default, these voicings preserve the chord's bass pitch class. To include all possible inversions, transform the chord first to an object of class pc_set and then call all_voicings_pc_set. By setting dbl_change to TRUE, it is possible to preserve the pitch-class doublings in the original chord.

Value

A list of possible voicings.


pmcharrison/voicer documentation built on Dec. 17, 2020, 1:09 p.m.