kwave  18.07.70
TrackPixmap.cpp File Reference
#include "config.h"
#include <math.h>
#include <new>
#include <QMutexLocker>
#include <QPainter>
#include <QPolygon>
#include <QTime>
#include "libkwave/SampleReader.h"
#include "libkwave/Track.h"
#include "libkwave/Utils.h"
#include "libgui/TrackPixmap.h"
Include dependency graph for TrackPixmap.cpp:

Go to the source code of this file.

Macros

#define INTERPOLATION_PRECISION   4
 
#define INTERPOLATION_ZOOM   0.10
 

Macro Definition Documentation

◆ INTERPOLATION_PRECISION

#define INTERPOLATION_PRECISION   4

This factor determines how many times the order is over than the minimum required order. Higher values give less problems with aliasing but some amplitude errors. Lower values make less amplitude errors but more aliasing problems. This should be a good compromise...

Definition at line 41 of file TrackPixmap.cpp.

Referenced by Kwave::TrackPixmap::calculateInterpolation(), and Kwave::TrackPixmap::drawInterpolatedSignal().

◆ INTERPOLATION_ZOOM

#define INTERPOLATION_ZOOM   0.10

If the zoom factor is below this margin, an interpolation will be used.

Definition at line 47 of file TrackPixmap.cpp.

Referenced by Kwave::TrackPixmap::repaint(), and Kwave::TrackPixmap::validateBuffer().