Types

Types provide different ways of representing chords.

type()

Type

represent()

Represent

representations()

Representations

fr_chord() is.fr_chord()

Frequency chord

.milne_pc_spectrum()

Constructor function for Milne pitch-class spectrum

milne_pc_spectrum()

Milne pitch-class spectrum

pc_chord()

Pitch-class chord

pc_chord_type() pi_chord_type(<pi_chord>) pi_chord_type(<smooth_spectrum>) pi_chord_type(<sparse_spectrum>)

Pitch-class chord type

pc_set()

Pitch-class set

pc_set_norm_order()

Pitch-class set (normal order)

pc_set_type() transposition(<pc_set_type>)

Pitch-class set type

pi_chord()

Pitch chord

pi_chord_type()

Pitch chord type

smooth_pc_spectrum()

Smooth pitch-class spectrum

smooth_pi_spectrum()

Smooth pitch spectrum

sparse_fr_spectrum()

Sparse frequency spectrum

sparse_pc_spectrum()

Sparse pitch-class spectrum

sparse_pi_spectrum()

Sparse pitch spectrum

.wave()

wave constructor

wave()

Wave

Chord qualities

Functions for decoding chord qualities from textual labels.

get_chord_qualities_df()

Get chord qualities

register_chord_quality()

Register chord quality

initialise_chord_qualities()

Initialise chord qualities database

decode_chord_quality()

Decode chord quality

Alphabets

Several types have alphabets defined to allow integer encodings.

pc_chord_alphabet

Pitch-class chord alphabet

pc_set_alphabet

Pitch-class set alphabet

pc_chord_id_to_pc_set_id_map

pc_chord to pc_set map

alphabet_size()

Alphabet size

list_chords()

List chords

map_pc_chord_id_to_pc_set_id()

Map pitch-class chords to pitch-class sets

Sequences and corpora

Chord sequences are expressed as objects of class vec; corpora are expressed as objects of class corpus.

corpus() is.corpus()

Corpus

vec()

Vector

coded_vec()

Coded vector

metadata() `metadata<-`()

Metadata

transform_symbols()

Transform symbols

num_elements()

Number of elements

num_sequences()

Number of sequences

Encoding and decoding

Sequences and corpora can be encoded into integer-based representations.

decode() decode_pc_set() decode_pc_chord_type() decode_pc_chord()

Decode

encode() encode_pc_set() encode_pc_chord_type() encode_pc_chord()

Encode

Viewing chords and chord sequences

view()

View

Synthesising audio

play_sox()

Play sound (sox)

save_wav_sox()

Save wav file (sox)

Properties

For accessing properties of chords.

get_bass_fr()

Get bass frequency

get_bass_pc() get_non_bass_pc(<default>) get_non_bass_pc(<pc_chord>)

Get bass pitch class

get_bass_pi()

Get bass pitch

get_non_bass_pc()

Get non-bass pitch classes

Manipulating chords

Manipulating properties of chords.

combine_sparse_spectra()

Combine sparse spectra

edit_bass_pc()

Edit bass pitch class

tp()

Transpose

Miscellaneous utilities

Various utility functions.

amplitude_to_dB()

Convert amplitude to decibels

ascending_pc_dist()

Get the ascending distance between two pitch classes.

cosine_similarity()

Cosine similarity

dB_to_amplitude()

Convert decibels to amplitude

expand_harmonics()

Expand harmonics

freq_to_midi()

Convert frequencies to MIDI note numbers

int_vec() as.numeric(<int_vec>) as.character(<int_vec>)

Interval vector

midi_to_freq()

Convert MIDI note numbers to frequencies

milne_pc_spec_dist()

Milne's pitch-class spectral distance

pc_dist()

Get the distance between two pitch classes.

pi_to_pc()

Convert pitches to pitch classes

sum_amplitudes()

Sum amplitudes

transform_y()

Transform y values

Miscellaneous accessors

x_unit() y_unit() lower() upper() low_eq() high_eq() label() x_lab() y_lab() freq() `freq<-`() pitch() `pitch<-`() pc() `pc<-`() amp() `amp<-`() transposition() sample_rate()

Accessors

Class checking

Checking classes of objects.

is.chord()

Is chord

is.coded()

Is an object coded?

is.coded_vec()

Type-checking for "coded_vec"

is.equal_tempered()

Check for equal temperament

is.milne_pc_spectrum()

Check for class "milne_pc_spectrum"

is.smooth_pc_spectrum()

Is smooth pitch-class spectrum

is.smooth_pi_spectrum()

Is smooth pitch spectrum

is.sparse_fr_spectrum()

Is sparse pitch-class spectrum

is.sparse_pc_spectrum()

Is sparse pitch-class spectrum

is.sparse_pi_spectrum()

Is sparse pitch spectrum

is.pc_chord()

Check for class "pc_chord"

is.pc_set()

Check for type "pc_set"

is.pi_chord()

Check for type "pi_chord"

is.vec()

Check for class "vec"