Class: PitvPatterns

PitvPatterns()

Creates a class to hold state and defines Patterns for creating and using that state to work with CsoundAC PITV groups. An instance of this class must be created at module scope and passed to the relevant Patterns.

Constructor

new PitvPatterns()

Source:

Classes

PitvPatterns

Methods

acP(is_onset, pitv, hap) → {Hap}

acP: Insert a CsoundAC PITV group into the Pattern's state.

Parameters:
Name Type Description
is_onset boolean

Indicates whether this Hap is the onset of its cycle.

pitv PITV

The PITV object to be inserted.

hap Hap

The current Hap.

Source:
Returns:

A new Hap.

Type
Hap

acPC(is_onset, hap) → {Hap}

acPC: Insert the Chord corresponding to the current PITV element into the Pattern's state.

Parameters:
Name Type Description
is_onset boolean

Indicates whether this Hap is the onset of its cycle.

hap Hap

The current Hap.

Source:
Returns:

A new Hap.

Type
Hap

acPI(is_onset, I, hap) → {Hap}

acPI: Set the inversion index of the PITV element in the Pattern's state.

Parameters:
Name Type Description
is_onset boolean

Indicates whether this Hap is the onset of its cycle.

I number

The PITV inversion.

hap Hap

The current Hap.

Source:
Returns:

A new Hap.

Type
Hap

acPO(is_onset, V, hap) → {Hap}

acPO: Set the octavewise voicing index of the PITV element in the Pattern's state.

Parameters:
Name Type Description
is_onset boolean

Indicates whether this Hap is the onset of its cycle.

V number

The index of the octavewise revoicing in this PITV.

hap Hap

The current Hap.

Source:
Returns:

A new Hap.

Type
Hap

acPP(is_onset, P, hap) → {Hap}

acPP: Set the prime form index of the PITV element in the Pattern's state.

Parameters:
Name Type Description
is_onset boolean
P number

The PITV index of the prime form.

hap Hap

The current Hap.

Source:
Returns:

A new Hap.

Type
Hap

acPT(is_onset, T, hap) → {Hap}

acPT: Set the transposition of the PITV element in the Pattern's state.

Parameters:
Name Type Description
is_onset boolean

Indicates whether this Hap is the onset of its cycle.

T number

The PITV transposition.

hap Hap

The current Hap.

Source:
Returns:

A new Hap.

Type
Hap

acPV(is_onset, hap) → {Hap}

acPV: Move notes in the Pattern to fit the pitch-class set of the current element of the PITV group in the Pattern's state.

Parameters:
Name Type Description
is_onset boolean

Indicates whether this Hap is the onset of its cycle.

hap Hap

The current Hap.

Source:
Returns:

A new Hap.

Type
Hap

acPVV(is_onset, voice, hap) → {Hap}

acPVV: Generate a note that represents a particular voice of the Chord represented by the current elemet of the PITV in this.

Parameters:
Name Type Description
is_onset boolean
voice number
hap Hap

The current Hap.

Source:
Returns:

A new Hap.

Type
Hap

acPVVL(is_onset, voice, hap) → {Hap}

acPVVL: Generate a note that represents a particular voice of the Chord, as the closest voice-leading from the prior element of this.

Parameters:
Name Type Description
is_onset boolean

Indicates whether this Hap is the onset of its cycle.

voice number

The number of the voice in thre chord that is to ber used.

hap Hap

The current Hap.

Source:
Returns:

A new Hap.

Type
Hap