Revision 24:a5e4a43c1673 testPrograms/demoTwisterSpikes.m
| testPrograms/demoTwisterSpikes.m | ||
|---|---|---|
| 3 | 3 |
% MAPdemo runs the MATLAB auditory periphery model (MAP1_14) as far as |
| 4 | 4 |
% IC (spikes) with graphical output |
| 5 | 5 |
|
| 6 |
restorePath=path; |
|
| 7 |
addpath (['..' filesep 'MAP'], ['..' filesep 'wavFileStore'], ... |
|
| 8 |
['..' filesep 'utilities']) |
|
| 9 |
|
|
| 6 | 10 |
|
| 7 | 11 |
%% #1 parameter file name |
| 8 | 12 |
MAPparamsName='Normal'; |
| 9 | 13 |
|
| 10 | 14 |
|
| 11 |
%% #2 probability (fast) or spikes (slow) representation
|
|
| 15 |
%% #2 spikes (slow) representation |
|
| 12 | 16 |
AN_spikesOrProbability='spikes'; |
| 13 | 17 |
|
| 14 | 18 |
|
| 15 |
%% #3 pure tone, harmonic sequence or speech file input
|
|
| 19 |
%% #3 speech file input |
|
| 16 | 20 |
signalType= 'file'; |
| 17 | 21 |
fileName='twister_44kHz'; |
| 18 | 22 |
|
| ... | ... | |
| 45 | 49 |
%% Generate stimuli |
| 46 | 50 |
|
| 47 | 51 |
dbstop if error |
| 48 |
restorePath=path; |
|
| 49 |
addpath (['..' filesep 'MAP'], ['..' filesep 'wavFileStore']) |
|
| 50 | 52 |
switch signalType |
| 51 | 53 |
case 'tones' |
| 52 | 54 |
inputSignal=createMultiTone(sampleRate, toneFrequency, ... |
Also available in: Unified diff