Learn R Programming

musicXML (version 1.0.1)

note: Note constructor.

Description

Creates a new instance of a 'note' object

Usage

note(p, d = duration(4), l = 89, tie2next = FALSE, tie2previous = FALSE)

Value

An object of class 'note'.

Arguments

p

Pitch object (step, alter, octave).

d

Duration object (type, dot, triplet).

l

Numeric (>0), loudness expressed in percentage of a MIDI velocity of 90. Effective range 0-141 (larger values are clipped). 37: pp, 54: p, 71: mp, 89: mf, 107: f, 124: ff

tie2next

Logical, is note tied with next note?.

tie2previous

Logical, is note tied with previous note?.

Examples

Run this code
n <- note(p=pitch('Db5'))

Run the code above in your browser using DataLab