mirror of
https://github.com/jwetzell/osc-js.git
synced 2026-08-03 14:27:50 +00:00
342ff8fd39
Bumps [commander](https://github.com/tj/commander.js) from 13.1.0 to 14.0.0. - [Release notes](https://github.com/tj/commander.js/releases) - [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md) - [Commits](https://github.com/tj/commander.js/compare/v13.1.0...v14.0.0) --- updated-dependencies: - dependency-name: commander dependency-version: 14.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
makeosc
Simple NodeJS script for generating OSC bytes output to stdout.
Usage
Usage: makeosc [options]
simple util to make osc buffers
Options:
-V, --version output the version number
--address <address> OSC address
--args <args...> osc args (default: [])
--slip slip encode message (default: false)
--types <types...> osc arg types (choices: "s", "i", "f", "b", default: [])
-h, --help display help for command
- using npx
npx makeosc@latest --address /hello - install using
npm install -g makeosc@latestand runmakeosc --address /hello
Notes
--typesoption is a space seperate list of type characters that will determine what the corresponding argument type will be set to- optional
- uses type codes from the OSC spec
--argsoption is a space-separated list of arguments. If a corresponding type is not found in the--typesoption it will default to string (s).- blobs (
b) are to be entered as hex string representing the buffer to be sent so the ASCII stringhellowould be68656c6c6f
- blobs (
- the default protocol is UDP but can be changed to TCP using the
--protocolflag
Examples
makeosc --address /test --args 1.0makeosc --address /this/is/sent/via/tcpmakeosc --address /test/with/types --args 1 2.0 three --types i f- note that
typesis not the same length asargsso the remaining argument (three) will default to string
- note that
makeosc --address /blob --args 68656c6c6f --types b