• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • Library
  • Library Class

    The fixo resource library of one node: presets, component types and templates. More...

    Header: #include <Library>
    Inherits: QObject

    Detailed Description

    Library is the central coordinator of the fixo resource system. It reads two roots: the built-in resources, usually a qrc path, and the node's custom directory on disk. scan() routes each entry it finds to the book for its kind: presets, board, actuator, sensor and lobe types, stanza templates and preset templates. Custom entries are read after the built-ins, so a custom entry shadows a built-in with the same key.

    With a custom directory, configure() also creates the PresetStore, the firmware cache, the verified-preset index and the board manager below it. The books, the preset store, the index and the board manager are QObject children of the library.

    One Library exists per node. libraryForNode() creates it on first use, configures and scans it, and caches it on the node in a shared pointer. The studio activities and the managers take a plain pointer to it from there.

    See also PresetStore, Preset, and StanzaManager.