# Osc Discussion (How Where What To Use Osc)

**URL:** <https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189>\
**Category:** Renoise Tool Development\
**Created:** [July 19, 2010, 8:05pm UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189 "2010-07-19T20:05:04Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Moonriders](https://forum.renoise.com/user_avatar/forum.renoise.com/moonriders/32/1345_2.png) [@Moonriders](https://forum.renoise.com/u/Moonriders)\
**Post date:** [July 23, 2010, 3:11am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/21 "2010-07-23T03:11:43Z")

</div>

samBiotic, you can add these to the GlobalOscActions.lua

```lua
  
add_action {   
 pattern = "/transport/edit/on",   
 description = "Start Editing(boolean)",  
 handler = function(edit_mode)  
 renoise.song().transport.edit_mode = true  
 end,  
}  
  
add_action {   
 pattern = "/transport/edit/off",   
 description = "Start Editing(boolean)",  
 handler = function(edit_mode)  
 renoise.song().transport.edit_mode = false  
 end,  
}  
  
add_action {   
 pattern = "/transport/edit_step",   
 arguments = { argument("edit_step_value", "number") },   
 description = "Set the songs edit step [0-64]",  
 handler = function(edit_step)  
 renoise.song().transport.edit_step = clamp_value(edit_step, 0, 64)  
 end,  
}   
  
add_action {   
 pattern = "/transport/tpl",   
 arguments = { argument("tpl_value", "number") },   
 description = "Set the songs ticks per line [1-16]",  
 handler = function(tpl)  
 renoise.song().transport.tpl = clamp_value(tpl, 1, 16)  
 end,   
}  
  

```

In the scripting editor, select GlobalOscActions.lua, then a little way through the file you will see a section for transport. that is where these go.

It would be better to put all of these in a file GlobalOscActions.lua would call, but I don’t know how that’s done yet. For lists of everything that can be addressed, look in the documentation of the files with “~.API.txt”.

Like Taktik wrote make sure you have a copy of this as when B3 comes it .will be written over.

Thanks Taktik for clearing that up for me. ![:)](https://files.renoise.com/forum/emoticons/default/smile.gif)

---

<div class="post-metadata">

**Author:** ![Moonriders](https://forum.renoise.com/user_avatar/forum.renoise.com/moonriders/32/1345_2.png) [@Moonriders](https://forum.renoise.com/u/Moonriders)\
**Post date:** [July 23, 2010, 6:35am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/22 "2010-07-23T06:35:49Z")

</div>

cool, midi note on:

/renoise/trigger/note\_on -1 -1 48 127

address currently selected instrument currently selected track Note C-4 Vol/Vel 7F

---

<div class="post-metadata">

**Author:** ![taktik](https://forum.renoise.com/user_avatar/forum.renoise.com/taktik/32/3823_2.png) [@taktik](https://forum.renoise.com/u/taktik)\
**Post date:** [July 23, 2010, 7:55am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/23 "2010-07-23T07:55:30Z")

</div>

> [@Moonriders](#):
>
> samBiotic, you can add these to the GlobalOscActions.lua
> 
> pattern = “/transport/edit/on”,

I wasn’t clear about those. It should be:

```lua
  
add_action {   
 pattern = "/transport/edit_mode",   
 arguments = { argument("edit_mode", "boolean") },   
 description = "Set global edit mode on or off",  
 handler = function(edit_mode)  
 renoise.song().transport.edit_mode = edit_mode  
 end,  
}  
  

```

And/Or:

```lua
  
add_action {   
 pattern = "/transport/enable_edit_mode",   
 description = "Set global edit mode on",  
 handler = function()  
 renoise.song().transport.edit_mode = true  
 end,  
}  
  
add_action {   
 pattern = "/transport/disable_edit_mode",   
 description = "Set global edit mode off",  
 handler = function()  
 renoise.song().transport.edit_mode = false  
 end,  
}  
  

```

Got it now?

---

<div class="post-metadata">

**Author:** ![Moonriders](https://forum.renoise.com/user_avatar/forum.renoise.com/moonriders/32/1345_2.png) [@Moonriders](https://forum.renoise.com/u/Moonriders)\
**Post date:** [July 23, 2010, 8:54am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/24 "2010-07-23T08:54:24Z")

</div>

> [@taktik](#):
>
> I wasn’t clear about those. It should be:
> 
> ```lua
>   
> add_action {   
> pattern = "/transport/edit_mode",   
> arguments = { argument("edit_mode", "boolean") },   
> description = "Set global edit mode on or off",  
> handler = function(edit_mode)  
> renoise.song().transport.edit_mode = edit_mode  
> end,  
> }  
>   
> 
> ```
> 
> And/Or:
> 
> ```lua
>   
> add_action {   
> pattern = "/transport/enable_edit_mode",   
> description = "Set global edit mode on",  
> handler = function()  
> renoise.song().transport.edit_mode = true  
> end,  
> }  
>   
> add_action {   
> pattern = "/transport/disable_edit_mode",   
> description = "Set global edit mode on or off",  
> handler = function()  
> renoise.song().transport.edit_mode = false  
> end,  
> }  
>   
> 
> ```
> 
> Got it now?

Hi Taktik,

In the last 2 examples you are using a more descriptive and concise address pattern.  
In the first example, I can’t figure out what is accepted to send it.

What is the input the api accepts for a boolean with an argument?  
I just can’t make sense of what the interpreter is actually accepting in several cases.

like for instance with this:

```lua
  
add_action {   
 pattern = "/transport/edit_step",   
 arguments = { argument("edit_step_value", "number") },   
 description = "Set the songs edit step [0-64]",  
 handler = function(edit_step)  
 renoise.song().transport.edit_step = clamp_value(edit_step, 0, 64)  
 end,  
}   
  

```

From pd I can send this:

[pd]send /renoise/transport/edit\_step 7[/pd]

No problems at all sending this with pd, I don’t need to specify it’s an integer as the type tags are already turned on by default, I think.

Then for your first example, essentially I would think first to send:  
[pd]send /renoise/transport/edit\_mode[/pd]  
Since it’s a boolean with an argument, I know something else needs to be sent with it but, I can’t find what else to send.

I would think  
[pd]send /renoise/transport/edit\_mode true[/pd]  
would work but… it doesn’t want that.

---

<div class="post-metadata">

**Author:** ![vvoois](https://forum.renoise.com/letter_avatar/vvoois/32/6_449c533f586939b6e5f246632a46421f.png) [@vvoois](https://forum.renoise.com/u/vvoois)\
**Post date:** [July 23, 2010, 8:59am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/25 "2010-07-23T08:59:43Z")

</div>

> [@Moonriders](#):
>
> cool, midi note on:
> 
> /renoise/trigger/note\_on -1 -1 48 127
> 
> address currently selected instrument currently selected track Note C-4 Vol/Vel 7F

If that supposed to be the correct message format… i’m still getting Rejected in my test scenario…

> [@Moonriders](#):
>
> What is the input the api accepts for a boolean with an argument?

In general 0 stands for true and -1 stands for false if specifically numbers have to be send as boolean values.  
Or try vice versa or try with 0/1 instead of 0/-1.

---

<div class="post-metadata">

**Author:** ![Moonriders](https://forum.renoise.com/user_avatar/forum.renoise.com/moonriders/32/1345_2.png) [@Moonriders](https://forum.renoise.com/u/Moonriders)\
**Post date:** [July 23, 2010, 9:02am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/26 "2010-07-23T09:02:42Z")

</div>

FYI, I’ve been using this to test pd-extended with renoise’s api.  
So far quite a bit is accepted, a few of them are miswritten because I’m simply a gorilla with a keyboard. ![:D](https://files.renoise.com/forum/emoticons/default/biggrin.gif)

the file  
[http://wikisend.com/download/477426/MRsendOSC-help.pd](http://wikisend.com/download/477426/MRsendOSC-help.pd)

in case you or anyone else wants to have a look.  
I’m not sure if it is actually using anything from pd-extended, I just grabbed pd-extended since it had more.

---

<div class="post-metadata">

**Author:** ![taktik](https://forum.renoise.com/user_avatar/forum.renoise.com/taktik/32/3823_2.png) [@taktik](https://forum.renoise.com/u/taktik)\
**Post date:** [July 23, 2010, 9:08am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/27 "2010-07-23T09:08:16Z")

</div>

> [@vV](#):
>
> In general 0 stands for true and -1 stands for false if specifically numbers have to be send as boolean values.  
> Or try vice versa or try with 0/1 instead of 0/-1.

Ehm. No. A boolean in OSC is a boolean and not some kind of number.  
Same in Lua: the number 0 evaluates to true in Lua.

Moonrider:  
Sorry, I don’t know how to send boolean arguments in PD. But if that doesn’t work, then simply use the “edit\_mode\_on” “edit\_mode\_off” patterns?

---

<div class="post-metadata">

**Author:** ![Moonriders](https://forum.renoise.com/user_avatar/forum.renoise.com/moonriders/32/1345_2.png) [@Moonriders](https://forum.renoise.com/u/Moonriders)\
**Post date:** [July 23, 2010, 9:17am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/28 "2010-07-23T09:17:28Z")

</div>

> [@vV](#):
>
> If that supposed to be the correct message format… i’m still getting Rejected in my test scenario…
> 
> In general 0 stands for true and -1 stands for false if specifically numbers have to be send as boolean values.  
> Or try vice versa or try with 0/1 instead of 0/-1.

that example works with pd

[pd] send /renoise/trigger/note\_on -1 -1 48 127 [/pd]

it fires current inst & track C-4 7F  
in the pd file I uploaded to wikisend it should work.

something like this:  
[pd] send /renoise/transport/edit\_mode 1 [/pd]

will get rejected with boolean with an argument, I guess it could be from pd’s side sending it as an integer, and renoise seeing it as incorrect?  
That would make sense.

---

<div class="post-metadata">

**Author:** ![Moonriders](https://forum.renoise.com/user_avatar/forum.renoise.com/moonriders/32/1345_2.png) [@Moonriders](https://forum.renoise.com/u/Moonriders)\
**Post date:** [July 23, 2010, 9:22am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/29 "2010-07-23T09:22:43Z")

</div>

> [@taktik](#):
>
> Ehm. No. A boolean in OSC is a boolean and not some kind of number.  
> Same in Lua: the number 0 evaluates to true in Lua.
> 
> Moonrider:  
> Sorry, I don’t know how to send boolean arguments in PD. But if that doesn’t work, then simply use the “edit\_mode\_on” “edit\_mode\_off” patterns?

I think I just deduced pd is sending the argument “1” as an integer. :S

Is that right? I should be sending 0 or 1? or should I be sending True or False?

---

<div class="post-metadata">

**Author:** ![vvoois](https://forum.renoise.com/letter_avatar/vvoois/32/6_449c533f586939b6e5f246632a46421f.png) [@vvoois](https://forum.renoise.com/u/vvoois)\
**Post date:** [July 23, 2010, 9:51am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/30 "2010-07-23T09:51:32Z")

</div>

> [@Moonriders](#):
>
> that example works with pd

That makes more sense then indeed…  
Quite confusing how parameters should be send…

This doesn’t work from within the Lua script (connecting works but the message gets rejected):

[phpbox] function connect\_to\_server() client, client\_error = renoise.Socket.create\_client(osc\_host,osc\_port) connection\_status = IN\_PROGRESS if client ~= nil then if client.is\_open then print(“client open”) client:send(OscMessage(“/renoise/trigger/note\_on(-1,-1,48,127)”)) else if client\_error then local err\_msg = “Could not connect to server reason: [”…client\_error…"]\n\nPlease check your network connection and try again " local choice = renoise.app():show\_prompt(“Network error”,err\_msg,{‘close’}) end end else local cl\_err = “Client connection-establishment failed.” if client\_error ~= nil then cl\_err = client\_error end local err\_msg = "Could not connect to server reason: “…cl\_err…”\n\nPlease check your network connection and try again " local choice = renoise.app():show\_prompt(“Network error”,err\_msg,{‘close’}) end end [/phpbox]

I would expect this supposed to work from within Renoise.  
Parameterless commands like transport\_start and transport\_stop work flawlessly though.

Regarding the Boolean stuff in PD, this page seem to give a good description how to deal with those:  
[http://en.flossmanuals.net/PureData/OSC](http://en.flossmanuals.net/PureData/OSC)

---

<div class="post-metadata">

**Author:** ![taktik](https://forum.renoise.com/user_avatar/forum.renoise.com/taktik/32/3823_2.png) [@taktik](https://forum.renoise.com/u/taktik)\
**Post date:** [July 23, 2010, 10:07am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/31 "2010-07-23T10:07:50Z")

</div>

> [@vV](#):
>
> ```lua
> client:send(OscMessage("/renoise/trigger/note_on(-1,-1,48,127)"))  
> 
> ```
> 
> I would expect this supposed to work from within Renoise.  
> Parameterless commands like transport\_start and transport\_stop work flawlessly though.

You can not pass arguments by simply adding them to the pattern.  
Please see [XRNX/Trunk/Snippets/Osc.lua](https://code.google.com/p/xrnx/source/browse/trunk/Snippets/Osc.lua) on how to send and receive OSC in the Renoise Lua API.

---

<div class="post-metadata">

**Author:** ![taktik](https://forum.renoise.com/user_avatar/forum.renoise.com/taktik/32/3823_2.png) [@taktik](https://forum.renoise.com/u/taktik)\
**Post date:** [July 23, 2010, 10:13am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/32 "2010-07-23T10:13:03Z")

</div>

* * *

Looks like we badly need a tutorial for all this OSC stuff. I’ll try to do one in the next days. If someone else is familiar with OSC and wants to help with this, this would be very appropriate.

---

<div class="post-metadata">

**Author:** ![vvoois](https://forum.renoise.com/letter_avatar/vvoois/32/6_449c533f586939b6e5f246632a46421f.png) [@vvoois](https://forum.renoise.com/u/vvoois)\
**Post date:** [July 23, 2010, 10:31am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/33 "2010-07-23T10:31:05Z")

</div>

> [@taktik](#):
>
> Please see [XRNX/Trunk/Snippets/Osc.lua](https://code.google.com/p/xrnx/source/browse/trunk/Snippets/Osc.lua) on how to send and receive OSC in the Renoise Lua API.

From the GlobalOSCActions.lua i clamped myself to this description in the hope to get somewhere:

```auto
  
 /renoise/trigger/note_on(instr(int32/64), track(int32/64),   
 note(int32/64), velocity(int32/64))  
  

```

There comes the confusion from.  
I tried using the tags, but i used the wrong ones…  
I got it now:

```php
  
  
-- send a OSC note_on message with the Renoise Lua API:  
local note_on_message = OscMessage(  
 "/renoise/trigger/note_on", {  
 {tag="i",value=-1},  
 {tag="i",value=-1},  
 {tag="i",value=48},  
 {tag="i",value=127}  
 }  
)  
  
client:send(note_on_message)  
  

```

---

<div class="post-metadata">

**Author:** ![samBiotic](https://forum.renoise.com/user_avatar/forum.renoise.com/sambiotic/32/1549_2.png) [@samBiotic](https://forum.renoise.com/u/samBiotic)\
**Post date:** [July 23, 2010, 11:25am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/34 "2010-07-23T11:25:43Z")

</div>

> [@taktik](#):
>
> * * *
> 
> Looks like we badly need a tutorial for all this OSC stuff. I’ll try to do one in the next days. If someone else is familiar with OSC and wants to help with this, this would be very appropriate.

I would be glad to help.  
However, I’m moving house this week and will be busy until next weekend.

Something that I think needs doing is creating a master GlobalOscActions.lua for possible distribution with 2.6 final.  
With an address space created of say everything in the midi mapping dialogue initially.

This would allow anyone fluent in other osc capable software to be able to control renoise externally straight away without diving into the lua scripting environment. And for those that are getting stuck in with lua, another possible way of hooking up osc hardware (monomeserial to duplex for example) by remapping the incoming data easily to the standard methods contained.

Discuss!

---

<div class="post-metadata">

**Author:** ![taktik](https://forum.renoise.com/user_avatar/forum.renoise.com/taktik/32/3823_2.png) [@taktik](https://forum.renoise.com/u/taktik)\
**Post date:** [July 23, 2010, 11:29am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/35 "2010-07-23T11:29:46Z")

</div>

> [@samBiotic](#):
>
> I would be glad to help.  
> However, I’m moving house this week and will be busy until next weekend.

Great!

> [@samBiotic](#):
>
> Something that I think needs doing is creating a master GlobalOscActions.lua for possible distribution with 2.6 final.  
> With an address space created of say everything in the midi mapping dialogue initially.
> 
> This would allow anyone fluent in other osc capable software to be able to control renoise externally straight away without diving into the lua scripting environment. And for those that are getting stuck in with lua, another possible way of hooking up osc hardware (monomeserial to duplex for example) by remapping the incoming data easily to the standard methods contained.

I simply wasn’t sure how big the interest would be in OSC and Renoise. So I kept the default impl very very basic and easy, also hoping that we get some help to finalize, extend from the community.

Also it felt wrong top copy and paste all we got in the MIDI mapping to OSC.

Finally, you can do nearly everything with the “evaluate” message, so we should encourage people to use it. Osc is not easy, scripting is not. They pair up quite nicely then ![;)](https://forum.renoise.com/uploads/default/original/2X/c/cc6810a6a8ecbfcb592ca3fd490fb59d90ec9739.gif)

---

<div class="post-metadata">

**Author:** ![samBiotic](https://forum.renoise.com/user_avatar/forum.renoise.com/sambiotic/32/1549_2.png) [@samBiotic](https://forum.renoise.com/u/samBiotic)\
**Post date:** [July 23, 2010, 11:34am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/36 "2010-07-23T11:34:29Z")

</div>

> [@taktik](#):
>
> Great!
> 
> I simply wasn’t sure how big the interest would be in OSC and Renoise. So I kept the default impl very very basic and easy, also hoping that we get some help to finalize, extend from the community.
> 
> Also it felt wrong top copy and paste all we got in the MIDI mapping to OSC.
> 
> Finally, you can do nearly everything with the “evaluate” message, so we should encourage people to use it. Osc is not easy, scripting is not. They pair up quite nicely then ![;)](https://forum.renoise.com/uploads/default/original/2X/c/cc6810a6a8ecbfcb592ca3fd490fb59d90ec9739.gif)

Could you provide an example of creating another osc method from a received osc evaluate string?

[edit] scrap that! I have it working now. this is not obviously not needed.

---

<div class="post-metadata">

**Author:** ![samBiotic](https://forum.renoise.com/user_avatar/forum.renoise.com/sambiotic/32/1549_2.png) [@samBiotic](https://forum.renoise.com/u/samBiotic)\
**Post date:** [July 23, 2010, 12:44pm UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/37 "2010-07-23T12:44:14Z")

</div>

Here is a little MaxMSP 5 patch demonstrating sending an evaluate message to control bpm.  
[luabox]  
{  
“patcher” : {  
“fileversion” : 1,  
“rect” : [12.0, 78.0, 318.0, 159.0],  
“bglocked” : 0,  
“defrect” : [12.0, 78.0, 318.0, 159.0],  
“openrect” : [0.0, 0.0, 0.0, 0.0],  
“openinpresentation” : 0,  
“default\_fontsize” : 12.0,  
“default\_fontface” : 0,  
“default\_fontname” : “Arial”,  
“gridonopen” : 0,  
“gridsize” : [15.0, 15.0],  
“gridsnaponopen” : 0,  
“toolbarvisible” : 1,  
“boxanimatetime” : 200,  
“imprint” : 0,  
“enablehscroll” : 1,  
“enablevscroll” : 1,  
“devicewidth” : 0.0,  
“boxes” : [ {  
“box” : {  
“maxclass” : “flonum”,  
“numinlets” : 1,  
“fontsize” : 12.0,  
“numoutlets” : 2,  
“outlettype” : [“float”, “bang”],  
“patching\_rect” : [15.0, 15.0, 50.0, 20.0],  
“id” : “obj-3”,  
“fontname” : “Arial”  
}

}  
, {  
“box” : {  
“maxclass” : “newobj”,  
“text” : “print”,  
“numinlets” : 1,  
“fontsize” : 12.0,  
“numoutlets” : 0,  
“patching\_rect” : [165.0, 105.0, 34.0, 20.0],  
“id” : “obj-52”,  
“fontname” : “Arial”  
}

}  
, {  
“box” : {  
“maxclass” : “newobj”,  
“text” : “prepend /renoise/evaluate”,  
“numinlets” : 1,  
“fontsize” : 12.0,  
“numoutlets” : 1,  
“outlettype” : [""],  
“patching\_rect” : [15.0, 75.0, 149.0, 20.0],  
“id” : “obj-15”,  
“fontname” : “Arial”  
}

}  
, {  
“box” : {  
“maxclass” : “newobj”,  
“text” : “sprintf symout renoise.song().transport.bpm = %f”,  
“numinlets” : 1,  
“fontsize” : 12.0,  
“numoutlets” : 1,  
“outlettype” : [""],  
“patching\_rect” : [15.0, 45.0, 270.0, 20.0],  
“id” : “obj-10”,  
“fontname” : “Arial”  
}

}  
, {  
“box” : {  
“maxclass” : “newobj”,  
“text” : “udpsend localhost 8000”,  
“numinlets” : 1,  
“fontsize” : 12.0,  
“numoutlets” : 0,  
“patching\_rect” : [15.0, 105.0, 137.0, 20.0],  
“id” : “obj-1”,  
“fontname” : “Arial”  
}

}  
],  
“lines” : [ {  
“patchline” : {  
“source” : [“obj-3”, 0],  
“destination” : [“obj-10”, 0],  
“hidden” : 0,  
“midpoints” : []  
}

}  
, {  
“patchline” : {  
“source” : [“obj-10”, 0],  
“destination” : [“obj-15”, 0],  
“hidden” : 0,  
“midpoints” : []  
}

}  
, {  
“patchline” : {  
“source” : [“obj-15”, 0],  
“destination” : [“obj-1”, 0],  
“hidden” : 0,  
“midpoints” : []  
}

}  
, {  
“patchline” : {  
“source” : [“obj-15”, 0],  
“destination” : [“obj-52”, 0],  
“hidden” : 0,  
“midpoints” : []  
}

}  
]  
}

}

[/luabox]

There is a 30 day demo or a free runtime at [http://cycling74.com/downloads/](http://cycling74.com/downloads/)  
copy the text in the expandable box and hit ‘file-\>new from clipboard’

---

<div class="post-metadata">

**Author:** ![Moonriders](https://forum.renoise.com/user_avatar/forum.renoise.com/moonriders/32/1345_2.png) [@Moonriders](https://forum.renoise.com/u/Moonriders)\
**Post date:** [July 23, 2010, 7:35pm UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/38 "2010-07-23T19:35:07Z")

</div>

Examples of methods for sending messages from renoise as a client to renoise as a server would be lush. ![:)](https://files.renoise.com/forum/emoticons/default/smile.gif)  
Then we could have a 1:1 (terminal to terminal) on what is accepted between instances of renoise?  
Is this right? could we send messages from the Terminal?

In the future I would really like to see the terminal more verbose with rejected messages, or what it’s interpreting before being turned to binary.

Osc examples for addressing tracks and dsp-devices, meta-devices and the pattern matrix could more than likely really kick start my understanding & usage. From what I’ve noticed this stuff isn’t directly accessible yet. (unless it’s somehow called with midi maybe?)

Oh yeah, and what has everyone been using to test the Osc communication with Renoise?

---

<div class="post-metadata">

**Author:** ![samBiotic](https://forum.renoise.com/user_avatar/forum.renoise.com/sambiotic/32/1549_2.png) [@samBiotic](https://forum.renoise.com/u/samBiotic)\
**Post date:** [July 24, 2010, 4:37am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/39 "2010-07-24T04:37:33Z")

</div>

> [@Moonriders](#):
>
> Examples of methods for sending messages from renoise as a client to renoise as a server would be lush. ![:)](https://files.renoise.com/forum/emoticons/default/smile.gif)  
> Then we could have a 1:1 (terminal to terminal) on what is accepted between instances of renoise?  
> Is this right? could we send messages from the Terminal?[http://www.renoise.com/board/index.php?app=forums&module=post&section=post&do=reply\_post&f=50&t=26042&qpid=205994](http://www.renoise.com/board/index.php?app=forums&module=post&section=post&do=reply_post&f=50&t=26042&qpid=205994)
> 
> In the future I would really like to see the terminal more verbose with rejected messages, or what it’s interpreting before being turned to binary.
> 
> Osc examples for addressing tracks and dsp-devices, meta-devices and the pattern matrix could more than likely really kick start my understanding & usage. From what I’ve noticed this stuff isn’t directly accessible yet. (unless it’s somehow called with midi maybe?)
> 
> Oh yeah, and what has everyone been using to test the Osc communication with Renoise?

+1 on a more verbose terminal

I’ve been trying to send messages like these via evaluate to address tracks but some seem to expect a renoise.DeviceParameter object whatever that is.

```lua
/renoise/evaluate 'renoise.song().tracks[1].postfx_volume = 1.000000'  
*** expression failed: 'property 'postfx_volume' is read only'  

```

Also, I’ve updated my little MaxMSP 5 patch to become a port of Conner\_Bw’s php example  
[luabox]  
{  
“patcher” : {  
“fileversion” : 1,  
“rect” : [12.0, 78.0, 318.0, 159.0],  
“bglocked” : 0,  
“defrect” : [12.0, 78.0, 318.0, 159.0],  
“openrect” : [0.0, 0.0, 0.0, 0.0],  
“openinpresentation” : 0,  
“default\_fontsize” : 12.0,  
“default\_fontface” : 0,  
“default\_fontname” : “Arial”,  
“gridonopen” : 0,  
“gridsize” : [15.0, 15.0],  
“gridsnaponopen” : 0,  
“toolbarvisible” : 1,  
“boxanimatetime” : 200,  
“imprint” : 0,  
“enablehscroll” : 1,  
“enablevscroll” : 1,  
“devicewidth” : 0.0,  
“boxes” : [ {  
“box” : {  
“maxclass” : “flonum”,  
“numinlets” : 1,  
“fontsize” : 12.0,  
“numoutlets” : 2,  
“outlettype” : [“float”, “bang”],  
“patching\_rect” : [15.0, 15.0, 50.0, 20.0],  
“id” : “obj-3”,  
“fontname” : “Arial”  
}

}  
, {  
“box” : {  
“maxclass” : “newobj”,  
“text” : “print”,  
“numinlets” : 1,  
“fontsize” : 12.0,  
“numoutlets” : 0,  
“patching\_rect” : [165.0, 105.0, 34.0, 20.0],  
“id” : “obj-52”,  
“fontname” : “Arial”  
}

}  
, {  
“box” : {  
“maxclass” : “newobj”,  
“text” : “prepend /renoise/evaluate”,  
“numinlets” : 1,  
“fontsize” : 12.0,  
“numoutlets” : 1,  
“outlettype” : [“”],  
“patching\_rect” : [15.0, 75.0, 149.0, 20.0],  
“id” : “obj-15”,  
“fontname” : “Arial”  
}

}  
, {  
“box” : {  
“maxclass” : “newobj”,  
“text” : “sprintf symout renoise.song().transport.bpm = %f”,  
“numinlets” : 1,  
“fontsize” : 12.0,  
“numoutlets” : 1,  
“outlettype” : [“”],  
“patching\_rect” : [15.0, 45.0, 270.0, 20.0],  
“id” : “obj-10”,  
“fontname” : “Arial”  
}

}  
, {  
“box” : {  
“maxclass” : “newobj”,  
“text” : “udpsend localhost 8000”,  
“numinlets” : 1,  
“fontsize” : 12.0,  
“numoutlets” : 0,  
“patching\_rect” : [15.0, 105.0, 137.0, 20.0],  
“id” : “obj-1”,  
“fontname” : “Arial”  
}

}  
],  
“lines” : [ {  
“patchline” : {  
“source” : [“obj-3”, 0],  
“destination” : [“obj-10”, 0],  
“hidden” : 0,  
“midpoints” :   
}

}  
, {  
“patchline” : {  
“source” : [“obj-10”, 0],  
“destination” : [“obj-15”, 0],  
“hidden” : 0,  
“midpoints” :   
}

}  
, {  
“patchline” : {  
“source” : [“obj-15”, 0],  
“destination” : [“obj-1”, 0],  
“hidden” : 0,  
“midpoints” :   
}

}  
, {  
“patchline” : {  
“source” : [“obj-15”, 0],  
“destination” : [“obj-52”, 0],  
“hidden” : 0,  
“midpoints” :   
}

}  
]  
}

}  
[/luabox]

1. Set the song bpm to 500 /renoise/evaluate ‘renoise.song().transport.bpm = 500.000000’
2. Start the transport /renoise/transport/start
3. Wait 5 seconds
4. Stop the song /renoise/transport/stop

Is there a computational delay when using evaluate?  
I have to add 20ms between step 1) & 2)

---

<div class="post-metadata">

**Author:** ![vvoois](https://forum.renoise.com/letter_avatar/vvoois/32/6_449c533f586939b6e5f246632a46421f.png) [@vvoois](https://forum.renoise.com/u/vvoois)\
**Post date:** [July 24, 2010, 8:38am UTC](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189/40 "2010-07-24T08:38:44Z")

</div>

> [@samBiotic](#):
>
> I’ve been trying to send messages like these via evaluate to address tracks but some seem to expect a renoise.DeviceParameter object whatever that is.
> 
> ```lua
> /renoise/evaluate 'renoise.song().tracks[1].postfx_volume = 1.000000' *** expression failed: 'property 'postfx_volume' is read only'  
> 
> ```

That seems like a documentation error here or a function problem.  
A read-only item is mostly described so in the docs.

Edit:btw, if you are not sure about how to submit stuff, i personally forget this quite a lot of times myself try this in the terminal command-line:  
oprint(renoise.song().tracks[1].postfx\_volume)

You then get a list of what is behind it:

```lua
  
>>> oprint(renoise.song().tracks[1].postfx_volume)  
class: DeviceParameter  
 properties:  
 is_automated  
 is_automated_observable  
 name  
 polarity  
 show_in_mixer  
 show_in_mixer_observable  
 value  
 value_default  
 value_max  
 value_min  
 value_observable  
 value_quantum  
 value_string  
 value_string_observable  
 methods:  
 __STRICT  
 record_value  
  

```

reported:  
[http://www.renoise.c…showtopic=26197](https://forum.renoise.com/t/api-inconsistencies-in-the-documentation/29293)

[Previous page](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189.md?page=1)

[Next page](https://forum.renoise.com/t/osc-discussion-how-where-what-to-use-osc/29189.md?page=3)
