noteDistance {music}R Documentation

Note distance in semitones

Description

Calculates note distance in semitones

Usage

noteDistance(notes)

Arguments

notes

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

Value

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

Author(s)

E.D. Gennatas

Examples

noteDistance(strings("C4 Eb4 Gb4 Bb4"))

[Package music version 0.1.2 Index]