visualdynamics.gui.profile_panel¶
profile_panel
¶
A sine specification read as a profile, beside the profile drawn three ways.
The Sine Profile reading of a sine specification reads one tone back as
segments of constant displacement, velocity and acceleration
(core.sine_profile.read_profile) and draws it as displacement,
velocity and acceleration against frequency with every crossover marked
(plot.sine_profile). This panel holds what the reading is made with:
how far a stretch between two breakpoints may slope off a quantity held
constant and still be read as it, in dB per octave, and whether the
tone's own level, as it interpolates its breakpoints, is drawn over the
profile. Under them are
what follows: the segments, the crossovers and how many check, and the
most the profile asks for in each quantity, which is what goes against a
shaker's stroke, velocity and force ratings; and then one line per
segment and per crossover. A tone that is not written in segments of the
three quantities (a slope of 3 dB per octave, a dwell) is refused by
name here, and its own level is still drawn: a breakpoint typed at the
wrong frequency or level bends the stretches beside it off all three,
so the refusal is where such a typo shows.
Every finished edit redraws. Nothing is made: the reading is of a
specification that already exists, as the sweep-rate check is, so there
is no Apply button. A script gets the same numbers from
core.sine_profile.read_profile and the same picture from
plot_sine_profile; a profile is written from its segments with
core.sine_profile.SineProfile.
Classes:
| Name | Description |
|---|---|
ProfilePanel |
The slope tolerance and whether the tone's own level is drawn, |
Classes¶
ProfilePanel
¶
Bases: QWidget
The slope tolerance and whether the tone's own level is drawn,
then what the profile asks for. Edits are emitted as settings().
Methods:
| Name | Description |
|---|---|
settings |
The reading's settings: 'slope_tolerance', dB per octave, as |
set_settings |
Set the fields without a redraw per field, then emit once. |
show_profile |
Write what |
Source code in src/visualdynamics/gui/profile_panel.py
Methods:¶
settings
¶
The reading's settings: 'slope_tolerance', dB per octave, as
read_profile takes it, and 'interpolated', as
plot_sine_profile takes it.
Source code in src/visualdynamics/gui/profile_panel.py
set_settings
¶
Set the fields without a redraw per field, then emit once.
Source code in src/visualdynamics/gui/profile_panel.py
show_profile
¶
Write what profile asks for, or, with none, the refusal that
kept the tone from being read as one.