Mercurial > hg > webaudioevaluationtool
comparison interfaces/ordinal.js @ 2992:cb227441a102
Ordinal not returning the computed get value
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Wed, 28 Nov 2018 13:50:22 +0000 |
parents | 68e5a789702f |
children | a8455b0766cd |
comparison
equal
deleted
inserted
replaced
2991:77114de617ba | 2992:cb227441a102 |
---|---|
372 }; | 372 }; |
373 this.getValue = function () { | 373 this.getValue = function () { |
374 // Return the current value of the object. If there is no value, return 0 | 374 // Return the current value of the object. If there is no value, return 0 |
375 var pos = this.getElementPosition(); | 375 var pos = this.getElementPosition(); |
376 var rank = pos / (audioEngineContext.audioObjects.length - 1); | 376 var rank = pos / (audioEngineContext.audioObjects.length - 1); |
377 return rank; | |
377 }; | 378 }; |
378 this.getPresentedId = function () { | 379 this.getPresentedId = function () { |
379 // Return the presented ID of the object. For instance, the APE has sliders starting from 0. Whilst AB has alphabetical scale | 380 // Return the presented ID of the object. For instance, the APE has sliders starting from 0. Whilst AB has alphabetical scale |
380 return label; | 381 return label; |
381 }; | 382 }; |