Learn R Programming

music (version 0.1.2)

noteDistance: Note distance in semitones

Description

Calculates note distance in semitones

Usage

noteDistance(notes)

Value

Vector of length length(notes) with semitone distances between successive notes

Arguments

notes

String, vector: Notes in form c("C4", "Eb4", "Gb4")

Author

E.D. Gennatas

Examples

Run this code
noteDistance(strings("C4 Eb4 Gb4 Bb4"))

Run the code above in your browser using DataLab