I am using Applescript to test melodies for carillon with the real sounds of bells.
Now, I wish I could play a chord of 2 or 3 notes simultaneously.
So far, this is my best:
do shell script "afplay -t 0.000001 " & (quoted form of (bell1.mp3))
do shell script "afplay -t 0.2 " & (quoted form of (bell2.mp3))
Any idea?
Thank you in advance.
答案 0 :(得分:0)
do shell script
同步工作。你需要告诉第一个电话不要等待:
do shell script "afplay " & (quoted form of bell1.mp3) & "> /dev/null 2>&1 &"
do shell script "afplay " & (quoted form of bell2.mp3)