-
Play sound at random points during experiment
by peapodpeapod ·import random#setup samplersound = pool['mouseclick.wav']click_sound = sampler(sound, duration=0, volume=1) -
Play sound at random points during experiment
by peapodpeapod ·#setup sampler sound = pool['mouseclick.wav'] click_sound = sampler(sound, duration=0, volume=1) #40 nonwords loop population = list(range(40)) #select 5 random positions click_indic -
The variable [correct]
by eduard ·You are exactly right. Understand the logic of prepare/run phases and you understand how [correct] works (a little teaser: it works exactly as I think you think it works). Have you checked this part… -
Mouse and foot pedal response set up
by sebastiaan ·* https://osdoc.cogsci.nl/3.2//tutorials/capybara/#step-9-define-the-response -
Small changes to my experiment
by DahmSF ·for ii in range(5): #set all others white lst[j][ii].penwidth = 1 lst[j][ii].color = 'white' #mark the selected o -
Displaying recent text Input
by vatsalthebest ·This link can help us: https://osdoc.cogsci.nl/3.2/tutorials/advanced/#step-9-create-rsvp-stream-prepare-phase -
Can't get feedback with accuracy to work
by Femke ·the answer_canvasCR_ans_canvas.show()##set the total amount of responses (trials) to 5 self.experiment.total_responses = 5##if the response was correct, increase the amount of correct responses by on -
N-Back Task problem
by eduard ·Hi, -
Adaptive Processing Experiment
by eduard ·You should check the beginner's tutorial: http://osdoc.cogsci.nl/3.2/tutorials/beginner/#step-10-draw-the-feedback-item -
picture not shown on mac (but in windows)
by DahmSF ·for iii in range(60): #practice is 60 times var.Counter = iii+1 #make a break every 10 trials if iii!=0 and iii%10==0: Break1.text(str(iii)+'/60', y=-350) Break1.show() #### TH -
Delay Discounting
by DahmSF ·RespKeys = keyboard(keylist = ['x','m']) # your responses on the keyboardvar.low=50 #starting valuevar.high=100 #starting valuefor i in [2,4,8,16,32]: Stim=canvas() Stim.text('Please select x fo -
collect mouse lifts - 'NoneType' object is not iterable
by DahmSF ·Image = canvas()Image['startRect'] = Rect(x=0, y=242, w=159, h=159, color='blue', penwidth=10)def TRIALhalf1(): #1st part of a trial shuffle (delay) start = [995,995,995,995,500] #delay[1] inste -
Rating scales on a canvas?
by DahmSF ·var.kin=True for ii in range(9): #set all others white kin_list[ii].penwidth = 1 kin_list[ii].color = 'white' #mark the selected one -
Another "[Errno 24] Too many open files" error
by Brendan ·keyboard().flush()# set start timestart_time=self.time()end_time=self.time()# Play the video file until a specified key is pressedwhile responseKey=='None': #set the frame rate to 50fps and wait if -
Timing of canvas presentation in a loop
by DahmSF ·pattern1 = canvas() #etc.#create a list of your stimulinew_list = (pattern1, pattern2)for i in range(10): new_list[i%2].present() #selects the first or the second -
Var of subject
by DahmSF ·#Session numbersession=canvas()path = pool['session_nr.tif']session.image(path)session.show()nb=keyboard(keylist=[1,2,3,4,5,6])key, time=nb.get_key()var.session_nr=keysessionRP=canvas()path = pool['se -
FLICKERING PROBLEM
by ariannaf ·#screen_pic = stimuli.BlankScreen() #pic.plot(screen_pic) #screen_pic.preload() #screen_pic_prime = stimuli.BlankScreen() #pic.plot(screen_pic_prime) #stimuli.TextLine(text=str(prime), -
FLICKERING PROBLEM
by ariannaf ·#screen_pic = stimuli.BlankScreen() #pic.plot(screen_pic) #screen_pic.preload() #screen_pic_prime = stimuli.BlankScreen() #pic.plot(screen_pic_prime) #stimuli.TextLine(text=str(pri -
Collecting keyboard responses while flipping screens
by amh ·#save variables here -
Can we use opensesame to sync EEG (e.g., biosemi) and eyetracker (gazepoint)
by eduard ·http://osdoc.cogsci.nl/3.2/manual/eyetracking/pygaze/#supported-eye-trackers