-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSC Spec 1.1 legacy optional types
#114
Comments
I saw that @MylesBorins opened an issue in 2021 for a similar feature. I'd also be willing to implement these features either in |
FYI this is on my radar but haven't had time to dig in too much yet. I am considering doing a bigger rewrite and removing |
I'm about 90% through a re-write of osc-min using TypeScript. I'm finalising migrating the existing tests. You can take a look here if you've got time. My thought was to either:
|
I wanted to make sure the rewrite worked as expected with existing functionality before adding additional features. Extending the spec should be relatively simple, and should just be a case of extending the type codes (src/osc-utilities/oscTypeCodes.ts ) along with a few types. |
What we need, more-or-less, in node-osc is an implementation of My preference would be to lose the dependency, in which case we could potentially change the interface a bit and do a semver-major... but I'm not looking to introduce TypeScript and it's toolchain into this repo. I would be open to switching to a fork of osc-min that you maintain to get the functionality as well, but would want to ensure we keep the level of stability we've historically had. |
FYI these should be handled by |
I need to send MIDI via OSC.
As per the OSC Spec 1.0 (see second table "nonstandard argument types") we should be able to use a
OSC Tag Type
ofm
(4 byte MIDI message. Bytes from MSB to LSB are: port id, status byte, data1, data2
).In my code I'd like to do something like this (I'm using TypeScript):
I've tested this and I believe the type is being inferred automatically, as my type
m
is not being received from the device on the receiving end of this message.Looking into the osc-min package which implements the OSC Spec 1.1, it appears that the
legacy optional types
have not been implemented (see3.5.3
).I was wondering if there's a way of circumventing this in
node-osc
?The text was updated successfully, but these errors were encountered: