Namespace: tinyNotation

tinyNotation

music21j -- Javascript reimplementation of Core music21p features.
music21/tinyNotation -- TinyNotation implementation

Copyright (c) 2013-17, Michael Scott Cuthbert and cuthbertLab
Based on music21 (=music21p), Copyright (c) 2006–17, Michael Scott Cuthbert and cuthbertLab

TinyNotation module, see music21.tinyNotation namespace

Source:

Requires

  • module:music21/base
  • module:music21/clef
  • module:music21/duration
  • module:music21/pitch
  • module:music21/note
  • module:music21/meter
  • module:music21/stream
  • module:music21/tie

Members

<static, constant> regularExpressions

Regular expressions object

Source:

Methods

<static> exports.renderNotationDivs(classTypes, selector)

Render all the TinyNotation classes in the DOM as notation

Called automatically when music21 is loaded.

Parameters:
Name Type Argument Default Description
classTypes string <optional>
'.music21.tinyNotation'

a JQuery selector to find elements to replace.

selector HTMLElement | jQuery <optional>
Source:

<static> exports.TinyNotation(textIn) → {music21.stream.Part|music21.stream.Measure}

Function, not class.

Converts a TinyNotation String into a music21 Stream

See music21p for examples of what can go into tinynotation. It's an
adaptation of Lilypond format, by design Extremely simple!

Parameters:
Name Type Description
textIn string

a valid tinyNotation string

Source:
Returns:
  • a Stream or Part object (if multiple measures)
Type
music21.stream.Part | music21.stream.Measure
Example
var t = "3/4 c4 B8 c d4 e2.";
var p = music21.tinyNotation.TinyNotation(t);
p.duration.quarterLength;
// 6.0
Music21j, Copyright © 2013-2021 Michael Scott Asato Cuthbert.
Documentation generated by JSDoc 3.6.3 on Wed Jul 31st 2019 using the DocStrap template.