Class: ResultController

MusicXMLAnalyzer. ResultController

new ResultController()

Source:

Methods

<inner> getDuration(type)

Function to get note durations
Parameters:
Name Type Description
type string The note type
Source:

<inner> getMidiValue(step, octave, alter) → {int}

Function to get MIDI values
Parameters:
Name Type Description
step int the notes step
octave int the notes octave
alter int the notes accidential (as alter)
Source:
Returns:
the MIDI value
Type
int

<inner> init()

Init method of ResultController
Source:

<inner> onAddResultItem(event, numItems, result)

Method to add results to model
Parameters:
Name Type Description
event event the triggered event
numItems int number of items
result object contains results
Source:

<inner> onModelReady(event)

Callback when model has loaded results
Parameters:
Name Type Description
event Event The triggered event
Source:

<inner> onResultExtractReceived(event, index, data)

Method to pass result to view
Parameters:
Name Type Description
event event the triggered event
index int the result index
data object the result data
Source:

<inner> playResult()

Function to play the found Pattern
Source: