-
<inner> generateVexflowNotes(score, result)
-
Method generates vexflow notes
Parameters:
Name |
Type |
Description |
score |
object
|
the user score |
result |
object
|
search result |
- Source:
-
<inner> getDurationIn64th(duration) → {number}
-
Method converts duration from string to number values as 1/64
Parameters:
Name |
Type |
Description |
duration |
string
|
string of note duration |
- Source:
Returns:
duration value as number
-
Type
-
number
-
<inner> getVexflowDuration(duration, type) → {string}
-
Method returns the note duration in vexflow style
Parameters:
Name |
Type |
Description |
duration |
string
|
duration of note |
type |
number
|
type of note (0 = note, 1 = rest, 2 = dotted note) |
- Source:
Returns:
duration for vexflow
-
Type
-
string
-
<inner> getVexflowKey(step, octave, alter) → {string}
-
Method returns key description for vexflow
Parameters:
Name |
Type |
Description |
step |
string
|
note name |
octave |
string
|
octave number |
alter |
string
|
accidential of the note |
- Source:
Returns:
key description for vexflow
-
Type
-
string
-
<inner> init()
-
Init function
- Source:
-
<inner> onPartSelectorChange()
-
Callback function for part selector on change event
- Source:
-
<inner> renderNotes(measures, canvas, renderer, context, stave, score)
-
Method renders result extract
Parameters:
Name |
Type |
Description |
measures |
array
|
array containing the measures of result extract |
canvas |
object
|
the canvas proportions |
renderer |
object
|
the vexflow renderer |
context |
canvas
|
the canvas context |
stave |
object
|
the note stave |
score |
object
|
the user score |
- Source: