electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » Instruments and Equipment » WREN
Receiving OSC messages
Post new topic   Reply to topic
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
wakyct



Joined: Dec 30, 2020
Posts: 105
Location: USA
Audio files: 12

PostPosted: Sun Mar 28, 2021 10:18 pm    Post subject: Receiving OSC messages Reply with quote  Mark this post and the followings unread

I'm trying out OSC (using TouchOSC, hey if it's good enough for Dave Vorhaus...) but can't get it to control a module. Connection works and Wren receives messages (the 'r' lights up) and log shows stuff like:

2021-03-28 22:09:21:627 [OSC_MSG ] OSC msg in : /wren/svf/frequency f( 0.555569291114807)

But I suspect I'm not formatting the message correctly. I'm trying to control the frequency control of the SVF filter module, which I've renamed @SVF. My synth name in general settings is wren. I've tried frequency, Afrequency, freq,svf_frequency for the knob names and SVF and svf uncapitalized....what's the correct message to send here?
Back to top
View user's profile Send private message
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24085
Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320

PostPosted: Mon Mar 29, 2021 9:50 am    Post subject: Reply with quote  Mark this post and the followings unread

/wren/svf/svf_frequency is the correct one .. but I see there are a couple issues with value conversions and addressing strings that I am fixing now ..

after fixing the correct string will then be /wren/svf/frequency .. as that svf_ prefix is not too useful ...

Will post here when I've made a new release ..probably today.

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24085
Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320

PostPosted: Mon Mar 29, 2021 11:29 am    Post subject: Reply with quote  Mark this post and the followings unread

Ok, a new version is avalable from https://bluehell.nl/wren/ - it may still mangle OSC messages from other applications, but Wren to Wren works okay now ... so let me know please if there are issues with other apps.
_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
wakyct



Joined: Dec 30, 2020
Posts: 105
Location: USA
Audio files: 12

PostPosted: Mon Mar 29, 2021 7:17 pm    Post subject: Reply with quote  Mark this post and the followings unread

Cool, thanks for the quick release! I've been testing and this is what I've found:

TouchOSC sending to Wren

Log looks like:
2021-03-29 19:07:11:925 [OSC_MSG ] OSC msg in : /wren/svf/frequency f( 0.425161242485046)
2021-03-29 19:07:11:938 [OSC_MSG ] OSC msg in : /wren/svf/frequency f( 0.429520905017853)
2021-03-29 19:07:11:956 [OSC_MSG ] OSC msg in : /wren/svf/frequency f( 0.430266559123993)
2021-03-29 19:07:14:422 [AUDIO ] stopping PortAudio, patch "velocity_control_simplified"

Result: no change to frequency


Wren (synth name Magpie) sending to Wren

Log looks like:
In Magpie debug log:
2021-03-29 19:10:19:818 [OSC_MSG ] OSC msg out: /wren/svf/frequency f( 0.296875)
2021-03-29 19:10:21:688 [OSC_MSG ] OSC msg out: /wren/svf/frequency f( 0.296875)
2021-03-29 19:10:23:566 [OSC_MSG ] OSC msg out: /wren/svf/frequency f( 0.296875)
2021-03-29 19:10:25:436 [OSC_MSG ] OSC msg out: /wren/svf/frequency f( 0.296875)
2021-03-29 19:10:27:315 [OSC_MSG ] OSC msg out: /wren/svf/frequency f( 0.3125)
2021-03-29 19:10:29:185 [OSC_MSG ] OSC msg out: /wren/svf/frequency f( 0.71875)
2021-03-29 19:10:31:063 [OSC_MSG ] OSC msg out: /wren/svf/frequency f( 0.71875)
2021-03-29 19:10:32:846 [AUDIO ] stopping PortAudio, patch "2021-03-29 18-52-15 01"

In Wren debug log:
2021-03-29 19:10:19:818 [OSC_MSG ] OSC msg in : /wren/svf/frequency f( 0.296875)
2021-03-29 19:10:21:688 [OSC_MSG ] OSC msg in : /wren/svf/frequency f( 0.296875)
2021-03-29 19:10:23:567 [OSC_MSG ] OSC msg in : /wren/svf/frequency f( 0.296875)
2021-03-29 19:10:25:436 [OSC_MSG ] OSC msg in : /wren/svf/frequency f( 0.296875)
2021-03-29 19:10:27:315 [OSC_MSG ] OSC msg in : /wren/svf/frequency f( 0.3125)
2021-03-29 19:10:29:185 [OSC_MSG ] OSC msg in : /wren/svf/frequency f( 0.71875)
2021-03-29 19:10:31:063 [OSC_MSG ] OSC msg in : /wren/svf/frequency f( 0.71875)
2021-03-29 19:11:04:033 [AUDIO ] stopping PortAudio, patch "velocity_control_simplified"

(note those debug logs are not perfectly synced in the cut and paste, because I didn't stop the run at the same time)

Result: no change in frequency

I'm attaching the Wren patch to confirm I have the SVF named correctly.

By the way, in the OSCMessage module in the Magpie synth patch I had to leave out the leading '/' to avoid a double forward slash in the message sent, I don't know if this is intended -- since in TouchOSC I included the leading forward slash. Maybe TouchOSC strips that when it sends the message, since I don't see it in the Wren debug.


velocity_control_simplified_515.wren
 Description:

Download
 Filename:  velocity_control_simplified_515.wren
 Filesize:  16.95 KB
 Downloaded:  299 Time(s)

Back to top
View user's profile Send private message
wakyct



Joined: Dec 30, 2020
Posts: 105
Location: USA
Audio files: 12

PostPosted: Mon Mar 29, 2021 7:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

Sorry for the double post, but I realized I didn't try the obvious thing -- renaming the SVF module to your example 'aap'.

And now it works, TouchOSC too. Too cool. Smile

Some bug matching the module name maybe?
Back to top
View user's profile Send private message
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24085
Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320

PostPosted: Tue Mar 30, 2021 3:44 am    Post subject: Reply with quote  Mark this post and the followings unread

Great that it works!

I see that in the patch you attached you named the module @SVF and from the log I see that you used svf in the addressing.

Whether OSC is meant to be case sensitive or not I do not really know (as the specs are a bit loosely formulated), but I do see sugestions here and there that case sensitivity may be intended. So I'll leave it like it is, and will make a mention of it in the FAQ.

( But why Wren would match wren then .. is beyond me Shocked )

Re. the starting slash (/) character, the specs say say that address patterns MUST start with it BUT Wren will add it to the start of the pattern by itself. I'll mention this in the FAQ.

And thank you for your feedback!

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » Instruments and Equipment » WREN
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use