Merge pull request #3443 from jspsych/fix-missing-data-field

fix missing data field in `audio-button-response` plugin
This commit is contained in:
Josh de Leeuw 2024-11-21 07:05:57 -05:00 committed by GitHub
commit b84c14400a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"@jspsych/plugin-audio-button-response": patch
---
annotate missing stimulus data field

View File

@ -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. | | 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. | | 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 ## Simulation Mode

View File

@ -100,6 +100,10 @@ const info = <const>{
}, },
}, },
data: { 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 /** 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.*/ * when the stimulus first began playing until the participant's response.*/
rt: { rt: {