Class: Music21Object

music21.base. Music21Object

new Music21Object()

Base class for any object that can be placed in a music21.stream.Stream.

Properties:
Name Type Description
activeSite object

hardlink to a music21.stream.Stream containing the element.

classSortOrder number

Default sort order for this class (default 20; override in other classes). Lower numbered objects will sort before other objects in the staff if priority and offset are the same.

duration music21.duration.Duration

the duration (object) for the element. (can be set with a quarterLength also)

groups Array

An Array of strings representing group (equivalent to css classes) to assign to the object. (default [])

isMusic21Object boolean

true

isStream boolean

false

offset number

offset from the beginning of the stream (in quarterLength)

priority number

The priority (lower = earlier or more left) for elements at the same offset. (default 0)

Source:

Extends

Methods

<static> Music21Object#getOffsetBySite(site)

Return the offset of this element in a given site -- use .offset if you are sure that
site === activeSite.

Does not change activeSite or .offset

Parameters:
Name Type Description
site music21.stream.Stream
Source:
Returns:

Number|undefined

<static> Music21Object#setOffsetBySite(site, value)

setOffsetBySite - sets the offset for a given Stream

Parameters:
Name Type Description
site music21.stream.Stream

Stream object

value number

offset

Source:
Music21j, Copyright © 2013-2018 Michael Scott Cuthbert and cuthbertLab.
Documentation generated by JSDoc 3.5.5 on Wed Jul 4th 2018 using the DocStrap template.