Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

App.js

App/App.js

Top-level namespace for project-specific initialisation and customisation.

App.js should be included after all Rhapsodist includes.

Overview

App is a placeholder namespace in App/App.js that serves as the entry point for project-specific code and customisation.

Purpose

This namespace provides a hook point for:

  1. Custom initialisation - Any setup logic unique to the project
  2. Override functions - Replacing or extending framework behaviour
  3. Custom functionality - Adding project-specific functionality

Example Usage

namespace App
{  
  VelocityTable.create("pnlCard0", "velocityScaler", {});
  EnvelopePanel.create("pnlCard1", "ahdsrController", "globalGainFlexAhdsr", {});
  ArticulationList.create("pnlCard2", {});

  //! knbExpression
  const knbExpression = Content.getComponent("knbExpression");
  knbExpression.setLocalLookAndFeel(CoreLookAndFeel.knob);

  //! knbDynamics
  const knbDynamics = Content.getComponent("knbDynamics");
  knbDynamics.setLocalLookAndFeel(CoreLookAndFeel.knob);
}