Vocal prototyping for physical user interfaces.
--
###Setting up Voodle:
-
- Clone Voodle by opening a terminal window and navigating to a directory of your choice and typing:
git clone https://github.com/ubcspin/Voodle.git
. (You need git in your path to do this, if you don't want to install git you can download Voodle as a zip directly from github).
- Clone Voodle by opening a terminal window and navigating to a directory of your choice and typing:
-
- Note the two JSON files:
package[mac_use_this].json
andpackage[windows_use_this].json.
If you are running OSX or linux renamepackage[mac_use_this].json
->package.json
. If you are running Windows renamepackage[windows_use_this].json
->package.json
.
- Note the two JSON files:
-
- Install Node here. After the install, you may have to restart terminal.
-
- Open a terminal window and navigate to the root Voodle directory. Type:
npm install
.
- Open a terminal window and navigate to the root Voodle directory. Type:
-
- Next, install React by typing
npm install react
.
- Next, install React by typing
-
- You will need to manually install the node-module 'node-core-audio'. The process is as follows:
-
Windows/OSX users:
-
- Clone the git repository
https://github.com/ZECTBynmo/node-core-audio.git
into yournode-modules
folder.
- Clone the git repository
-
- Navigate into your
node-core-audio
folder and runnode-gyp rebuild
. It is possible that you need to install node-gyp by typing (perhaps as sudo)npm install -g node-gyp
.
- Navigate into your
Note 1: if you are running Python >3: make sure Python < 3 && >= 2.7 is installed run
node-gyp rebuild --python=python2.7
Note 2: if you are on a mac, MAY need to install the 'nan' package:
cd
tonode-core-audio
npm i nan
Note 3: If you are still having node-gyp problems ensure that you have the requisite dependencies outlined here: https://www.npmjs.com/package/node-gyp .
-
-
Linux users:
- Clone the git repository
https://github.com/ZECTBynmo/node-core-audio.git
into yournode-modules
folder. - Navigate into your
node-core-audio
folder and replaceportaudio
with this sourcehttp://www.portaudio.com/archives/pa_stable_v19_20140130.tgz
. - In the
portaudio
folder type:./configure
;(sudo)make install
. - cd .. back to your
node-core-audio
folder and open thebinding.gyp
file. Replace theOS=="linux"',{...}
clause with the following:
'OS=="linux"', { "libraries" : [ '<(module_root_dir)/portaudio/lib/.libs/libportaudio.so', '<(module_root_dir)/portaudio/include/portaudio.h' ], 'cflags': [ "-fno-exceptions -lrt -lasound -ljack -lpthread -fPIC" ], 'cflags!': [ "-fno-exceptions-lrt -lasound -ljack -lpthread -fPIC" ], 'cflags_cc!': [ "-fno-exceptions -lrt -lasound -ljack -lpthread -fPIC"], 'cflags_cc': [ "-std=c++0x -lrt -lasound -ljack -lpthread -fPIC" ] }
- In the
node-core-audio
folder runnode-gyp rebuild
. - Dearest linux users, if you find you are running into new install problems, even if solved them yourselves, please notify me at damarino (at) cs.ubc.ca.
- Clone the git repository
###Running Voodle:
- Note: the following steps must be done in
/Voodle
: - First you will need to deploy. This only needs to be done once with each stable version. Open a terminal window and type
npm run deploy
.- Note (optional): If you are looking to do some development of your own you can run the dev server with
npm run dev
atlocalhost:1337
.
- Note (optional): If you are looking to do some development of your own you can run the dev server with
- To start Voodle, type
npm start
. - Open a new browser window and go to
localhost:2000
. - Just have fun.
###Setting up the Arduino
Upload Standard Firmata your Arduino board (https://www.arduino.cc/en/Reference/Firmata).
Power pin can be any 3-6V source. Ground pin must be common with the microcontroller, i.e., you can use any ground as long as it is connected to an Arduino ground. Data pin must be one of the PWM pins on the Arduino. In this case, it’s pin 10.