powered by
Music
Initialize a Music object.
Music objects represent whole music pieces.
Music()
A list with class Music.
A typical workflow with Music objects:
Initialize an empty Music object with Music().
Add components to it with +.Music().
+.Music()
Print it, or display it as musical score or audio file with show(), to check its structure.
show()
Keep adding components and checking it until you get what you want.
Sometimes you may want to export the final Music object with export().
export()
+.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.
# initialize a Music object Music() # print a Music object to check its structure m <- Music() + Meter(4, 4) + Line(list("C4"), list(4)) m
Run the code above in your browser using DataLab