Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: ctmdev/presentationMegProsody
base: 539bde6eaa
...
head fork: ctmdev/presentationMegProsody
compare: master
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Commits on Jan 18, 2013
ctmdev PCL single trial
another attempt at using PCL to present the stimuli with correct timing
bac11d2
ctmdev PCL updates
updated the experiment and testing on the PCL
f778555
View
26 meg_prosody.exp
@@ -400,9 +400,35 @@
<rts>1</rts>
<sbs>100000</sbs>
<sce>
+<idv>
+<device_type>3</device_type>
+<dx_device_type>19</dx_device_type>
+<ibn>1</ibn>
+<ibn>2</ibn>
+<ibn>3</ibn>
+<ibn>4</ibn>
+<idn>Keyboard</idn>
+<offset>2</offset>
+<offset>3</offset>
+<offset>4</offset>
+<offset>5</offset>
+</idv>
<sfn>all_scenarios</sfn>
</sce>
<sce>
+<idv>
+<device_type>3</device_type>
+<dx_device_type>19</dx_device_type>
+<ibn>1</ibn>
+<ibn>2</ibn>
+<ibn>3</ibn>
+<ibn>4</ibn>
+<idn>Keyboard</idn>
+<offset>2</offset>
+<offset>3</offset>
+<offset>4</offset>
+<offset>5</offset>
+</idv>
<sfn>C:\Users\ctmillar\Documents\GitHub\presentationMegProsody\meg_prosody_oneline.sce</sfn>
</sce>
<sct>
View
90 meg_prosody_oneline_v1_3.sce
@@ -0,0 +1,90 @@
+/*
+ meg_prosody_oneline_v1_3.sce
+ PCL version of the mostly SDL code
+
+*/
+write_codes = false;
+pulse_width = 2;
+#no_logfile = false;
+active_buttons = 4;
+#button_codes = 3;
+target_button_codes = 1,2,3,4;
+randomize_trials = false;
+default_attenuation = 0.2;
+default_pan = 0.0;
+
+begin;
+
+array {
+ sound { wavefile { filename = "audio\\1_ang_ss_trimF.wav"; } s1_ang_ss_trimF;};
+ sound { wavefile { filename = "audio\\1_fea_ss_trimF.wav"; } s1_fea_ss_trimF;};
+ sound { wavefile { filename = "audio\\1_fea_sw_trimF.wav"; } s1_fea_sw_trimF;};
+} stim;
+
+#array<int> stim_order[78] = {,,,};
+
+picture {
+ bitmap {
+ filename = "img\\cross.bmp";
+ };
+ x = 0; y = 0;
+}cross;
+
+picture {
+ bitmap {
+ filename = "img\\Emoticons_H.bmp";
+ };
+ x = 0; y = 0;
+}emoticons;
+
+trial {
+ #trial_duration = 3000;
+
+ stimulus_event {
+ nothing {};
+ time = 0;
+
+ } event1;
+
+ stimulus_event {
+ #nothing {};
+ picture cross;
+ } event2;
+
+ stimulus_event{
+ nothing {};
+ } event3;
+
+} main_trial;
+
+begin_pcl;
+
+ output_file out = new output_file;
+ out.open( "megpros_output.txt" );
+ out.print("this is a test");
+ out.print("\n");
+
+loop
+ int i = 1
+until
+ i == 4
+begin
+ # load the wav file into memory
+ # get its duration to set emoticon's deltat
+ stim[i].get_wavefile().load();
+ int wavlen = stim[i].get_wavefile().duration();
+ out.print(wavlen);
+ out.print("\n");
+
+ event1.set_stimulus(stim[i]);
+ event1.set_event_code(string(i));
+
+ event3.set_stimulus(emoticons);
+ event3.set_deltat(wavlen);
+ event3.set_duration(2300); #2300 ms as the fixed length to view emoticons
+
+ main_trial.present();
+
+ i = i + 1;
+end;
+out.close();
View
4 megpros_output.txt
@@ -0,0 +1,4 @@
+this is a test
+1540
+1632
+688

No commit comments for this range

Something went wrong with that request. Please try again.