Hi Zyiticens, ive been playing around with remote control protocols for various music devices recently, and thought Id share a template and some instructions on getting remote control over the network running for Zynthian using the new and most excellent version of TouchOSC.
I have a bunch of questions and issues with OSC etc but Ill add these to another thread. Id be very happy to write this up in a wiki page with better formatting of the screenshots etc.
The control template has a bunch of buttons for remote controlling the Zynthian interface, accessing pages, advancing through presets and snapshots, has a keyboard, emulates knob presses, and also provides a basic control page for the premapped ZynaddsubFx synth. Some things dont work properly yet, mostly due to my lack of understanding and will be cleaned up as I learn more.
Its mostly for testing, but shows how a template might also be used to augment performance using Zynthian. Its not meant to replace the GUI, which is very elegant and a testament to the gifted developers that have contributed to the Zynthian project.
Its not very pretty, and ive probably broken every design rule going. Its probably also very easy to break some of the controls ie the preset +/- will keep going up one preset even if it has run out of presets in that bank, and wont go back down the list until it gets back to that number. Many of the buttons just emulate various knob presses and so will only work in the same context as those knob presses. As I learn more about the scripting I will try to have them work globally.
The attached template uses the new version of TouchOsc which currently is a paid app on mobile or has a free to use desktop app on Mac/PC/Linux.
The desktop app does ask you to consider buying a licence to help development.
https://hexler.net/touchosc
The âTouchOSC Templates Makersâ facebook group is also very friendly and helpful, and contributers there as well as the developer himself have given me help with this.
Zynthian Remote Control
Several options exist as outlined in the wiki page, Qmidi, RTPmidi, OSC and TouchOSC bridge.
Touchosc Zynthian Template v1.tosc (14.3 KB)
It will remote control Zynthian over TouchOsc bridge and RTPMidi. RTPmidi requires a further piece of software to initiate the midi session. For windows this daemon works fine (rtpMIDI | Tobias Erichsen), MacOSX can use built in network Midi. (Using Wireless MIDI to Connect Your iPad or iPhone to Your Computer and Hardware Synths)
It works on both wired and wireless network connections, possibly depending on your local configuration. It will also work with a direct midi hardware connection without the RTPMidi or TouchOsc bridge settings as usual midi hardware.
To setup TouchOsc on desktop to talk to Zynthian (use TouchOsc Bridge setup for Ipads, phones etc)
RTPMidi
Setup RTPmidi as per the links above. In TouchOsc, clink the Chain (connections) button on the toolbar, then go to the Midi tab. If RTPmidi is setup correctly, Press Browse you should see the name of your local midi host ie your desktop. Set that as both the send and recieve port.
On the Zynthian itself, RTP-Midi needs to be enabled on the Admin screen or in the Webconf.
Start the TouchOsc app on desktop, load the above attached template. Press the play button to make the template active. Start Zynthian, make a layer with ZynaddsubFX.
If the RTPMidi, Zynthian and network settings are happy it should all just work. The volume fader should control volume and the keyboard should be playing sound from the Zynthian if theres an instrument loaded. On the second tab, you should be able to control Cutoff etc on ZynaddsubFX.
Using RTPMidi there is two way control, ie the volume control on Zynthian should make the Volume fader in TouchOsc go up and down, and vise versa.
TouchOsc Bridge
For mobile devices on wifi (or on desktop app) then these settings will get the template working over the TouchOsc Bridge protocol. The TouchOsc webpage has instructions on how to load a template into the mobile app from the desktop.
First make sure that TouchOsc Midi Bridge is enabled on the Zynthian Admin screen, either via the GUI or the webconf. Make sure the Zynthian is connected to your network via Wifi or ethernet. I havent tried this with a Wifi hotspot connection but I assume that should work too. Ill update when i test this.
In TouchOsc app, go to the Chain (connections) icon on the toolbar.
-Go to the Bridge tab
-Tick Connection 1
-In the host field, press the Browse button.
-âZynthianâ should appear if network settings are right, and it should add the IP address to the Host field.
- Go to the MIDI tab in the same panel. Chain icon (connections)
- Tick Connection 1
- Click Browse next to Send Port.
- Bridge1 should appear, select it.
-Do the same for Receive Port.
Click Done.
Click Play.
The template should now be live and controlling Zynthian. Start Zynthian, make a layer with ZynaddsubFX.
If the TouchOSC Midi Bridge settings and network settings are happy it should all just work. As above the volume fader should control volume and the keyboard should be playing sound from the Zynthian if theres an instrument loaded. On the second tab, you should be able to control Cutoff etc on ZynaddsubFX.
Play some music and remember to record and upload some sound to show the devs youre having fun with this excellent little box.