Topic: A way to control Pianoteq remotely from iPhone or iPad

I got a Raspberry Pi 4 last week and I've been investigating ways to control it remotely.  I'm not sure how many people are aware of how controllable Pianoteq is purely from midi messages.  You can use midi to control almost everything that you can control from Pianoteq's user interface, plus more, I think.

The solution I came up with runs on iOS and uses two different apps that are a big part of the iOS music world.  The orange user interface screens with pads, knobs, and sliders (and the coding behind them that generates midi to send to Pianoteq) are done with a midi scripting app called Mozaic.  All the different little Mozaic instances are hosted in an app called AUM, which also routes the midi they generate over the proper connection to get to the computer running Pianoteq.

Here's a video I made showing
what it looks like and sort of how it works:  https://youtu.be/ZULA85NPMbQ

It takes a little work to set up.  I think the best way would be to create custom presets for anything that you'll want to manage remotely.  This would include the instrument presets, of course.  But Pianoteq also lets you create separate preset files for (1) velocity curves, (2) equalizer settings, (3) reverb settings, (4) effect settings, either separately for each of the the three banks, or all together in a single file, and (5) tuning settings.  There might even be one set I'm forgetting.

Individual parameters can be controlled remotely via sliders and knobs, but it's tedious to set those up.  If you have a particular parameter that you want to modify remotely though, by all means you'd want to make sure to set that up.

To use this solution you'd need to do these things:

