https://github.com/toddtreece/osc-examples
A simple set of node.js scripts demonstrating OSC communication.
https://github.com/toddtreece/osc-examples
Last synced: about 1 year ago
JSON representation
A simple set of node.js scripts demonstrating OSC communication.
- Host: GitHub
- URL: https://github.com/toddtreece/osc-examples
- Owner: toddtreece
- Created: 2015-03-18T20:32:27.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-25T18:27:34.000Z (over 11 years ago)
- Last Synced: 2025-02-08T22:13:18.889Z (over 1 year ago)
- Language: Max
- Size: 254 KB
- Stars: 19
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node.js osc examples
## Installation
The examples require the latest stable version of node.js (>= v0.12.0) to be installed. After downloading and installing node.js, you can clone this repository and install the dependencies using `npm`.
```
$ git clone https://github.com/toddtreece/osc-examples.git && cd osc-examples
$ npm install
```
### Cycling '74 Max
If you would like to test the examples with Max, you will need to download and install the latest version of Max [from Cycling '74's website][1].
### PureData
If you are interested in the PureData examples, you will need to download and install the latest version of [Pd-Extended][2].
### ChucK
If you would like to use Chuck with the examples, you will need to download and install lastest version of the command line executable or miniAudicle from [Princeton's website][3].
## Included Examples
* `print.js` - prints received messages from the Max, Pd, or Chuck OSC examples. Also sends messages back one every second.
* `socketio.js` - demonstrates communicating through OSC with a web browser in real time using socket.io and node.js to translate messages to and from Max, Pd, or Chuck.
### Raspberry Pi PiTFT Examples
To demonstrate working with remotely connected hardware, there are a couple examples that make use of a Raspberry Pi and a [PiTFT touchscreen module][4].
#### Installation on a Raspberry Pi
```
$ git clone https://github.com/toddtreece/osc-examples.git
$ cd osc-examples/pitft
$ npm install
```
#### PiTFT Examples
* `sine.js` - sends out X & Y of touches as MIDI pitch and velocity values. Top left of the screen is 0 pitch 0 velocty, and bottom right is 127 pitch & 127 velocity. Use with the pitft_sine example in Max, Pd, or Chuck on your workstation.
* `sample.js` - creates a grid of 4 buttons that will trigger samples loaded with the pitft_sample example in Max, Pd, or Chuck on your workstation.
[1]: https://cycling74.com/downloads
[2]: https://puredata.info/downloads/pd-extended
[3]: http://chuck.cs.princeton.edu/release
[4]: https://www.adafruit.com/search?q=pitft