API#
Tasks#
Heart Rate Discrimination task#
Parameters#
|
Create Heart Rate Discrimination task parameters. |
Configuration#
|
Design factors an experimenter is likely to want to change. |
Scripts#
|
Run the Heart Rate Discrimination task. |
|
Run one trial of the Heart Rate Discrimination task. |
|
Walk the participant through the task before it starts. |
|
Confidence rating scale, using keyboard or mouse inputs. |
Languages#
Heartbeat Counting task#
Parameters#
|
Create Heartbeat Counting task parameters. |
Scripts#
|
Run the entire task sequence. |
|
Run one trial. |
|
Run tutorial for the Heartbeat Counting Task. |
|
Run a resting state period for heart rate variability before running the Heart Beat Counting Task. |
Languages#
Phase Adjustment Task#
Beta, after the PAT-ECG of Hodgetts et al. (2026); see the PAT page.
Parameters#
|
Create Phase Adjustment Task parameters. |
|
Draw the start phase of each trial, as the PAT-ECG firmware does. |
Scripts#
|
Run the Phase Adjustment Task. |
|
Run one trial of the Phase Adjustment Task. |
|
Guide the participant through the wheel on free beats. |
|
Run the engine and the dial until space ends the last stage. |
|
Confidence rating, with the wheel and arrow keys or with the mouse. |
Engine#
|
Play one tone per heartbeat at the phase set with the dial. |
Scoring#
|
Score one participant on the 2 x 2 x 2 grid of Hodgetts et al. (2026). |
|
Mean resultant length of a set of angles. |
|
Turn delays after the R-wave into phase angles of the cardiac cycle. |
|
Chance threshold for the mean resultant length, by Monte Carlo. |
|
Chance threshold for the exteroceptive task with a fixed period. |
|
Flag values more than |
Languages#
Heartbeat Synchrony Discrimination task#
Beta; see the design document and the HSD page.
Parameters#
|
Create Heartbeat Synchrony Discrimination task parameters. |
Configuration#
|
Design factors of an HSD session. |
Scripts#
Engine#
|
Posterior over the envelope parameters, and the next delay to test. |
|
Probability of a "simultaneous" judgement at delay |
|
Parameter grids wide enough for the published range of observers. |
Languages#
Recording devices#
|
Oximeter with an O(1) add_paquet, and a clock on every packet. |
|
Record ECG or PPG from an LSL stream, with the surface of |
|
Stand-in for |
Beat sources and tone player#
Shared by the Phase Adjustment Task and the Heartbeat Synchrony Discrimination task, which time their tones from the R-wave.
|
R peaks found online in the ECG of an |
|
Beats known in advance, for the exteroceptive task. |
|
Tones and vibration bursts at scheduled times, through PsychPortAudio. |
Confidence scales#
|
How confidence is collected and what its numbers mean. |