\ScoreController

Summary

Methods
Properties
Constants
getPartsList()
generateScore()
_getInstrument()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getDurationType()
$upload
N/A

Properties

$upload

$upload : 

Type

Methods

getPartsList()

getPartsList(  $uploadId,   $partId) 

Parameters

$uploadId
$partId

generateScore()

generateScore(  $uploadId,   $partId) 

Parameters

$uploadId
$partId

_getInstrument()

_getInstrument(integer  $id, integer  $part_id) : string

Static helper function to retrieve the part name for a given upload id and part_id

Parameters

integer $id

the uploads id

integer $part_id

the part id

Returns

string —

The title for given upload id

getDurationType()

getDurationType(float  $durationFloat) : string

Helper function to calculate the duration from float to type

Parameters

float $durationFloat

The duration as float

Returns

string —

The duration as string type