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