vmc-d 1.1.3
An implementation of the VMC face tracking protocol, based on osc-d
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
osc-d
Description
An implementation of Open Sound Control in D programming language.
Examples
Server
static import osc;
void main() {
auto server = new osc.Server(8000);
while(true){
import std.stdio;
"popMessage".writeln;
while(server.hasMessage){
auto m = server.popMessage;
foreach (int i, ref t; m.typeTags) {
import std.conv;
switch (t) {
case osc.TypeTag.Int:
m.args[i].to!int.writeln;
break;
case osc.TypeTag.Float:
m.args[i].to!float.writeln;
break;
case osc.TypeTag.String:
m.args[i].to!string.writeln;
break;
case osc.TypeTag.Blob:
m.args[i].to!(ubyte[]).writeln;
break;
default:
assert(0);
}
}
}
import std.datetime;
import core.thread;
Thread.sleep(1.dur!"seconds");
}
}
Client
static import osc;
void main() {
auto client = new osc.Client(8000);
auto message = osc.Message();
message.addressPattern = "/foo";
message.addValue(1000);
message.addValue(-1);
message.addValue("hello");
message.addValue(1.234f);
message.addValue(5.678f);
client.push(message);
}
- 1.1.3 released a year ago
- Inochi2D/vmc-d
- MIT
- Copyright © 2016, tanitta & Inochi2D Contributors
- Authors:
- Dependencies:
- none
- Versions:
-
1.1.3 2023-Mar-30 1.1.2 2022-Jul-12 1.1.1 2022-Mar-29 1.1.0 2022-Mar-22 ~main 2023-Mar-30 - Download Stats:
-
-
15 downloads today
-
106 downloads this week
-
486 downloads this month
-
14948 downloads total
-
- Score:
- 2.9
- Short URL:
- vmc-d.dub.pm