cwIoPresetSelApp.cpp : Fix formatting problems.

This commit is contained in:
kevin 2023-01-30 19:35:28 -05:00
parent 7444044c05
commit 59647d4e58

View File

@ -919,7 +919,6 @@ namespace cw
{ {
rc_t rc = kOkRC; rc_t rc = kOkRC;
// if
if( fragEndLoc == kInvalidId ) if( fragEndLoc == kInvalidId )
{ {
// get the endLoc associated with this fragment // get the endLoc associated with this fragment
@ -962,13 +961,12 @@ namespace cw
rc_t _update_frag_ui(app_t* app, unsigned fragId ) rc_t _update_frag_ui(app_t* app, unsigned fragId )
{ {
// Notes: // Notes:
// uiChanId = fragId for panel values // uiChanId = fragId for panel values or uiChanId = preset_index for preset values
// or uiChanId = preset_index for preset values
rc_t rc = kOkRC; rc_t rc = kOkRC;
unsigned endLoc; unsigned endLoc;
// get the endLoc for this fragment // Get the endLoc for this fragment
if((rc = _frag_id_to_endloc(app, fragId, endLoc )) == kOkRC ) if((rc = _frag_id_to_endloc(app, fragId, endLoc )) == kOkRC )
{ {
unsigned uValue; unsigned uValue;
@ -1199,7 +1197,7 @@ namespace cw
// Make the fragment panel clickable // Make the fragment panel clickable
io::uiSetClickable( app->ioH, fragPanelUuId); io::uiSetClickable( app->ioH, fragPanelUuId);
// Set the fragment panel order // Set the fragment panel order.
io::uiSetOrderKey( app->ioH, fragPanelUuId, endLoc ); io::uiSetOrderKey( app->ioH, fragPanelUuId, endLoc );
// Set the fragment beg/end play range // Set the fragment beg/end play range
@ -2378,6 +2376,7 @@ cw::rc_t cw::preset_sel_app::main( const object_t* cfg, int argc, const char* ar
rc_t rc; rc_t rc;
app_t app = { .hpDelayMs=250, .hpPedalVel=127, .hpPitch=64, .hpVel=64, .hpDurMs=500, .hpDnDelayMs=1000, app_t app = { .hpDelayMs=250, .hpPedalVel=127, .hpPitch=64, .hpVel=64, .hpDurMs=500, .hpDnDelayMs=1000,
.trackMidiFl = true, .trackMidiFl = true,
.audioFileSrcFl = true,
.pvWndSmpCnt = 512, .pvWndSmpCnt = 512,
.sdBypassFl = false, .sdBypassFl = false,
.sdInGain = 1.0, .sdInGain = 1.0,
@ -2387,7 +2386,7 @@ cw::rc_t cw::preset_sel_app::main( const object_t* cfg, int argc, const char* ar
.sdUpr = -1.1, .sdUpr = -1.1,
.sdLwr = 2.0, .sdLwr = 2.0,
.sdMix = 0.0, .sdMix = 0.0,
.cmpBypassFl = false .cmpBypassFl = false,
}; };
const object_t* params_cfg = nullptr; const object_t* params_cfg = nullptr;