Allows multiple Note instances to be loaded up and played via their identifier.

Property Summary

Public Properties
public

Acts as a register for all the notes in the font. If null on instantiation, set to A() via _initNotes.

Method Summary

Public Methods
public
getNote(identifier): Note

Gets a note from notes, given it's identifier.

public
play(identifier)

Plays a note from notes, given it's identifier.

Private Methods
private

Sets notes to A() if null on instantiation.

Public Properties

Acts as a register for all the notes in the font. If null on instantiation, set to A() via _initNotes.

Public Methods

addon/classes/font.js:49

public getNote(identifier): Note

Gets a note from notes, given it's identifier.

Parameters:

Name Type Attribute Description
identifier String

The identifier for the note that should be returned,

Return:

Note

The specified Note instance.

addon/classes/font.js:36

public play(identifier)

Plays a note from notes, given it's identifier.

Parameters:

Name Type Attribute Description
identifier String

The identifier for the note that should be played.

Private Methods

addon/classes/font.js:64

private _initNotes( )

Sets notes to A() if null on instantiation.