LoginSignup
2
1

More than 5 years have passed since last update.

praat: 選択したサウンドオブジェクト全てに対する音響分析

Posted at

マニュアル Scripting 4. Object selection に普通に載っているのだけれど,複数のサウンドオブジェクトに対する分析手順を統一して記述する方法。すぐ忘れちゃうので個人用メモメモ。
マニュアルではExample: doing something to every selected Soundという項目。
サウンドオブジェクトとTextGridオブジェクトを選択してExtract -系のコマンドと組み合わせるとかなり強力だと思う。

#ここまででサウンドオブジェクトを選択する処理を記述する
n = numberOfSelected ("Sound")
for i to n
    sound'i' = selected ("Sound", i)
endfor

for i to n
    select sound'i'
#ここにサウンドオブジェクトに対する分析コマンドを書く
endfor

# Restore selection:
if n >= 1
    select sound1
    for i from 2 to n
       plus sound'i'
    endfor
endif
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1