Skip to content

Commit

Permalink
resurrect custom Faust UI class
Browse files Browse the repository at this point in the history
  • Loading branch information
mzuther committed Jul 18, 2020
1 parent b192fda commit 037b062
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ file. This change log follows the conventions of
## [Unreleased]
### Added

- add custom UI handler

- add linter script and fix warnings

### Changed
Expand Down
5 changes: 4 additions & 1 deletion src/ProtoFaust.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,17 @@
#ifndef PROTO_FAUST_HPP
#define PROTO_FAUST_HPP

#include <vector>
#include <string>


struct ProtoFaust : Module {
public:
const int numberOfChannels = 8;
const FAUSTFLOAT voltageScaling = 5.0f;

faust::FaustDSP FaustDSP;
faust::MapUI FaustUI;
faust::VCVRACKUI FaustUI;

ProtoFaust();

Expand Down
2 changes: 2 additions & 0 deletions src/ProtoFaustWidget.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#ifndef PROTO_FAUST_WIDGET_HPP
#define PROTO_FAUST_WIDGET_HPP

#include <string>


struct ProtoFaustWidget : ModuleWidget {
public:
Expand Down
16 changes: 13 additions & 3 deletions src/faust/architecture_rack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,18 @@

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

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

/********************END ARCHITECTURE SECTION (part 2/2)****************/
class VCVRACKUI : public MapUI
{
public:
VCVRACKUI() : MapUI() {}
virtual ~VCVRACKUI() {}

// *INDENT-ON* --> give astyle free reign ...
virtual void declare( FAUSTFLOAT* zone, const char* key, const char* val ) override
{
MapUI::declare( zone, key, val );
}
};

/********************END ARCHITECTURE SECTION (part 2/2)****************/

0 comments on commit 037b062

Please sign in to comment.