外部フレームワーク(mpSoundEngine)を利用してループでサイレンのような音声を鳴らすAppleScriptです。
AppleScript名:mpSoundEngineでループ音声発生(サイレン1) |
— Created 2017-12-14 by Takaaki Naganoya — 2017 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" use framework "mpSoundKit" –https://github.com/matthiasplappert/MPSoundEngine –http://piyocast.com/as/archives/5030 set engine to current application’s MPMonoSoundEngine’s alloc()’s init() engine’s start() repeat with i from 100 to 1000 by 20 repeat with ii from i to 1000 by 20 (engine’s channel()’s setFrequency:ii) delay 0.005 end repeat end repeat engine’s |stop|() |
More from my site
(Visited 37 times, 1 visits today)