https://github.com/benoitberanger/startaudiostimatmritrigger
Simple code to playback a sound file (via MATLAB/Psychtoolbox) when an MRI trigger is sent
https://github.com/benoitberanger/startaudiostimatmritrigger
audio cenir fmri icm matlab mri psychtoolbox stimulation
Last synced: about 1 year ago
JSON representation
Simple code to playback a sound file (via MATLAB/Psychtoolbox) when an MRI trigger is sent
- Host: GitHub
- URL: https://github.com/benoitberanger/startaudiostimatmritrigger
- Owner: benoitberanger
- License: other
- Created: 2017-06-06T17:14:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-07T11:13:57.000Z (about 9 years ago)
- Last Synced: 2025-02-13T01:25:38.415Z (over 1 year ago)
- Topics: audio, cenir, fmri, icm, matlab, mri, psychtoolbox, stimulation
- Language: Matlab
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to use it
Start the `main.m` function, select your audio file, then the script wait for a key to be pressed to start the audio playback.
To stop the playback before the end, use the `ForceStopPlayback.m` function.
## Need to adapt the scripts to your setup ?
The `main.m` function is quite easy to read and commented, it's easy to modify for your own setup.
# Requirement
**Psychtoolbox** : http://psychtoolbox.org/
_(StimTemplate : https://github.com/benoitberanger/StimTemplate.git)_
# OS
Should be independ, because it's base on psychtoolbox functions
# Matlab/Octave
**MATLAB** : tested on R2011a, superior versions should be fine
_Octave : Class definition (the '@' directories) is made for MATLAB but not for Octave_
## Conveniente setup
For more convenience, add your _.wav_ (or _.mp3_ if audioread is available for your version of MATLAB) in the directory.
## StartAudioStimAtMRItrigger
used for fMRI projects @ CENIR-ICM, Paris
CENIR : http://www.cenir.org/
ICM : http://icm-institute.org/
## Team
Development : Benoît Béranger (CENIR-ICM, Paris)