Skip to content
Josh Stovall edited this page Nov 20, 2020 · 1 revision

staff.js API

staff( clef : String, x)

attributes

attribute type
id element to create a staff
clef treble, alto, bass, grand
color hex color (#FF0000) or string (red)
accidental display sharp or flat accidentals
scroll scroll mode off/on

Functions

clef

Update the clef for a given staff.

Type: string Default: treble Available values: treble alto bass grand

accidental

Assign the accidental for a given staff.

Type: string Default: flat Available values: flat sharp

color

Assign the color for a given staff.

Type: string Default: black Available values: string or hex color

Clone this wiki locally