外部フレームワーク(mpSoundEngine)を利用してループでサイレンのような音声を鳴らすAppleScriptです。
AppleScript名:mpSoundEngineでループ音声発生(サイレン2) |
— 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 1000 to 100 by -20 (engine’s channel()’s setFrequency:i) delay 0.01 end repeat engine’s |stop|() |
More from my site
(Visited 42 times, 1 visits today)