I have some Python code which I want to use to start a Sound in the background.
In my code I have
...
import os.path
import subprocess
...
kyma_sound = os.path.expanduser("~/kyma/") + self.args["source"]
# self.args["source"] above is a string containing a .kym filename
subprocess.check_call(["open", kyma_sound])
...
which gets as far as starting Kyma (if not already started) and opening the Sound file without compiling any specific Sound in that file, and does it in a very "visually noisy" way, opening every imaginable Kyma window -- as usual -- and, depending upon which order I do things, puts all the Kyma windows on top of my app, or underneath my app
My end users don't even need the VCS. So, really, all I want to do is load up a specific Sound from a specific Sound file, without opening any windows -- where the specifics of the Sound file and Sound to load are given to my Python code by the user at runtime.
Is there either a Bash command-line or Applescript way of saying "compile this sound from this file" or, perhaps a Kyma Tool way to do the same?