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) { if (args.length >= 1) {
return ronin.getOsc()[args[0]] return ronin.getOsc()[args[0]]
} else { } else {
return ronin.getOsc(); return ronin.getOsc()
} }
} }
} }

View File

@ -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')

View File

@ -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)
} }
} }

View File

@ -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 () {

View File

@ -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