Ardour  9.0-pre0-582-g084a23a80d
OSCGlobalObserver Class Reference

#include <osc_global_observer.h>

Classes

struct  LocationMarker
 
struct  LocationMarkerSort
 

Public Member Functions

 OSCGlobalObserver (ArdourSurface::OSC &o, ARDOUR::Session &s, ArdourSurface::OSC::OSCSurface *su)
 
 ~OSCGlobalObserver ()
 
lo_address address () const
 
void tick (void)
 
void clear_observer (void)
 
void jog_mode (uint32_t jogmode)
 

Private Types

enum  STRIP { Master , Monitor }
 

Private Member Functions

void update_mixer_scene_state ()
 
void send_change_message (std::string path, std::shared_ptr< PBD::Controllable > controllable)
 
void send_gain_message (std::string path, std::shared_ptr< PBD::Controllable > controllable)
 
void send_trim_message (std::string path, std::shared_ptr< PBD::Controllable > controllable)
 
void send_transport_state_changed (void)
 
void send_record_state_changed (void)
 
void solo_active (bool active)
 
void session_name (std::string path, std::string name)
 
void extra_check (void)
 
void marks_changed (void)
 
void mark_update (void)
 
void group_changed (ARDOUR::RouteGroup *)
 
void group_changed (void)
 

Private Attributes

ArdourSurface::OSC_osc
 
PBD::ScopedConnectionList strip_connections
 
PBD::ScopedConnectionList session_connections
 
ArdourSurface::OSC::OSCSurfacesur
 
bool _init
 
float _last_master_gain
 
float _last_master_trim
 
float _last_monitor_gain
 
lo_address addr
 
std::string path
 
std::string mark_text
 
uint32_t gainmode
 
std::bitset< 32 > feedback
 
ARDOUR::Sessionsession
 
uint32_t _jog_mode
 
samplepos_t _last_sample
 
uint32_t _heartbeat
 
float _last_meter
 
uint32_t master_timeout
 
uint32_t monitor_timeout
 
uint32_t last_punchin
 
uint32_t last_punchout
 
uint32_t last_click
 
samplepos_t prev_mark
 
samplepos_t next_mark
 
std::vector< LocationMarkerlm
 

Detailed Description

Definition at line 37 of file osc_global_observer.h.

Member Enumeration Documentation

◆ STRIP

Enumerator
Master 
Monitor 

Definition at line 55 of file osc_global_observer.h.

Constructor & Destructor Documentation

◆ OSCGlobalObserver()

OSCGlobalObserver::OSCGlobalObserver ( ArdourSurface::OSC o,
ARDOUR::Session s,
ArdourSurface::OSC::OSCSurface su 
)

◆ ~OSCGlobalObserver()

OSCGlobalObserver::~OSCGlobalObserver ( )

Member Function Documentation

◆ address()

lo_address OSCGlobalObserver::address ( ) const
inline

Definition at line 44 of file osc_global_observer.h.

◆ clear_observer()

void OSCGlobalObserver::clear_observer ( void  )

◆ extra_check()

void OSCGlobalObserver::extra_check ( void  )
private

◆ group_changed() [1/2]

void OSCGlobalObserver::group_changed ( ARDOUR::RouteGroup )
private

◆ group_changed() [2/2]

void OSCGlobalObserver::group_changed ( void  )
private

◆ jog_mode()

void OSCGlobalObserver::jog_mode ( uint32_t  jogmode)

◆ mark_update()

void OSCGlobalObserver::mark_update ( void  )
private

◆ marks_changed()

void OSCGlobalObserver::marks_changed ( void  )
private

◆ send_change_message()

void OSCGlobalObserver::send_change_message ( std::string  path,
std::shared_ptr< PBD::Controllable controllable 
)
private

◆ send_gain_message()

void OSCGlobalObserver::send_gain_message ( std::string  path,
std::shared_ptr< PBD::Controllable controllable 
)
private

◆ send_record_state_changed()

void OSCGlobalObserver::send_record_state_changed ( void  )
private

◆ send_transport_state_changed()

void OSCGlobalObserver::send_transport_state_changed ( void  )
private

