# HG changeset patch # User Chris Cannam # Date 1191946870 0 # Node ID 4669894a89ad428640063d2ff315de5ad0dc9cfd # Parent fc656505c573014ba10b10dd37a1036ecd2a4197 * textual changes diff -r fc656505c573 -r 4669894a89ad data/model/Labeller.h --- a/data/model/Labeller.h Mon Oct 08 14:44:38 2007 +0000 +++ b/data/model/Labeller.h Tue Oct 09 16:21:10 2007 +0000 @@ -82,14 +82,14 @@ TypeNameMap getTypeNames() const { TypeNameMap m; m[ValueNone] = tr("No numbering"); - m[ValueFromSimpleCounter] = tr("Simple counter starting from 1"); - m[ValueFromCyclicalCounter] = tr("Cyclical counter starting from 1"); + m[ValueFromSimpleCounter] = tr("Simple counter"); + m[ValueFromCyclicalCounter] = tr("Cyclical counter"); m[ValueFromTwoLevelCounter] = tr("Cyclical two-level counter (bar/beat)"); m[ValueFromFrameNumber] = tr("Audio sample frame number"); m[ValueFromRealTime] = tr("Time in seconds"); m[ValueFromRealTimeDifference] = tr("Duration to the following item"); m[ValueFromTempo] = tr("Tempo (bpm) based on duration to following item"); - m[ValueFromExistingNeighbour] = tr("Same value as the nearest previous item"); + m[ValueFromExistingNeighbour] = tr("Same as the nearest previous item"); m[ValueFromLabel] = tr("Value extracted from the item's label (where possible)"); return m; } @@ -133,6 +133,9 @@ } else if (m_type == ValueFromTwoLevelCounter) { newPoint.label = tr("%1.%2").arg(m_counter2).arg(m_counter); incrementCounter(); + } else if (m_type == ValueFromFrameNumber) { + // avoid going through floating-point value + newPoint.label = tr("%1").arg(newPoint.frame); } else { float value = getValueFor(newPoint, prevPoint); if (actingOnPrevPoint() && prevPoint) {