739 |
region->amplfo_fade = amplfo_fade; |
region->amplfo_fade = amplfo_fade; |
740 |
region->amplfo_freq = amplfo_freq; |
region->amplfo_freq = amplfo_freq; |
741 |
region->amplfo_depth = amplfo_depth; |
region->amplfo_depth = amplfo_depth; |
742 |
|
|
743 |
|
region->amplfo_freqcc = amplfo_freqcc; |
744 |
|
|
745 |
region->fillfo_delay = fillfo_delay; |
region->fillfo_delay = fillfo_delay; |
746 |
region->fillfo_fade = fillfo_fade; |
region->fillfo_fade = fillfo_fade; |
747 |
region->fillfo_freq = fillfo_freq; |
region->fillfo_freq = fillfo_freq; |
748 |
region->fillfo_depth = fillfo_depth; |
region->fillfo_depth = fillfo_depth; |
749 |
|
|
750 |
|
region->fillfo_freqcc = fillfo_freqcc; |
751 |
|
|
752 |
region->pitchlfo_delay = pitchlfo_delay; |
region->pitchlfo_delay = pitchlfo_delay; |
753 |
region->pitchlfo_fade = pitchlfo_fade; |
region->pitchlfo_fade = pitchlfo_fade; |
755 |
region->pitchlfo_depth = pitchlfo_depth; |
region->pitchlfo_depth = pitchlfo_depth; |
756 |
|
|
757 |
region->pitchlfo_depthcc = pitchlfo_depthcc; |
region->pitchlfo_depthcc = pitchlfo_depthcc; |
758 |
|
region->pitchlfo_freqcc = pitchlfo_freqcc; |
759 |
|
|
760 |
return region; |
return region; |
761 |
} |
} |
1299 |
else if (sscanf(key.c_str(), "lfo%d%n", &x, &y)) { |
else if (sscanf(key.c_str(), "lfo%d%n", &x, &y)) { |
1300 |
const char* s = key.c_str() + y; |
const char* s = key.c_str() + y; |
1301 |
if (strcmp(s, "_freq") == 0) lfo(x).freq = check(key, 0.0f, 20.0f, ToFloat(value)); |
if (strcmp(s, "_freq") == 0) lfo(x).freq = check(key, 0.0f, 20.0f, ToFloat(value)); |
1302 |
|
else if (sscanf(s, "_freq_oncc%d", &y)) lfo(x).freq_oncc.add( CC(y, check(key, 0.0f, 20.0f, ToFloat(value))) ); |
1303 |
else if (strcmp(s, "_wave") == 0) lfo(x).wave = ToInt(value); |
else if (strcmp(s, "_wave") == 0) lfo(x).wave = ToInt(value); |
1304 |
else if (strcmp(s, "_delay") == 0) lfo(x).delay = check(key, 0.0f, 100.0f, ToFloat(value)); |
else if (strcmp(s, "_delay") == 0) lfo(x).delay = check(key, 0.0f, 100.0f, ToFloat(value)); |
1305 |
else if (strcmp(s, "_fade") == 0) lfo(x).fade = check(key, 0.0f, 100.0f, ToFloat(value)); |
else if (strcmp(s, "_fade") == 0) lfo(x).fade = check(key, 0.0f, 100.0f, ToFloat(value)); |
1375 |
else if ("eq2_gain_on" == key_cc || "eq2_gain" == key_cc) pCurDef->eq2_gain_oncc.set(num_cc, ToInt(value)); |
else if ("eq2_gain_on" == key_cc || "eq2_gain" == key_cc) pCurDef->eq2_gain_oncc.set(num_cc, ToInt(value)); |
1376 |
else if ("eq3_gain_on" == key_cc || "eq3_gain" == key_cc) pCurDef->eq3_gain_oncc.set(num_cc, ToInt(value)); |
else if ("eq3_gain_on" == key_cc || "eq3_gain" == key_cc) pCurDef->eq3_gain_oncc.set(num_cc, ToInt(value)); |
1377 |
else if ("pitchlfo_depth" == key_cc) pCurDef->pitchlfo_depthcc.set(num_cc, ToInt(value)); |
else if ("pitchlfo_depth" == key_cc) pCurDef->pitchlfo_depthcc.set(num_cc, ToInt(value)); |
1378 |
|
else if ("pitchlfo_freq" == key_cc) pCurDef->pitchlfo_freqcc.add( CC(num_cc, check(key, -200.0f, 200.0f, ToFloat(value))) ); |
1379 |
|
else if ("fillfo_freq" == key_cc) pCurDef->fillfo_freqcc.add( CC(num_cc, check(key, -200.0f, 200.0f, ToFloat(value))) ); |
1380 |
|
else if ("amplfo_freq" == key_cc) pCurDef->amplfo_freqcc.add( CC(num_cc, check(key, -200.0f, 200.0f, ToFloat(value))) ); |
1381 |
else std::cerr << "The opcode '" << key << "' is unsupported by libsfz!" << std::endl; |
else std::cerr << "The opcode '" << key << "' is unsupported by libsfz!" << std::endl; |
1382 |
} |
} |
1383 |
|
|