Skip to content

samchin/SoundspindleExperiment

 
 

Repository files navigation

Running locally

In this directory, type python3 -m http.server

In a browser, navigate to http://localhost:8000/?block=0&pid=1111&sound=1 you must include the arguments otherwise it will error. In this example, you're choosing pid = 1111, block = 0, sound = 1.

pid can be any integer.

The options for block are:

  • 0 - training block
  • 1 - first block
  • 2 - second block

The options for sound are:

  • 1 - sound appears first
  • 2 - sound appears second

The images and sounds were generated from a custom fork of visbrain and appear in the /data folder.

Deploying to github

This assumes you have already set up a repo for hosting.

Enable github pages: Settings > Actions (under "Code and Automation") and direct it to the /root folder as depicted below.

Then navigate to https://<your-username>.github.io/SoundspindleExperiment/?block=0&pid=1111&sound=1 where it should be hosted. Similar to locally, you must include the arguments otherwise it will error. In this example, you're choosing pid = 1111, block = 0, sound = 1.

image

About

Experiment code for soundspindle online experiment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 48.4%
  • JavaScript 46.5%
  • Shell 3.2%
  • HTML 1.9%