activations

This commit is contained in:
chriskiefer 2025-10-30 20:35:28 +00:00
parent 3234a2f884
commit 1408a238b5
4 changed files with 16 additions and 16 deletions

View file

@ -283,12 +283,12 @@ void loop1() {
midi_interf->Poll();
, 10000)
#if 1 //test ARP
PERIODIC_RUN_US(
static size_t arpCount=0;
static size_t noteIndex=30;
// #if 1 //test ARP
// PERIODIC_RUN_US(
// static size_t arpCount=0;
// static size_t noteIndex=30;
, 100000)
#endif
// , 100000)
// #endif
}

View file

@ -18,8 +18,8 @@
// #define ARPEGGIATOR
// template<size_t NPARAMS=33>
template<size_t NPARAMS=1>
template<size_t NPARAMS=33>
// template<size_t NPARAMS=1>
class PAFSynthAudioApp : public AudioAppBase<NPARAMS>
{
public:
@ -206,7 +206,7 @@ public:
currentVoiceSpace = voiceSpaces[2].mappingFunction;
#endif
auto voiceSpaceTest = [this](const std::array<float, NPARAMS>& params) {
auto voiceSpaceSingle1 = [this](const std::array<float, NPARAMS>& params) {
p0Gain=1.f;
p1Gain=0.f;
p2Gain=0.f;
@ -242,11 +242,11 @@ public:
// euclidN = static_cast<size_t>(2 + (params[19] * 5));
dlfb = 0.f;
env.setup(1.f,100.f,0.3f, 200.f, sampleRatef );
env.setup(params[1] * 20.f , params[2] * 200.f, params[3] * 0.4f, params[4] * 300.f, sampleRatef );
sineShapeGain = 0.f;
sineShapeGain = params[5] * params[5] * 0.2f;
sineShapeASym = 0.f;
sineShapeMix = 0.f;
sineShapeMix = params[6] * 0.3f;
rmGain = 0.f;
feedbackGain = 0.0f;
@ -255,7 +255,7 @@ public:
fbSmoothAlpha=0.f;
};
voiceSpaces[0] = {"test", voiceSpaceTest};
voiceSpaces[0] = {"test", voiceSpaceSingle1};
currentVoiceSpace = voiceSpaces[0].mappingFunction;
@ -343,7 +343,7 @@ public:
// }
#endif
float envval = env.play();
// y = y * envval;
y = y * envval;
// #ifndef ARPEGGIATOR
// y *= noteVel;

@ -1 +1 @@
Subproject commit e207eebb2df4aa065c808404dd1019d520494899
Subproject commit 9d36f7ce8f6b4704c7be3ba7e7abc1e397587b0f

@ -1 +1 @@
Subproject commit 8dc59a6003c932d7d095df2b225e2bc7bcda8179
Subproject commit c4a43845eac20d4c031c8d92060fdff1b8afa060