Speaker layouts: the name and position of each channel, for labels, the surround views, and loudness channel weighting (ITU-R BS.1770).
What the views of monitoring processes share: reading their settings from the model, and showing the inlet they draw.
MIDI messages as the monitoring views name them: note names, what a status byte is, and one line of text per message.
What every monitor draws with: the same background, grid, text and colour maps, so that meters, scopes and spectra read as one family.
Power spectra calibrated in dBFS: a full-scale sine reads 0 dB at its frequency whatever the FFT size and window, and a band sums the energy of its bins so that broadband noise reads its true band level.
How the views of textures show one that holds several images, a 3D texture, an array or a cube map: the controls that pick it, and what the node tells the views of the texture it got.
|
| ChannelLayout | resolve (ChannelLayout l, int channels) noexcept |
| |
|
std::span< const Speaker > | speakers (ChannelLayout l, int channels) noexcept |
| | The speakers of a layout, empty when it has no fixed positions.
|
| |
|
QString | channelLabel (ChannelLayout l, int channels, int c) |
| |
| double | loudnessWeight (ChannelLayout l, int channels, int c) noexcept |
| |
|
Ring | ring (ChannelLayout l, int channels) noexcept |
| |
| const Process::ControlInlet * | controlInlet (const Process::ProcessModel &p, std::size_t index) noexcept |
| |
|
template<typename E > |
| E | enumValue (const Process::ControlInlet *c, E fallback, E last) noexcept |
| |
|
float | floatValue (const Process::ControlInlet *c, float fallback) noexcept |
| |
|
bool | boolValue (const Process::ControlInlet *c, bool fallback) noexcept |
| |
| void | showInlet (const Process::ProcessModel &p, std::size_t index, const Process::Context &doc, QGraphicsItem *parent, QObject *owner, double y=5.) |
| |
|
template<typename Item , typename... C> |
| void | repaintOn (Item *item, C *... controls) |
| | Repaints item whenever one of the given controls changes in the model.
|
| |
|
void | setControls (const score::CommandStackFacade &stack, std::initializer_list< std::pair< const Process::ControlInlet *, ossia::value > > values) |
| | Sets several controls as one undoable edit.
|
| |
|
QString | midiNoteName (int pitch) |
| | The name of a MIDI note, middle C (60) being C4; "?" out of 0 to 127.
|
| |
| constexpr libremidi::message_type | midiMessageType (uint8_t status, uint8_t d1, uint8_t d2) noexcept |
| |
|
constexpr bool | isChannelMessage (libremidi::message_type t) noexcept |
| | Whether the message belongs to a channel, as opposed to the system ones.
|
| |
| QString | describeMidi (uint8_t status, uint8_t d1, uint8_t d2, uint32_t size, bool aligned) |
| |
|
QString | midiBytesText (uint8_t status, uint8_t d1, uint8_t d2, uint32_t size) |
| | The bytes of a message in hexadecimal, or its size for a SysEx.
|
| |
|
QColor | background () |
| |
|
QColor | gridColor () |
| |
|
QColor | majorGridColor () |
| |
|
QColor | textColor () |
| |
|
QColor | traceColor () |
| |
|
QColor | warnColor () |
| |
|
QColor | overColor () |
| |
|
const QFont & | smallFont () |
| |
|
QColor | channelColor (int i) |
| | Colours for the n-th channel or trace, distinct on a dark background.
|
| |
| QColor | zoneColor (double v, double warn, double over) |
| |
| QLinearGradient | zoneGradient (double y_lo, double y_hi, double lo, double hi, double warn, double over, double alpha=1.) |
| |
|
const std::array< QRgb, 256 > & | colorMap (ColorMap m) |
| |
|
QString | formatHz (double hz) |
| | "1.5k", "20k", "440"
|
| |
| std::vector< Tick > | linearTicks (double lo, double hi, double pixels, double min_spacing=18., QString unit={}) |
| |
|
std::vector< Tick > | frequencyTicks (double lo, double hi, double pixels) |
| | Ticks of a log frequency axis: decades labelled, 2 and 5 in between.
|
| |
|
void | drawLabel (QPainter &p, const QRectF &r, int flags, const QString &text, QColor c=textColor()) |
| | Draws text in the small monitor font, flags as for QPainter::drawText.
|
| |
| template<typename XOf > |
| void | drawXAxisLabels (QPainter &p, const QRectF &plot, const std::vector< Tick > &ticks, XOf x_of) |
| |
| template<typename YOf > |
| void | drawYAxisLabels (QPainter &p, const QRectF &plot, const std::vector< Tick > &ticks, YOf y_of) |
| |
|
void | drawReadout (QPainter &p, QPointF topLeft, const QStringList &lines) |
| | A readout box in a corner: semi-opaque so that it stays legible over traces.
|
| |
| template<typename T , typename V > |
| void | pushRing (boost::circular_buffer< T > &ring, V &&v, std::size_t limit=std::numeric_limits< std::size_t >::max()) |
| |
|
QString | noteName (double f, double *cents=nullptr) |
| | "A4", "C#3"
|
| |
|
void | publish (TextureShapeMonitor &m, const score::gfx::TextureShape &s) noexcept |
| | The node tells the views the texture it got.
|
| |
|
score::gfx::TextureShape | latestShape (const TextureShapeMonitor &m) noexcept |
| |
|
score::gfx::ShownTexture | shownTexture (const score::gfx::TextureShape &shape, Layout layout, float slice, int layer) noexcept |
| |
| score::gfx::ShownTexture | shownTexture (const Process::ProcessModel &p, const score::gfx::TextureShape &shape) noexcept |
| |
| QStringList | describeShown (const score::gfx::ShownTexture &shown, std::optional< QPointF > at={}) |
| |