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 | null

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

Music21j, Copyright © 2013-2016 Michael Scott Cuthbert and cuthbertLab.
Documentation generated by JSDoc 3.4.3 on Wed Jul 26th 2017 using the DocStrap template.