v0.6.6 — Optional QRS/pulse beep
Added a separate **QRS tone** checkbox (enabled by default). An 85 ms single-note beep follows actual ECG or mechanical beat events. With a valid SpO₂ reading, the delayed pleth pulse determines the timing and the oxygen saturation determines the pitch in eleven steps from 740 to 87 Hz; otherwise ECG QRS or ART pulses trigger a fixed 500 Hz tone. The two-tone alarm sounds remain unchanged. Added regression tests for band boundaries, event selection and single-tone WAV output.
This commit is contained in:
parent
196ed03a3d
commit
f98fc7412f
11 changed files with 1247 additions and 34 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# Patient Monitor Simulation (PaMSim) — v0.6.5
|
||||
# Patient Monitor Simulation (PaMSim) — v0.6.6
|
||||
|
||||
A Rust/GTK4 patient-monitor simulator with two main windows for teaching on Fedora Linux.
|
||||
|
||||
|
|
@ -166,7 +166,7 @@ The monitor can be resized and toggled fullscreen with **F11**; **Esc** exits
|
|||
fullscreen. On Wayland, move the monitor to the presentation screen before
|
||||
activating fullscreen. Fullscreen does not lock down the computer.
|
||||
|
||||
## Audible alarms (updated v0.6.5)
|
||||
## Audible alarms and QRS tone (updated v0.6.6)
|
||||
|
||||
Sound is **enabled by default**. The Admin window has an **Audible alarms**
|
||||
checkbox for muting and a **Test tone** button (works even while muted).
|
||||
|
|
@ -179,8 +179,8 @@ Visual alarms keep blinking normally when sound is off.
|
|||
and **NO READING** produce a lower-pitched **two-tone** alert
|
||||
(700 Hz followed by 950 Hz), repeated approximately every 2.5 seconds.
|
||||
- Both alarm signals use two **different successive pitches**, separated by
|
||||
a brief silence. A distinct **single QRS beep is reserved for future work**;
|
||||
QRS-related audio is not yet implemented.
|
||||
a brief silence. The single QRS/pulse beep is independent and configurable
|
||||
using the new **QRS tone** checkbox in Admin (ON by default).
|
||||
- Critical alarms have priority: only one tone pattern is played even if
|
||||
multiple alarms are active. The sound stops when all alarms clear or when
|
||||
the checkbox is unchecked. Alarms on hidden monitor channels are excluded.
|
||||
|
|
@ -188,6 +188,41 @@ Visual alarms keep blinking normally when sound is off.
|
|||
trigger numerical limit alarms. The cuff measurement cycle by itself is not
|
||||
an alarm. Audio playback is separate from waveform rendering and simulation.
|
||||
|
||||
### Beat-synchronous QRS/pulse tone
|
||||
|
||||
The **QRS tone** checkbox is independent of **Audible alarms**; turning off
|
||||
one does not mute the other. Each brief (85 ms), **single-frequency** beep
|
||||
follows an actual simulated beat event, not a separate rate timer:
|
||||
|
||||
- **SpO₂ reading available:** beep on the delayed peripheral pleth pulse;
|
||||
the pitch follows the *displayed* saturation (including during effective
|
||||
good-quality chest compressions). Missed mechanical captures produce no
|
||||
peripheral beep.
|
||||
- **SpO₂ reading unavailable:** a fixed **500 Hz** beep follows an organized
|
||||
ECG QRS if ECG is displayed; otherwise it follows an arterial pulse if
|
||||
ART is displayed. ECG and ART together do not cause duplicate beeps.
|
||||
- **VF/asystole without effective CPR:** no beat beep is generated. ART pulses
|
||||
created by CPR can generate the fallback tone, while good CPR with a valid
|
||||
SpO₂ reading uses the saturation-dependent tone.
|
||||
|
||||
| SpO₂ (%) | Tone (Hz) |
|
||||
| --- | ---: |
|
||||
| 97–100 | 740 |
|
||||
| 94–96 | 675 |
|
||||
| 90–93 | 609 |
|
||||
| 80–89 | 544 |
|
||||
| 70–79 | 479 |
|
||||
| 60–69 | 413 |
|
||||
| 50–59 | 348 |
|
||||
| 40–49 | 283 |
|
||||
| 30–39 | 218 |
|
||||
| 20–29 | 152 |
|
||||
| 0–19 | 87 |
|
||||
|
||||
Saturation tone pitches are deliberately simplified teaching tones, not
|
||||
calibrated clinical pulse-oximeter sounds. The QRS beep and two-tone alarm can
|
||||
sound independently; no alarm priority or visual alarm logic was changed.
|
||||
|
||||
On Fedora, sound is played through **`pw-play`** from `pipewire-utils`, with
|
||||
**`paplay`** as a fallback. No additional Rust crates or sound files are needed:
|
||||
the application creates its own short WAV tones at runtime. If neither player
|
||||
|
|
@ -647,3 +682,14 @@ successive pitches. Critical alarms retain their priority and faster repeat
|
|||
interval; standard alarms retain their slower cadence. The Admin test button
|
||||
plays the standard two-tone alert. A single QRS beep is reserved for a later
|
||||
release and is not generated yet. No visual alarm or simulation logic changed.
|
||||
|
||||
|
||||
### v0.6.6 — Optional QRS/pulse beep
|
||||
|
||||
Added a separate **QRS tone** checkbox (enabled by default). An 85 ms
|
||||
single-note beep follows actual ECG or mechanical beat events. With a valid
|
||||
SpO₂ reading, the delayed pleth pulse determines the timing and the oxygen
|
||||
saturation determines the pitch in eleven steps from 740 to 87 Hz; otherwise
|
||||
ECG QRS or ART pulses trigger a fixed 500 Hz tone. The two-tone alarm sounds
|
||||
remain unchanged. Added regression tests for band boundaries, event selection
|
||||
and single-tone WAV output.
|
||||
|
|
|
|||
Loading…
Reference in a new issue