13
0
livetrax/libs/surfaces/mackie/mackie_surface.cc
Paul Davis 51625b2474 "merge" (i.e. wholesale import) 2.0-ongoing Mackie code and then fix to compile in 3.0 context
git-svn-id: svn://localhost/ardour2/branches/3.0@4315 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-12-12 22:55:03 +00:00

19 lines
558 B
C++

#include "mackie_surface.h"
#include "surface_port.h"
#include "mackie_midi_builder.h"
#include <cmath>
#include <string>
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;
}