@@ -35,6 +35,7 @@ void ColumnSettings::serializeToXml(QXmlStreamWriter & writer) const
3535 writer.writeStartElement (Constants::NahdXml::xmlKeyColumnSettings ());
3636
3737 writer.writeAttribute (Constants::NahdXml::xmlKeyDelay (), QString::number (delay.count ()));
38+ writer.writeAttribute (Constants::NahdXml::xmlKeyTranspose (), QString::number (transpose));
3839
3940 writer.writeAttribute (Constants::NahdXml::xmlKeyChordNote1Offset (), QString::number (chordAutomationSettings.note1 .offset ));
4041 writer.writeAttribute (Constants::NahdXml::xmlKeyChordNote1Velocity (), QString::number (chordAutomationSettings.note1 .velocity ));
@@ -60,6 +61,7 @@ ColumnSettings::ColumnSettingsU ColumnSettings::deserializeFromXml(QXmlStreamRea
6061 auto settings = std::make_unique<ColumnSettings>();
6162
6263 settings->delay = std::chrono::milliseconds { Utils::Xml::readIntAttribute (reader, Constants::NahdXml::xmlKeyDelay (), false ).value_or (0 ) };
64+ settings->transpose = Utils::Xml::readIntAttribute (reader, Constants::NahdXml::xmlKeyTranspose (), false ).value_or (0 );
6365
6466 settings->chordAutomationSettings .note1 .offset = Utils::Xml::readIntAttribute (reader, Constants::NahdXml::xmlKeyChordNote1Offset (), false ).value_or (0 );
6567 settings->chordAutomationSettings .note1 .velocity = Utils::Xml::readUIntAttribute (reader, Constants::NahdXml::xmlKeyChordNote1Velocity (), false ).value_or (100 );
@@ -80,8 +82,9 @@ ColumnSettings::ColumnSettingsU ColumnSettings::deserializeFromXml(QXmlStreamRea
8082
8183QString ColumnSettings::toString () const
8284{
83- return QStringLiteral (" ColumnSettings(delay=%1, chordAutomation: note1(offset=%2 , velocity=%3 , delay=%4 ), note2(offset=%5 , velocity=%6 , delay=%7 ), note3(offset=%8 , velocity=%9 , delay=%10 ))" )
85+ return QStringLiteral (" ColumnSettings(delay=%1, transpose=%2, chordAutomation: note1(offset=%3 , velocity=%4 , delay=%5 ), note2(offset=%6 , velocity=%7 , delay=%8 ), note3(offset=%9 , velocity=%10 , delay=%11 ))" )
8486 .arg (delay.count ())
87+ .arg (transpose)
8588 .arg (chordAutomationSettings.note1 .offset )
8689 .arg (chordAutomationSettings.note1 .velocity )
8790 .arg (chordAutomationSettings.note1 .delay )
0 commit comments