This repository is used to host the Just Noticeable Difference (JND) survey form as part of the Sound and Music Computing program at UPF for the Music Cognition and Perception course.
Clone the Repository.
git clone https://github.com/enter-opy/jnd-survey.git
cd jnd-survey
Create a virtual environment.
python -m venv .venv
Windows:
venv\Scripts\activate
Linux:
source venv/bin/activate
├── .env
├── app.py
├── static
│ ├── audio
│ │ ├── negatives
│ │ └── positives
│ ├── img
│ └── main.css
└── templates
├── feedback.html
├── form.html
└── index.html
pip install -r requirements.txt
Add .env
file in the root directory.
SECRET_KEY=secret_key
USER=username
PASSWORD=password
DB_NAME=database_name
COLLECTION_NAME=collection_name
NUM_SAMPLES=num_samples
Set up a MongoDB database DB_NAME
with collection COLLECTION_NAME
.
Place your samples in audio/positive
and audio/negative
folders.
To run locally,
python -m flask run
This project is licensed under the GNU General Public License. See the LICENSE for details.