Members
-
harmonicarium :HUM
-
Description
The HUM instance
Details
-
uiElements :Object
-
Description
UI HTML elements
Properties
Name Type Description fn
Object.<string, HTMLElement> Functional UI elements
out
Object.<string, HTMLElement> Output UI elements
Details
Methods
-
_initUI()
-
Description
Initialize the UI controllers
Details
-
eventLog( str )
-
Description
Log into the HTML Log element the infos passed via the argument
Parameters
Name Type Description str
string Text string describing the event to log
Details
-
toggleLogPanel( element )
-
Description
Open the Event Log panel from the bottom and toggle the open/close button
Parameters
Name Type Description element
Object HTML element of the Event Log open/close button
Details
-
showSidebarContent( type )
-
Description
Display the desired content in the side panel
Parameters
Name Type Description type
'settings' | 'help' | 'credits' The content to display
Details
-
showSidebar()
-
Description
Open the side panel
Details
-
fileErrorHandler( errorEvent )
-
Description
Handle errors generated by
FileReader
when loading a file.
It is meant to be assigned toFileReader.onerror
handler.Parameters
Name Type Description errorEvent
Event The error event
Details
-
tester()
-
Description
Print the DHC tone tables in the console for test/debug purposes
Details