Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/***************
CTAG TBD >>to be determined<< is an open source eurorack synthesizer module.
A project conceived within the Creative Technologies Arbeitsgruppe of
Kiel University of Applied Sciences: https://www.creative-technologies.de
(c) 2020 by Robert Manzke. All rights reserved.
The CTAG TBD software is licensed under the GNU General Public License
(GPL 3.0), available here: https://www.gnu.org/licenses/gpl-3.0.txt
The CTAG TBD hardware design is released under the Creative Commons
Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0).
Details here: https://creativecommons.org/licenses/by-nc-sa/4.0/
CTAG TBD is provided "as is" without any express or implied warranties.
License and copyright details for specific submodules are included in their
respective component folders / files if different from this license.
***************/
#pragma once
#include <string>
#include "rapidjson/document.h"
#include "rapidjson/stringbuffer.h"
#include "ctagDataModelBase.hpp"
#include <iostream>
#include <memory>
#include <vector>
using namespace std;
using namespace rapidjson;
namespace CTAG {
namespace AUDIO {
class SPManagerDataModel final : public CTAG::SP::ctagDataModelBase {
public:
SPManagerDataModel();
~SPManagerDataModel();
const char *GetCStrJSONSoundProcessors();
const char *GetCStrJSONConfiguration();
const char *GetCStrJSONSoundProcessorPresets(const string &id);
void SetCStrJSONSoundProcessorPreset(const char *id, const char* data);
string GetActiveProcessorID(const int chan);
void SetConfigurationFromJSON(const string &data);
string GetConfigurationData(const string &id);
string GetNetworkConfigurationData(const string &which);
void ResetNetworkConfiguration();
void SetActivePluginID(const string &id, const int chan);
int GetActivePatchNum(const int chan);
void SetActivePatchNum(const int patchNum, const int chan);
bool IsStereo(const string &id);
void PrintSelf();
bool HasPluginID(string const &id);
private:
void getSoundProcessors();
void validateActiveProcessors();
void validatePatches();
Document m;
#ifndef TBD_SIM
const string MODELJSONFN = "/sdcard/data/spm-config.jsn";
#else
const string MODELJSONFN = "../../sdcard_image/data/spm-config.jsn";
#endif
};
}
}
86ade284fThis file is pinned to the selected release. Download the original to open it in your design tool.