Skip to content

Commit 037b062

Browse files
committed
resurrect custom Faust UI class
1 parent b192fda commit 037b062

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ file. This change log follows the conventions of
88
## [Unreleased]
99
### Added
1010

11+
- add custom UI handler
12+
1113
- add linter script and fix warnings
1214

1315
### Changed

src/ProtoFaust.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,17 @@
2727
#ifndef PROTO_FAUST_HPP
2828
#define PROTO_FAUST_HPP
2929

30+
#include <vector>
31+
#include <string>
32+
3033

3134
struct ProtoFaust : Module {
3235
public:
3336
const int numberOfChannels = 8;
3437
const FAUSTFLOAT voltageScaling = 5.0f;
3538

3639
faust::FaustDSP FaustDSP;
37-
faust::MapUI FaustUI;
40+
faust::VCVRACKUI FaustUI;
3841

3942
ProtoFaust();
4043

src/ProtoFaustWidget.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#ifndef PROTO_FAUST_WIDGET_HPP
2828
#define PROTO_FAUST_WIDGET_HPP
2929

30+
#include <string>
31+
3032

3133
struct ProtoFaustWidget : ModuleWidget {
3234
public:

src/faust/architecture_rack.cpp

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,18 @@
6060

6161
/*******************BEGIN ARCHITECTURE SECTION (part 2/2)***************/
6262

63-
// EMPTY !!!
63+
// *INDENT-ON* --> give astyle free reign ...
6464

65-
/********************END ARCHITECTURE SECTION (part 2/2)****************/
65+
class VCVRACKUI : public MapUI
66+
{
67+
public:
68+
VCVRACKUI() : MapUI() {}
69+
virtual ~VCVRACKUI() {}
6670

67-
// *INDENT-ON* --> give astyle free reign ...
71+
virtual void declare( FAUSTFLOAT* zone, const char* key, const char* val ) override
72+
{
73+
MapUI::declare( zone, key, val );
74+
}
75+
};
76+
77+
/********************END ARCHITECTURE SECTION (part 2/2)****************/

0 commit comments

Comments
 (0)