• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ossia / score / 41391215711

02 Nov 2026 04:56AM UTC coverage: 51.66% (-0.6%) from 52.268%
41391215711

push

github

jcelerier
Port probes: what goes through a port or a cable, on hover

Resting the cursor on a port or a cable opens a probe: levels and a trace
for audio, the latest decoded messages for MIDI, the latest values with a
trail for numbers, colour, position, orientation, gain and angle views for
values with a unit, a thumbnail for textures. On a cable it shows what the
source produces, near its end what the process there receives.

The data comes from Execution::PortTap: while a probe is open, a node of
the execution graph gets the port's edges and copies what arrives into a
monitor, without allocation or lock for audio; TapTicker gives taps the
token the graph needs to run them. Probes only tap with execution updates
enabled, refresh at the UI event rate, and open only when previews are
enabled. Nothing touches the document.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KdPgufUMRpkKzaYvUs9iHW

96 of 644 new or added lines in 9 files covered. (14.91%)

3455 existing lines in 31 files now uncovered.

187161 of 362292 relevant lines covered (51.66%)

305640.16 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

42.86
/src/plugins/score-lib-process/Process/Commands/SetControlValue.cpp
1
#include "SetControlValue.hpp"
2

3
namespace Process
4
{
5

6
SetControlValue::SetControlValue(const ControlInlet& obj, ossia::value newval)
509 ✔
7
    : m_path{obj}
509 ✔
8
    , m_old{obj.value()}
509 ✔
9
    , m_new{newval}
509 ✔
10
{
509 ✔
11
}
509 ✔
12

13
SetControlValue::~SetControlValue() { }
1,018 ✔
14

15
void SetControlValue::undo(const score::DocumentContext& ctx) const
15 ✔
16
{
17
  m_path.find(ctx).setValue(m_old);
15 ✔
18
}
15 ✔
19

20
void SetControlValue::redo(const score::DocumentContext& ctx) const
521 ✔
21
{
22
  if(auto obj = m_path.try_find(ctx))
521 ✔
23
  {
24
    obj->setValue(m_new);
521 ✔
25
  }
521 ✔
26
  else
27
  {
28
    qDebug() << "Could not find: " << m_path.unsafePath().toString();
×
29
  }
30
}
521 ✔
31

32
void SetControlValue::update(const ControlInlet& obj, ossia::value newval)
11 ✔
33
{
34
  m_new = std::move(newval);
11 ✔
35
}
11 ✔
36

UNCOV
37
bool SetControlValue::compatible(const ControlInlet& obj, const ossia::value&) const
×
38
{
UNCOV
39
  return m_path == Path<ControlInlet>{obj};
×
40
}
41

42
void SetControlValue::serializeImpl(DataStreamInput& stream) const
508 ✔
43
{
44
  stream << m_path << m_old << m_new;
508 ✔
45
}
508 ✔
46

47
void SetControlValue::deserializeImpl(DataStreamOutput& stream)
×
48
{
49
  stream >> m_path >> m_old >> m_new;
×
50
}
×
51

52
SetControlOutletValue::SetControlOutletValue(
×
53
    const ControlOutlet& obj, ossia::value newval)
UNCOV
54
    : m_path{obj}
×
55
    , m_old{obj.value()}
×
UNCOV
56
    , m_new{newval}
×
57
{
×
UNCOV
58
}
×
59

60
SetControlOutletValue::~SetControlOutletValue() { }
×
61

62
void SetControlOutletValue::undo(const score::DocumentContext& ctx) const
×
63
{
64
  m_path.find(ctx).setValue(m_old);
×
65
}
×
66

67
void SetControlOutletValue::redo(const score::DocumentContext& ctx) const
×
68
{
69
  m_path.find(ctx).setValue(m_new);
×
70
}
×
71

72
void SetControlOutletValue::update(const ControlOutlet& obj, ossia::value newval)
×
73
{
74
  m_new = std::move(newval);
×
75
}
×
76

77
void SetControlOutletValue::serializeImpl(DataStreamInput& stream) const
×
78
{
79
  stream << m_path << m_old << m_new;
×
80
}
×
81

UNCOV
82
void SetControlOutletValue::deserializeImpl(DataStreamOutput& stream)
×
83
{
UNCOV
84
  stream >> m_path >> m_old >> m_new;
×
UNCOV
85
}
×
86

87
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc