Initial commit of my new "simple" branch. This branch is an attempt to
remove a lot of the awkwardness and complexity inherent in my old
design. I originally attempted to stuff far too much code into the
parseExperimentInput and setupExptParams functions, trying to make them
general enough to handle every experiment, and every possible stimulus
design. That is now gone, and, although I will now have to write more
files for each individual experiment, hopefully things such as data
maniuplation, stimulus reconstruction, etc will be far simpler. I have
yet to write the accompanying stimulus database or experiment logging
systems. I also still need to update the experimental templates
functions.
Added function to get a default PRNG, that all stimuli should use.
I have now finished updating the simplified version of my basic stimulus
presentation code, opting for more streamlined versions of everything.
This means that individual experiments set up their own parameters,
rather than having a global file trying to parse them all in something
like a reasonable way. Everything works fine with the TF sensitization
experiment, but I have yet to try it with another type of experiment.
Updated logic on when to send pushover notifications. Simpler.
Updated lineswn and temporalwn to work with everything collected into
the experimental structure again. A bit of cleanup elsewhere.
Corrected strcmp for esc keypresses.
In older versions, we checked the display setup for a laptop with a
single alternate display. This requires remapping Psychtoobox's CRTC
mapping to avoid synchronization issues. I added a function to check for
this display configuration, and do the remapping in the case of Mac
laptops without the main display active. Other cases will need to be
added in the future, if desired.
Pulled computation of effective frame interval, based on number of
frames to wait, out of frame loop itself. Also removed unnecessary
rounding/reshaping from white noise stimulus functions.
renamed function so i can checkout master and merge.
renamed function back after merge with master.