new HUM( id )

Description

The HARMONICARIUM main class

Parameters
Name Type Description
id number

The id for the new instance of HUM

Details

Classes


new BackendUtils( harmonicarium )


new CtrlKeymapPreset( dhc )


new DHC( id, harmonicarium )


new Hancock( dhc )


new Hstack( dhc )


new Synth( dhc )


new DHCmsg( source, cmd [, type [, xtNum [, velocity [, ctrlNum [, piper [, panic [, tsnap ] ] ] ] ] ] ] )

Namespaces


midi

Members


id :number

Description

The id of the HUM instance

Details
number

settings :Object

Description

Namespace for base settings

Properties
Name Type Description
dhcQty number

How many DHCs must be generated

dpPad boolean

If the Diphonic Pad must be included

Details
Object

components :Object

Description

Namespace container for module components

Properties
Name Type Description
availableDHCs Object.<string, HUM.DHC>

How many DHCs must be generated

dpPad HUM.DpPad

If the Diphonic Pad must be included

backendUtils HUM.BackendUtils

If the Backend Utils must be included

Details
Object

viewportDim :Object

Description

The dimensions of the main reference HTML container

Properties
Name Type Description
x number

Width in pixel

y number

Height in pixel

Details
Object

html :Object

Description

Namespace container for all the injected HTML templates

Properties
Name Type Description
instancesContainer HTMLElement

The main HTML container of all HUM instances

appContainer HTMLElement

The HTML container of this HUM instance

dpPadPage HTMLElement

The HTML container of the DpPad instance (just one per harmonicarium)

sidePanel HTMLElement

The main HTML container of the side panel's objects (.logoBox and .sideContents)

logTextBox HTMLElement

The HTML container of the log text box for the BackendUtils instance

svgIcons HTMLElement

The HTML container of the SVG icons palette

logoBox HTMLElement

The HTML container of the logo/menu box

sideContents HTMLElement

The HTML container of the .sideMenu

sideMenu HTMLElement

The HTML container of .dpPadAccordion (just one) and all accordions of each DHC instance

dpPadAccordion HTMLElement

The HTML container of the HTML accordion of the DpPad instance

hstackTab Object.<string, HTMLElement>

All the DHC's Hstak HTML containers

pianoTab Object.<string, HTMLElement>

All the DHC's Hancock HTML containers

dhcTab Object.<string, HTMLElement>

All the DHC's main settings HTML containers

synthTab Object.<string, HTMLElement>

All the DHC's Synth HTML containers

midiTab Object.<string, HTMLElement>

All the DHC's Midi HTML containers

fmTab Object.<string, HTMLElement>

All the DHC's FM settings HTML containers

ftTab Object.<string, HTMLElement>

All the DHC's FT settings HTML containers

htTab Object.<string, HTMLElement>

All the DHC's HT settings HTML containers

Details
Object

Methods


_initTemplates()

Description

Inject in the document all the main HTML templates

Details

_initDHCs()

Description

Initialize all the necessary DHCs

Details

_init()

Description

Initialize a single instance of HUM

Details

windowResize()

Description

Recompute the drawn geometries in all the components that need to be resized
accordingly to the reference HTML container's dimensions

Details

updateViewportSize()

Description

Update the reference HTML container's dimensions (currently the browser viewport)

Details