diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rwxr-xr-x | sound/snd.py | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,4 @@ Connect-*.xo *.pyc +*.kpf .*.sw[op] -*.kpf
\ No newline at end of file diff --git a/sound/snd.py b/sound/snd.py index 3e94753..28416cf 100755 --- a/sound/snd.py +++ b/sound/snd.py @@ -4,7 +4,6 @@ # define breakpoints function import os -import csnd orchlines = [] scorelines = [] @@ -12,6 +11,8 @@ instrlist = [] wavnum = [10] fnum = [100] +temp_path = env.get_profile_path() + '/pippy' + def quit(self): perf.Stop() @@ -90,7 +91,7 @@ def playWave(sound='horse', pitch=1, amplitude=1, loop=False, duration=1, startt scorelines.append("i%ld %f %f %s\n" % (wavnum[0], float(starttime), float(duration), str(env))) def audioOut(): - path = os.path.dirname(os.path.abspath(__file__)) + path = temp_path csd = open(path + "/temp.csd", "w") csd.write("<CsoundSynthesizer>\n\n") csd.write("<CsOptions>\n") |