Get comfty on your command line for this set up. You might be able to run the following lines from your IDE directly if it renders .md files and supports runing bash prompts from them. You can use your IDE terminal, Terminal on MacOs or Linux, or Command Prompt on Windows.
Use your favourite git client to clone our workshop repo. This will include the example app and complete workshop.
git clone git@github.com:dynamic-cast/ADC24.git
For the first part of the workshop, please check out our branch
git checkout part-1
For this project, you'll need a python version between 3.8. and 3.12 (numpy does not support 3.13) Check your version with:
python --version
please follow this guide if you need to update your python version.
We don't want to mess with your favourite personal python set up, so we'll create a local environment and activate it. If you have python 3.13 installed, please specify the version below by replacing python3
with e.g. python3.12
. On Mac you can run:
python3 -m venv workshopenv
source workshopenv/bin/activate
On Windows:
python3 -m venv workshopenv
workshopenv\Scripts\activate.bat
All the modules we need are defined in requirement.txt. You can install them like this after you activated your local environment
python3 -m pip install -r requirements.txt
If pip has problems finding the right packages, try to upgrade pip
python3 -m pip install --upgrade pip
Now we have our environment with all modules. We need to run a couple more commands so we can select this later in jupyter notebook.
python3 -m ipykernel install --user --name=workshopenv
Only one more thing to do on the command line to start up jupyter notebook.
jupyter notebook
This will make a browser pop up showing a file index. Open playground.ipynb. If the browser does not pop up automatically, you can click on the link in the command line output:
To select our workshop environment in jupyter notebook you can follow these steps:
You can use the line from the notebook to download the model, if you're on mac and haven't downloaded files from python before you might need to follow the step below. If you prefer you can download the models manually here and pass the path to the file when creating the audio engine. We recommend puttingit in the ADC24 folder root.
Use the Spotlight search to find the file that executes the command. You can press command + space bar to open the search bar and start typing "Install Certificate.command" You can double click on the entry, this will open a terminal and install the certificate needed to verify HTTPS connections.
If you do this, you'll need to restart the jupyter kernel. If you still have troubles, please try to download the file and put it in the ADC24 folder.
Now you can execute the lines in the notebook and make some noise, yay.
Looks like you're jupyter notebook server terminated. Just rerun:
jupyter notebook
Looks like the audio engine can't find the model file. Please make sure the .ts model file matches the path passed in the notebook. If you don't have the file, please follow the instructions to download the models manually.