getNotes {musicXML}R Documentation

Get notes.

Description

Create a series of note objects from lists of pitches / durations / loudnesses

Usage

getNotes(
  pitches,
  durations = durationMapping(rep(0, length(pitches)), expMin = 4, expMax = 4),
  loudnesses = loudnessMapping(rep(0, length(pitches)), lMin = 89, lMax = 89)
)

Arguments

pitches

list of pitches (typically created by function pitchMapping)

durations

list of durations (typically created by function durationMapping)

loudnesses

list of loudnesses (typically created by function loudnessMapping)

Value

A list of note objects.

Examples

n <- getNotes(pitches=pitchMapping(x=rnorm(100)))

[Package musicXML version 1.0.1 Index]