![]()  | 
  
    VCV Rack API v2
    
   | 
 
Process-scope globals, most of which are persisted across launches. More...
Classes | |
| struct | ModuleInfo | 
| struct | PluginWhitelist | 
| The VCV JSON API returns the data structure {pluginSlug: [moduleSlugs] or true} where "true" represents that the user is subscribed to the plugin (all modules and future modules).  More... | |
Enumerations | |
| enum | KnobMode { KNOB_MODE_LINEAR , KNOB_MODE_SCALED_LINEAR , KNOB_MODE_ROTARY_ABSOLUTE , KNOB_MODE_ROTARY_RELATIVE } | 
| enum | BrowserSort {  BROWSER_SORT_UPDATED , BROWSER_SORT_LAST_USED , BROWSER_SORT_MOST_USED , BROWSER_SORT_BRAND , BROWSER_SORT_NAME , BROWSER_SORT_RANDOM }  | 
Functions | |
| ModuleInfo * | getModuleInfo (const std::string &pluginSlug, const std::string &moduleSlug) | 
| Returns a ModuleInfo if exists for the given slugs.   | |
| bool | isModuleWhitelisted (const std::string &pluginSlug, const std::string &moduleSlug) | 
| void | resetCables () | 
| PRIVATE void | init () | 
| PRIVATE void | destroy () | 
| PRIVATE json_t * | toJson () | 
| PRIVATE void | fromJson (json_t *rootJ) | 
| PRIVATE void | save (std::string path="") | 
| PRIVATE void | load (std::string path="") | 
Variables | |
| std::string | settingsPath | 
| Path to settings.json.   | |
| bool | devMode | 
| bool | headless | 
| bool | isPlugin | 
| bool | restart | 
| Requests to restart the application on exit.   | |
| std::string | language | 
| ISO 639-1 language code for string translations.   | |
| bool | safeMode | 
| Launches Rack without loading plugins or the autosave patch.   | |
| std::string | token | 
| vcvrack.com user token   | |
| bool | windowMaximized | 
| Whether the window is maximized.   | |
| math::Vec | windowSize | 
| Size of window in pixels.   | |
| math::Vec | windowPos | 
| Position in window in pixels.   | |
| bool | invertZoom | 
| Reverse the zoom scroll direction.   | |
| bool | mouseWheelZoom | 
| Mouse wheel zooms instead of pans.   | |
| float | pixelRatio | 
| Ratio between UI pixel and physical screen pixel.   | |
| std::string | uiTheme | 
| Name of UI theme, specified in ui::refreshTheme().   | |
| float | cableOpacity | 
| Opacity of cables in the range [0, 1].   | |
| float | cableTension | 
| Straightness of cables in the range [0, 1].   | |
| float | rackBrightness | 
| float | haloBrightness | 
| bool | allowCursorLock | 
| Allows rack to hide and lock the cursor position when dragging knobs etc.   | |
| KnobMode | knobMode | 
| bool | knobScroll | 
| float | knobLinearSensitivity | 
| float | knobScrollSensitivity | 
| float | sampleRate | 
| int | threadCount | 
| bool | tooltips | 
| bool | cpuMeter | 
| bool | lockModules | 
| bool | squeezeModules | 
| bool | preferDarkPanels | 
| float | frameRateLimit | 
| Maximum screen redraw frequency in Hz, or 0 for unlimited.   | |
| float | autosaveInterval | 
| Interval between autosaves in seconds.   | |
| bool | skipLoadOnLaunch | 
| std::string | lastPatchDirectory | 
| std::string | lastSelectionDirectory | 
| std::list< std::string > | recentPatchPaths | 
| std::vector< NVGcolor > | cableColors | 
| std::vector< std::string > | cableLabels | 
| bool | cableAutoRotate | 
| bool | autoCheckUpdates | 
| bool | verifyHttpsCerts | 
| bool | showTipsOnLaunch | 
| int | tipIndex | 
| BrowserSort | browserSort | 
| float | browserZoom | 
| json_t * | pluginSettingsJ | 
| std::map< std::string, std::map< std::string, ModuleInfo > > | moduleInfos | 
| pluginSlug -> (moduleSlug -> ModuleInfo)   | |
| std::map< std::string, PluginWhitelist > | moduleWhitelist | 
Process-scope globals, most of which are persisted across launches.
| ModuleInfo * rack::settings::getModuleInfo | ( | const std::string & | pluginSlug, | 
| const std::string & | moduleSlug ) | 
Returns a ModuleInfo if exists for the given slugs.
| bool rack::settings::isModuleWhitelisted | ( | const std::string & | pluginSlug, | 
| const std::string & | moduleSlug ) | 
| void rack::settings::resetCables | ( | ) | 
| PRIVATE void rack::settings::init | ( | ) | 
| PRIVATE void rack::settings::destroy | ( | ) | 
| PRIVATE json_t * rack::settings::toJson | ( | ) | 
| PRIVATE void rack::settings::fromJson | ( | json_t * | rootJ | ) | 
| PRIVATE void rack::settings::save | ( | std::string | path = "" | ) | 
| PRIVATE void rack::settings::load | ( | std::string | path = "" | ) | 
      
  | 
  extern | 
Path to settings.json.
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
Requests to restart the application on exit.
      
  | 
  extern | 
ISO 639-1 language code for string translations.
      
  | 
  extern | 
Launches Rack without loading plugins or the autosave patch.
Always set to false when settings are saved.
      
  | 
  extern | 
vcvrack.com user token
      
  | 
  extern | 
Whether the window is maximized.
      
  | 
  extern | 
Size of window in pixels.
      
  | 
  extern | 
Position in window in pixels.
      
  | 
  extern | 
Reverse the zoom scroll direction.
      
  | 
  extern | 
Mouse wheel zooms instead of pans.
      
  | 
  extern | 
Ratio between UI pixel and physical screen pixel.
0 for auto.
      
  | 
  extern | 
Name of UI theme, specified in ui::refreshTheme().
      
  | 
  extern | 
Opacity of cables in the range [0, 1].
      
  | 
  extern | 
Straightness of cables in the range [0, 1].
Unitless and arbitrary.
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
Allows rack to hide and lock the cursor position when dragging knobs etc.
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
Maximum screen redraw frequency in Hz, or 0 for unlimited.
      
  | 
  extern | 
Interval between autosaves in seconds.
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
      
  | 
  extern | 
pluginSlug -> (moduleSlug -> ModuleInfo)
      
  | 
  extern |