Starting orca x ronin example
This commit is contained in:
parent
55f160c5b5
commit
07ff69e14a
1260
desktop/package-lock.json
generated
1260
desktop/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -384,7 +384,7 @@ function Library (ronin) {
|
|||||||
if (args.length >= 1) {
|
if (args.length >= 1) {
|
||||||
return ronin.getOsc()[args[0]]
|
return ronin.getOsc()[args[0]]
|
||||||
} else {
|
} else {
|
||||||
return ronin.getOsc();
|
return ronin.getOsc()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
function Lisp (lib = {}, includes = []) {
|
function Lisp (lib = {}, includes = []) {
|
||||||
console.log(includes)
|
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
|
|
||||||
|
@ -7,20 +7,20 @@ function Osc (ronin) {
|
|||||||
|
|
||||||
this.start = function () {
|
this.start = function () {
|
||||||
var udpPort = new osc.UDPPort({
|
var udpPort = new osc.UDPPort({
|
||||||
localAddress: "0.0.0.0",
|
localAddress: '0.0.0.0',
|
||||||
localPort: 12940,
|
localPort: 49162,
|
||||||
metadata: true
|
metadata: true
|
||||||
});
|
})
|
||||||
|
|
||||||
udpPort.on("message", this.onOscMsg)
|
udpPort.on('message', this.onOscMsg)
|
||||||
|
|
||||||
udpPort.open();
|
udpPort.open()
|
||||||
ronin.log("osc started")
|
ronin.log('osc started')
|
||||||
}
|
}
|
||||||
|
|
||||||
this.onOscMsg = (oscMsg, timeTag, info) => {
|
this.onOscMsg = (oscMsg, timeTag, info) => {
|
||||||
this.oscMsg[oscMsg.address] = oscMsg;
|
this.oscMsg[oscMsg.address] = oscMsg
|
||||||
ronin.log("An OSC message just arrived!", oscMsg)
|
ronin.log('An OSC message just arrived!', oscMsg)
|
||||||
ronin.log("Remote info is: ", info);
|
ronin.log('Remote info is: ', info)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ function Ronin () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.getOsc = function () {
|
this.getOsc = function () {
|
||||||
return this.osc.oscMsg;
|
return this.osc.oscMsg
|
||||||
}
|
}
|
||||||
|
|
||||||
this.reset = function () {
|
this.reset = function () {
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
(cx cy r c)
|
(cx cy r c)
|
||||||
(
|
(
|
||||||
(times c
|
(times c
|
||||||
(lambda
|
(λ
|
||||||
(i)
|
(i)
|
||||||
(
|
(
|
||||||
(draw-spoke cx cy r
|
(draw-spoke cx cy r
|
||||||
|
Loading…
x
Reference in New Issue
Block a user