# Script for Praat 3.9.33 # By Yisheng Xu # bin_value.praat for Kyuchul Yoon # This script query the dB values of all the bins in a spectrum object. ! Change the string to the name of your spectrum object. spectrumName$ ="ASP_01_shata_ISO" filedelete bin_value.txt fileappend bin_value.txt Bin Value (dB) select Spectrum 'spectrumName$' numberOfBins = Get number of bins for i to numberOfBins value_Pa = Get real value in bin... i value_dB = 20 * log10 (value_Pa * 50000) fileappend bin_value.txt 'newline$''i' 'value_dB' endfor