Starting orca x ronin example

This commit is contained in:
Devine Lu Linvega 2019-07-21 16:55:22 +09:00
parent 55f160c5b5
commit 07ff69e14a
7 changed files with 1237 additions and 70 deletions

1260
desktop/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -384,7 +384,7 @@ function Library (ronin) {
if (args.length >= 1) {
return ronin.getOsc()[args[0]]
} else {
return ronin.getOsc();
return ronin.getOsc()
}
}
}

View File

@ -1,7 +1,6 @@
'use strict'
function Lisp (lib = {}, includes = []) {
console.log(includes)
const path = require('path')
const fs = require('fs')

View File

@ -7,20 +7,20 @@ function Osc (ronin) {
this.start = function () {
var udpPort = new osc.UDPPort({
localAddress: "0.0.0.0",
localPort: 12940,
localAddress: '0.0.0.0',
localPort: 49162,
metadata: true
});
})
udpPort.on("message", this.onOscMsg)
udpPort.on('message', this.onOscMsg)
udpPort.open();
ronin.log("osc started")
udpPort.open()
ronin.log('osc started')
}
this.onOscMsg = (oscMsg, timeTag, info) => {
this.oscMsg[oscMsg.address] = oscMsg;
ronin.log("An OSC message just arrived!", oscMsg)
ronin.log("Remote info is: ", info);
this.oscMsg[oscMsg.address] = oscMsg
ronin.log('An OSC message just arrived!', oscMsg)
ronin.log('Remote info is: ', info)
}
}

View File

@ -49,8 +49,8 @@ function Ronin () {
this.osc.start()
}
this.getOsc = function() {
return this.osc.oscMsg;
this.getOsc = function () {
return this.osc.oscMsg
}
this.reset = function () {

View File

@ -27,7 +27,7 @@
(cx cy r c)
(
(times c
(lambda
(λ
(i)
(
(draw-spoke cx cy r