if __name__ == "__main__":
infoline = 'V15VMR / Spot Rundown'
riaamode = 0
riaainv = 0
str100 = 1
str100fmax = 22000
_FILE = 'St-V15VMR-STR170-20k.wav'
input_sig, Fs, minf, maxf = openaudio(_FILE)
freqout1, ampout1, freqoutx1, ampoutx1, freqout2h1, ampout2h1, freqout3h1, ampout3h1 = createplotdata(input_sig, Fs)
str100fmax = 11000
_FILE = 'St-V15VMR-STR170-10k.wav'
input_sig, Fs, minf, maxf = openaudio(_FILE)
freqout2, ampout2, freqoutx2, ampoutx2, freqout2h2, ampout2h2, freqout3h2, ampout3h2 = createplotdata(input_sig, Fs)
str100fmax = 5500
_FILE = 'St-V15VMR-STR170-5k.wav'
input_sig, Fs, minf, maxf = openaudio(_FILE)
freqout3, ampout3, freqoutx3, ampoutx3, freqout2h3, ampout2h3, freqout3h3, ampout3h3 = createplotdata(input_sig, Fs)
str100fmax = 3300
_FILE = 'St-V15VMR-STR170-3k.wav'
input_sig, Fs, minf, maxf = openaudio(_FILE)
freqout4, ampout4, freqoutx4, ampoutx4, freqout2h4, ampout2h4, freqout3h4, ampout3h4 = createplotdata(input_sig, Fs)
str100fmax = 2200
_FILE = 'St-V15VMR-STR170-2k.wav'
input_sig, Fs, minf, maxf = openaudio(_FILE)
freqout5, ampout5, freqoutx5, ampoutx5, freqout2h5, ampout2h5, freqout3h5, ampout3h5 = createplotdata(input_sig, Fs)
str100fmax = 1100
_FILE = 'St-V15VMR-STR170-1k.wav'
input_sig, Fs, minf, maxf = openaudio(_FILE)
freqout6, ampout6, freqoutx6, ampoutx6, freqout2h6, ampout2h6, freqout3h6, ampout3h6 = createplotdata(input_sig, Fs)
str100fmax = 600
_FILE = 'St-V15VMR-STR170-500.wav'
input_sig, Fs, minf, maxf = openaudio(_FILE)
freqout7, ampout7, freqoutx7, ampoutx7, freqout2h7, ampout2h7, freqout3h7, ampout3h7 = createplotdata(input_sig, Fs)
i = find_nearest(freqout7, 500)
i2 = find_nearest(freqout6, 500)
norm = ampout6[i2] - ampout7[i]
ampout6 = ampout6-norm
i = find_nearest(freqout6, 1000)
i2 = find_nearest(freqout5, 1000)
norm = ampout5[i2] - ampout6[i]
ampout5 = ampout5-norm
i = find_nearest(freqout5, 2000)
i2 = find_nearest(freqout4, 2000)
norm = ampout4[i2] - ampout5[i]
ampout4 = ampout4-norm
i = find_nearest(freqout4, 3000)
i2 = find_nearest(freqout3, 3000)
norm = ampout3[i2] - ampout4[i]
ampout3 = ampout3-norm
i = find_nearest(freqout3, 5000)
i2 = find_nearest(freqout2, 5000)
norm = ampout2[i2] - ampout3[i]
ampout2 = ampout2-norm
i = find_nearest(freqout2, 10000)
i2 = find_nearest(freqout1, 10000)
norm = ampout1[i2] - ampout2[i]
ampout1 = ampout1-norm
...
ax1.semilogx(freqout,ampout,color = 'b', label = '20kHz Spot')
ax1.semilogx(freqout3,ampout3,color = 'b', label = '5kHz Spot')
ax1.semilogx(freqout5,ampout5,color = 'b', label = '2kHz Spot')
ax1.semilogx(freqout2,ampout2,color = 'r', label = '10kHz Spot', linestyle = 'dashed')
ax1.semilogx(freqout4,ampout4,color = 'r', label = '3kHz Spot', linestyle = 'dashed')
ax1.semilogx(freqout6,ampout6,color = 'r', label = '1kHz Spot', linestyle = 'dashed')
ax1.semilogx(freqout7,ampout7,color = 'b', label = '500Hz Spot')