◆ send_trim_message()

void OSCGlobalObserver::send_trim_message ( std::string  path,
std::shared_ptr< PBD::Controllable controllable 
)
private

◆ session_name()

void OSCGlobalObserver::session_name ( std::string  path,
std::string  name 
)
private

◆ solo_active()

void OSCGlobalObserver::solo_active ( bool  active)
private

◆ tick()

void OSCGlobalObserver::tick ( void  )

◆ update_mixer_scene_state()

void OSCGlobalObserver::update_mixer_scene_state ( )
private

Member Data Documentation

◆ _heartbeat

uint32_t OSCGlobalObserver::_heartbeat
private

Definition at line 73 of file osc_global_observer.h.

◆ _init

bool OSCGlobalObserver::_init
private

Definition at line 61 of file osc_global_observer.h.

◆ _jog_mode

uint32_t OSCGlobalObserver::_jog_mode
private

Definition at line 71 of file osc_global_observer.h.

◆ _last_master_gain

float OSCGlobalObserver::_last_master_gain
private

Definition at line 62 of file osc_global_observer.h.

◆ _last_master_trim

float OSCGlobalObserver::_last_master_trim
private

Definition at line 63 of file osc_global_observer.h.

◆ _last_meter

float OSCGlobalObserver::_last_meter
private

Definition at line 74 of file osc_global_observer.h.

◆ _last_monitor_gain

float OSCGlobalObserver::_last_monitor_gain
private

Definition at line 64 of file osc_global_observer.h.

◆ _last_sample

samplepos_t OSCGlobalObserver::_last_sample
private

Definition at line 72 of file osc_global_observer.h.

◆ _osc

ArdourSurface::OSC& OSCGlobalObserver::_osc
private

Definition at line 50 of file osc_global_observer.h.

◆ addr

lo_address OSCGlobalObserver::addr
private

Definition at line 65 of file osc_global_observer.h.

◆ feedback

std::bitset<32> OSCGlobalObserver::feedback
private

Definition at line 69 of file osc_global_observer.h.

◆ gainmode

uint32_t OSCGlobalObserver::gainmode
private

Definition at line 68 of file osc_global_observer.h.

◆ last_click

uint32_t OSCGlobalObserver::last_click
private

Definition at line 79 of file osc_global_observer.h.

◆ last_punchin

uint32_t OSCGlobalObserver::last_punchin
private

Definition at line 77 of file osc_global_observer.h.

◆ last_punchout

uint32_t OSCGlobalObserver::last_punchout
private

Definition at line 78 of file osc_global_observer.h.

◆ lm

std::vector<LocationMarker> OSCGlobalObserver::lm
private

Definition at line 88 of file osc_global_observer.h.

◆ mark_text

std::string OSCGlobalObserver::mark_text
private

Definition at line 67 of file osc_global_observer.h.

◆ master_timeout

uint32_t OSCGlobalObserver::master_timeout
private

Definition at line 75 of file osc_global_observer.h.

◆ monitor_timeout

uint32_t OSCGlobalObserver::monitor_timeout
private

Definition at line 76 of file osc_global_observer.h.

◆ next_mark

samplepos_t OSCGlobalObserver::next_mark
private

Definition at line 81 of file osc_global_observer.h.

◆ path

std::string OSCGlobalObserver::path
private

Definition at line 66 of file osc_global_observer.h.

◆ prev_mark

samplepos_t OSCGlobalObserver::prev_mark
private

Definition at line 80 of file osc_global_observer.h.

◆ session

ARDOUR::Session* OSCGlobalObserver::session
private

Definition at line 70 of file osc_global_observer.h.

◆ session_connections

PBD::ScopedConnectionList OSCGlobalObserver::session_connections
private

Definition at line 53 of file osc_global_observer.h.

◆ strip_connections

PBD::ScopedConnectionList OSCGlobalObserver::strip_connections
private

Definition at line 52 of file osc_global_observer.h.

◆ sur

ArdourSurface::OSC::OSCSurface* OSCGlobalObserver::sur
private

Definition at line 60 of file osc_global_observer.h.


The documentation for this class was generated from the following file: