<div dir="ltr">Hi Mario<div><br></div><div>(Caveat: I'm the developer of MobMuPlat)</div><div><br></div><div>What does "send the file, by Bluetooth through the serial port" mean? Bluetooth is a wireless protocol, serial port usually implies the hardware port on the device. Do you mean a separate piece of hardware that is connected to the phone/tablet? Or sending data via a socket to another software process/app on the device that handles Bluetooth communication?</div><div><br></div><div>If the former: Serial output (to another device) is not supported on mobile OSes with [comport]. And it's not really feasible on iOS (which controls access, and only allows some standard protocols: MIDI, USB audio, etc) if you want to put it on the app store. Adding serial i/o on MobMuPlat for Android is on my eventual to-do list (e.g. to interact with an Arduino or other board), but it will have to be written at the native app level, not using PD objects. (e.g. you'd send serial data to a [send toSystem] within the PD patch). </div><div><br></div><div>Regarding packaging MobMuPlat/PdParty as a standalone application: it is technologically straightforward since they are open source , you'd have to hack a few lines and re-build the app and sign it. The license for MobMuPlat allows it, I'm assuming that PdParty/PdDroidParty does as well but you'd have to check that. See my notes at the very last post here: <a href="https://cycling74.com/forums/topic/running-max-map-on-a-tablet/">https://cycling74.com/forums/topic/running-max-map-on-a-tablet/</a>. </div><div><br></div><div>Dan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 16, 2015 at 5:09 AM, Mario Mey <span dir="ltr"><<a href="mailto:mariomey@gmail.com" target="_blank">mariomey@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi, there. I would appreciate so much your help for me to decide if
    I will accept a job and how to go on with it.<br>
    <br>
    I have a customer who needs an Android/iOS app that they will give
    to his customer who buys them a "device" (this customer of mine is
    not a multimillonaire company. It's far away from being like that)<br>
    <br>
    The app would be something like the mockup.png attached and will do
    something like this:<br>
    <br>
    First instance:<br>
    <br>
    - It opens a wav/mp3 (max: 1 hour).<br>
    - You will see the soundwave and will can make zoom in/out to be
    precise (if with gestures, much better).<br>
    - You will can play/pause/stop the audio from any place in the
    timeline.<br>
    - You set up to 256 markers/labels in the timeline.<br>
    - When you click/tap a marker/label, a new window appears to modify
    its information (time/color/type/etc).<br>
    - It will convert each mark to a 6 bytes group.<br>
    - It save/load files with all this markers (in binary).<br>
    - It will send this file, by Bluetooth through the serial port, to
    the "device".<br>
    <br>
    Second instance:<br>
    <br>
    - The app will start playing the wav/mp3 file.<br>
    - It will send (by Bluetooth) the "start" command to the device.<br>
    - (The device starts its timer and already has the sequence file).<br>
    - For a perfect syncrhonizing, every second, the app will send the
    actual time (by Bluetooth).<br>
    <br>
    I have several options to do this. I ask you if they are possibles
    and how difficult are they... and the final decision owns to the
    customer. My skills are: I know PureData and Python. So:<br>
    <br>
    <h3>Using MobMuPlat (<a href="http://mobmuplat.com/" target="_blank">http://mobmuplat.com/</a>)<br>
    </h3>
    I know it is not a framework. I would make a PureData patch and the
    MobMuPlat interface. My customer would tell their customers to
    download MobMuPlat (Android:
    <a href="https://play.google.com/store/apps/details?id=com.iglesiaintermedia.mobmuplat" target="_blank">https://play.google.com/store/apps/details?id=com.iglesiaintermedia.mobmuplat</a>,
    iOS: <a href="https://itunes.apple.com/ar/app/mobmuplat/id597679399?mt=8" target="_blank">https://itunes.apple.com/ar/app/mobmuplat/id597679399?mt=8</a>) and
    give them the file that I build.<br>
    <br>
    Pros:<br>
    - It's the easiest-way.<br>
    - MobMuPlat is already in Google Market and iTunes.<br>
    <br>
    Contras:<br>
    - It is not a standalone app, as they would like.<br>
    <br>
    Doubt (<b>and it's important</b>):<br>
    - Could libpd send messages to serial port? There's [comport], but
    it is an external. Is it already compiled for Android/iOS?<br>
    <br>
    <h3>Using Kivy (<a href="http://kivy.org" target="_blank">http://kivy.org</a>)<br>
    </h3>
    <p>This is a more difficult option. It uses Python to make the app.
      And there's Kivy/audiostream (<a href="https://github.com/kivy/audiostream" target="_blank">https://github.com/kivy/audiostream</a>)
      that gives the phone a access to the speaker and mic. In its
      example/ folder, there are puredata examples. Obviously, using
      libpd.<br>
    </p>
    <p>Pros:<br>
      - I would also make the patch in PureData.<br>
      - It would make a standalone app (with own name, splash screen,
      etc).<br>
      - It would works in Android, iOS, Windows, Linux, OSX.</p>
    <p>Contras:<br>
      - I've never used Kivy.<br>
      - I've never used any framework.<br>
      - I've never used libpd.<br>
      - I should build almost from scratch an application.<br>
      - I should compile for most Android and iOS versions...<br>
      - The difficulty of uploading an app to Google Market and iTunes.<br>
    </p>
    <h3>Using OpenFrameWorks (<a href="http://openframeworks.cc/" target="_blank">http://openframeworks.cc/</a>)<br>
    </h3>
    <p>Well... I don't know coding C++. I know that this would be the
      best framework to do something like this... but it's furthest away
      from me. There's ofxPd (<a href="https://github.com/danomatika/ofxPd" target="_blank">https://github.com/danomatika/ofxPd</a>).<br>
    </p>
    <h3>Using PdDroidParty and PdParty</h3>
    <p>Now, I'm seeing their webpages/githubs. I didn't think in this
      possibility... Could it become one more?<br>
    </p>
    <p>Pros:<br>
      - Another easiest way.<br>
      - It could compile a standalone app (???)<br>
    </p>
    <p>Contras:<br>
      - As other frameworks: What about compiling for most Android and
      iOS versions...?<br>
      - Uploading to markets...?<br>
    </p>
    <p><br>
    </p>
    <hr size="2" width="100%">
    <h2>Thank you very much!</h2><span class="HOEnZb"><font color="#888888">
    <p><br>
      Mario Mey.<br>
    </p>
  </font></span></div>

<br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>