Learn R Programming

musicXML (version 1.0.1)

getNotes: 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)
)

Value

A list of note objects.

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)

Examples

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

Run the code above in your browser using DataLab