sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -26.570439
gi_integer_width = 2.657044
gi_distance_to_speakers = 1.27
gi_vh_amplitude_MINPHI ftgen 0, 0, 17, -2, 11.45978, 10.88934, 10.40039, 9.931815, 9.381745, 8.790929, 8.281605, 7.690789, 6.753633, 6.672142, 6.305428, 5.755359, 5.347900, 4.858949, 4.716338, 4.512609, 4.166268
gi_vh_panning_MINPHI ftgen 0, 0, 17, -2, -25.94364, -23.00046, -19.51223, -15.91501, -12.64480, -9.265588, -6.104387, -3.597229, 0, 3.052192, 6.322402, 9.374595, 12.20877, 15.69699, 19.29422, 21.58337, 24.30854
gi_wavetable_0_MINPHI ftgen 0, 0, 16384, 1, "snap_three.wav", 0, 0, 0
gi_lowest_integer = -10
gi_highest_integer = 10
gi_base_frequency = 237.100000
gi_resonance_filter_bandwidth_from = 9
gi_golden_ratio = (sqrt(5)-1)/2
gi_power_of_golden_ratio pow gi_golden_ratio, 5
gi_temperament = gi_power_of_golden_ratio+1
instr MINPHI
i_duration = p3
i_integer = p4
i_azimuth = gi_origin+(i_integer-gi_lowest_integer)*gi_integer_width
i_multiplier pow gi_temperament, i_integer-gi_lowest_integer
i_frequency = gi_base_frequency*i_multiplier
i_resonance_filter_bandwidth = gi_resonance_filter_bandwidth_from
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_MINPHI
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_MINPHI
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_MINPHI
a_signal reson a_signal, i_frequency, i_resonance_filter_bandwidth*i_frequency*.01, 1
a_panning = 1.0
vbapz 2, 0, a_panning, k_panning
a_0, a_1 delayst a_signal*k_amplitude, i_azimuth, gi_distance_to_speakers
a_p0 zar 0
a_p1 zar 1
a_0 = a_0*a_p0
a_1 = a_1*a_p1
outs a_0, a_1
endin