sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -19.434180
gi_integer_width = 3.239030
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A135818 ftgen 0, 0, 17, -2, 0.291358, 0.309737, 0.335009, 0.364875, 0.403931, 0.436095, 0.477449, 0.5, 0.546495, 0.603807, 0.668135, 0.709489, 0.821806, 0.854226, 0.927744, 1.017343, 1.114205
gi_vh_panning_A135818 ftgen 0, 0, 17, -2, -20.57033, -17.93924, -15.46761, -12.83652, -10.52435, -7.813535, -5.262176, -2.631088, 0, 2.072978, 4.225688, 7.016235, 9.328403, 11.32165, 13.79328, 16.18518, 18.01897
gi_wavetable_0_A135818 ftgen 0, 0, 16384, 1, "cutting_board_six.wav", 0, 0, 0
gi_lowest_integer = 0
gi_highest_integer = 12
gi_base_frequency = 345.000000
gi_resonance_filter_bandwidth_from = 12
gi_resonance_filter_bandwidth_to = 8
gi_golden_ratio = (sqrt(5)-1)/2
gi_power_of_golden_ratio pow gi_golden_ratio, 6
gi_temperament = gi_power_of_golden_ratio+1
instr A135818
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+(i_integer-gi_lowest_integer)*((gi_resonance_filter_bandwidth_to-gi_resonance_filter_bandwidth_from)/(gi_highest_integer-gi_lowest_integer))
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A135818
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A135818
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A135818
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