mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-13 03:09:57 +01:00
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:
13
Settings.cpp
13
Settings.cpp
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user