Sleep manipulation and communication clickything
Project description
Sleep Manipulation And Communication Clickything
A clickable interface for running sleep-related experiments.
- Trigger audio cues
- Collect dream reports
- Trigger EEG portcodes
- Save a detailed event log
- and more!
Installation
Get Python
Download either Anaconda or Miniconda. I prefer Miniconda, which is a much smaller install. If you're only using Python for SMACC, just get Miniconda.
Get SMACC
- Open the
Powershellapp on your PC with Admin privileges (Right-click to open and selectRun as administrator). - Create a new conda environment, so that our installation is isolated from the rest of your system. Also we need to make sure we use Python 3.8. Type
conda create -n smacc python=3.8and hitEnter. - Activate the environment you just created. Type
conda activate smaccand hitEnter. - Install SMACC! Type
pip install 'smacc[port_triggers]'and hitEnter. If you do not plan to use port triggers, use onlypip install smaccinstead. - Generate some sound files to use for cueing. You can add your own, but this is just to get started and make sure everything works. Type
python -m smacc generate_cuesand hitEnter. That creates a simple beep cue. Now to make a pink-noise file for masking cues, Typepython -m smacc generate_noiseand hitEnter. - If planning to use parallel port, download InpOut32. Type
python -m smacc download_inpoutand hitEnter.
Usage
Optional setup
These steps must be done before running SMACC.
SMACC will create a folder in your home directory, and then 3 folders in within that. It will look like this.
Users/<username>/smacc_data/cues # <-- Any .wav file in here is made available as a cue to play with SMACC
Users/<username>/smacc_data/logs # <-- Data .log files are saved here.
Users/<username>/smacc_data/noise # <-- The pink noise file is saved here.
If you don't want to use the default ~/smacc_data folder, you can change this by setting a new environment variable called SMACC_DATA_DIRECTORY equal to whatever directory you want to use. SMACC will create it and all the subfolders (if not already present).
- Place any sound files in the
~/smacc_data/cuesfolder (must be .wav files!).
There is a Record Dream Report button that will start to record from whatever external recording device is selected from the SMACC menubar. There is also an option to have it pop open a website URL. I use this to open up a dream report survey I have set up on Qualtrics. If you want it to open something, update the SURVEY_URL variable in config.py.
Run SMACC
# Make sure the conda environment is active.
conda activate smacc
# Run SMACC.
python -m smacc
- Test the setup by trying to play some cues.
- If planning to record dreams, choose sound device for recording audio from the menubar (
Audio > Input device > [choose device]).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file smacc-0.0.4.tar.gz.
File metadata
- Download URL: smacc-0.0.4.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a79bdb0592de3c12132fac9a857e262ce1486f2278c7db1769efb6b92e1f5d1
|
|
| MD5 |
f25fd691a9f336c1ec1a1b01f1415722
|
|
| BLAKE2b-256 |
8ef5fbf676456866396c39ce5bdc8850808fab0f9e1943738e0ca83abf8dbc00
|
File details
Details for the file smacc-0.0.4-py3-none-any.whl.
File metadata
- Download URL: smacc-0.0.4-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
916e64a7b40464a8b3e64ae5abe68b55a7fc215bd33f848a1ad7d589880df321
|
|
| MD5 |
393df70eb8cf333427ea01257adb10be
|
|
| BLAKE2b-256 |
d235893bdda378324bb6b898f20d9b0571a478c485294c21efe37b3019600e04
|