sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin_MIN0201 = -26.471252
gi_origin_MIN0103 = 5.399862
gi_integer_width = 1.755949
gi_distance_to_speakers = 1.27
gi_vh_wavetable_MIN0201 ftgen 0, 0, 17, -2, 0.893162, 0.845299, 0.800000, 0.75, 0.703418, 0.649999, 0.600000, 0.550000, 0.518803, 0.467521, 0.414529, 0.364957, 0.322222, 0.260683, 0.233333, 0.159829, 0.100000
gi_vh_wavetable_MIN0103 ftgen 0, 0, 17, -2, 0.899999, 0.836752, 0.783760, 0.718803, 0.670940, 0.623076, 0.568376, 0.529059, 0.477777, 0.436752, 0.387179, 0.352991, 0.288034, 0.240170, 0.190598, 0.149572, 0.110256
gi_vh_amplitude_MIN0201 ftgen 0, 0, 17, -2, 0.175784, 0.124002, 0.095841, 0.098566, 0.102200, 0.105833, 0.124911, 0.141263, 0.139446, 0.136721, 0.149439, 0.146714, 0.147622, 0.146714, 0.143080, 0.142171, 0.150347
gi_vh_amplitude_MIN0103 ftgen 0, 0, 17, -2, 0.175382, 0.133412, 0.131413, 0.134411, 0.138408, 0.150400, 0.153398, 0.139408, 0.135897, 0.135410, 0.124418, 0.114425, 0.107430, 0.101435, 0.109429, 0.103433, 0.093440
gi_vh_panning_MIN0201 ftgen 0, 0, 17, -2, -27.30330, -26.09304, -24.66667, -23.36997, -22.03005, -20.94946, -19.56632, -18.13994, -17.23225, -16.10845, -14.81174, -13.68794, -12.08867, -10.92164, -9.408828, -8.371467, -7.117990
gi_vh_panning_MIN0103 ftgen 0, 0, 17, -2, 5.389056, 6.945097, 8.457914, 9.970733, 11.18098, 12.65058, 14.16339, 15.28720, 16.71357, 17.92383, 19.43664, 20.64690, 22.07327, 23.06741, 24.32089, 25.70403, 26.91429
gi_lowest_integer = 1
gi_highest_integer = 13
gi_base_frequency = 820.000000
gi_attack_from = .0034
gi_release_from = .0055
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 MIN0201
i_duration = p3
i_integer = p4
i_multiplier pow gi_temperament, i_integer-gi_lowest_integer
i_frequency = gi_base_frequency/i_multiplier
i_attack = gi_attack_from
i_release = gi_release_from
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_MIN0201
k_wavetable table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_wavetable_MIN0201
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_MIN0201
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_MIN0201
i_length filelen "clipping_slide-whistle.pvx"
k_time phasor 1.0/i_length
k_time = k_time*i_length
a_signal pvoc k_time, i_frequency/1023, "clipping_slide-whistle.pvx"
a_wavetable_1 pvoc k_time, i_frequency/1064, "cheap_mexican_flute.pvx"
a_signal sum a_signal*k_wavetable, a_wavetable_1*(1-k_wavetable)
a_attack linen 1.0, i_attack, i_duration, 0.0
a_release linen 1.0, 0.0, i_duration, i_release
a_signal = a_signal*a_attack
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_release, a_1*a_release
endin
instr MIN0103
i_duration = p3
i_integer = p4
i_multiplier pow gi_temperament, i_integer-gi_lowest_integer
i_frequency = gi_base_frequency/i_multiplier
i_attack = gi_attack_from
i_release = gi_release_from
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_MIN0103
k_wavetable table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_wavetable_MIN0103
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_MIN0103
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_MIN0103
i_length filelen "clipping_irish_whistle.pvx"
k_time phasor 1.0/i_length
k_time = k_time*i_length
a_signal pvoc k_time, i_frequency/1506, "clipping_irish_whistle.pvx"
a_wavetable_1 pvoc k_time, i_frequency/828.2, "plastic_slide-whistle_one.pvx"
a_signal sum a_signal*k_wavetable, a_wavetable_1*(1-k_wavetable)
a_attack linen 1.0, i_attack, i_duration, 0.0
a_release linen 1.0, 0.0, i_duration, i_release
a_signal = a_signal*a_attack
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_release, a_1*a_release
endin