Namespace: tinyNotation

music21. tinyNotation

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> tinyNotation.regularExpressions

Regular expressions object

Source:

Methods

<static> tinyNotation.renderNotationDivs(classTypes)

Render all the TinyNotation classes in the DOM as notation

Called automatically when music21 is loaded.

Parameters:
Name Type Description
classTypes string

a JQuery selector to find elements to replace.

Source:

<static> tinyNotation.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-2018 Michael Scott Cuthbert and cuthbertLab.
Documentation generated by JSDoc 3.5.5 on Wed Jul 4th 2018 using the DocStrap template.