danomatika / PdParty

Run your Pure Data patches on iOS with native GUIs emulated
http://danomatika.com/code/pdparty
Other
171 stars 16 forks source link

pdparty stops sending midi out when screen is turned off #108

Open offthesky opened 7 months ago

offthesky commented 7 months ago

im working with a patch that sends midi to various apps however when i turn the screen off to save battery, the midi seems to stop flowing out of pdparty. i have set the app to run in background and have audio dsp on in my patch. ive kept the disable lock setting off. didnt see anything else in the user guide pointing to a trick or technique to get this to work. hopefully im just doing sonething wrong here…

replicated this behavior in iphone 5s, 6s and X

danomatika commented 7 months ago

The screen has to stay on or the system will stop certain things like this, even if the app is alive in the background. This is what the display lock setting is for.If other apps can send MIDI while the display is off, that would be new to me, however I have not checked the status on this for some time.enohp ym morf tnes-----------Dan Wilcoxdanomatika.comrobotcowboy.comOn Jan 26, 2024, at 7:21 AM, jason corder @.***> wrote: im working with a patch that sends midi to various apps however when i turn the screen off to save battery, the midi seems to stop flowing out of pdparty. i have set the app to run in background and have audio dsp on in my patch. ive kept the disable lock setting off. didnt see anything else in the user guide pointing to a trick or technique to get this to work. hopefully im just doing sonething wrong here…

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

offthesky commented 7 months ago

The screen has to stay on or the system will stop certain things like this, even if the app is alive in the background. This is what the display lock setting is for.If other apps can send MIDI while the display is off, that would be new to me, however I have not checked the status on this for some tim

just tested this with drambo, sunvox, mirack, apematrix, and aum - these can definitely send midi over to other apps via the virtual ports, when the screen is off.

offthesky commented 7 months ago

not sure if this helps at all.. the vid shows the midi out from mirack > sunvox, then midi out from sunvox to an auv3 in apematrix, then drambo sending midi over to control the volume of a sine wav in pdparty:

https://github.com/danomatika/PdParty/assets/95579081/e4d3f13d-9b3a-4a1f-a985-4e2ca3228542

danomatika commented 7 months ago

I have always performed with the screen on as game controls etc do not work when off. I have never tested MIDI in this context and there is no special handling that should be disabled, unless something additionally needs to be turned on. I dunno.enohp ym morf tnes-----------Dan Wilcoxdanomatika.comrobotcowboy.comOn Jan 26, 2024, at 5:19 PM, jason corder @.***> wrote: also i notice that pdparty seems to receive midi ok via the virtual ports when the screen is off. i sent some cc data from drambo to pdparty to control the volume of a sine wav and it worked ok

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

offthesky commented 7 months ago

when using these devices for remote or public installations, solely controlling the apps with midi controllers + sensors (pdparty as the midi brains between those controllers and the apps like drambo, apematrix), leaving the screen off seems the best solution for battery life/heat.

during live performances, i don't use the screen at all either so flipping the phone over, or covering the device w a piece of lite metal for heat diffusion, is still certainly doable. but since i notice several of the devices run a bit hotter with their screens on(even w brightness all the way down), would be great to have that option w pdparty for it to still transmit midi out w the screen off, if it's even possible. regardless, thank you for hearing me out on this one!