Learn R Programming

musicXML (version 1.0.1)

pitch: Pitch constructor.

Description

Creates a new instance of a 'pitch' object

Usage

pitch(string)

Value

An object of class 'pitch'.

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).

Examples

Run this code
p <- pitch('Db5')

Run the code above in your browser using DataLab