Browse Source

Split tags into tags.{hpp,cpp}

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
66f11d9e82
4 changed files with 3 additions and 97 deletions
  1. +1
    -1
      dep/glfw
  2. +0
    -1
      include/app.hpp
  3. +1
    -49
      include/plugin.hpp
  4. +1
    -46
      src/plugin.cpp

+ 1
- 1
dep/glfw

@@ -1 +1 @@
Subproject commit 30489c5aa1392f698e904c6aced1d7a486634c40
Subproject commit 682f1cf203707f21c2eed4fa3f89c23c52accc49

+ 0
- 1
include/app.hpp View File

@@ -23,7 +23,6 @@ struct SVGPanel;
// A 1U module should be 15x380. Thus the width of a module should be a factor of 15.
#define RACK_GRID_WIDTH 15
#define RACK_GRID_HEIGHT 380

static const Vec RACK_GRID_SIZE = Vec(15, 380);




+ 1
- 49
include/plugin.hpp View File

@@ -1,59 +1,12 @@
#pragma once
#include <string>
#include <list>
#include "tags.hpp"


namespace rack {


enum ModelTag {
AMPLIFIER_TAG,
ATTENUATOR_TAG,
BLANK_TAG,
CLOCK_TAG,
CONTROLLER_TAG,
DELAY_TAG,
DIGITAL_TAG,
DISTORTION_TAG,
DRUM_TAG,
DUAL_TAG,
DYNAMICS_TAG,
EFFECT_TAG,
ENVELOPE_FOLLOWER_TAG,
ENVELOPE_GENERATOR_TAG,
EQUALIZER_TAG,
EXTERNAL_TAG,
FILTER_TAG,
FUNCTION_GENERATOR_TAG,
GRANULAR_TAG,
LFO_TAG,
LOGIC_TAG,
LOW_PASS_GATE_TAG,
MIDI_TAG,
MIXER_TAG,
MULTIPLE_TAG,
NOISE_TAG,
OSCILLATOR_TAG,
PANNING_TAG,
QUAD_TAG,
QUANTIZER_TAG,
RANDOM_TAG,
REVERB_TAG,
RING_MODULATOR_TAG,
SAMPLE_AND_HOLD_TAG,
SAMPLER_TAG,
SEQUENCER_TAG,
SLEW_LIMITER_TAG,
SWITCH_TAG,
SYNTH_VOICE_TAG,
TUNER_TAG,
UTILITY_TAG,
VISUAL_TAG,
WAVESHAPER_TAG,
NUM_TAGS
};


struct ModuleWidget;
struct Model;

@@ -118,7 +71,6 @@ std::string pluginGetLoginStatus();

extern std::list<Plugin*> gPlugins;
extern std::string gToken;
extern std::string gTagNames[NUM_TAGS];


} // namespace rack


+ 1
- 46
src/plugin.cpp View File

@@ -31,52 +31,6 @@ namespace rack {
std::list<Plugin*> gPlugins;
std::string gToken;

std::string gTagNames[NUM_TAGS] = {
"Amplifier/VCA",
"Attenuator",
"Blank",
"Clock",
"Controller",
"Delay",
"Digital",
"Distortion",
"Drum",
"Dual/Stereo",
"Dynamics",
"Effect",
"Envelope Follower",
"Envelope Generator",
"Equalizer",
"External",
"Filter/VCF",
"Function Generator",
"Granular",
"LFO",
"Logic",
"Low Pass Gate",
"MIDI",
"Mixer",
"Multiple",
"Noise",
"Oscillator/VCO",
"Panning",
"Quad",
"Quantizer",
"Random",
"Reverb",
"Ring Modulator",
"Sample and Hold",
"Sampler",
"Sequencer",
"Slew Limiter",
"Switch",
"Synth Voice",
"Tuner",
"Utility",
"Visual",
"Waveshaper",
};


static bool isDownloading = false;
static float downloadProgress = 0.0;
@@ -293,6 +247,7 @@ static void refreshPurchase(json_t *pluginJ) {
////////////////////

void pluginInit() {
tagsInit();
// Load core
// This function is defined in core.cpp
Plugin *coreManufacturer = new Plugin();


Loading…
Cancel
Save