Example code

Quick Start Pack

This contains a small number of very useful executable examples for inputs, outputs, and teaching.

Download All Source

Want to jump right in and start with the source code? If so, you can download the very latest source for all examples from github.

Pick & Choose: Inputs

Arduino

Audio

BBC micro:bit

  • Step 1. Download this file and save it on your microbit (e.g., in Mac Finder or Windows Explorer). It should be the only file on your microbit.
  • Step 2. Download the desired version of your desktop software below:
  • Step 3. Plug in your micro:bit to your computer via USB, run the desktop software you just downloaded, and change the device ID in the top dropdown box until you see the accelerometer numbers changing.
  • Step 4. In the same program, choose which input types you want to send to Wekinator using the bottom dropdown box, and look at the screen to see how many inputs you have total. Tell Wekinator to listen for this many inputs.

Bitalino (biosignals)

  • Coming soon

GameTrak “Real World Golf” tether (game controller)

Java

Leap Motion (hardware sensor)

Logitech Extreme 3D Pro Joystick

Max/MSP (audio)

Microsoft Kinect (3D body tracking/game controller)

openFrameworks (C++, animation)

PureData (PD) (audio)

Processing (animation, screen-based input)

Python

TouchOSC for iPhone, iPod Touch, and iPad:

Video/Webcam

WebSockets (for desktop & mobile via browser apps)

WiiMote (game controller)

Pick & Choose: Outputs

AbletonLive (audio)

ChucK (audio)

IFTTT (“if this then that”)

Max/MSP (audio)

MIDI

openFrameworks (C++, animation)

PureData (PD) (audio)

Processing (animation + audio)

Unity (game engine)

Teaching Examples

Classification Explorer

Regression Explorer

DTW Mouse Explorer