zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 0cb9f6723ab0d83d0474ed93196651ff6df1490b
parent 856306b3dc7a87ce61f56c4bd92971b6edd53eaf
Author: fundamental <[email protected]>
Date:   Sat,  6 Aug 2016 16:31:50 -0400

Add Octave/Coarse Detune Metadata

Diffstat:
Msrc/Params/ADnoteParameters.cpp | 17+++++++++++------
Msrc/Params/PADnoteParameters.cpp | 6++++--
Msrc/Params/SUBnoteParameters.cpp | 6++++--
3 files changed, 19 insertions(+), 10 deletions(-)

diff --git a/src/Params/ADnoteParameters.cpp b/src/Params/ADnoteParameters.cpp @@ -149,7 +149,8 @@ static const Ports voicePorts = { //TODO do the same for the other engines d.reply(d.loc, "f", getdetune(detuneType, 0, obj->PDetune)); }}, - {"octave::c:i", rProp(parameter) rDoc("Octave note offset"), NULL, + {"octave::c:i", rProp(parameter) rShort("octave") rLinear(-8, 7) rDoc("Octave note offset"), + NULL, [](const char *msg, RtData &d) { rObject *obj = (rObject *)d.obj; @@ -163,7 +164,8 @@ static const Ports voicePorts = { obj->PCoarseDetune = k*1024 + obj->PCoarseDetune%1024; } }}, - {"coarsedetune::c:i", rProp(parameter) rDoc("Coarse note detune"), NULL, + {"coarsedetune::c:i", rProp(parameter) rShort("coarse") rLinear(-64,63) + rDoc("Coarse note detune"), NULL, [](const char *msg, RtData &d) { rObject *obj = (rObject *)d.obj; @@ -189,7 +191,7 @@ static const Ports voicePorts = { //TODO do the same for the other engines d.reply(d.loc, "f", getdetune(detuneType, 0, obj->PFMDetune)); }}, - {"FMoctave::c:i", rProp(parameter) rShort("octave") rDoc("Octave note offset for modulator"), NULL, + {"FMoctave::c:i", rProp(parameter) rShort("octave") rLinear(-8,7) rDoc("Octave note offset for modulator"), NULL, [](const char *msg, RtData &d) { rObject *obj = (rObject *)d.obj; @@ -203,7 +205,8 @@ static const Ports voicePorts = { obj->PFMCoarseDetune = k*1024 + obj->PFMCoarseDetune%1024; } }}, - {"FMcoarsedetune::c:i", rProp(parameter) rDoc("Coarse note detune for modulator"), + {"FMcoarsedetune::c:i", rProp(parameter) rShort("coarse") rLinear(-64,63) + rDoc("Coarse note detune for modulator"), NULL, [](const char *msg, RtData &d) { rObject *obj = (rObject *)d.obj; @@ -280,7 +283,8 @@ static const Ports globalPorts = { rObject *obj = (rObject *)d.obj; d.reply(d.loc, "f", getdetune(obj->PDetuneType, 0, obj->PDetune)); }}, - {"octave::c:i", rProp(parameter) rDoc("Octave note offset"), NULL, + {"octave::c:i", rProp(parameter) rShort("octave") rLinear(-8,7) + rDoc("Octave note offset"), NULL, [](const char *msg, RtData &d) { rObject *obj = (rObject *)d.obj; @@ -294,7 +298,8 @@ static const Ports globalPorts = { obj->PCoarseDetune = k*1024 + obj->PCoarseDetune%1024; } }}, - {"coarsedetune::c:i", rProp(parameter) rDoc("Coarse note detune"), NULL, + {"coarsedetune::c:i", rProp(parameter) rShort("coarse") rLinear(-64, 63) + rDoc("Coarse note detune"), NULL, [](const char *msg, RtData &d) { rObject *obj = (rObject *)d.obj; diff --git a/src/Params/PADnoteParameters.cpp b/src/Params/PADnoteParameters.cpp @@ -88,7 +88,8 @@ static const rtosc::Ports realtime_ports = PADnoteParameters *obj = (PADnoteParameters *)d.obj; d.reply(d.loc, "f", getdetune(obj->PDetuneType, 0, obj->PDetune)); }}, - {"octave::c:i", rProp(parameter) rShort("octave") rDoc("Octave note offset"), NULL, + {"octave::c:i", rProp(parameter) rShort("octave") rLinear(-8,7) + rDoc("Octave note offset"), NULL, [](const char *msg, RtData &d) { PADnoteParameters *obj = (PADnoteParameters *)d.obj; @@ -102,7 +103,8 @@ static const rtosc::Ports realtime_ports = obj->PCoarseDetune = k*1024 + obj->PCoarseDetune%1024; } }}, - {"coarsedetune::c:i", rProp(parameter) rDoc("Coarse note detune"), NULL, + {"coarsedetune::c:i", rProp(parameter) rShort("coarse") rLinear(-64, 63) + rDoc("Coarse note detune"), NULL, [](const char *msg, RtData &d) { PADnoteParameters *obj = (PADnoteParameters *)d.obj; diff --git a/src/Params/SUBnoteParameters.cpp b/src/Params/SUBnoteParameters.cpp @@ -95,7 +95,8 @@ static const rtosc::Ports SUBnotePorts = { d.reply(d.loc, "f", getdetune(obj->PDetuneType, 0, obj->PDetune)); rEnd}, //weird stuff for PCoarseDetune - {"octave::c:i", rProp(parameter) rDoc("Note octave shift"), NULL, + {"octave::c:i", rProp(parameter) rShort("octave") rLinear(-8,7) + rDoc("Note octave shift"), NULL, rBegin; if(!rtosc_narguments(msg)) { int k=obj->PCoarseDetune/1024; @@ -107,7 +108,8 @@ static const rtosc::Ports SUBnotePorts = { obj->PCoarseDetune = k*1024 + obj->PCoarseDetune%1024; } rEnd}, - {"coarsedetune::c:i", rProp(parameter) rDoc("Note coarse detune"), NULL, + {"coarsedetune::c:i", rProp(parameter) rShort("coarse") rLinear(-64, 63) + rDoc("Note coarse detune"), NULL, rBegin; if(!rtosc_narguments(msg)) { int k=obj->PCoarseDetune%1024;