Page 5 of 7

Re: OSC Receiver

Posted: Thu Dec 21, 2017 7:40 am
by faxinadu
actually i say keep it, might serve a function for the future!

btw i have the perfect device to try this on in a real world situation... but it is part of a commercial pack, do you allow me to try? of course i will send it to you for free :)
scopecad.png
scopecad.png (51.72 KiB) Viewed 318593 times

Re: OSC Receiver

Posted: Thu Dec 21, 2017 8:24 am
by faxinadu
w_ellis wrote: Thu Dec 21, 2017 7:37 am Any thoughts on my earlier question about where to store the OSC port number? I could easily create a dedicated preferences file for it, which might be safest. I think it's misleading to have it as an input to the module, as it can only be one value across all devices.
maybe keep it as a pad, but have it initialize to 8000

Re: OSC Receiver

Posted: Thu Dec 21, 2017 11:29 am
by faxinadu
will if we are keeping port as a parameter couldn't we just have each useage of it provide a port entry option for the user? so each device that embeds this will have to pull a text fader to the panel where the user sets the ports, and that's it no? takes care of multiple instances and everything i think.

Re: OSC Receiver

Posted: Thu Dec 21, 2017 11:42 am
by faxinadu
aaaaaaaaaaaaaah lol sorry im getting too excited - port won't do on the broadcasting side, since it will be broadcasting on 1 port :P nevermind, just curious. so yes i get the reasons behind the setup now, i'm in if you go for what you described :)

Re: OSC Receiver

Posted: Thu Dec 21, 2017 11:44 am
by w_ellis
Try this new version out: Scope DLL

The main reasons not to allow individual ports per device/instance:
- Will create firewall pain every time a new port is used. At the moment users will need to enable the relevant port once ever.
- It's inefficient in the module to have multiple instances of the OSC Receiver object, as the architecture neatly supports multiple listeners on the same port. It would drive up memory usage to have one per device/instance

See how you get on with patching this version. I think it's pretty easy to use.

Re: OSC Receiver

Posted: Thu Dec 21, 2017 11:45 am
by w_ellis
As an example, I passed 1, 10001 and 1 into the 3 inputs and was able to control values by passing messages with addresses /1/10001/1/x

Re: OSC Receiver

Posted: Thu Dec 21, 2017 11:47 am
by w_ellis
We can agree that Ocean Swift gets the Device UID range from 10000 to 19999 as an early adopter benefit :) (when you've build more than 10,000 devices we'll give you a new range!)

Re: OSC Receiver

Posted: Thu Dec 21, 2017 11:53 am
by w_ellis
Oh, and of course I'm happy for you to try this out in one of your devices. We'll need to do some digging about licensing, but I'm sure there's ways to sort it out.

Re: OSC Receiver

Posted: Thu Dec 21, 2017 12:08 pm
by faxinadu
awesome give me 10 minutes ill post here my test tool and a conversion module for scope that takes the integers and converts them to int32 (what scope knobs usually like) :)

Re: OSC Receiver

Posted: Thu Dec 21, 2017 1:35 pm
by w_ellis
I've just finished the first version of the Sender, which you can find here: Scope DLL

Seems to work inside the SDK. Will be interested if anyone gets time to point the sender outside, especially to a different PC. Note that you can set a different Port + Host per instance of the sender, as there's no problem with having many instances of that (compared to listen ports for receiving).

Here's an animated gif showing it in action!
OSC-Testing.gif
OSC-Testing.gif (115.85 KiB) Viewed 318544 times
Let me know if it's not clear what all the parameters mean. I'll probably not be able to do much coding until early Jan, when I get back from Munich.

Re: OSC Receiver and Sender

Posted: Thu Dec 21, 2017 1:37 pm
by w_ellis
P.S. I spoke with Faxi over WhatsApp and clarified that you can pass full int32 values over the OSC messages, so no need to scale them. I think that's the best use of the protocol and then scale for display at either end.

Re: OSC Receiver and Sender

Posted: Thu Dec 21, 2017 1:53 pm
by faxinadu
--

Re: OSC Receiver

Posted: Thu Dec 21, 2017 3:24 pm
by DragonSF
w_ellis wrote: Thu Dec 21, 2017 7:37 am Any thoughts on my earlier question about where to store the OSC port number? I could easily create a dedicated preferences file for it, which might be safest. I think it's misleading to have it as an input to the module, as it can only be one value across all devices.
.I'd put the relevant data in an ini-file (own or cset). And don't forget to do initiate another module as receiver, if the 1st one is deleted.

Re: OSC Receiver and Sender

Posted: Thu Dec 21, 2017 4:33 pm
by faxinadu
for the sender can there be a generic version with no ids? so with scope one could control anything that accepts osc.

Re: OSC Receiver and Sender

Posted: Thu Dec 21, 2017 4:44 pm
by faxinadu
confirmed sender works here on same pc, tomorrow will test more

Re: OSC Receiver and Sender

Posted: Thu Dec 21, 2017 10:05 pm
by w_ellis
faxinadu wrote: Thu Dec 21, 2017 4:33 pm for the sender can there be a generic version with no ids? so with scope one could control anything that accepts osc.
Not totally sure what you're looking to achieve, but perhaps you could try using broadcast addresses? See here for details: https://docs.microsoft.com/en-us/dotnet ... p-services

Re: OSC Receiver

Posted: Thu Dec 21, 2017 10:08 pm
by w_ellis
DragonSF wrote: Thu Dec 21, 2017 3:24 pmAnd don't forget to do initiate another module as receiver, if the 1st one is deleted.
Yeah, the ScopeOSCReceiver is used as a reference counted object shared between all instances of the loaded dll, which will be created if it doesn't already exist

Re: OSC Receiver and Sender

Posted: Sat Dec 23, 2017 9:29 am
by faxinadu
Big progress on android app, core technology is set up and working!
25991081_10215812752616830_1446300807_o.jpg
25991081_10215812752616830_1446300807_o.jpg (564.43 KiB) Viewed 318437 times
25855898_10215812751696807_268279398_o.jpg
25855898_10215812751696807_268279398_o.jpg (523.02 KiB) Viewed 318437 times

Re: OSC Receiver and Sender

Posted: Sat Dec 23, 2017 11:18 am
by dawman
Impressive.
Look forward to more controls for real time parameter modulation.

Re: OSC Receiver and Sender

Posted: Tue Dec 26, 2017 10:56 pm
by faxinadu
https://play.google.com/store/apps/deta ... t.scopeosc

the scope side update is almost ready too :)