(1) have an iPhone or iPad,
(2) buy the apps Mozaic ($9) and AUM ($20)
(3) get your Pianoteq computer configured so that it can receive midi from the iOS device, this probably means (1) usb-cable between the devices, (2) rtpmidi (which is what I used), or (3) bluetooth midi (it's different than regular bluetooth, which is bluetooth audio).
(4) get a copy of the AUM session file that I'm using in the video,
(5) modify Pianoteq midimappings presets so Pianoteq will be able to respond correctly to the midi it receives remotely.

It's kind of a tedious process to get set up. If someone's interested in helping I think we could get to a solution made that would give users the ability to choose any of the built-in Pianoteq presets without having to go through the process of setting up the midimapping file in Pianoteq.    Swapping built-in presets out for your own custom presets would then be relatively easy, something that could be done by someone who's not especially techy.

Anyway, it was fun to build this as a kind of "proof of concept" solution.  I'd be happy to help if anyone else wants to try and use it.  There's a site where I can post the AUM session file (patchstorage.com), and maybe it would also make sense to post the code up at github.  (The code exists in the AUM session file and also in separate Mozaic project files, but it's saved as part of binary files, not easily accessible as text, which makes programming, especially version control, not so pleasant.  But there's not much code needed, the Mozaic app takes care of most everything, an acceptable tradeoff.

Last edited by hesitz (02-05-2020 03:20)

Re: A way to control Pianoteq remotely from iPhone or iPad

There is another option:
https://liine.net/en/products/lemur/

Re: A way to control Pianoteq remotely from iPhone or iPad

scherbakov.al wrote:

There is another option:
https://liine.net/en/products/lemur/

Yes, there are a few other apps that would work for this.  This is more about an overall approach than any specific tools.  I ended up with Mozaic because I know it well, and because it's pretty simple.

Lemur, TouchOSC, Midi Designer, Sidecar Midi Controller are four other ones that I think would work on iOS.  I think all of them would work by themselves, wouldn't need to be paired with AUM.  And Lemur, at least, may be an option for Android devices.  I'm not sure what other options there might be on Android.

I'm still figuring this out.  If people using these tools were to standardize the midicc values that are getting sent, then we could create a single midimapping preset file that would work out of the box for any tool that sends the midi values we'd agreed on.  E.g.,

midi cc  30 - 44 ---  Use to set different instrument presets
midi cc  50 - 59 --   . . . reverb presets
midi cc 80 - 89  --  . . .  velocity curve presets
midi cc 100 - 104  --   . . .  equalizer presets
midi cc 105 - 109  --  . . .  effect bank presets
midi cc 110 - 114  -- . . .  tuning presets

I'm just throwing some values out there, they aren't what I have set up, but they could be.  There are a couple values reserved for use by Pteq itself that can't be mapped.  The "standard" midimapping file would be linked up to built-in presets, so it would work for everyone.

This would allow new users to get started with a pre-made midimapping preset file, the one you otherwise have to create from the hard-to-use 'Midi' tab of the Pianoteq's options window.  Creating that midimapping preset file is a time-consuming and tedious part of getting this setup. 

Once a user got started using the built-in preset midimappings file (which would be useful, probably, on its own), it would be pretty easy for them to modify it to load their own custom presets.  Just go to the editor on 'Midi' tab of 'Options' page and choose their custom preset in place of one of the built-ins, (then also change the text for the associated button on the remote control app).

Last edited by hesitz (02-05-2020 19:14)

Re: A way to control Pianoteq remotely from iPhone or iPad

scherbakov.al wrote:

There is another option:
https://liine.net/en/products/lemur/

I was just looking for more options.  I think "Midi Pad 2" on iOS might be really good.  Could have 24 pads/buttons on the same screen, might be "easier" to set up than Mozaic (i.e., no coding, just setting options in gui, and would work by itself, no requirement for AUM) and it costs only $2.99.  I may investigate this one more:

https://apps.apple.com/us/app/midipad-2...tform=ipad

EDIT:  So, I did test with MidiPad 2 and quickly got it to work changing a Pianoteq preset remotely.  And the user interface is perfect, simple and you can have basically as many pads/buttons on a page as you want, label them however you want, have as many different pages of buttons as you want, and get the buttons to change whatever pteq presets you want.

But for now I can't see how you can transfer your setup to another user, or even to another ipad/iphone.  It seems to just be a single setup that you have to create yourself on your device.  It still could be a good solution for many people.  They would need this app, plus they'd need to get a midi connection (usb, rtp, or bluetooth) between their ios device and the pianoteq computer.

I'll investigate more to see if there's any way to transfer setups to other users with Midi Pad 2.

Last edited by hesitz (02-05-2020 18:59)

Re: A way to control Pianoteq remotely from iPhone or iPad

Another option for the controller app is Sonic Logic:

https://www.soniclogicapps.com/sonic-logic-1
https://apps.apple.com/us/app/sonic-log...mpt=uo%3D4

pluses:
cost is $10,
would work by itself, no need for another app
good user interface
no need for code, can just set properties of buttons
can share setups with other users (unlike Midi Pad 2)

minuses:
works only on iPad, not iPhone


For most people I think Midi Pad 2, at $3, would be a good thing to try first. 

The main thing will be (1) getting the computer configured to connect via rtp or bluetooth midi with the iPad/iPhone, and (2) learning how the Pianoteq app allows you to link midi to presets, and learning more about all the different kinds of presets there are (not just instruments!).  Once you've got (1) and (2) it would take five or ten minutes to set up a bunch of preset buttons on MidiPad 2.

If anyone wants to get started with MidiPad 2 I'll try to tutor you through it.
https://midipadapp.com/

Last edited by hesitz (11-08-2020 21:28)

Re: A way to control Pianoteq remotely from iPhone or iPad

scherbakov.al wrote:

There is another option:
https://liine.net/en/products/lemur/

I've bought lemur some months ago to control Reaper with the iPad. I found a template that works quite well - but this tool is definitely too complicated for me to create something from scratch. Could you recommend a template that already works without much adjusting?

Re: A way to control Pianoteq remotely from iPhone or iPad

I would be great full if you could provide a tutorial for MidiPad. I have successfully installed the rtp on my laptop, installed MidiPad on my iPad and started to setup Pianoteq MIDI program change criteria including channel setting etc. - but it does not work.
Pianoter seems unable to receive any MIDI signal from the iPad.......




hesitz wrote:

Another option for the controller app is Sonic Logic:

https://www.soniclogicapps.com/sonic-logic-1
https://apps.apple.com/us/app/sonic-log...mpt=uo%3D4

pluses:
cost is $10,
would work by itself, no need for another app
good user interface
no need for code, can just set properties of buttons
can share setups with other users (unlike Midi Pad 2)

minuses:
works only on iPad, not iPhone


For most people I think Midi Pad 2, at $3, would be a good thing to try first. 

The main thing will be (1) getting the computer configured to connect via rtp or bluetooth midi with the iPad/iPhone, and (2) learning how the Pianoteq app allows you to link midi to presets, and learning more about all the different kinds of presets there are (not just instruments!).  Once you've got (1) and (2) it would take five or ten minutes to set up a bunch of preset buttons on Midi Map 2.

If anyone wants to get started with Midi Map 2 I'll try to tutor you through it.
https://midipadapp.com/

Re: A way to control Pianoteq remotely from iPhone or iPad

tomaziu wrote:

I would be great full if you could provide a tutorial for MidiPad. I have successfully installed the rtp on my laptop, installed MidiPad on my iPad and started to setup Pianoteq MIDI program change criteria including channel setting etc. - but it does not work.
Pianoter seems unable to receive any MIDI signal from the iPad.......

There is one more step required after getting rptmidi running on the computer.  There may be some option with rtpmidi command line to initiate and create the connection to ipad, but without that it simply gets rtpmidi up and running on the computer.  That is, it gets up and running but does not create connections.  Likewise, without more your iPad will not automatically create connections to rtpmidi devices on the network.

So far I've initiated the connection using a free utility on ipad called "Midi Network".  Very simply app, you start it up and if rtpmidi is good on the computer, you will see your computer listed as "found on the network", which you then need to touch to create connection.  Then it will move to the 'Connected' list, and the rtpmidi computer should then receive midi from Midi Pad, or any other app that's CoreMIDI compatible. 

The Midi Network app I'm talking about is this one:  https://apps.apple.com/us/app/midi-network/id1102428729

Last edited by hesitz (31-05-2020 19:50)

Re: A way to control Pianoteq remotely from iPhone or iPad

I got it! It works pretty well now! I control Pianoteq now from my iPad!
Thanks to your good instructions!

hesitz wrote:
tomaziu wrote:

I would be great full if you could provide a tutorial for MidiPad. I have successfully installed the rtp on my laptop, installed MidiPad on my iPad and started to setup Pianoteq MIDI program change criteria including channel setting etc. - but it does not work.
Pianoter seems unable to receive any MIDI signal from the iPad.......

There is one more step required after getting rptmidi running on the computer.  There may be some option with rtpmidi command line to initiate and create the connection to ipad, but without that it simply gets rtpmidi up and running on the computer.  That is, it gets up and running but does not create connections.  Likewise, without more your iPad will not automatically create connections to rtpmidi devices on the network.

So far I've initiated the connection using a free utility on ipad called "Midi Network".  Very simply app, you start it up and if rtpmidi is good on the computer, you will see your computer listed as "found on the network", which you then need to touch to create connection.  Then it will move to the 'Connected' list, and the rtpmidi computer should then receive midi from Midi Pad, or any other app that's CoreMIDI compatible. 

The Midi Network app I'm talking about is this one:  https://apps.apple.com/us/app/midi-network/id1102428729

Re: A way to control Pianoteq remotely from iPhone or iPad

tomaziu wrote:

I got it! It works pretty well now! I control Pianoteq now from my iPad!
Thanks to your good instructions!

That's great. I'm glad you got it working.

Re: A way to control Pianoteq remotely from iPhone or iPad

Another option if you're running PianoTeq on Windows 10 Pro, which I've just tried, is to use Microsoft's free Remote Desktop app:
https://apps.apple.com/us/app/remote-de...d714464092

It's important to select "Sound - Play on This Device", otherwise the MIDI interface won't be available.

Remove desktop to PianoTeq in full-screen works very well, and works well with a touch interface from an iPad. I suspect it may be less practical on the iPhone.

If you don't have Windows 10 Pro, I'm sure something similar could be achieved by running a VNC Server on your PC (or Mac) and using a VNC client on the iPad.

Reading from the top of this thread, I see the original idea was to control a Raspberry Pi. I do really like the pure MIDI approach - but perhaps my suggestion will still be useful to someone else.

Last edited by davidm_uk (14-11-2020 17:29)