Experiment( DataFileDestinationAddress){
Context(){
AssignmentGroup(){
ExperimentName = "Sound Discrimination AX-Paradigm";
SubjectCode = "pxlab";
DataFileDestination = "/pxlab/demos2005/mailer.php";
DataFileDestinationAddress = "";
HTTPRequestMethod = "POST";
}
Session(){
Instruction(){
Text = ["Sound Discrimination", " ", "You will hear two sounds. Your task is to decide whether the two are equal or different.", "Press the left mouse butten if they are the same, and", "press the right mouse button if they are different.", " ", "Press any button to start."];
}
}
Trial( SyntheticSound:A.WavePars, SyntheticSound:B.WavePars, Feedback.CorrectCode, Message.ResponseCode, Feedback.Response){
ClearScreen(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 300;
}
SyntheticSound:A(){
Envelope = de.pxlab.pxl.SoundEnvelopeCodes.GAUSSIAN;
EnvelopePars = 200;
Wave = de.pxlab.pxl.SoundWaveCodes.PURE_TONE;
Gain = 0.8;
Duration = 1200;
Timer = de.pxlab.pxl.TimerCodes.END_OF_MEDIA_TIMER;
}
SyntheticSound:B(){
Envelope = de.pxlab.pxl.SoundEnvelopeCodes.GAUSSIAN;
EnvelopePars = 200;
Wave = de.pxlab.pxl.SoundWaveCodes.PURE_TONE;
Gain = 0.8;
Duration = 1200;
Timer = de.pxlab.pxl.TimerCodes.END_OF_MEDIA_TIMER;
}
Message(){
Text = "<== same ? different ==>";
FontSize = 32;
Timer = de.pxlab.pxl.TimerCodes.RELEASE_RESPONSE_TIMER;
ResponseSet = [de.pxlab.pxl.KeyCodes.LEFT_KEY, de.pxlab.pxl.KeyCodes.LEFT_BUTTON, de.pxlab.pxl.KeyCodes.RIGHT_KEY, de.pxlab.pxl.KeyCodes.RIGHT_BUTTON];
}
Feedback(){
ResponseParameter = "Trial.Message.ResponseCode";
CorrectText = "Correct";
FalseText = "False";
Evaluation = de.pxlab.pxl.EvaluationCodes.COMPARE_CODE;
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 600;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block(){
Trial( 2000, 2000, [0, 1], ?, ?);
Trial( 2000, 2030, [2, 3], ?, ?);
}
}
}
}