Symbol

class maelzel.core.symbols.Symbol[source]

Bases: ABC

Base class for all symbols

Attributes Summary

applyToTieStrategy

One of 'first', or 'all'

exclusive

Only one of a given class

name

Methods Summary

applyToNotation(n, parent)

Apply this symbol to the given notation, inplace

applyToTiedGroup(notations, parent)

Apply this symbol to a group of tied notations, inplace.

getProperty(key[, default])

Get a property value by key, or return the default value if not found.

setProperty(key, value)

Set a property value by key.

Attributes Documentation

applyToTieStrategy = 'first'

One of ‘first’, or ‘all’

exclusive = False

Only one of a given class

name

Methods Documentation

abstract applyToNotation(n, parent)[source]

Apply this symbol to the given notation, inplace

Return type:

None

applyToTiedGroup(notations, parent)[source]

Apply this symbol to a group of tied notations, inplace.

Return type:

None

getProperty(key, default=None)[source]

Get a property value by key, or return the default value if not found.

Return type:

Any

setProperty(key, value)[source]

Set a property value by key.

Return type:

None