PairedVisualLexicalDecision - MRC CBU Language Wiki
location: PairedVisualLexicalDecision

PAIRED VISUAL LEXICAL DECISION

This like the single word visual design except that you need to add in a frame with the prime word in it before your target word and control how long the prime word is displayed..

    <n 16> <s 16> <azk> <cr> <fd 38> <t 2000> <id "keyboard"> <dbc 0> <dwc 000255000><<BR>>
    $<<BR>>
    0 "Press SPACEBAR to start";<<BR>>
    $<<BR>>
    +1 <ms% 250>1 "wobble" / * "RABIES" /;<<BR>>
    +2 <ms% 250> "cove" / * "ASH" /;<<BR>>
    +3 <ms% 250> "char" / * "BACON" /;<<BR>>
    +4 <ms% 250> "swell" / * "GAME" /;<<BR>>
    -5 <ms% 250> "enter" / * "GRADDLE" /;<<BR>>
    -6 <ms% 250> "stuff" / * "LUNCE" /;<<BR>>
    -7 <ms% 250> "missile" / * "BRANTLY" /;<<BR>>
    -8 <ms% 250> "hamper" / * "SKELVE" /;<<BR>>
    $<<BR>>
    0 <Bell> <ln -2> "Have a Break", <ln 2> "Press SPACEBAR to restart";<<BR>>
    $<<BR>>
    +9 <ms% 250> "invalid" / * " BELIEVE"/;<<BR>>
    +10 <ms% 250> "join" / * "STALE"/;<<BR>>
    +11 <ms% 250> "trial" / * "HEDGE"/;<<BR>>
    +12 <ms% 250> "defeat" / * "FAKED"/;<<BR>>
    -13 <ms% 250> "abound" / * "INDRASTAL"/;<<BR>>
    -14 <ms% 250> "new" / * "SNOTHS"/;<<BR>>
    -15 <ms% 250> "yearn" / * "SMARKLE"/;<<BR>>
    -16 <ms% 250> "muffle" / * "EMBRINT"/;<<BR>>
    $<<BR>>
    0 "The End.  Thank You.";<<BR>>
    $ <<BR>>

This is an individual frame length switch. This overrides the default frame length given in the parameter line. Here it is 250 ms.

There are two ways of doing this. The first is by giving a millisecond figure as with <ms% 250> as above. This way DMDX will display the item for the number of ticks nearest the given millisecond figure. If a few milliseconds make no difference to your design then this way is best, as it will mean if you run this file on another machine then all you will have to change is the parameter line default frame duration. However, if you need to control your frame duration to the exact millisecond, as in for example, a masked priming design, you would be better to use the <fd N> switch, where N is the number of ticks.

Note: The frame duration in the parameter line must be given in ticks.

A more complex form of the above design might be as below

    <n 16> <azk> <cr> <fd 100> <t 2000>  <id "keyboard"> <dbc 0> <dwc 000255000><<BR>>
    $<<BR>>
    0 "Press SPACEBAR to start";<<BR>>
    $<<BR>>
    +1 <x 0.16> <y 0.45>1 <fd 30>2 "wobble" / * "RABIES" /;<<BR>>
    +2 <x 0.53> <y 0.62> <fd 30> "cove" / * "ASH" /;<<BR>>
    +3 <x 0.60> <y 0.14> <fd 30> "chair" / * "BACON" /;<<BR>>
    +4 <x 0.20> <y 0.64> <fd 30> "swell" / * "GAME" /;<<BR>>
    -5 <x 0.67> <y 0.72> <fd 30> "enter" / * "GRADDLE" /;<<BR>>
    -6 <x 0.43> <y 0.75> <fd 30> "stuff" / * "LUNCE" /;<<BR>>
    -7 <x 0.43> <y 0.35> <fd 30> "missile" / * "BRANTLY" /;<<BR>>
    -8 <x 0.08> <y 0.36> <fd 30> "hamper" / * "SKELVE" /;<<BR>>
    $<<BR>>
    0 <Bell> <ln -2> "Have a Break", <ln 2> "Press SPACEBAR to restart";<<BR>>
    $<<BR>>
    +9 <x 0.39> <y 0.87> <fd 30> "invalid" / * " BELIEVE"/;<<BR>>
    +10 <x 0.54> <y 0.64> <fd 30> "join" / * "STALE"/;<<BR>>
    +11 <x 0.40> <y 0.01> <fd 30> "trial" / * "HEDGE"/;<<BR>>
    +12 <x 0.58> <y 0.34> <fd 30> "defeat" / * "FAKED"/;<<BR>>
    -13 <x 0.06> <y 0.87> <fd 30> "abound" / * "INDRASTAL"/;<<BR>>
    -14 <x 0.02> <y 0.78> <fd 30> "new" / * "SNOTHS"/;<<BR>>
    -15 <x 0.87> <y 0.68> <fd 30> "yearn" / * "SMARKLE"/;<<BR>>
    -16 <x 0.68> <y 0.18> <fd 30> "muffle" / * "EMBRINT"/;<<BR>>
    $<<BR>>
    0 "The End.  Thank You.";<<BR>>
    $<<BR>>

The "x" and "y" numbers are screen position co-ordinates. They should be numbers between 0 and 1 (but not 0 and 1 themselves). The numbers go from the top left to the bottom right of the screen, that is < x0.01> <y 0.01> is the top left and < x0.99> <y 0.99> is the bottom right. In fact what DMDX does is multiply the numbers by the width and height of the screen.

The numbers here are random numbers generated in a spreadsheet. This file displays the prime in a random position on the screen.

The frame duration switch here is given is ticks as opposed to milliseconds as above.

-- Main.CarolineWhiting - 23 Mar 2007

CbuLanguage: PairedVisualLexicalDecision (last edited 2013-08-02 16:27:16 by RussellThompson)