Integration of Ableton link in vimix application

No useful functionality yet. Only connecting, set parameters, show metrics and save settings.
This commit is contained in:
Bruno Herbelin
2021-11-13 15:01:02 +01:00
parent c271cad9aa
commit 8676e9b900
5 changed files with 195 additions and 43 deletions

View File

@@ -249,6 +249,12 @@ void Settings::Save()
pRoot->InsertEndChild(recent);
}
// Metronome
XMLElement *metroConfNode = xmlDoc.NewElement( "Metronome" );
metroConfNode->SetAttribute("tempo", application.metronome.tempo);
metroConfNode->SetAttribute("quantum", application.metronome.quantum);
pRoot->InsertEndChild(metroConfNode);
// First save : create filename
if (settingsFilename.empty())
settingsFilename = SystemToolkit::full_filename(SystemToolkit::settings_path(), APP_SETTINGS);
@@ -518,6 +524,13 @@ void Settings::Load()
}
}
// bloc metronome
XMLElement * metroconfnode = pRoot->FirstChildElement("Metronome");
if (metroconfnode != nullptr) {
metroconfnode->QueryDoubleAttribute("tempo", &application.metronome.tempo);
metroconfnode->QueryDoubleAttribute("quantum", &application.metronome.quantum);
}
}
void Settings::History::push(const string &filename)