Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missing data field in audio-button-response plugin #3443

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/red-news-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@jspsych/plugin-audio-button-response": patch
---

annotate missing stimulus data field
1 change: 1 addition & 0 deletions docs/plugins/audio-button-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ In addition to the [default data collected by all plugins](../overview/plugins.m
| -------------- | ------- | ---------------------------------------- |
| rt | numeric | The response time in milliseconds for the participant to make a response. The time is measured from when the stimulus first began playing until the participant's response. |
| response | numeric | Indicates which button the participant pressed. The first button in the `choices` array is 0, the second is 1, and so on. |
| stimulus | string | Path to the audio file that played during the trial. |

## Simulation Mode

Expand Down
4 changes: 4 additions & 0 deletions packages/plugin-audio-button-response/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ const info = <const>{
},
},
data: {
/** The path of the audio file that was played. */
stimulus: {
type: ParameterType.STRING,
},
/** The response time in milliseconds for the participant to make a response. The time is measured from
* when the stimulus first began playing until the participant's response.*/
rt: {
Expand Down
Loading