git-svn-id: svn://localhost/ardour2/branches/3.0@4315 d708f5d6-7413-0410-9779-e7cbd77b26cf
19 lines
558 B
C++
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;
|
|
}
|