-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wspd now connects to remote, and has some cli args as well
- Loading branch information
1 parent
82f0129
commit b47fbe3
Showing
4 changed files
with
48 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
localReceivePort = 7404 | ||
localSendPort = 7404 | ||
|
||
const { Client, Server } = require('node-osc'); | ||
|
||
const localSend = new Client('127.0.0.1', 7404); | ||
console.log('wspd udp tester\n\nplease ensure the app.js program is also running') | ||
// run the app in client mode | ||
|
||
let msgTiming = setInterval(myTimer, 1000); | ||
|
||
function myTimer() { | ||
let tts = Math.random() | ||
console.log('sending OSC msg "/testmsg ' + tts + '"') | ||
localSend.send('/testmsg', tts, (err) => { | ||
if (err) console.error(err); | ||
}); | ||
} | ||
|
||
|
||
|