外部フレームワーク(mpSoundEngine)を利用して音階の音を鳴らすAppleScriptです。
AppleScript名:mpSoundEngineで音階を出す |
— 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() –https://pages.mtu.edu/~suits/notefreqs.html set soundList to {261.63, 293.66, 329.63, 349.23, 392.0, 440.0, 493.88, 523.25} engine’s start() repeat with i in soundList (engine’s channel()’s setFrequency:i) delay 0.1 end repeat engine’s |stop|() |
More from my site
(Visited 70 times, 1 visits today)