Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

canvas or sketchpad needed ?

Hi,

I would like to know if I need a sketchpad or a canvas for the following :

in my expe participants need in a learning phase to click on different images to trigger specific sounds in the sampler.

Concretely there are 8 different images which triggers eight different sound files from the sampler, and these sound are associate with these images (the trigger is not random).

Next, in the test phase, sounds are presented to the participants in a random or sequential way, it depends on the condition, then participants need to click as fast as they can on the associate image.

So do you think I can create this using only a sketchpad ? In my mind if it works I need to load the images in the sketchpad, these images will have coordinates, and I just need to specify in the mouse_response a if condition with these coordinates which will trigger the right sound.

I dont know if it possible using only a sketchpad, or which part of the code I need to modify.

thanks for reading, and if possible for helping :smiley:

Comments

  • Hi,

    You could do this with a sketchpad, but you'll probably need an inline script anyway (for instance for declaring in which order the sounds are presented), and if you manage to do that in a script, then using a canvas won't be difficult either.

    Cheers

    Josh

  • Hi Josh,

    thanks for answering. When you said I need an inline script, you meant that I need to insert an inline script after the sketchpad or just that I need to modify the script in the sketchpad ? Or is it the same ?

    Thanks again !

  • edited March 2017

    Hi Robin,

    Unless you use forms, you will need an inline_script eventually. The presentation of the stimuli can work both in sketchpads and inline_scripts, the issue is the response collection. If clicks on certain regions of the screen/ certain button presses are required to trigger different events. It is close to impossible to implement this without some python coding. So, when you go for inline_scripting you basically have a part, in which you sample mouse clicks (or some other way of getting user input) and check whether this is within the limits of a certain image and trigger and action based on that.

    The alternative is forms. With forms, you would basically create a number of buttons on the screen, which will keep track what was was pressed where. It gets a little more complicated if you the buttons have to be images, but this discussion suggested a couple of nice solutions.

    Both ways can work, it's a little hard to foresee which is better. Once you decided how you want to tackle this we can give you also a little more detailed help.

    Does this help?

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.