OSC message replace and scale values

soundarchitect's icon

Hey all,

Need some help on something that seems easy, but gives me headaches.

I'm trying to rebuild an OSC string into something else. That new message contains the original address and the value (a list containing two floats) needs to be scaled. Something like this:

/thispartcango/x 0. 0.

into:

/newpart/x/coordinates [scaled]. [scaled].

Could someone advise?
My main problem now is that I get in trouble with the timing when - for instance Qlab - sends out a lot of data 'at once'...

Thanks

pjeve's icon

CNMAT's odot package is your friend!

https://github.com/CNMAT/CNMAT-odot/releases

Source Audio's icon

Don't bother about any 3rd party stuff,
simply route receiving message to scaler and repack it.
What could be simpler ?

Max Patch
Copy patch and select New From Clipboard in Max.

You can use any kind of scaling instead of vexpr

Pedro Santos's icon

The [scale] object also works with lists.

Max Patch
Copy patch and select New From Clipboard in Max.