diff data/model/NoteModel.h @ 318:7a4bd2c8585c

* Some export fixes, and avoid clipping on resampling on import
author Chris Cannam
date Mon, 22 Oct 2007 09:45:35 +0000
parents 70a232b1f12a
children f14e2f7b24f7 6f6ab834449d
line wrap: on
line diff
--- a/data/model/NoteModel.h	Thu Oct 18 16:20:26 2007 +0000
+++ b/data/model/NoteModel.h	Mon Oct 22 09:45:35 2007 +0000
@@ -58,7 +58,7 @@
         list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str();
         list << QString("%1").arg(value);
         list << QString("%1").arg(duration);
-        list << label;
+        if (label != "") list << label;
         return list.join(delimiter);
     }
 
@@ -126,6 +126,9 @@
                        QString indent = "",
                        QString extraAttributes = "") const
     {
+        std::cerr << "NoteModel::toXml: extraAttributes = \"" 
+                  << extraAttributes.toStdString() << std::endl;
+
         SparseValueModel<Note>::toXml
 	    (out,
              indent,