commit 5bc1af8275ec628962d0227cbbfa8769dcee7e0d
parent f7fb7aed31bf98b7e1f0a496d5ef43b3d9488ac9
Author: Matt Demanett <matt@demanett.net>
Date: Fri, 17 May 2019 22:18:42 -0400
v1: Makefile etc.
Diffstat:
4 files changed, 37 insertions(+), 26 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,12 +1,4 @@
-SLUG=Bogaudio
-VERSION=0.6.16
-FLAGS += -DSLUG=$(SLUG) -DVERSION=$(VERSION)
-
-ifdef REQUIRE_VERSION
-FLAGS += -DREQUIRE_VERSION=$(REQUIRE_VERSION)
-endif
-
ifdef EXPERIMENTAL
FLAGS += -DEXPERIMENTAL=1
endif
diff --git a/plugin.json b/plugin.json
@@ -0,0 +1,24 @@
+{
+ "slug": "Bogaudio",
+ "name": "Bogaudio",
+ "version": "1.0.17",
+ "license": "BSD-3-Clause",
+ "author": "Matt Demanett",
+ "authorEmail": "",
+ "authorUrl": "",
+ "pluginUrl": "https://github.com/bogaudio/BogaudioModules/blob/master/README.md",
+ "manualUrl": "https://github.com/bogaudio/BogaudioModules/blob/master/README.md",
+ "sourceUrl": "https://github.com/bogaudio/BogaudioModules",
+ "donateUrl": "",
+ "modules": [
+ {
+ "slug": "Bogaudio-SampleHold",
+ "name": "S&H",
+ "description": "dual sample (or track) and hold",
+ "tags": [
+ "sample and hold",
+ "dual"
+ ]
+ }
+ ]
+}
diff --git a/src/bogaudio.hpp b/src/bogaudio.hpp
@@ -7,9 +7,8 @@
#include <algorithm>
#include <cmath>
-#include "rack.hpp"
+#include "rack0.hpp"
-#include "dsp/digital.hpp"
#include "rack_overrides.hpp"
#include "trigger_on_load.hpp"
#include "widgets.hpp"
diff --git a/src/utils.hpp b/src/utils.hpp
@@ -1,9 +1,9 @@
#pragma once
-#include <string.h>
-#include <algorithm>
+// #include <string.h>
+// #include <algorithm>
-#include "rack.hpp"
+#include "rack0.hpp"
using namespace rack;
@@ -16,19 +16,15 @@ Model* createModel(
const char* description,
Tags... tags
) {
- const int n = 256;
- char buf[n];
- std::string uName = name;
- for (auto& c: uName) {
- c = toupper(c);
- }
- snprintf(buf, n, "%s - %s - %dHP", uName.c_str(), description, TModuleWidget::hp);
- return Model::create<TModule, TModuleWidget>(
- "Bogaudio",
- slug,
- buf,
- tags...
- );
+ // FIXME.v1
+ // const int n = 256;
+ // char buf[n];
+ // std::string uName = name;
+ // for (auto& c: uName) {
+ // c = toupper(c);
+ // }
+ // snprintf(buf, n, "%s - %s - %dHP", uName.c_str(), description, TModuleWidget::hp);
+ return Model::create<TModule, TModuleWidget>(slug);
}
} // namespace bogaudio