Esempio n. 1
0
void CtrlrSysexProcessor::setMultiMessageFromString(CtrlrMidiMessage &message, const String &savedState)
{
	if (savedState.trim() == String::empty)
		return;

	StringArray messages;
	const int ch = message.getChannel();
	const int v  = message.getValue();
	const int n  = message.getNumber();

	message.getMidiMessageArray().clear();
	messages.addTokens (savedState.trim(), ":", "\"\'");

	for (int i=0; i<messages.size(); i++)
	{
		message.getMidiMessageArray().add (midiMessageExfromString (messages[i], ch, n, v));
	}
}
Esempio n. 2
0
void CtrlrSysexProcessor::setSysExFormula(CtrlrMidiMessage &message, const String &formulaString)
{
	/* parse the formula to byte format */
	message.getMidiMessageArray().clear();
	message.getMidiMessageArray().add (sysexMessageFromString(formulaString, message.getValue(), message.getChannel()));
}