Mercurial > hg > beaglert
comparison examples/osc/render.cpp @ 375:768acdeea362 prerelease
Merge
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Fri, 10 Jun 2016 00:35:18 +0100 |
parents | db2fe4e1b88e |
children |
comparison
equal
deleted
inserted
replaced
374:ecad1ea0382a | 375:768acdeea362 |
---|---|
1 /* | |
2 ____ _____ _ _ | |
3 | __ )| ____| | / \ | |
4 | _ \| _| | | / _ \ | |
5 | |_) | |___| |___ / ___ \ | |
6 |____/|_____|_____/_/ \_\.io | |
7 | |
8 */ | |
9 | |
10 /** | |
11 \example 5_osc | |
12 | |
13 Open Sound Control | |
14 ------------------ | |
15 | |
16 This example shows an implementation of OSC (Open Sound Control) which was | |
17 developed at UC Berkeley Center for New Music and Audio Technology (CNMAT). | |
18 | |
19 It is designed to be run alongside resources/osc/osc.js | |
20 | |
21 The OSC server port on which to receive is set in `setup()` | |
22 via `oscServer.setup()`. Likewise the OSC client port on which to | |
23 send is set in `oscClient.setup()`. | |
24 | |
25 In `setup()` an OSC message to address `/osc-setup`, it then waits | |
26 1 second for a reply on `/osc-setup-reply`. | |
27 | |
28 in `render()` the code receives OSC messages, parses them, and sends | |
29 back an acknowledgment. | |
30 */ | |
31 | |
1 #include <Bela.h> | 32 #include <Bela.h> |
2 #include <OSCServer.h> | 33 #include <OSCServer.h> |
3 #include <OSCClient.h> | 34 #include <OSCClient.h> |
4 | 35 |
5 OSCServer oscServer; | 36 OSCServer oscServer; |