diff layer/WaveformLayer.cpp @ 324:1f67b110c1a3

* fix pane layout problem; fix waveform butterfly mode
author Chris Cannam
date Wed, 07 Nov 2007 16:52:52 +0000
parents 984c1975f1ff
children 2f83b6e3b8ca 64e84e5efb76
line wrap: on
line diff
--- a/layer/WaveformLayer.cpp	Wed Nov 07 16:37:17 2007 +0000
+++ b/layer/WaveformLayer.cpp	Wed Nov 07 16:52:52 2007 +0000
@@ -753,7 +753,7 @@
                     else rangeBottom = AudioLevel::multiplier_to_preview(range.absmean * gain, m);
                     meanBottom  = rangeBottom;
                 } else {
-                    rangeBottom =  AudioLevel::multiplier_to_preview(range.min * gain, m * greyLevels);
+                    rangeBottom = -AudioLevel::multiplier_to_preview(range.min * gain, m * greyLevels);
                     rangeTop    =  AudioLevel::multiplier_to_preview(range.max * gain, m * greyLevels);
                     meanBottom  = -AudioLevel::multiplier_to_preview(range.absmean * gain, m);
                     meanTop     =  AudioLevel::multiplier_to_preview(range.absmean * gain, m);
@@ -996,6 +996,8 @@
         break;
     }
 
+//    std::cerr << "mergingChannels= " << mergingChannels << ", channel  = " << channel << ", value = " << value << ", vy = " << vy << std::endl;
+
     return my - vy;
 }