View source: R/class_measure.R
measure | R Documentation |
Creates a new instance of a 'measure' object
measure(
number,
notes,
beats = 4,
beatType = 4,
keySignature = 0,
mode = "major"
)
number |
Integer (>0), measure number. |
notes |
List of 'note' objects. Sum of notes durations should be compatible with the measure time signature |
beats |
Integer (>0), time signature is beats/beatType (default 4/4). |
beatType |
Integer (>0), time signature is beats/beatType (default 4/4). |
keySignature |
Integer, representing the number of flats (<0) or sharps (>0). |
mode |
Character, mode. Can be one of major, minor, dorian, phrygian, lydian, mixolydian, aeolian, ionian, locrian, and none. |
An object of class 'measure'.
notes=list(note(p=pitch('Db5'),d=duration(2)),note(p=pitch('B5'),d=duration(2)))
m <- measure(number=1,notes=notes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.