Browse Source

Update to Rack v1 API

tags/v1.0.1
Andrew Belt 3 years ago
parent
commit
8be144f4b7
16 changed files with 21 additions and 21 deletions
  1. +1
    -1
      LICENSE.txt
  2. +0
    -1
      Makefile
  3. +2
    -1
      README.md
  4. +1
    -1
      src/8vert.cpp
  5. +1
    -1
      src/ADSR.cpp
  6. +1
    -1
      src/Delay.cpp
  7. +2
    -2
      src/LFO.cpp
  8. +1
    -1
      src/Mutes.cpp
  9. +1
    -1
      src/SEQ3.cpp
  10. +2
    -2
      src/Scope.cpp
  11. +2
    -2
      src/SequentialSwitch.cpp
  12. +1
    -1
      src/Unity.cpp
  13. +2
    -2
      src/VCA.cpp
  14. +1
    -1
      src/VCF.cpp
  15. +1
    -1
      src/VCMixer.cpp
  16. +2
    -2
      src/VCO.cpp

+ 1
- 1
LICENSE.txt View File

@@ -1,4 +1,4 @@
Copyright (c) 2016 Andrew Belt
Copyright (c) 2016-2018 Andrew Belt

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:



+ 0
- 1
Makefile View File

@@ -13,7 +13,6 @@ DEP_LOCAL := dep
DEPS += $(libsamplerate)

$(libsamplerate):
mkdir -p dep
cd dep && $(WGET) http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz
cd dep && $(UNTAR) libsamplerate-0.1.9.tar.gz
cd dep/libsamplerate-0.1.9 && $(CONFIGURE)


+ 2
- 1
README.md View File

