Music {gm} | R Documentation |
Initialize Music
Object
Description
Initialize a Music
object.
Music
objects represent whole music pieces.
Usage
Music()
Details
A typical workflow with Music
objects:
Initialize an empty
Music
object withMusic()
.Add components to it with
+.Music()
.Print it, or display it as musical score or audio file with
show()
, to check its structure.Keep adding components and checking it until you get what you want.
Sometimes you may want to export the final
Music
object withexport()
.
Value
A list with class Music
.
See Also
+.Music()
for adding components to a Music
object.
show()
for displaying a Music
object as musical score and
audio file.
export()
for exporting a Music
object to various file formats.
Examples
# initialize a Music object
Music()
# print a Music object to check its structure
m <- Music() + Meter(4, 4) + Line(list("C4"), list(4))
m
[Package gm version 1.0.2 Index]