Download GitHub Desktop.
make a GitHub account.
Inside GitHub desktop, "clone" this repository using this URL: https://github.com/diagrammatic-media/p5.beatstep
Sync to the most current code from the instructor by "fetching" and "pulling" changes.
Microsoft Visual Studio Code
download Microsoft Visual Studio Code (not! Visual Studio)
Add "live server extension" to Microsoft Visual Studio Code
(optional) return to GitHub desktop. Go to settings>integrations and select Microsoft Visual Studio Code as your default code editor.
Chrome
Getting Started
Got to GitHub Desktop. Find the respository and click "open in Visual Studio Code". Have a look at "sketch.js" inside VS Code.
Make sure your Beatstep Pro is plugged in.
click "Go Live" in the bottom right hand corner of VS Code.
If it didn't open in Chrome, copy the URL from whatever browser your site opened in and paste that in Chrome.
Right click Chrome and select inspect. Click "console" to view the console in the side panel.
You should see a message that BeatStep is connected as well as a blank black Canvas.
On your Controller, click "CNTRL/SEQ" until the button is red. Now turn the knobs on the controller; the changes should appear in the Canvas. If not, review the previous steps. If yes, all things are go and you're ready to compose your own work.
Github desktop is not available for ChromeOS, so instead you will need to download the code. If changes are made to this code (your instructor will tell you), you'll need to download the code this way again.
Go to the p5.beatstep repository
Click the green "code" button. Select download zip. Unzip/extract the files to somewhere easy to access (documents, desktop, etc).
You'll need a program to edit your code. Download Text.
Open index.html
and sketch.js
. Make sure the html file is pointing to sketch.js
, not another js file.
Make a copy of "sketch.js" and call it something unique to you. Go to index.html and replace "sketch.js" with "unique.js" (or whatever you called it). Continue your work there.
You can access dial data by calling "abs.dials". That will be an array that will contain the 16 dials data. Each dial reports its state between 0-127.