Docs Control & mapping
oscMapper
Map OSC messages to parameters. Mappings are saved into the project folder by design.
⊙ Control & mapping Hub tab by AlphaMoonbase.berlin
Why use it
A tablet running an OSC controller app, a phone, another machine with its own patch: they all send named OSC addresses, and wiring one to a parameter by hand means an OSC In CHOP, finding the right channel, rescaling it and exporting it onto the parameter.
oscMapper, a simple OSC mapping tool by AlphaMoonbase.berlin, learns the address for you: drop a parameter, move the control, and it is mapped, each mapping with its own range.
Features
- Learn-based OSC mappingDrag parameters onto the mapper, switch on Learn and move a fader or knob to assign it.
- Mapping rangeSet the min/max range a mapped control drives.
- Send values back to the controllerTalkback sends values back out over OSC as they change, so a controller with motorised faders or LEDs can follow TouchDesigner.
- Listen and send per projectA new copy neither listens nor sends until you switch it on, and that choice stays with the project.
How to use it
- Open the oscMapper tab in FNS_Hub. Right-click the tab to configure the tool.
- Switch on Active. A new copy does not listen until you do.
- Set Port to the port your controller sends to. If several tools share that port, narrow OSC Address Scope; on a machine with several network cards, pick the Local Address to listen on.
- Drag the parameters you want to control onto the mapper, switch on Learn and move a control. While Learn is on, the next address that arrives is assigned to every row still waiting, so drop one parameter at a time, or several to put them on one control. Switch Learn off when you are done.
- Set each mapping's min and max. The 0 to 1 the controller sends is spread across that range.
- To edit mappings by hand, Edit DAT opens the table, one row per mapping. Clear deletes every mapping.
- To keep mappings somewhere else, point Mappingtable on the Repositorie page at another table, or press Create to make one.
The tool's settings, such as ports and addresses, persist and follow you
across projects through ConfigRegistry, like
every other tool; the Registry page on the component controls whether it
participates. Two things stay with the project: the mappings, and whether
this project listens and sends at all (Active and Talkback Active).
Sending values back to the controller
A controller with motorised faders or LEDs can follow TouchDesigner, so a value you change on screen shows up on the hardware too.
- Switch on Talkback Active.
- Set Network Address to the controller's IP, or leave it on localhost for an app on the same machine.
- Set the talkback Port to the port the controller listens on. It is normally a different port from the one you receive on.
Each mapped parameter's value is then sent back on its address, scaled to 0 to 1.
Get it
Tick it on the install page and it installs with the rest of your setup and stays up to date.
Download oscMapper.tox Version 3.2.9, the tool on its own. It works in any project, and this copy never updates itself.
Where it appears
- Hub tabposition 100
Parameters
Its Registry page comes from FNS_ConfigRegistry and FNS_HubRegistry.
Custom
| Control | Type / default | What it does |
|---|---|---|
ClearClear |
button | Delete every mapping in the table below. |
LearnLearn |
on / offoff | Listen for the next incoming OSC message and assign it to the parameter you dropped on the UI. Turn it off when you are done assigning. |
Edit DATEdit |
button | Open the mapping table, where each row is one mapping and its min/max range. |
ActiveActive |
on / offoff | Receive OSC. Off closes the listening port and leaves the mappings untouched. |
ProtocolProtocol |
menuMessaging (UDP) | The OSC transport to listen on. Messaging is the ordinary one; multicast receives from a group address, and reliable adds delivery guarantees at the cost of latency. It must match what the sender uses. |
PortPort |
number7000 | The UDP port to receive OSC on. It must match the port the sender transmits to. |
OSC Address ScopeAddscope |
text* | Which OSC addresses to accept, as a pattern. '*' takes everything. Narrow it when several tools share one port. |
Local AddressLocaladdress |
menu, editableempty | Which network interface to listen on. Empty means all of them; set it on a machine with several network cards. |
Talkback ActiveActive2 |
on / offoff | Send values back out over OSC as they change, so a controller with motorised faders or LEDs can follow TouchDesigner. |
Network AddressAddress |
textlocalhost | The host talkback is sent to. 127.0.0.1 stays on this machine; use the controller's IP to reach it over the network. |
Local AddressLocaladdress2 |
menu, editable* | Which network interface talkback is sent from. '*' lets the OS choose. |
PortPort2 |
number7000 | The UDP port talkback is sent to. It must match the port the receiving device listens on, and is normally not the port above. |
Repositorie
| Control | Type / default | What it does |
|---|---|---|
MappingtableMappingtablerepositorie |
operatorempty | The table DAT holding the mappings. Point it at another table to keep mappings somewhere else, in a shared component for instance. |
CreateMappingtablecreateread-only |
button | Create a mapping table and point the parameter above at it. |