Mercurial > hg > easaier-soundaccess
diff layer/SpectrogramLayer.cpp @ 18:d8e6709e9075
add
- EasaierSessionManager
- Easaier menus
- Interval model
author | lbajardsilogic |
---|---|
date | Mon, 14 May 2007 13:13:14 +0000 |
parents | fc9323a41f5a |
children | 61681a2bc1e6 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Mon May 14 13:11:55 2007 +0000 +++ b/layer/SpectrogramLayer.cpp Mon May 14 13:13:14 2007 +0000 @@ -3034,6 +3034,48 @@ return Layer::toXmlString(indent, extraAttributes + " " + s); } +QString +SpectrogramLayer::toEasaierXmlString(QString indent, QString extraAttributes) const +{ + QString s; + + s += QString("channel=\"%1\" " + "windowSize=\"%2\" " + "windowType=\"%3\" " + "windowHopLevel=\"%4\" " + "gain=\"%5\" " + "threshold=\"%6\" ") + .arg(m_channel) + .arg(m_windowSize) + .arg(m_windowType) + .arg(m_windowHopLevel) + .arg(m_gain) + .arg(m_threshold); + + + + s += QString("minFrequency=\"%1\" " + "maxFrequency=\"%2\" " + "colourScale=\"%3\" " + "colourScheme=\"%4\" " + "colourRotation=\"%5\" " + "frequencyScale=\"%6\" " + "binDisplay=\"%7\" " + "normalizeColumns=\"%8\" " + "normalizeVisibleArea=\"%9\"") + .arg(m_minFrequency) + .arg(m_maxFrequency) + .arg(m_colourScale) + .arg(m_colourMap) + .arg(m_colourRotation) + .arg(m_frequencyScale) + .arg(m_binDisplay) + .arg(m_normalizeColumns ? "true" : "false") + .arg(m_normalizeVisibleArea ? "true" : "false"); + + return Layer::toEasaierXmlString(indent, extraAttributes + " " + s); +} + void SpectrogramLayer::setProperties(const QXmlAttributes &attributes) {