Skip to content

Commit

Permalink
Merge pull request #3443 from jspsych/fix-missing-data-field
Browse files Browse the repository at this point in the history
fix missing data field in `audio-button-response` plugin
  • Loading branch information
jodeleeuw authored Nov 21, 2024
2 parents bd3ed55 + 58f0b74 commit b84c144
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
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

0 comments on commit b84c144

Please sign in to comment.