computerscare-vcv-modules

computerscare modules for VCV Rack
Log | Files | Refs

commit 494b0e21c1fbfa23bbdf96226b30e4446a9a5b55
parent aa248f9b595b12400af3188ce5bb5d881dfb2909
Author: Adam M <[email protected]>
Date:   Sat,  8 Jun 2019 10:01:30 -0500

change argument to textField, update plugin.json

Diffstat:
Mplugin.json | 10+++-------
Msrc/Computerscare.cpp | 2+-
Msrc/Computerscare.hpp | 2+-
Msrc/ComputerscareDebug.cpp | 3+--
Msrc/ComputerscareKnolyPobs.cpp | 3++-
Msrc/ComputerscareOhPeas.cpp | 6+++---
6 files changed, 11 insertions(+), 15 deletions(-)

diff --git a/plugin.json b/plugin.json @@ -1,6 +1,7 @@ { "slug": "computerscare", "name": "computerscare", + "brand": "computerscare", "author": "computerscare", "license": "BSD-3-Clause", "authorEmail": "[email protected]", @@ -9,14 +10,9 @@ "sourceUrl": "https://github.com/freddyz/computerscare-vcv-modules", "version": "1.0.0", "modules": [ - {"slug":"Isopig", - "name": "Isopig", - "description": "Isopig testing", - "tags": ["Poly","Utility"] - }, {"slug":"computerscare-knolypobs", - "name":"Knoly pobs", - "description":"Poly Knobs, 16 of them", + "name":"Knoly Pobs", + "description":"16 knobs", "tags":["Poly","Utility"] }, {"slug":"computerscare-debug", diff --git a/src/Computerscare.cpp b/src/Computerscare.cpp @@ -12,6 +12,6 @@ void init(Plugin *p) { //p->addModel(modelComputerscareLaundrySoup); //p->addModel(modelComputerscareILoveCookies); p->addModel(modelComputerscareOhPeas); - p->addModel(modelComputerscareIso); + //p->addModel(modelComputerscareIso); p->addModel(modelComputerscareKnolyPobs); } diff --git a/src/Computerscare.hpp b/src/Computerscare.hpp @@ -30,7 +30,7 @@ extern Model *modelComputerscareDebug; //extern Model *modelComputerscareLaundrySoup; //extern Model *modelComputerscareILoveCookies; extern Model *modelComputerscareOhPeas; -extern Model *modelComputerscareIso; +//extern Model *modelComputerscareIso; extern Model *modelComputerscareKnolyPobs; static const NVGcolor COLOR_COMPUTERSCARE_LIGHT_GREEN = nvgRGB(0xC0, 0xE7, 0xDE); diff --git a/src/ComputerscareDebug.cpp b/src/ComputerscareDebug.cpp @@ -69,7 +69,6 @@ struct ComputerscareDebug : Module { configParam(WHICH_CLOCK, 0.0f, 2.0f, 0.0f, "Clock Mode"); configParam(CLOCK_CHANNEL_FOCUS, 0.f,15.f,0.f,"Clock Channel Selector"); configParam(INPUT_CHANNEL_FOCUS, 0.f,15.f,0.f,"Input Channel Selector"); - outputs[POLY_OUTPUT].setChannels(16); //params[MANUAL_TRIGGER].randomizable=false; //params[MANUAL_CLEAR_TRIGGER].randomizable=false; @@ -182,7 +181,7 @@ void ComputerscareDebug::process(const ProcessArgs &args) { } strValue = thisVal; } - + outputs[POLY_OUTPUT].setChannels(16); } struct HidableSmallSnapKnob : SmallSnapKnob { diff --git a/src/ComputerscareKnolyPobs.cpp b/src/ComputerscareKnolyPobs.cpp @@ -38,7 +38,7 @@ struct ComputerscareKnolyPobs : Module { configParam(KNOB+i, 0.f, 10.f, 0.f, "Channel "+std::to_string(i+1) + " Voltage", " Volts"); } configParam(TOGGLES, 0.0f, 1.0f, 0.0f); - outputs[POLY_OUTPUT].setChannels(16); + } void process(const ProcessArgs &args) override { counter++; @@ -48,6 +48,7 @@ struct ComputerscareKnolyPobs : Module { //rect4032 //south facing high wall } + outputs[POLY_OUTPUT].setChannels(16); for (int i = 0; i < numKnobs; i++) { outputs[POLY_OUTPUT].setVoltage(params[KNOB+i].getValue(),i); } diff --git a/src/ComputerscareOhPeas.cpp b/src/ComputerscareOhPeas.cpp @@ -33,7 +33,7 @@ struct PeasTextField : LedDisplayTextField { module = _module; } - void onEnter(const widget::EnterEvent &e) override; + void onEnter(const event::Enter &e) override; /*int getTextPosition(Vec mousePos) override { bndSetFont(font->handle); @@ -216,7 +216,7 @@ struct ComputerscareOhPeas : Module // - onSampleRateChange: event triggered by a change of sample rate // - onReset, onRandomize, onCreate, onDelete: implements special behavior when user clicks these from the context menu }; -void PeasTextField::onEnter(const widget::EnterEvent &e) +void PeasTextField::onEnter(const event::Enter &e) { module->setQuant(); } @@ -527,7 +527,7 @@ struct SetScaleMenuItem : MenuItem scale = scaleInput; } - void onAction(const widget::ActionEvent &e) override + void onAction(const event::Action &e) override { peasWidget->textFieldTemp->text = scale; peas->setQuant();