activations
This commit is contained in:
parent
3234a2f884
commit
1408a238b5
4 changed files with 16 additions and 16 deletions
|
|
@ -283,12 +283,12 @@ void loop1() {
|
||||||
midi_interf->Poll();
|
midi_interf->Poll();
|
||||||
, 10000)
|
, 10000)
|
||||||
|
|
||||||
#if 1 //test ARP
|
// #if 1 //test ARP
|
||||||
PERIODIC_RUN_US(
|
// PERIODIC_RUN_US(
|
||||||
static size_t arpCount=0;
|
// static size_t arpCount=0;
|
||||||
static size_t noteIndex=30;
|
// static size_t noteIndex=30;
|
||||||
|
|
||||||
, 100000)
|
// , 100000)
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@
|
||||||
|
|
||||||
// #define ARPEGGIATOR
|
// #define ARPEGGIATOR
|
||||||
|
|
||||||
// template<size_t NPARAMS=33>
|
template<size_t NPARAMS=33>
|
||||||
template<size_t NPARAMS=1>
|
// template<size_t NPARAMS=1>
|
||||||
class PAFSynthAudioApp : public AudioAppBase<NPARAMS>
|
class PAFSynthAudioApp : public AudioAppBase<NPARAMS>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
@ -206,7 +206,7 @@ public:
|
||||||
|
|
||||||
currentVoiceSpace = voiceSpaces[2].mappingFunction;
|
currentVoiceSpace = voiceSpaces[2].mappingFunction;
|
||||||
#endif
|
#endif
|
||||||
auto voiceSpaceTest = [this](const std::array<float, NPARAMS>& params) {
|
auto voiceSpaceSingle1 = [this](const std::array<float, NPARAMS>& params) {
|
||||||
p0Gain=1.f;
|
p0Gain=1.f;
|
||||||
p1Gain=0.f;
|
p1Gain=0.f;
|
||||||
p2Gain=0.f;
|
p2Gain=0.f;
|
||||||
|
|
@ -242,11 +242,11 @@ public:
|
||||||
// euclidN = static_cast<size_t>(2 + (params[19] * 5));
|
// euclidN = static_cast<size_t>(2 + (params[19] * 5));
|
||||||
dlfb = 0.f;
|
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;
|
sineShapeASym = 0.f;
|
||||||
sineShapeMix = 0.f;
|
sineShapeMix = params[6] * 0.3f;
|
||||||
|
|
||||||
rmGain = 0.f;
|
rmGain = 0.f;
|
||||||
feedbackGain = 0.0f;
|
feedbackGain = 0.0f;
|
||||||
|
|
@ -255,7 +255,7 @@ public:
|
||||||
fbSmoothAlpha=0.f;
|
fbSmoothAlpha=0.f;
|
||||||
};
|
};
|
||||||
|
|
||||||
voiceSpaces[0] = {"test", voiceSpaceTest};
|
voiceSpaces[0] = {"test", voiceSpaceSingle1};
|
||||||
|
|
||||||
currentVoiceSpace = voiceSpaces[0].mappingFunction;
|
currentVoiceSpace = voiceSpaces[0].mappingFunction;
|
||||||
|
|
||||||
|
|
@ -343,7 +343,7 @@ public:
|
||||||
// }
|
// }
|
||||||
#endif
|
#endif
|
||||||
float envval = env.play();
|
float envval = env.play();
|
||||||
// y = y * envval;
|
y = y * envval;
|
||||||
|
|
||||||
// #ifndef ARPEGGIATOR
|
// #ifndef ARPEGGIATOR
|
||||||
// y *= noteVel;
|
// y *= noteVel;
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit e207eebb2df4aa065c808404dd1019d520494899
|
Subproject commit 9d36f7ce8f6b4704c7be3ba7e7abc1e397587b0f
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 8dc59a6003c932d7d095df2b225e2bc7bcda8179
|
Subproject commit c4a43845eac20d4c031c8d92060fdff1b8afa060
|
||||||
Loading…
Reference in a new issue