commit 6e241a5579bf66f1a56355f4b5e996bf6f16075b
parent e4639d83eb2e3a1ca2f3a41ded18986a53d1af2d
Author: fundamental <[email protected]>
Date: Sat, 13 Jun 2015 14:31:42 -0400
MiddleWare: Fix Out-Of-Date Non-Rt Object Paths
Diffstat:
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/src/Misc/MiddleWare.cpp b/src/Misc/MiddleWare.cpp
@@ -347,14 +347,14 @@ struct NonRtObjStore
{
std::string base = "/part"+to_s(i)+"/kit"+to_s(j)+"/";
for(int k=0; k<NUM_VOICES; ++k) {
- std::string nbase = base+"adpars/voice"+to_s(k)+"/";
+ std::string nbase = base+"adpars/VoicePar"+to_s(k)+"/";
if(adpars) {
auto &nobj = adpars->VoicePar[k];
- objmap[nbase+"oscil/"] = nobj.OscilSmp;
- objmap[nbase+"mod-oscil/"] = nobj.FMSmp;
+ objmap[nbase+"OscilSmp/"] = nobj.OscilSmp;
+ objmap[nbase+"FMSmp/"] = nobj.FMSmp;
} else {
- objmap[nbase+"oscil/"] = nullptr;
- objmap[nbase+"mod-oscil/"] = nullptr;
+ objmap[nbase+"OscilSmp/"] = nullptr;
+ objmap[nbase+"FMSmp/"] = nullptr;
}
}
}
@@ -365,10 +365,10 @@ struct NonRtObjStore
for(int k=0; k<NUM_VOICES; ++k) {
if(padpars) {
objmap[base+"padpars/"] = padpars;
- objmap[base+"padpars/oscil/"] = padpars->oscilgen;
+ objmap[base+"padpars/oscilgen/"] = padpars->oscilgen;
} else {
objmap[base+"padpars/"] = nullptr;
- objmap[base+"padpars/oscil/"] = nullptr;
+ objmap[base+"padpars/oscilgen/"] = nullptr;
}
}
}
diff --git a/src/UI/Fl_Oscilloscope.h b/src/UI/Fl_Oscilloscope.h
@@ -54,6 +54,9 @@ class Fl_Oscilloscope : public Fl_Box, public Fl_Osc_Widget
virtual void OSC_value(unsigned N, void *data) override
{
+ if(oscilsize == 0)
+ OSC_value((int)N/4);
+
assert(N==(unsigned)(oscilsize*4));
memcpy(smps, data, N);