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

Core

Rhapsodist/Core includes the core scripts, processors, and effects required to use the Rhapsodist framework.

Core.js is the main entry point. It’s responsible for bringing in the other core include scripts and UI components.

Within the Core folder are sub-folders for the additional components that Core.js brings in or that need to be added in the project’s module tree.

  • Includes, the files Core.js includes directly, in a fixed order, to build the shell and its subsystems.
  • Widgets, the generic layout primitives (Container, SwitcherPanel, SettingsPanel, ValueEdit, Card) and Keyboard, also included automatically by Core.js.
  • Processors & Script FX, standalone scripts loaded into their own modules, not included by Core.js.

Core.js

Core.js sets a few engine defaults:

  • Synth.deferCallbacks(true)
  • Engine.setAllowDuplicateSamples(false)
  • Engine.loadAudioFilesIntoPool()
  • Content.setUseHighResolutionForPanels(true))

Additionally it collects references to every Sampler of the project into an array.

If you need access to a sampler throughout your interface script you can access the reference in Core.samplers without having to manually declare it.

They are defined as ChildSynths so if you need to call a Sampler type function use .asSampler() first to convert it.