|
|
@ -33,12 +33,14 @@ class HuesCore { |
|
|
|
* When everything has completely loaded and we're ready to go |
|
|
|
* When everything has completely loaded and we're ready to go |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
loaded : [], |
|
|
|
loaded : [], |
|
|
|
|
|
|
|
|
|
|
|
/* callback time(seconds) |
|
|
|
/* callback time(seconds) |
|
|
|
* |
|
|
|
* |
|
|
|
* When the song time is updated - negative for buildup |
|
|
|
* When the song time is updated - negative for buildup |
|
|
|
* Returns a floating point number denoting seconds |
|
|
|
* Returns a floating point number denoting seconds |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
time : [], |
|
|
|
time : [], |
|
|
|
|
|
|
|
|
|
|
|
/* callback blurUpdate(xPercent, yPercent) |
|
|
|
/* callback blurUpdate(xPercent, yPercent) |
|
|
|
* |
|
|
|
* |
|
|
|
* The current blur amounts, in percent of full blur |
|
|
|
* The current blur amounts, in percent of full blur |
|
|
@ -51,12 +53,14 @@ class HuesCore { |
|
|
|
* Song object is passed. |
|
|
|
* Song object is passed. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
newsong : [], |
|
|
|
newsong : [], |
|
|
|
|
|
|
|
|
|
|
|
/* callback newimage(image) |
|
|
|
/* callback newimage(image) |
|
|
|
* |
|
|
|
* |
|
|
|
* Called on image change, whether user triggered or FULL AUTO mode. |
|
|
|
* Called on image change, whether user triggered or FULL AUTO mode. |
|
|
|
* Image object is passed. |
|
|
|
* Image object is passed. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
newimage : [], |
|
|
|
newimage : [], |
|
|
|
|
|
|
|
|
|
|
|
/* callback newcolour(colour, isFade) |
|
|
|
/* callback newcolour(colour, isFade) |
|
|
|
* |
|
|
|
* |
|
|
|
* Called on colour change. |
|
|
|
* Called on colour change. |
|
|
@ -64,12 +68,14 @@ class HuesCore { |
|
|
|
* isFade: if the colour is fading from the previous value |
|
|
|
* isFade: if the colour is fading from the previous value |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
newcolour : [], |
|
|
|
newcolour : [], |
|
|
|
|
|
|
|
|
|
|
|
/* callback newmode(mode) |
|
|
|
/* callback newmode(mode) |
|
|
|
* |
|
|
|
* |
|
|
|
* Called on mode change. |
|
|
|
* Called on mode change. |
|
|
|
* Mode is passed as a boolean. |
|
|
|
* Mode is passed as a boolean. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
newmode : [], |
|
|
|
newmode : [], |
|
|
|
|
|
|
|
|
|
|
|
/* callback beat(beatString, beatIndex) |
|
|
|
/* callback beat(beatString, beatIndex) |
|
|
|
* |
|
|
|
* |
|
|
|
* Called on every new beat. |
|
|
|
* Called on every new beat. |
|
|
@ -77,23 +83,27 @@ class HuesCore { |
|
|
|
* beatIndex is the beat index. Negative during buildups |
|
|
|
* beatIndex is the beat index. Negative during buildups |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
beat : [], |
|
|
|
beat : [], |
|
|
|
|
|
|
|
|
|
|
|
/* callback invert(isInverted) |
|
|
|
/* callback invert(isInverted) |
|
|
|
* |
|
|
|
* |
|
|
|
* Called whenever the invert state changes. |
|
|
|
* Called whenever the invert state changes. |
|
|
|
* Invert state is passed as a boolean. |
|
|
|
* Invert state is passed as a boolean. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
invert : [], |
|
|
|
invert : [], |
|
|
|
|
|
|
|
|
|
|
|
/* callback frame() |
|
|
|
/* callback frame() |
|
|
|
* |
|
|
|
* |
|
|
|
* Called on each new frame, at the end of all other frame processing |
|
|
|
* Called on each new frame, at the end of all other frame processing |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
frame : [], |
|
|
|
frame : [], |
|
|
|
|
|
|
|
|
|
|
|
/* callback songstarted() |
|
|
|
/* callback songstarted() |
|
|
|
* |
|
|
|
* |
|
|
|
* Called when the song actually begins to play, not just when the |
|
|
|
* Called when the song actually begins to play, not just when the |
|
|
|
* new song processing begins |
|
|
|
* new song processing begins |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
songstarted : [], |
|
|
|
songstarted : [], |
|
|
|
|
|
|
|
|
|
|
|
/* callback settingsupdated() |
|
|
|
/* callback settingsupdated() |
|
|
|
* |
|
|
|
* |
|
|
|
* Called when settings are updated and should be re-read from localStorage |
|
|
|
* Called when settings are updated and should be re-read from localStorage |
|
|
|