pitch_distance: Get pitch distance

View source: R/model-parn94.R

pitch_distanceR Documentation

Get pitch distance

Description

Gets the pitch distance between two sonorities, after \insertCiteParncutt1994;textualincon.

Usage

pitch_distance(x, y, ...)

Arguments

x

The first sonority to compare, passed to pitch_salience(). Typically will be a numeric vector of MIDI pitches.

y

The second sonority to compare, passed to pitch_salience(). Typically will be a numeric vector of MIDI pitches.

...

Further arguments to pass to pitch_salience().

Value

Pitch distance, as a numeric scalar.

References

\insertAllCited

pmcharrison/incon documentation built on Feb. 12, 2024, 3:18 a.m.