Comments (4)
height: function() {return 1000;},
I solved this way:
on_start: function(){
jsPsych.currentTrial().stimuli[0].height=1000;
}
But I don't know why stim_array is Undefined. Despite the fact that with console.log( jsPsych.currentTrial())
I can see it.
from jspsych-psychophysics.
Thank you for your valuable comments.
Now, I changed the jspsych-psychphysics code to work with a function which is specified as a parameter of a stimulus object.
Please download the latest file from the top page of this github repository. (Please be careful not to download from the release page)
Then, strictly speaking, jsPsych.currentTrial().stimuli is not the same as the jsPsych.currentTrial().stim_array. You should use jsPsych.currentTrial().stim_array.
from jspsych-psychophysics.
I know but the problem is that the same exact code with stim_array instead of stimuli doesn't work. :) The error reported is that stim_array is undefined.
This is because my code is inside on_start: function()
. Inside on_load: function()
stim_array exist.
from jspsych-psychophysics.
Thank you for your reply. Now, I understood what you mean.
As you said, the stim_array had not been made when the on_start function was called.
Please use the latest code using which you can write as follows:
height: function() {return 1000;},
from jspsych-psychophysics.
Related Issues (20)
- event handlers compatible with gabor parameters HOT 3
- Simulation mode for psychophysics HOT 2
- Wrong X,Y coordinates for gabor stimuli HOT 2
- Change image interactively HOT 12
- Coordinate problem about simultaneously using "key" and "button" response type HOT 5
- Define sequence of stimulus and indicate duration in both ms and frames HOT 5
- Prolem with object 'sound' HOT 2
- slider response HOT 1
- compatibility with pavlovia
- Precise timing and different screen refresh rates HOT 1
- npm for the plugin? HOT 7
- canvas height and jspsych-content mismatch HOT 2
- Concurrent presentation of images and sounds HOT 4
- Pre-load stimuli HOT 3
- Recolour SVG image HOT 5
- trouble importing npm plugin HOT 3
- Making text stimuli bold and coloured HOT 2
- Laptop and mobile phone compatibility HOT 4
- End the visual stimuli by key response, but make the auditory stimuli keep playing HOT 10
- Dragging one image using mouse_drawing while keeping another image HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jspsych-psychophysics.