You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (parameters.size() < 11) { // Test that we have enough parameters
151
-
BOOST_THROW_EXCEPTION(AlfException() << ErrorInfo::Message("Wrong number of parameters for the Pattern Player RPC call: " + std::to_string(parameters.size())));
150
+
try {
151
+
roc::PatternPlayer::Info info = parseStringToPatternPlayerInfo(parameters);
152
+
roc::PatternPlayer pp = roc::PatternPlayer(bar2);
153
+
pp.play(info);
154
+
}
155
+
catch(boost::exception const& e) {
156
+
auto info = boost::get_error_info<ErrorInfo::Message>(e);
if (infoField != 11) { // Test that we have enough non-comment parameters
226
-
BOOST_THROW_EXCEPTION(AlfException() << ErrorInfo::Message("Wrong number of non-comment parameters for the Pattern Player RPC call: " + std::to_string(infoField)));
0 commit comments