new BackendUtils( harmonicarium )

Description

The BackendUtils class

A toolset to manage the backend UI.

Parameters
Name Type Description
harmonicarium HUM

The HUM instance to which this DHC must refer

Details

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
Object

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 to FileReader.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