pitch: Pitch constructor.

View source: R/class_pitch.R

pitchR Documentation

Pitch constructor.

Description

Creates a new instance of a 'pitch' object

Usage

pitch(string)

Arguments

string

character string comprising: (i) one letter in ABCDEFG (step) (ii) 'b' (flat), '#' (sharp) or ” (no alteration) (iii) one integer in 0:9 (octave).

Value

An object of class 'pitch'.

Examples

p <- pitch('Db5')

benRenard/musicXML documentation built on Feb. 23, 2025, 6:57 a.m.