| 109 | } |
| 110 | |
| 111 | bool VST3Utils::ParseAutomationParameterKey(const wxString& key, Steinberg::Vst::ParamID& paramId) |
| 112 | { |
| 113 | const auto pos = key.Find('_'); |
| 114 | const auto idStr = pos == wxNOT_FOUND ? key : key.Left(pos); |
| 115 | unsigned long value { }; |
| 116 | if(idStr.ToULong(&value)) |
| 117 | { |
| 118 | paramId = static_cast<Steinberg::Vst::ParamID>(value); |
| 119 | return true; |
| 120 | } |
| 121 | return false; |
| 122 | } |
| 123 | |
| 124 | wxString VST3Utils::MakeFactoryPresetID(Steinberg::Vst::UnitID unitId, Steinberg::int32 programIndex) |
| 125 | { |