bowl18_min_freq_dist: Minimum frequency distance

View source: R/model-bowl18.R

bowl18_min_freq_distR Documentation

Minimum frequency distance

Description

This function returns the minimum distance between the fundamental frequencies of a chord, after Bowling et al. (2018). It makes no assumptions about the chord's tuning.

Usage

bowl18_min_freq_dist(x)

## Default S3 method:
bowl18_min_freq_dist(x)

## S3 method for class 'fr_chord'
bowl18_min_freq_dist(x)

Arguments

x

Chord to analyse. The default method assumes that the chord is expressed as a numeric vector of frequencies. Representations from the hrep package (e.g. pi_chord()) can be used to analyse chords expressed as MIDI note numbers.

Value

(Numeric scalar) The minimum distance between the fundamental frequencies of the chord, in Hz.

References

\insertRef

Bowling2018incon

Examples

bowl18_min_freq_dist(c(220, 440, 560)) # processed as frequencies
bowl18_min_freq_dist(hrep::fr_chord(c(220, 440, 560))) # same as above
bowl18_min_freq_dist(hrep::pi_chord(c(60, 64, 67))) # MIDI note numbers

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