# Touchosc And Duplex

**URL:** <https://forum.renoise.com/t/touchosc-and-duplex/30361>\
**Category:** Renoise Tool Development\
**Created:** [November 4, 2010, 12:01pm UTC](https://forum.renoise.com/t/touchosc-and-duplex/30361 "2010-11-04T12:01:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fu53b0x](https://forum.renoise.com/user_avatar/forum.renoise.com/fu53b0x/32/1368_2.png) [@fu53b0x](https://forum.renoise.com/u/fu53b0x)\
**Post date:** [November 4, 2010, 12:01pm UTC](https://forum.renoise.com/t/touchosc-and-duplex/30361/1 "2010-11-04T12:01:54Z")

</div>

Hi! I’m new here so please be gentle ![;)](https://files.renoise.com/forum/emoticons/default/wink.gif)

I am very interested in developing some TouchOSC templates for use with Renoise. At the present moment, the ‘simple’ template works directly with Duplex in Renoise 2.6.0. RC3 but only the first page (the others do nothing).

My main question is: how do you link the TouchOSC template items to items in Renoise? For example, /1/fader1 in TouchOSC to map to Track 1 channel volume in Renoise

I am assuming that there is a file somewhere (XML?) to do this and I just cannot find the files where this mapping takes place. (I must be missing something ![:unsure:](https://files.renoise.com/forum/emoticons/default/unsure.gif) )

I am a competent programmer (not in Lua but I am reading the tutorials!) and I just need some pointers to get me started. I’d like to get some of the other basic templates working first then go on to develop my own for live use. I know I can do this using PD and MIDI; I’d just thought it nice to bypass the ‘middle man’ and use OSC directly (AND I want to get into Processing later…)

Cheers!

---

<div class="post-metadata">

**Author:** ![dac514](https://forum.renoise.com/user_avatar/forum.renoise.com/dac514/32/100_2.png) [@dac514](https://forum.renoise.com/u/dac514)\
**Post date:** [November 4, 2010, 12:11pm UTC](https://forum.renoise.com/t/touchosc-and-duplex/30361/2 "2010-11-04T12:11:24Z")

</div>

Hi,

Have a look at the Duplex API documentation:

> **[renoise/xrnx](https://github.com/renoise/xrnx)**
>
> The official Renoise Lua Scripting repository. Contribute to renoise/xrnx development by creating an account on GitHub.

PS: You are posting in the wrong sub-forum. XRNS development is for tools that manipulate Renoise song files, not the API. [Look here instead…](https://forum.renoise.com/c/renoise-tool-development)

---

<div class="post-metadata">

**Author:** ![fu53b0x](https://forum.renoise.com/user_avatar/forum.renoise.com/fu53b0x/32/1368_2.png) [@fu53b0x](https://forum.renoise.com/u/fu53b0x)\
**Post date:** [November 4, 2010, 12:23pm UTC](https://forum.renoise.com/t/touchosc-and-duplex/30361/3 "2010-11-04T12:23:52Z")

</div>

> [@dac514](#):
>
> Hi,
> 
> Have a look at the Duplex API documentation:
> 
> [GitHub - renoise/xrnx: The official Renoise Lua Scripting repository](https://code.google.com/p/xrnx/source/browse/trunk/Tools/com.renoise.Duplex.xrnx/Duplex.API.txt)

Thanks, having a look at that now

> [@](#):
>
> PS: You are posting in the wrong sub-forum. XRNS development is for tools that manipulate Renoise song files, not the API. [Look here instead…](https://forum.renoise.com/c/renoise-tool-development)

D’oh. Sorry - what a muppet! Can you move this to the other sub-forum please?

---

<div class="post-metadata">

**Author:** ![danoise](https://forum.renoise.com/user_avatar/forum.renoise.com/danoise/32/64_2.png) [@danoise](https://forum.renoise.com/u/danoise)\
**Post date:** [November 4, 2010, 12:39pm UTC](https://forum.renoise.com/t/touchosc-and-duplex/30361/4 "2010-11-04T12:39:50Z")

</div>

> [@fu53b0x](#):
>
> At the present moment, the ‘simple’ template works directly with Duplex in Renoise 2.6.0. RC3 but only the first page (the others do nothing)

The last page should contain the Matrix application? But yeah, the pads and crossfader are left unassigned on purpose. The pads are obviously good for triggering notes, but this is not possible ATM. The crossfader is also a work in progress…

> [@fu53b0x](#):
>
> My main question is: how do you link the TouchOSC template items to items in Renoise? For example, /1/fader1 in TouchOSC to map to Track 1 channel volume in Renoise  
> I am assuming that there is a file somewhere (XML?) to do this and I just cannot find the files where this mapping takes place. (I must be missing something ![:unsure:](https://forum.renoise.com/uploads/default/original/3X/8/7/87b9945c7f0bf71c52762d01dfdc74383206b073.gif) )

Duplex is using an abstracted mapping system that enables multiple controls to be mapped in an instant (for example, the Matrix application has only a single mapping for the entire grid). This is radically different from how normal mappings work, so no wonder if expecting to look for something specific and can’t find it.

The mappings are spelled out in the device configurations. So, for TouchOSC it’s the TouchOSC.lua file you want to look in. There, you have a section called ‘mixer’ - which again has a section called mappings. Each mapping corresponds to a named group and index in the TouchOSC.xml control-map.

And yeah, study the Duplex API docs and ControlMap class for more info…

> [@fu53b0x](#):
>
> I know I can do this using PD and MIDI;

You know that using the Renoise API will enable you to query the program directly - something that can’t be done using PD, or any other platform (well, unless you specify custom GlobalMIDI/OSCActions, of course). You simply get the closest possible integration.

---

<div class="post-metadata">

**Author:** ![fu53b0x](https://forum.renoise.com/user_avatar/forum.renoise.com/fu53b0x/32/1368_2.png) [@fu53b0x](https://forum.renoise.com/u/fu53b0x)\
**Post date:** [November 4, 2010, 12:51pm UTC](https://forum.renoise.com/t/touchosc-and-duplex/30361/5 "2010-11-04T12:51:35Z")

</div>

@Danoise: Many thanks for that! Just what I was looking for! (or not as the case maybe ![:huh:](https://files.renoise.com/forum/emoticons/default/huh.gif))

I will let you know how it goes

Cheers!