@@ -13,4 +13,5 @@ Source code licensed under [BSD-3-Clause](LICENSE.txt) by [Andrew Belt](https://

VCV logo is © 2017. Derivative works may not use the VCV logo.

Panel graphics in `res/` are © 2017 by [Grayscale](http://grayscale.info/). You may not create derivative works of Fundamental panels.
The panel graphics in the `res` directory are copyright © 2017-2019 [Grayscale](http://grayscale.info/) and licensed under [CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/).
You may not create derivative works of these graphics.

+ 1
- 1
src/8vert.cpp View File

@@ -42,7 +42,7 @@ struct _8vert : Module {
struct _8vertWidget : ModuleWidget {
_8vertWidget(_8vert *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/8vert.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/8vert.svg")));

addChild(createWidget<ScrewSilver>(Vec(15, 0)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x - 30, 0)));


+ 1
- 1
src/ADSR.cpp View File

@@ -108,7 +108,7 @@ struct ADSR : Module {
struct ADSRWidget : ModuleWidget {
ADSRWidget(ADSR *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/ADSR.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/ADSR.svg")));

addChild(createWidget<ScrewSilver>(Vec(15, 0)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x-30, 0)));


+ 1
- 1
src/Delay.cpp View File

@@ -113,7 +113,7 @@ struct Delay : Module {
struct DelayWidget : ModuleWidget {
DelayWidget(Delay *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/Delay.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Delay.svg")));

addChild(createWidget<ScrewSilver>(Vec(15, 0)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x-30, 0)));


+ 2
- 2
src/LFO.cpp View File

@@ -131,7 +131,7 @@ struct LFO : Module {
struct LFOWidget : ModuleWidget {
LFOWidget(LFO *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/LFO-1.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/LFO-1.svg")));

addChild(createWidget<ScrewSilver>(Vec(15, 0)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x-30, 0)));
@@ -228,7 +228,7 @@ struct LFO2 : Module {
struct LFO2Widget : ModuleWidget {
LFO2Widget(LFO2 *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/LFO-2.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/LFO-2.svg")));

addChild(createWidget<ScrewSilver>(Vec(15, 0)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x-30, 0)));


+ 1
- 1
src/Mutes.cpp View File

@@ -94,7 +94,7 @@ struct MuteLight : BASE {
struct MutesWidget : ModuleWidget {
MutesWidget(Mutes *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/Mutes.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Mutes.svg")));

addChild(createWidget<ScrewSilver>(Vec(15, 0)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x - 30, 0)));


+ 1
- 1
src/SEQ3.cpp View File

@@ -175,7 +175,7 @@ struct SEQ3 : Module {
struct SEQ3Widget : ModuleWidget {
SEQ3Widget(SEQ3 *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/SEQ3.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/SEQ3.svg")));

addChild(createWidget<ScrewSilver>(Vec(15, 0)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x-30, 0)));


+ 2
- 2
src/Scope.cpp View File

@@ -164,7 +164,7 @@ struct ScopeDisplay : TransparentWidget {
Stats statsX, statsY;

ScopeDisplay() {
font = Font::load(asset::plugin(pluginInstance, "res/fonts/Sudo.ttf"));
font = APP->window->loadFont(asset::plugin(pluginInstance, "res/fonts/Sudo.ttf"));
}

void drawWaveform(const DrawContext &ctx, float *valuesX, float *valuesY) {
@@ -313,7 +313,7 @@ struct ScopeDisplay : TransparentWidget {
struct ScopeWidget : ModuleWidget {
ScopeWidget(Scope *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/Scope.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Scope.svg")));

addChild(createWidget<ScrewSilver>(Vec(15, 0)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x-30, 0)));


+ 2
- 2
src/SequentialSwitch.cpp View File

@@ -81,7 +81,7 @@ struct SequentialSwitch1Widget : ModuleWidget {

SequentialSwitch1Widget(SequentialSwitch<1> *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/SequentialSwitch1.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/SequentialSwitch1.svg")));

addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0)));
addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH)));
@@ -113,7 +113,7 @@ struct SequentialSwitch2Widget : ModuleWidget {

SequentialSwitch2Widget(SequentialSwitch<2> *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/SequentialSwitch2.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/SequentialSwitch2.svg")));

addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0)));
addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH)));


+ 1
- 1
src/Unity.cpp View File

@@ -106,7 +106,7 @@ struct UnityMergeItem : MenuItem {
struct UnityWidget : ModuleWidget {
UnityWidget(Unity *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/Unity.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Unity.svg")));

addChild(createWidget<ScrewSilver>(Vec(15, 0)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x - 30, 0)));


+ 2
- 2
src/VCA.cpp View File

@@ -49,7 +49,7 @@ struct VCA : Module {
struct VCAWidget : ModuleWidget {
VCAWidget(VCA *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/VCA.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/VCA.svg")));

addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0)));
@@ -155,7 +155,7 @@ struct VCA_1VUKnob : SliderKnob {
struct VCA_1Widget : ModuleWidget {
VCA_1Widget(VCA_1 *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/VCA-1.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/VCA-1.svg")));

addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0)));


+ 1
- 1
src/VCF.cpp View File

@@ -152,7 +152,7 @@ struct VCF : Module {
struct VCFWidget : ModuleWidget {
VCFWidget(VCF *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/VCF.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/VCF.svg")));

addChild(createWidget<ScrewSilver>(Vec(15, 0)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x - 30, 0)));


+ 1
- 1
src/VCMixer.cpp View File

@@ -49,7 +49,7 @@ struct VCMixer : Module {
struct VCMixerWidget : ModuleWidget {
VCMixerWidget(VCMixer *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/VCMixer.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/VCMixer.svg")));

addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0)));


+ 2
- 2
src/VCO.cpp View File

@@ -238,7 +238,7 @@ struct VCO : Module {
struct VCOWidget : ModuleWidget {
VCOWidget(VCO *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/VCO-1.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/VCO-1.svg")));

addChild(createWidget<ScrewSilver>(Vec(15, 0)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x-30, 0)));
@@ -340,7 +340,7 @@ struct VCO2 : Module {
struct VCO2Widget : ModuleWidget {
VCO2Widget(VCO2 *module) {
setModule(module);
setPanel(SVG::load(asset::plugin(pluginInstance, "res/VCO-2.svg")));
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/VCO-2.svg")));

addChild(createWidget<ScrewSilver>(Vec(15, 0)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x-30, 0)));


Loading…
Cancel
Save