Paul Davis
79799023f5
git-svn-id: svn://localhost/ardour2/branches/3.0@11838 d708f5d6-7413-0410-9779-e7cbd77b26cf
25 lines
614 B
C++
25 lines
614 B
C++
#include <cmath>
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <cstdio>
|
|
|
|
#include "controls.h"
|
|
#include "mackie_surface.h"
|
|
#include "mackie_midi_builder.h"
|
|
#include "surface_port.h"
|
|
|
|
using namespace Mackie;
|
|
|
|
void
|
|
MackieSurface::display_timecode (SurfacePort & port, MackieMidiBuilder & builder, const std::string & timecode, const std::string & timecode_last)
|
|
{
|
|
port.write (builder.timecode_display (port, timecode, timecode_last));
|
|
}
|
|
|
|
float
|
|
MackieSurface::scaled_delta (const ControlState & state, float current_speed)
|
|
{
|
|
return state.sign * (std::pow (float(state.ticks + 1), 2) + current_speed) / 100.0;
|
|
}
|
|
|