omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Sounds - library of existing or importing new

    Pythonista
    3
    5
    3909
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cjchallis
      cjchallis last edited by

      I have looked through documentation and websites but cannot find a comprehensive list of sounds available through the sound module or how to import custom sounds. I found the list of sounds available in omz Editorial, and it seems these are available in Pythonista as well. The Drum bonus example makes it seem like there are others.

      In multiple places the documentation references a '+' option for adding sounds and images, but this does not appear for me.

      Pythonista Version 1.5
      iPhone 5S with iOS 7.1.2

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        The + button didn't fit on the small iPhone screen, so this option is "hidden" in the copy/paste menu there. Just tap and hold the text cursor until the menu appears, and select "Insert..." (this only appears if no text is selected).

        1 Reply Last reply Reply Quote 0
        • omz
          omz last edited by

          As for importing sounds – there isn't an official way to do this right now, but it's possible to simply put sound files (in a supported format) into your script's folder and then call something like sound.play_effect('my_effect.caf') (you need to include the file extension, otherwise it'll look for built-in sound effects).

          To get the sound file there, you could write a script that downloads it from the web, or you could transfer files from your Mac/PC using something like DiskAid.

          1 Reply Last reply Reply Quote 0
          • ccc
            ccc last edited by

            Example script that downloads and plays .mp3 files from the web: https://github.com/cclauss/Pythonista_ui/blob/master/warp_speed.py

            1 Reply Last reply Reply Quote 0
            • cjchallis
              cjchallis last edited by

              Great, thanks so much! These cover exactly what I was looking for.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB Forums | Contributors