Skip to content

Convert numeric socket messages to numbers before sending to OSC#27

Open
samcarsonx wants to merge 1 commit intoautomata:masterfrom
samcarsonx:master
Open

Convert numeric socket messages to numbers before sending to OSC#27
samcarsonx wants to merge 1 commit intoautomata:masterfrom
samcarsonx:master

Conversation

@samcarsonx
Copy link
Copy Markdown

@samcarsonx samcarsonx commented Nov 27, 2024

Problem

When numeric values are sent to the socket, they are parsed as strings and subsequently sent out via OSC as strings too (e.g., "5" instead of 5). This causes issues with programs like Wekinator that expect properly formatted numeric data.

Solution

This fix traverses the list of values and converts any numeric strings to floats before sending them via OSC. Fixes #26

Impact

This fundamentally changes how the program sends data. If merged, I recommend updating the version number to 0.2.2 to reflect this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

socket.emit() can only send symbols

1 participant