mirror of
https://github.com/jwetzell/osc-js.git
synced 2026-08-17 05:03:26 +00:00
switch sendosc to osc library
This commit is contained in:
@@ -4,7 +4,8 @@ const { Option, program } = require('commander');
|
||||
const dgram = require('dgram');
|
||||
const net = require('net');
|
||||
const slip = require('slip');
|
||||
const osc = require('./osc');
|
||||
const osc = require('@jwetzell/osc');
|
||||
const {argToTypedArg} = require('./utils')
|
||||
const packageInfo = require('../package.json');
|
||||
|
||||
program.name(packageInfo.name);
|
||||
@@ -25,11 +26,11 @@ program.action((options) => {
|
||||
|
||||
return {
|
||||
type: argType,
|
||||
value: osc.argToTypedArg(rawArg, argType),
|
||||
value: argToTypedArg(rawArg, argType),
|
||||
};
|
||||
});
|
||||
|
||||
let oscMsgBuffer = osc.toBuffer({
|
||||
let oscMsgBuffer = osc.messageToBuffer({
|
||||
address,
|
||||
args: typedArgs,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user