選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161
  1. # bird songs
  2. # translated (semi-automatically) from a Sambox note list to bird.clm, then bird.scm, then bird.rb
  3. $out_file = false
  4. $out_data = false
  5. $with_editable_mixes = false
  6. def normalize_partials(lst1)
  7. lst = lst1.flatten # i.e. copy -- there doesn't seem to be a copy method for arrays?
  8. sum = 0.0
  9. len = (lst.length) / 2
  10. 0.upto(len - 1) do |i|
  11. sum = sum + lst[(i * 2) + 1]
  12. end
  13. 0.upto(len - 1) do |i|
  14. lst[(i * 2) + 1] = lst[(i * 2) + 1] / sum
  15. end
  16. lst
  17. end
  18. def bigbird(start, dur, frequency, freqskew, amplitude, freq_envelope, amp_envelope, partials)
  19. gls_env = make_env(freq_envelope, hz2radians(freqskew), dur)
  20. os = make_oscil(frequency)
  21. coeffs = partials2polynomial(normalize_partials(partials))
  22. amp_env = make_env(amp_envelope, amplitude, dur)
  23. beg = (srate() * start).round
  24. len = (srate() * dur).round
  25. local_data = make_vct len
  26. local_data.map! do
  27. env(amp_env) *
  28. polynomial(coeffs,
  29. oscil(os, env(gls_env)))
  30. end
  31. vct_add!($out_data, local_data, beg)
  32. end
  33. def bird(start, dur, frequency, freqskew, amplitude, freq_envelope, amp_envelope)
  34. gls_env = make_env(freq_envelope, hz2radians(freqskew), dur)
  35. os = make_oscil(frequency)
  36. amp_env = make_env(amp_envelope, amplitude, dur)
  37. beg = (srate() * start).round
  38. len = (srate() * dur).round
  39. local_data = make_vct len
  40. local_data.map! do
  41. env(amp_env) * oscil(os, env(gls_env))
  42. end
  43. vct_add!($out_data, local_data, beg)
  44. end
  45. def one_bird(beg, maxdur, birdname, &func)
  46. $out_data = make_vct((srate() * maxdur).round)
  47. func.call()
  48. mix_vct($out_data, (beg*srate()).round, $out_file, 0, $with_editable_mixes)
  49. birdname
  50. end
  51. $main_amp = [0.00, 0.00, 0.25, 1.00, 0.60, 0.70, 0.75, 1.00, 1.00, 0.0]
  52. $bird_tap = [0.00, 0.00, 0.01, 1.00, 0.99, 1.00, 1.00, 0.0]
  53. $bird_amp = [0.00, 0.00, 0.25, 1.00, 0.75, 1.00, 1.00, 0.0]
  54. def orchard_oriole(beg)
  55. oriup = [0.00, 0.00, 1.00, 1.0]
  56. oridwn = [0.00, 1.00, 1.00, 0.0]
  57. oriupdwna = [0.00, 0.00, 0.60, 1.00, 1.00, 0.60]
  58. oriupdwnb = [0.00, 0.50, 0.30, 1.00, 1.00, 0.0]
  59. oribiga = [0.00, 0.90, 0.15, 1.00, 0.40, 0.30, 0.60, 0.60, 0.85, 0.00, 1.00, 0.0]
  60. orimid = [0.00, 1.00, 0.05, 0.50, 0.10, 1.00, 0.25, 0.00, 0.85, 0.50, 1.00, 0.0]
  61. oridwnup = [0.00, 0.30, 0.25, 0.00, 1.00, 1.0]
  62. oriamp = [0.00, 0.00, 0.10, 1.00, 1.00, 0.0]
  63. one_bird(beg, 3.0, "orchard_oriole") do
  64. bird(0.38, 0.03, 3700, 100, 0.05, oridwn, $main_amp)
  65. bird(0.41, 0.05, 2500, 1000, 0.1, oriup, $main_amp)
  66. bigbird(0.5, 0.1, 2000, 800, 0.2, oriupdwna, $main_amp, [1, 1, 2, 0.02, 3, 0.05])
  67. bird(0.65, 0.03, 3900, 1200, 0.1, oridwn, $main_amp)
  68. bigbird(0.7, 0.21, 2000, 1200, 0.15, oribiga, $main_amp, [1, 1, 2, 0.05])
  69. bird(1.0, 0.05, 4200, 1000, 0.1, oridwn, $main_amp)
  70. bigbird(1.1, 0.1, 2000, 1000, 0.25, orimid, $main_amp, [1, 1, 2, 0.05])
  71. bigbird(1.3, 0.1, 2000, 1000, 0.25, orimid, $main_amp, [1, 1, 2, 0.05])
  72. bird(1.48, 0.1, 2300, 3200, 0.1, oriupdwnb, oriamp)
  73. bird(1.65, 0.03, 1800, 300, 0.05, oriup, $main_amp)
  74. bird(1.7, 0.03, 2200, 100, 0.04, oridwn, $main_amp)
  75. bird(1.8, 0.07, 2500, 2000, 0.15, oriupdwnb, oriamp)
  76. bigbird(1.92, 0.2, 2400, 1200, 0.25, oridwnup, $main_amp, [1, 1, 2, 0.04])
  77. bird(2.2, 0.02, 2200, 3000, 0.04, oriup, $main_amp)
  78. bird(2.28, 0.02, 2200, 3000, 0.04, oriup, $main_amp)
  79. bigbird(2.4, 0.17, 2000, 1000, 0.2, oriupdwna, oriamp, [1, 1, 2, 0.04])
  80. end
  81. end
  82. def cassins_kingbird(beg)
  83. kingfirst = [0.00, 0.30, 0.45, 1.00, 0.90, 0.10, 1.00, 0.0]
  84. kingsecond = [0.00, 0.00, 0.02, 0.50, 0.04, 0.00, 0.06, 0.55, 0.08, 0.05, 0.10, 0.60, 0.12, 0.05, 0.14, 0.65, 0.16, 0.10, 0.18, 0.70, 0.20, 0.10, 0.22, 0.75, 0.24, 0.15, 0.26, 0.80, 0.28, 0.20, 0.30, 0.85, 0.32, 0.25, 0.34, 0.90, 0.36, 0.30, 0.38, 0.95, 0.40, 0.40, 0.42, 1.00, 0.44, 0.50, 0.46, 1.00, 0.48, 0.45, 0.50, 1.00, 0.52, 0.50, 0.54, 1.00, 0.56, 0.40, 0.58, 0.95, 0.60, 0.40, 0.62, 0.90, 0.64, 0.40, 0.66, 0.85, 0.68, 0.35, 0.70, 0.80, 0.72, 0.30, 0.74, 0.75, 0.76, 0.25, 0.78, 0.70, 0.80, 0.20, 0.82, 0.65, 0.84, 0.10, 0.86, 0.60, 0.88, 0.00, 0.90, 0.55, 0.92, 0.00, 0.94, 0.50, 0.96, 0.00, 1.00, 0.40]
  85. one_bird(beg, 3.0, "cassins_kingbird") do
  86. bigbird(0.03, 0.04, 1700, 1200, 0.15, kingfirst, $main_amp, [1, 1, 2, 0.5, 3, 0, 4, 0.2])
  87. bigbird(0.12, 0.18, 1700, 900, 0.25, kingsecond, $main_amp, [1, 1, 2, 0.01, 3, 0, 4, 0.1])
  88. end
  89. end
  90. def chipping_sparrow(beg)
  91. chip_up = [0.00, 0.80, 0.15, 1.00, 0.75, 0.30, 1.00, 0.0]
  92. one_bird(beg, 1.1, "chipping_sparrow") do
  93. bird(0, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  94. bird(0.06, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  95. bird(0.12, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  96. bird(0.18, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  97. bird(0.24, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  98. bird(0.30, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  99. bird(0.36, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  100. bird(0.42, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  101. bird(0.48, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  102. bird(0.54, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  103. bird(0.60, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  104. bird(0.66, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  105. bird(0.72, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  106. bird(0.78, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  107. bird(0.84, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  108. bird(0.90, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  109. bird(0.96, 0.05, 4000, 2400, 0.2, chip_up, $main_amp)
  110. end
  111. end
  112. def bobwhite(beg)
  113. bobup1 = [0.00, 0.00, 0.40, 1.00, 1.00, 1.0]
  114. bobup2 = [0.00, 0.00, 0.65, 0.50, 1.00, 1.0]
  115. one_bird(beg, 2.0, "bobwhite") do
  116. bigbird(0.4, 0.2, 1800, 200, 0.1, bobup1, $main_amp, [1, 1, 2, 0.02])
  117. bigbird(1, 0.20, 1800, 1200, 0.2, bobup2, $main_amp, [1, 1, 2, 0.02])
  118. end
  119. end
  120. def western_meadowlark(beg)
  121. no_skw = [0.00, 0.00, 1.00, 0.0]
  122. down_skw = [0.00, 1.00, 0.40, 0.40, 1.00, 0.0]
  123. fas_down = [0.00, 1.00, 1.00, 0.0]
  124. one_bird(beg, 3.0, "western_meadowlark") do
  125. bigbird(0.800, 0.1, 2010.000, 0.000, 0.100, no_skw, $main_amp, [1, 1, 2, 0.04])
  126. bigbird(1.100, 0.15, 3000.000, 100.000, 0.110, down_skw, $main_amp, [1, 1, 2, 0.04])
  127. bigbird(1.300, 0.25, 2000.000, 150.000, 0.200, down_skw, $main_amp, [1, 1, 2, 0.04])
  128. bigbird(1.650, 0.15, 3010.000, 250.000, 0.110, down_skw, $main_amp, [1, 1, 2, 0.04])
  129. bigbird(1.850, 0.10, 2200.000, 150.000, 0.110, down_skw, $main_amp, [1, 1, 2, 0.04])
  130. bigbird(2.000, 0.10, 3200.000, 1400.000, 0.110, fas_down, $main_amp, [1, 1, 2, 0.04])
  131. bigbird(2.200, 0.05, 2000.000, 200.000, 0.110, fas_down, $main_amp, [1, 1, 2, 0.04])
  132. bigbird(2.300, 0.10, 1600.000, 0.000, 0.110, fas_down, $main_amp, [1, 1, 2, 0.04])
  133. end
  134. end
  135. def scissor_tailed_flycatcher(beg)
  136. scissor = [0.00, 0.00, 0.40, 1.00, 0.60, 1.00, 1.00, 0.0]
  137. one_bird(beg, 1.0, "scissor_tailed_flycatcher") do
  138. bigbird(0, 0.05, 1800, 1800, 0.2, scissor, $main_amp, [1, 0.5, 2, 1, 3, 0.5, 4, 0.1, 5, 0.01])
  139. end
  140. end
  141. def great_horned_owl(beg)
  142. owlup = [0.00, 0.00, 0.30, 1.00, 1.00, 1.0]
  143. owldown = [0.00, 1.00, 1.00, 0.0]
  144. one_bird(beg, 3.0, "great_horned_owl") do
  145. bigbird(0.3, 0.1, 300, 0, 0.1, $main_amp, $main_amp, [1, 1, 3, 0.02, 7, 0.01])
  146. bigbird(0.6, 0.4, 293, 6, 0.1, owldown, $main_amp, [1, 1, 3, 0.02, 7, 0.01])
  147. bigbird(1.75, 0.35, 293, 7, 0.1, owlup, $main_amp, [1, 1, 3, 0.02, 7, 0.01])
  148. bigbird(2.5, 0.2, 300, 0, 0.1, owlup, $main_amp, [1, 1, 3, 0.02, 7, 0.01])
  149. end
  150. end
  151. def black_throated_gray_warbler(beg)
  152. grayone = [0.00, 0.50, 0.02, 0.60, 0.04, 0.45, 0.06, 0.62, 0.08, 0.40, 0.10, 0.65, 0.12, 0.35, 0.14, 0.70, 0.18, 0.30, 0.20, 0.70, 0.22, 0.30, 0.24, 0.70, 0.25, 0.20, 0.30, 0.80, 0.35, 0.10, 0.40, 0.90, 0.45, 0.00, 0.50, 1.00, 0.55, 0.00, 0.60, 1.00, 0.65, 0.00, 0.70, 1.00, 0.75, 0.00, 0.80, 1.00, 0.85, 0.00, 0.90, 1.00, 0.95, 0.00, 1.00, 0.50]
  153. graytwo = [0.00, 0.00, 0.01, 0.40, 0.02, 0.00, 0.03, 0.40, 0.04, 0.00, 0.05, 0.40, 0.06, 0.00, 0.07, 0.40, 0.08, 0.00, 0.09, 0.40, 0.10, 0.00, 0.25, 0.80, 0.40, 0.30, 0.55, 1.00, 0.70, 0.00, 0.85, 0.80, 1.00, 0.40]
  154. graythree = [0.00, 1.00, 0.01, 0.60, 0.02, 1.00, 0.03, 0.60, 0.04, 1.00, 0.05, 0.60, 0.06, 1.00, 0.07, 0.60, 0.08, 1.00, 0.09, 0.60, 0.10, 1.00, 0.11, 0.60, 0.12, 1.00, 0.13, 0.60, 0.14, 1.00, 0.15, 0.60, 0.16, 1.00, 0.17, 0.60, 0.18, 1.00, 0.19, 0.60, 0.20, 1.00, 0.21, 0.55, 0.22, 1.00, 0.23, 0.50, 0.24, 1.00, 0.25, 0.50, 0.26, 1.00, 0.27, 0.50, 0.28, 1.00, 0.29, 0.50, 0.30, 1.00, 0.31, 0.50, 0.32, 1.00, 0.33, 0.50, 0.34, 1.00, 0.35, 0.50, 0.36, 1.00, 0.37, 0.50, 0.38, 1.00, 0.39, 0.50, 0.40, 1.00, 0.41, 0.50, 0.42, 1.00, 0.43, 0.50, 0.44, 1.00, 0.45, 0.50, 0.46, 1.00, 0.47, 0.50, 0.48, 1.00, 0.49, 0.50, 0.50, 1.00, 0.51, 0.50, 0.52, 1.00, 0.53, 0.50, 0.54, 1.00, 0.55, 0.50, 0.56, 1.00, 0.57, 0.50, 0.58, 1.00, 0.59, 0.50, 0.60, 1.00, 1.00, 0.0]
  155. grayfour = [0.00, 0.00, 1.00, 1.0]
  156. one_bird(beg, 2.0, "black_throated_gray_warbler") do
  157. bird(0, 0.12, 3700, 600, 0.05, grayone, $main_amp)
  158. bird(0.18, 0.08, 3000, 800, 0.07, graytwo, $main_amp)
  159. bird(0.28, 0.12, 3700, 600, 0.12, grayone, $main_amp)
  160. bird(0.44, 0.08, 3000, 800, 0.15, graytwo, $main_amp)
  161. bird(0.54, 0.12, 3700, 600, 0.20, grayone, $main_amp)
  162. bird(0.72, 0.08, 3000, 800, 0.25, graytwo, $main_amp)
  163. bird(0.82, 0.12, 3700, 600, 0.25, grayone, $main_amp)
  164. bird(0.96, 0.2, 3000, 2000, 0.2, graythree, $main_amp)
  165. bird(1.2, 0.02, 4500, 500, 0.05, grayfour, $main_amp)
  166. bird(1.25, 0.02, 4200, 800, 0.05, grayfour, $main_amp)
  167. bird(1.3, 0.02, 4000, 900, 0.05, grayfour, $main_amp)
  168. end
  169. end
  170. def yellow_warbler(beg)
  171. yellow_up = [0.00, 0.00, 0.60, 1.00, 1.00, 0.50]
  172. yellow_swirl = [0.00, 1.00, 0.05, 1.00, 0.60, 0.00, 0.80, 0.30, 1.00, 0.10]
  173. yellow_down = [0.00, 1.00, 1.00, 0.0]
  174. yellow_last = [0.00, 0.00, 0.30, 0.20, 0.80, 0.70, 1.00, 1.0]
  175. swirl_amp = [0.00, 0.00, 0.90, 1.00, 1.00, 0.0]
  176. one_bird(beg, 2.0, "yellow_warbler") do
  177. bird(0, 0.05, 5600, 400, 0.05, yellow_up, $main_amp)
  178. bird(0.23, 0.12, 5000, 1500, 0.15, yellow_swirl, swirl_amp)
  179. bird(0.45, 0.13, 5000, 1700, 0.17, yellow_swirl, swirl_amp)
  180. bird(0.62, 0.16, 5000, 2000, 0.20, yellow_swirl, swirl_amp)
  181. bird(0.85, 0.15, 5000, 2000, 0.20, yellow_swirl, swirl_amp)
  182. bird(1.05, 0.075, 3700, 1000, 0.20, yellow_down, $main_amp)
  183. bird(1.15, 0.075, 3700, 800, 0.15, yellow_down, $main_amp)
  184. bird(1.25, 0.075, 3700, 800, 0.15, yellow_down, $main_amp)
  185. bird(1.4, 0.2, 3700, 2000, 0.2, yellow_last, swirl_amp)
  186. end
  187. end
  188. def black_necked_stilt(beg)
  189. upamp = [0.00, 0.00, 0.90, 1.00, 1.00, 0.0]
  190. rampup = [0.00, 0.00, 0.50, 1.00, 1.00, 0.20]
  191. one_bird(beg, 1.0, "black_necked_stilt") do
  192. bigbird(0, 0.1, 900, 100, 0.2, rampup, upamp, [1, 0.5, 2, 1, 3, 0.75, 4, 0.5, 5, 0.1])
  193. bigbird(0.30, 0.1, 900, 200, 0.2, rampup, upamp, [1, 0.5, 2, 1, 3, 0.75, 4, 0.5, 5, 0.1])
  194. bigbird(0.60, 0.1, 900, 250, 0.2, rampup, upamp, [1, 0.5, 2, 1, 3, 0.75, 4, 0.5, 5, 0.1])
  195. end
  196. end
  197. def chestnut_sided_warbler(beg)
  198. ycurve = [0.00, 1.00, 0.30, 0.50, 0.60, 1.00, 0.80, 0.20, 1.00, 0.0]
  199. vcurve = [0.00, 0.20, 0.50, 1.00, 1.00, 0.0]
  200. wcurve = [0.00, 0.50, 0.15, 0.00, 0.45, 0.10, 0.60, 1.00, 0.70, 0.90, 1.00, 0.90]
  201. upcurve = [0.00, 0.00, 0.95, 1.00, 1.00, 1.0]
  202. downcurve = [0.00, 1.00, 0.25, 0.30, 0.60, 0.15, 1.00, 0.0]
  203. louder = [0.00, 0.00, 0.90, 1.00, 1.00, 0.0]
  204. wamp = [0.00, 0.00, 0.10, 1.00, 0.40, 0.10, 0.50, 0.90, 0.60, 0.10, 0.70, 1.00, 1.00, 0.0]
  205. one_bird(beg, 2.0, "chestnut_sided_warbler") do
  206. bigbird(0.1, 0.1, 4050, 1200, 0.05, ycurve, $main_amp, [1, 1, 2, 0.1])
  207. bigbird(0.25, 0.03, 3900, 300, 0.075, vcurve, $main_amp, [1, 1, 2, 0.1])
  208. bigbird(0.3, 0.1, 4050, 1200, 0.15, ycurve, louder, [1, 1, 2, 0.1])
  209. bigbird(0.42, 0.03, 3800, 500, 0.1, vcurve, $main_amp, [1, 1, 2, 0.1])
  210. bigbird(0.5, 0.1, 4000, 1200, 0.2, ycurve, $bird_tap, [1, 1, 2, 0.1])
  211. bigbird(0.65, 0.03, 3800, 500, 0.15, vcurve, $main_amp, [1, 1, 2, 0.1])
  212. bigbird(0.72, 0.1, 4000, 1200, 0.2, ycurve, $bird_tap, [1, 1, 2, 0.1])
  213. bigbird(0.85, 0.03, 3800, 500, 0.15, vcurve, $main_amp, [1, 1, 2, 0.1])
  214. bigbird(0.91, 0.1, 4000, 1200, 0.2, ycurve, $bird_tap, [1, 1, 2, 0.1])
  215. bigbird(1.05, 0.12, 3800, 2200, 0.15, wcurve, wamp, [1, 1, 2, 0.1])
  216. bigbird(1.20, 0.12, 3800, 2200, 0.15, wcurve, wamp, [1, 1, 2, 0.1])
  217. bigbird(1.35, 0.12, 2500, 2200, 0.25, upcurve, louder, [1, 1, 2, 0.1])
  218. bigbird(1.50, 0.12, 2500, 4000, 0.15, downcurve, $main_amp, [1, 1, 2, 0.1])
  219. end
  220. end
  221. def grasshopper_sparrow(beg)
  222. grassone = [0.00, 0.50, 0.02, 0.80, 0.04, 0.30, 0.06, 0.80, 0.07, 0.10, 0.08, 0.90, 0.10, 0.00, 0.11, 0.90, 0.12, 0.00, 0.13, 0.90, 0.14, 0.10, 0.15, 1.00, 0.16, 0.10, 0.17, 1.00, 0.18, 0.10, 0.19, 1.00, 0.20, 0.10, 0.21, 1.00, 0.22, 0.10, 0.23, 1.00, 0.24, 0.10, 0.25, 1.00, 0.26, 0.10, 0.27, 1.00, 0.28, 0.10, 0.29, 1.00, 0.30, 0.10, 0.31, 1.00, 0.32, 0.10, 0.33, 1.00, 0.34, 0.10, 0.35, 1.00, 0.36, 0.10, 0.37, 1.00, 0.38, 0.10, 0.39, 1.00, 0.40, 0.10, 0.41, 1.00, 0.42, 0.10, 0.43, 1.00, 0.44, 0.10, 0.45, 1.00, 0.46, 0.10, 0.47, 1.00, 0.48, 0.10, 0.49, 1.00, 0.50, 0.10, 0.51, 1.00, 0.52, 0.10, 0.53, 1.00, 0.54, 0.10, 0.55, 1.00, 0.56, 0.10, 0.57, 1.00, 0.58, 0.10, 0.59, 1.00, 0.60, 0.10, 0.61, 1.00, 0.62, 0.10, 0.63, 1.00, 0.64, 0.10, 0.65, 1.00, 0.66, 0.10, 0.67, 1.00, 0.68, 0.10, 0.69, 1.00, 0.70, 0.10, 0.71, 1.00, 0.72, 0.10, 0.73, 1.00, 0.74, 0.10, 0.75, 1.00, 0.76, 0.10, 0.77, 1.00, 0.78, 0.10, 0.79, 1.00, 0.80, 0.10, 0.81, 1.00, 0.82, 0.10, 0.83, 1.00, 0.84, 0.10, 0.85, 1.00, 0.86, 0.10, 0.87, 1.00, 0.88, 0.10, 0.89, 1.00, 0.90, 0.10, 0.91, 1.00, 0.92, 0.10, 0.93, 1.00, 0.94, 0.10, 0.95, 1.00, 0.96, 0.10, 0.97, 1.00, 0.98, 0.10, 1.00, 1.0]
  223. grasstwo = [0.00, 0.00, 0.10, 1.00, 0.20, 0.00, 0.30, 1.00, 0.40, 0.00, 0.50, 1.00, 0.60, 0.00, 0.70, 1.00, 0.80, 0.00, 0.90, 1.00, 1.00, 0.0]
  224. one_bird(beg, 3.0, "grasshopper_sparrow") do
  225. bird(0.49, 0.01, 8000, 100, 0.1, grasstwo, $main_amp)
  226. bird(0.60, 0.01, 5700, 300, 0.1, grasstwo, $main_amp)
  227. bird(0.92, 0.01, 3900, 100, 0.1, grasstwo, $main_amp)
  228. bird(1.00, 1.4, 6000, 2500, 0.2, grassone, $main_amp)
  229. end
  230. end
  231. def swamp_sparrow(beg)
  232. swamp_up = [0.00, 0.00, 0.60, 0.70, 1.00, 1.0]
  233. swamp_down = [0.00, 1.00, 0.50, 0.50, 0.60, 0.60, 1.00, 0.0]
  234. one_bird(beg, 2.0, "swamp_sparrow") do
  235. bird(0, 0.02, 3900, 200, 0.3, swamp_up, $main_amp)
  236. bird(0.035, 0.035, 3200, 3000, 0.1, swamp_down, $main_amp)
  237. bird(0.08, 0.025, 3700, 0, 0.1, $main_amp, $main_amp)
  238. bird(0.1, 0.02, 3900, 200, 0.3, swamp_up, $main_amp)
  239. bird(0.135, 0.035, 3200, 3000, 0.1, swamp_down, $main_amp)
  240. bird(0.18, 0.025, 3700, 0, 0.1, $main_amp, $main_amp)
  241. bird(0.2, 0.02, 3900, 200, 0.3, swamp_up, $main_amp)
  242. bird(0.235, 0.035, 3200, 3000, 0.1, swamp_down, $main_amp)
  243. bird(0.28, 0.025, 3700, 0, 0.1, $main_amp, $main_amp)
  244. bird(0.3, 0.02, 3900, 200, 0.3, swamp_up, $main_amp)
  245. bird(0.335, 0.035, 3200, 3000, 0.1, swamp_down, $main_amp)
  246. bird(0.38, 0.025, 3700, 0, 0.1, $main_amp, $main_amp)
  247. bird(0.4, 0.02, 3900, 200, 0.3, swamp_up, $main_amp)
  248. bird(0.435, 0.035, 3200, 3000, 0.1, swamp_down, $main_amp)
  249. bird(0.48, 0.025, 3700, 0, 0.1, $main_amp, $main_amp)
  250. bird(0.5, 0.02, 3900, 200, 0.3, swamp_up, $main_amp)
  251. bird(0.535, 0.035, 3200, 3000, 0.1, swamp_down, $main_amp)
  252. bird(0.58, 0.025, 3700, 0, 0.1, $main_amp, $main_amp)
  253. bird(0.6, 0.02, 3900, 200, 0.3, swamp_up, $main_amp)
  254. bird(0.635, 0.035, 3200, 3000, 0.1, swamp_down, $main_amp)
  255. bird(0.68, 0.025, 3700, 0, 0.1, $main_amp, $main_amp)
  256. bird(0.7, 0.02, 3900, 200, 0.3, swamp_up, $main_amp)
  257. bird(0.735, 0.035, 3200, 3000, 0.1, swamp_down, $main_amp)
  258. bird(0.78, 0.025, 3700, 0, 0.1, $main_amp, $main_amp)
  259. bird(0.8, 0.02, 3900, 200, 0.3, swamp_up, $main_amp)
  260. bird(0.835, 0.035, 3200, 3000, 0.1, swamp_down, $main_amp)
  261. bird(0.88, 0.025, 3700, 0, 0.1, $main_amp, $main_amp)
  262. bird(0.9, 0.02, 3900, 200, 0.3, swamp_up, $main_amp)
  263. bird(0.935, 0.035, 3200, 3000, 0.1, swamp_down, $main_amp)
  264. bird(0.98, 0.025, 3700, 0, 0.1, $main_amp, $main_amp)
  265. end
  266. end
  267. def golden_crowned_sparrow(beg)
  268. goldone = [0.00, 1.00, 0.25, 0.20, 1.00, 0.0]
  269. goldtwo = [0.00, 0.90, 0.05, 1.00, 0.10, 0.40, 1.00, 0.0]
  270. goldtrill = [0.00, 0.50, 0.10, 0.00, 0.20, 1.00, 0.30, 0.00, 0.40, 1.00, 0.50, 0.00, 0.60, 1.00, 0.70, 0.00, 0.80, 1.00, 0.90, 0.00, 1.00, 0.50]
  271. one_bird(beg, 3.0, "golden_crowned_sparrow") do
  272. bird(0.6, 0.5, 4300, 1000, 0.15, goldone, $main_amp)
  273. bird(1.3, 0.45, 3300, 200, 0.15, goldone, $main_amp)
  274. bird(1.75, 0.4, 3800, 100, 0.15, goldtwo, $main_amp)
  275. bird(2.2, 0.3, 3800, 100, 0.1, goldtrill, $main_amp)
  276. end
  277. end
  278. def indigo_bunting(beg)
  279. buntdwn = [0.00, 1.00, 1.00, 0.0]
  280. buntv = [0.00, 0.00, 0.50, 1.00, 1.00, 0.0]
  281. bunty = [0.00, 1.00, 0.50, 0.00, 1.00, 0.90]
  282. buntn = [0.00, 0.80, 0.30, 1.00, 0.70, 0.20, 1.00, 0.0]
  283. buntx = [0.00, 1.00, 0.10, 0.50, 0.25, 0.90, 1.00, 0.0]
  284. buntup = [0.00, 0.00, 1.00, 1.0]
  285. one_bird(beg, 3.0, "indigo_bunting") do
  286. bird(0.4, 0.08, 3000, 700, 0.25, buntdwn, $main_amp)
  287. bird(0.52, 0.02, 6200, 1000, 0.05, buntdwn, $main_amp)
  288. bird(0.55, 0.15, 3500, 2300, 0.1, buntv, $main_amp)
  289. bird(0.74, 0.02, 6200, 1800, 0.05, buntx, $main_amp)
  290. bird(0.80, 0.15, 3400, 2300, 0.1, buntv, $main_amp)
  291. bird(1.00, 0.1, 3400, 800, 0.2, buntv, $main_amp)
  292. bird(1.13, 0.03, 4100, 2000, 0.05, buntdwn, $main_amp)
  293. bird(1.25, 0.08, 3400, 800, 0.2, buntv, $main_amp)
  294. bird(1.40, 0.03, 4100, 2000, 0.05, buntdwn, $main_amp)
  295. bird(1.5, 0.07, 3700, 300, 0.1, buntdwn, $main_amp)
  296. bird(1.6, 0.1, 4100, 2200, 0.15, bunty, $main_amp)
  297. bird(1.72, 0.05, 3700, 300, 0.1, buntdwn, $main_amp)
  298. bird(1.81, 0.1, 4100, 2200, 0.15, bunty, $main_amp)
  299. bird(1.94, 0.07, 5200, 1800, 0.2, buntn, $main_amp)
  300. bird(2.05, 0.08, 3000, 1500, 0.15, buntup, $main_amp)
  301. bird(2.20, 0.07, 5200, 1800, 0.2, buntn, $main_amp)
  302. bird(2.33, 0.08, 3000, 1500, 0.15, buntup, $main_amp)
  303. bird(2.43, 0.07, 5200, 1800, 0.1, buntn, $main_amp)
  304. bird(2.51, 0.08, 3000, 1500, 0.10, buntup, $main_amp)
  305. end
  306. end
  307. def hooded_warbler(beg)
  308. hoodup = [0.00, 0.00, 1.00, 1.0]
  309. hooddown = [0.00, 1.00, 1.00, 0.0]
  310. one_bird(beg, 3.0, "hooded_warbler") do
  311. bird(0.6, 0.03, 3900, 1600, 0.05, hooddown, $main_amp)
  312. bird(0.64, 0.03, 3900, 1700, 0.05, hooddown, $main_amp)
  313. bird(0.8, 0.03, 3900, 2000, 0.10, hooddown, $main_amp)
  314. bird(0.84, 0.03, 3900, 2000, 0.10, hooddown, $main_amp)
  315. bird(0.93, 0.03, 3900, 2100, 0.15, hooddown, $main_amp)
  316. bird(0.97, 0.03, 3900, 2100, 0.15, hooddown, $main_amp)
  317. bird(1.05, 0.03, 3900, 2100, 0.05, hooddown, $main_amp)
  318. bird(1.09, 0.03, 3900, 2100, 0.2, hooddown, $main_amp)
  319. bird(1.17, 0.03, 3900, 2100, 0.2, hooddown, $main_amp)
  320. bird(1.21, 0.03, 3900, 2100, 0.2, hooddown, $main_amp)
  321. bird(1.39, 0.03, 3900, 2100, 0.2, hooddown, $main_amp)
  322. bird(1.43, 0.03, 3900, 2100, 0.2, hooddown, $main_amp)
  323. bird(1.51, 0.03, 3900, 2100, 0.2, hooddown, $main_amp)
  324. bird(1.55, 0.03, 3900, 2100, 0.2, hooddown, $main_amp)
  325. bird(1.63, 0.03, 3900, 2100, 0.2, hooddown, $main_amp)
  326. bird(1.67, 0.03, 3900, 2100, 0.2, hooddown, $main_amp)
  327. bird(1.75, 0.03, 3900, 2100, 0.2, hooddown, $main_amp)
  328. bird(1.80, 0.03, 3900, 2100, 0.2, hooddown, $main_amp)
  329. bird(1.90, 0.04, 3000, 1000, 0.15, hoodup, $main_amp)
  330. bird(1.98, 0.04, 3000, 1000, 0.15, hoodup, $main_amp)
  331. bird(2.05, 0.04, 3000, 1000, 0.15, hoodup, $main_amp)
  332. bird(2.13, 0.04, 3000, 1000, 0.15, hoodup, $main_amp)
  333. bird(2.21, 0.04, 3000, 1000, 0.15, hoodup, $main_amp)
  334. bird(2.29, 0.04, 3000, 1000, 0.15, hoodup, $main_amp)
  335. bird(2.37, 0.04, 3000, 1000, 0.15, hoodup, $main_amp)
  336. bird(2.45, 0.04, 3000, 1000, 0.15, hoodup, $main_amp)
  337. end
  338. end
  339. def american_widgeon(beg)
  340. widgeon = [0.00, 0.00, 0.50, 1.00, 1.00, 0.0]
  341. one_bird(beg, 1.0, "american_widgeon") do
  342. bigbird(0.3, 0.07, 1900, 300, 0.15, widgeon, widgeon, [1, 1, 2, 0.02])
  343. bigbird(0.4, 0.11, 1700, 1400, 0.25, widgeon, widgeon, [1, 0.7, 2, 1, 3, 0.02])
  344. bigbird(0.55, 0.07, 1900, 300, 0.15, widgeon, widgeon, [1, 1, 2, 0.02])
  345. end
  346. end
  347. def louisiana_waterthrush(beg)
  348. water_one = [0.00, 0.80, 0.35, 0.40, 0.45, 0.90, 0.50, 1.00, 0.75, 1.00, 1.00, 0.10]
  349. water_two = [0.00, 1.00, 0.40, 0.00, 0.60, 0.10, 1.00, 0.80]
  350. water_three = [0.00, 1.00, 0.95, 0.00, 1.00, 0.0]
  351. water_four = [0.00, 0.00, 1.00, 1.0]
  352. water_five = [0.00, 1.00, 1.00, 0.0]
  353. water_amp = [0.00, 0.00, 0.35, 1.00, 0.50, 0.20, 0.90, 1.00, 1.00, 0.0]
  354. water_damp = [0.00, 0.00, 0.90, 1.00, 1.00, 0.0]
  355. one_bird(beg, 2.0, "louisiana_waterthrush") do
  356. bird(0, 0.17, 4100, 2000, 0.2, water_one, water_amp)
  357. bird(0.32, 0.18, 4050, 2050, 0.3, water_one, water_amp)
  358. bird(0.64, 0.20, 4000, 1900, 0.25, water_one, water_amp)
  359. bird(0.9, 0.2, 3900, 2000, 0.3, water_two, $bird_tap)
  360. bird(1.25, 0.12, 3000, 3000, 0.25, water_three, water_damp)
  361. bird(1.4, 0.1, 2700, 1500, 0.2, water_four, water_damp)
  362. bird(1.58, 0.02, 5200, 1000, 0.1, water_five, $main_amp)
  363. bird(1.65, 0.02, 5200, 1000, 0.1, water_five, $main_amp)
  364. bird(1.7, 0.035, 3200, 1000, 0.1, water_four, water_damp)
  365. end
  366. end
  367. def robin(beg)
  368. r_one = [0.00, 0.10, 0.08, 0.70, 0.30, 0.00, 0.35, 1.00, 0.40, 0.30, 1.00, 0.30]
  369. r_two = [0.00, 0.00, 0.10, 1.00, 0.20, 0.70, 0.35, 0.70, 0.65, 0.30, 0.70, 0.50, 0.80, 0.00, 0.90, 0.20, 1.00, 0.0]
  370. r_three = [0.00, 0.20, 0.25, 1.00, 0.60, 0.70, 0.90, 0.00, 1.00, 0.10]
  371. r_four = [0.00, 1.00, 1.00, 0.0]
  372. r_five = [0.00, 0.50, 0.10, 0.00, 0.20, 1.00, 0.30, 0.00, 0.40, 1.00, 0.50, 0.00, 0.60, 1.00, 0.70, 0.50, 1.00, 0.20]
  373. r_six = [0.00, 0.00, 0.12, 0.70, 0.30, 0.00, 0.70, 1.00, 1.00, 0.50]
  374. one_bird(beg, 3.0, "robin") do
  375. bigbird(0.45, 0.06, 2000, 800, 0.15, r_six, $main_amp, [1, 1, 2, 0.1])
  376. bigbird(0.56, 0.10, 2000, 900, 0.15, r_one, $main_amp, [1, 1, 2, 0.1])
  377. bigbird(1.04, 0.24, 2000, 2000, 0.25, r_two, $main_amp, [1, 1, 2, 0.1])
  378. bigbird(1.63, 0.13, 1900, 1600, 0.20, r_three, $main_amp, [1, 1, 2, 0.1])
  379. bigbird(1.80, 0.11, 2200, 1200, 0.25, r_four, $main_amp, [1, 1, 2, 0.1])
  380. bigbird(2.31, 0.21, 1950, 2000, 0.15, r_five, $main_amp, [1, 1, 2, 0.1])
  381. end
  382. end
  383. def solitary_vireo(beg)
  384. bigskew = [0.00, 0.20, 0.03, 0.30, 0.06, 0.10, 0.10, 0.50, 0.13, 0.40, 0.16, 0.80, 0.19, 0.50, 0.22, 0.90, 0.25, 0.60, 0.28, 1.00, 0.31, 0.60, 0.34, 1.00, 0.37, 0.50, 0.41, 0.90, 0.45, 0.40, 0.49, 0.80, 0.51, 0.40, 0.54, 0.75, 0.57, 0.35, 0.60, 0.70, 0.63, 0.30, 0.66, 0.60, 0.69, 0.25, 0.72, 0.50, 0.75, 0.20, 0.78, 0.30, 0.82, 0.10, 0.85, 0.30, 0.88, 0.05, 0.91, 0.30, 0.94, 0.00, 0.95, 0.30, 0.99, 0.00, 1.00, 0.10]
  385. one_bird(beg, 1.0, "solitary_vireo") do
  386. bird(0, 0.4, 1800, 1200, 0.2, bigskew, $main_amp)
  387. end
  388. end
  389. def pigeon_hawk(beg)
  390. hupdown = [0.00, 0.00, 0.30, 1.00, 0.70, 1.00, 1.00, 0.0]
  391. one_bird(beg, 2.0, "pigeon_hawk") do
  392. bigbird(0, 0.1, 1900, 200, 0.2, hupdown, $main_amp, [1, 0.7, 2, 1])
  393. bigbird(0.12, 0.01, 2050, 0, 0.1, $main_amp, $main_amp, [1, 0.5, 2, 1])
  394. bigbird(0.13, 0.1, 1900, 200, 0.2, hupdown, $main_amp, [1, 0.7, 2, 1])
  395. bigbird(0.25, 0.01, 2050, 0, 0.1, $main_amp, $main_amp, [1, 0.5, 2, 1])
  396. bigbird(0.26, 0.1, 1900, 200, 0.2, hupdown, $main_amp, [1, 0.7, 2, 1])
  397. bigbird(0.38, 0.01, 2050, 0, 0.1, $main_amp, $main_amp, [1, 0.5, 2, 1])
  398. bigbird(0.39, 0.1, 1900, 200, 0.2, hupdown, $main_amp, [1, 0.7, 2, 1])
  399. bigbird(0.51, 0.01, 2050, 0, 0.1, $main_amp, $main_amp, [1, 0.5, 2, 1])
  400. bigbird(0.52, 0.1, 1900, 200, 0.2, hupdown, $main_amp, [1, 0.7, 2, 1])
  401. bigbird(0.64, 0.01, 2050, 0, 0.1, $main_amp, $main_amp, [1, 0.5, 2, 1])
  402. bigbird(0.65, 0.1, 1900, 200, 0.2, hupdown, $main_amp, [1, 0.7, 2, 1])
  403. bigbird(0.77, 0.01, 2050, 0, 0.1, $main_amp, $main_amp, [1, 0.5, 2, 1])
  404. bigbird(0.78, 0.1, 1900, 200, 0.2, hupdown, $main_amp, [1, 0.7, 2, 1])
  405. bigbird(0.90, 0.01, 2050, 0, 0.1, $main_amp, $main_amp, [1, 0.5, 2, 1])
  406. bigbird(0.91, 0.1, 1900, 200, 0.2, hupdown, $main_amp, [1, 0.7, 2, 1])
  407. bigbird(1.03, 0.01, 2050, 0, 0.1, $main_amp, $main_amp, [1, 0.5, 2, 1])
  408. bigbird(1.04, 0.1, 1900, 200, 0.2, hupdown, $main_amp, [1, 0.7, 2, 1])
  409. bigbird(1.16, 0.01, 2050, 0, 0.1, $main_amp, $main_amp, [1, 0.5, 2, 1])
  410. bigbird(1.17, 0.1, 1900, 200, 0.2, hupdown, $main_amp, [1, 0.7, 2, 1])
  411. bigbird(1.29, 0.01, 2050, 0, 0.1, $main_amp, $main_amp, [1, 0.5, 2, 1])
  412. bigbird(1.30, 0.1, 1900, 200, 0.2, hupdown, $main_amp, [1, 0.7, 2, 1])
  413. bigbird(1.42, 0.01, 2050, 0, 0.1, $main_amp, $main_amp, [1, 0.5, 2, 1])
  414. bigbird(1.43, 0.1, 1900, 200, 0.2, hupdown, $main_amp, [1, 0.7, 2, 1])
  415. bigbird(1.55, 0.01, 2050, 0, 0.1, $main_amp, $main_amp, [1, 0.5, 2, 1])
  416. bigbird(1.56, 0.1, 1900, 200, 0.2, hupdown, $main_amp, [1, 0.7, 2, 1])
  417. bigbird(1.68, 0.01, 2050, 0, 0.1, $main_amp, $main_amp, [1, 0.5, 2, 1])
  418. bigbird(1.69, 0.1, 1900, 200, 0.2, hupdown, $main_amp, [1, 0.7, 2, 1])
  419. bigbird(1.81, 0.01, 2050, 0, 0.1, $main_amp, $main_amp, [1, 0.5, 2, 1])
  420. bigbird(1.82, 0.1, 1900, 200, 0.2, hupdown, $main_amp, [1, 0.7, 2, 1])
  421. end
  422. end
  423. def cerulean_warbler(beg)
  424. w_down = [0.00, 1.00, 1.00, 0.0]
  425. trill = [0.00, 0.80, 0.10, 1.00, 0.25, 0.50, 0.40, 1.00, 0.55, 0.50, 0.70, 1.00, 1.00, 0.0]
  426. w_up = [0.00, 0.00, 1.00, 1.0]
  427. one_bird(beg, 2.0, "cerulean_warbler") do
  428. bird(0.27, 0.05, 3000, 1000, 0.05, w_down, $main_amp)
  429. bird(0.33, 0.05, 3000, 800, 0.075, w_up, $main_amp)
  430. bird(0.41, 0.01, 3200, 700, 0.07, w_down, $main_amp)
  431. bird(0.42, 0.01, 3200, 700, 0.08, w_down, $main_amp)
  432. bird(0.43, 0.06, 3200, 700, 0.09, w_down, $main_amp)
  433. bird(0.51, 0.06, 3200, 500, 0.1, w_up, $main_amp)
  434. bird(0.6, 0.10, 3000, 1200, 0.2, trill, $main_amp)
  435. bird(0.72, 0.05, 3000, 800, 0.2, w_up, $main_amp)
  436. bird(0.8, 0.10, 3000, 1200, 0.2, trill, $main_amp)
  437. bird(0.92, 0.05, 3000, 800, 0.2, w_up, $main_amp)
  438. bird(1.00, 0.01, 3900, 600, 0.1, w_up, $main_amp)
  439. bird(1.01, 0.01, 3910, 800, 0.1, w_up, $main_amp)
  440. bird(1.02, 0.01, 3940, 500, 0.1, w_up, $main_amp)
  441. bird(1.03, 0.01, 4000, 500, 0.1, w_up, $main_amp)
  442. bird(1.04, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  443. bird(1.05, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  444. bird(1.06, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  445. bird(1.07, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  446. bird(1.08, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  447. bird(1.09, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  448. bird(1.10, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  449. bird(1.11, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  450. bird(1.12, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  451. bird(1.13, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  452. bird(1.14, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  453. bird(1.15, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  454. bird(1.16, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  455. bird(1.17, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  456. bird(1.18, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  457. bird(1.19, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  458. bird(1.20, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  459. bird(1.21, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  460. bird(1.22, 0.01, 3900, 1000, 0.1, w_up, $main_amp)
  461. bird(1.23, 0.01, 3900, 1200, 0.1, w_up, $main_amp)
  462. bird(1.24, 0.01, 3900, 1200, 0.1, w_up, $main_amp)
  463. bird(1.25, 0.01, 3900, 1200, 0.1, w_up, $main_amp)
  464. bird(1.26, 0.01, 3900, 1200, 0.1, w_up, $main_amp)
  465. bird(1.27, 0.01, 3900, 1400, 0.1, w_up, $main_amp)
  466. bird(1.28, 0.01, 3900, 1400, 0.1, w_up, $main_amp)
  467. bird(1.29, 0.01, 3900, 1400, 0.1, w_up, $main_amp)
  468. bird(1.30, 0.01, 3900, 1400, 0.1, w_up, $main_amp)
  469. end
  470. end
  471. def nashville_warbler(beg)
  472. nash_blip = [0.00, 0.60, 0.35, 1.00, 1.00, 0.0]
  473. nash_down = [0.00, 0.90, 0.05, 1.00, 0.10, 0.90, 0.65, 0.50, 1.00, 0.0]
  474. nash_up = [0.00, 0.00, 0.15, 0.20, 0.25, 0.05, 0.90, 0.95, 1.00, 1.0]
  475. nash_amp = [0.00, 0.00, 0.80, 1.00, 1.00, 0.0]
  476. one_bird(beg, 2.0, "nashville_warbler") do
  477. bird(0.15, 0.025, 3900, 300, 0.3, nash_blip, $main_amp)
  478. bird(0.24, 0.16, 4200, 3800, 0.15, nash_down, nash_amp)
  479. bird(0.42, 0.025, 3900, 300, 0.3, nash_blip, $main_amp)
  480. bird(0.55, 0.14, 4300, 3700, 0.15, nash_down, nash_amp)
  481. bird(0.75, 0.03, 3950, 350, 0.3, nash_blip, $main_amp)
  482. bird(0.81, 0.17, 4200, 3900, 0.175, nash_down, $main_amp)
  483. bird(1.0, 0.02, 3800, 400, 0.25, nash_blip, $main_amp)
  484. bird(1.11, 0.14, 4200, 3800, 0.165, nash_down, nash_amp)
  485. bird(1.3, 0.03, 3750, 300, 0.2, nash_blip, $main_amp)
  486. bird(1.4, 0.11, 4200, 3700, 0.1, nash_down, $main_amp)
  487. bird(1.57, 0.1, 3800, 2200, 0.1, nash_up, $main_amp)
  488. bird(1.7, 0.1, 3800, 2150, 0.125, nash_up, $main_amp)
  489. bird(1.85, 0.075, 3900, 1800, 0.1, nash_up, nash_amp)
  490. end
  491. end
  492. def eastern_phoebe(beg)
  493. phoebe_one = [0.00, 0.00, 0.30, 0.30, 0.35, 0.50, 0.55, 0.40, 0.70, 0.80, 0.75, 0.70, 0.80, 1.00, 0.95, 0.90, 1.00, 0.0]
  494. phoebe_two = [0.00, 0.00, 0.50, 1.00, 1.00, 0.0]
  495. phoebe_three = [0.00, 0.00, 0.10, 0.40, 0.80, 1.00, 1.00, 0.10]
  496. phoebe_four = [0.00, 1.00, 0.50, 0.70, 1.00, 0.0]
  497. phoebe_amp = [0.00, 0.00, 0.10, 1.00, 1.00, 0.0]
  498. one_bird(beg, 1.0, "eastern_phoebe") do
  499. bird(0, 0.225, 3000, 1300, 0.3, phoebe_one, $main_amp)
  500. bird(0.35, 0.12, 3000, 500, 0.1, phoebe_two, phoebe_amp)
  501. bird(0.4, 0.10, 3000, 1500, 0.2, phoebe_three, phoebe_amp)
  502. bird(0.55, 0.05, 3000, 1400, 0.2, phoebe_four, phoebe_amp)
  503. end
  504. end
  505. def painted_bunting(beg)
  506. b_one = [0.00, 0.00, 1.00, 1.0]
  507. b_two = [0.00, 0.00, 0.90, 1.00, 1.00, 0.0]
  508. b_three = [0.00, 1.00, 1.00, 0.0]
  509. b_four = [0.00, 0.00, 0.50, 1.00, 1.00, 0.0]
  510. b_five = [0.00, 0.70, 0.15, 0.00, 0.40, 1.00, 0.80, 1.00, 1.00, 0.50]
  511. b_six = [0.00, 0.00, 0.10, 0.50, 0.15, 0.00, 0.40, 1.00, 0.90, 1.00, 1.00, 0.0]
  512. b_seven = [0.00, 1.00, 0.25, 0.40, 0.75, 0.50, 1.00, 0.0]
  513. b_eight = [0.00, 0.30, 0.40, 0.40, 0.50, 1.00, 0.60, 0.20, 1.00, 0.0]
  514. b_nine = [0.00, 0.00, 0.05, 1.00, 0.30, 1.00, 0.50, 0.30, 0.90, 1.00, 1.00, 0.0]
  515. b_ten = [0.00, 0.40, 0.25, 0.00, 0.35, 1.00, 0.50, 0.00, 0.65, 1.00, 0.75, 0.00, 0.85, 1.00, 1.00, 0.0]
  516. b_eleven = [0.00, 1.00, 1.00, 0.0]
  517. b_twelve = [0.00, 0.00, 0.50, 1.00, 1.00, 0.50]
  518. b_thirteen = [0.00, 0.00, 0.05, 1.00, 0.30, 0.20, 0.60, 0.20, 0.90, 1.00, 1.00, 0.0]
  519. b_fourteen = [0.00, 0.30, 0.30, 1.00, 0.60, 0.30, 1.00, 0.0]
  520. b_fifteen = [0.00, 0.00, 0.10, 0.50, 0.50, 0.50, 0.90, 1.00, 1.00, 0.0]
  521. one_bird(beg, 2.0, "painted_bunting") do
  522. bird(0.05, 0.10, 3100, 900, 0.05, b_one, b_two)
  523. bird(0.21, 0.07, 4100, 700, 0.15, b_three, $main_amp)
  524. bird(0.36, 0.12, 3700, 1000, 0.20, b_four, $main_amp)
  525. bird(0.52, 0.08, 2300, 1600, 0.15, b_five, b_six)
  526. bird(0.68, 0.1, 4000, 1000, 0.25, b_one, $bird_tap)
  527. bird(0.8, 0.12, 2300, 1700, 0.2, b_seven, $main_amp)
  528. bird(0.96, 0.15, 3800, 2200, 0.3, b_eight, b_nine)
  529. bird(1.18, 0.1, 2300, 1600, 0.15, b_ten, $main_amp)
  530. bird(1.3, 0.02, 3200, 1000, 0.1, b_eleven, $main_amp)
  531. bird(1.33, 0.02, 3200, 1000, 0.1, b_eleven, $main_amp)
  532. bird(1.36, 0.02, 3200, 1000, 0.1, b_eleven, $main_amp)
  533. bird(1.40, 0.03, 4000, 2000, 0.12, b_twelve, b_thirteen)
  534. bird(1.47, 0.1, 2300, 1700, 0.2, b_fourteen, b_fifteen)
  535. end
  536. end
  537. def western_flycatcher(beg)
  538. f_one = [0.00, 0.00, 0.10, 1.00, 0.20, 0.40, 0.95, 0.10, 1.00, 0.0]
  539. a_one = [0.00, 0.00, 0.10, 0.20, 0.20, 0.10, 0.30, 1.00, 0.90, 1.00, 1.00, 0.0]
  540. f_two = [0.00, 0.50, 0.25, 1.00, 0.50, 0.00, 0.60, 0.00, 0.95, 0.30, 1.00, 0.60]
  541. a_two = [0.00, 0.00, 0.10, 1.00, 0.20, 1.00, 0.50, 0.10, 0.60, 0.10, 0.90, 1.00, 1.00, 0.0]
  542. one_bird(beg, 1.0, "western_flycatcher") do
  543. bigbird(0, 0.2, 2000, 2200, 0.2, f_one, a_one, [1, 1, 2, 0.02, 3, 0.1, 4, 0.01])
  544. bigbird(0.3, 0.2, 2000, 1100, 0.2, f_two, a_two, [1, 1, 2, 0.02, 3, 0.1, 4, 0.01])
  545. end
  546. end
  547. def bachmans_sparrow(beg)
  548. sopening = [0.00, 1.00, 0.10, 0.50, 0.90, 0.50, 1.00, 0.0]
  549. sup = [0.00, 0.10, 0.35, 0.00, 1.00, 1.0]
  550. sdwn = [0.00, 1.00, 0.40, 0.50, 1.00, 0.0]
  551. supn = [0.00, 0.00, 1.00, 1.0]
  552. slast = [0.00, 1.00, 0.25, 0.00, 0.75, 0.40, 1.00, 0.50]
  553. one_bird(beg, 5.0, "bachmans_sparrow") do
  554. bird(0, 0.51, 4900, 200, 0.3, sopening, $main_amp)
  555. bird(0.52, 0.015, 3800, 200, 0.1, sup, $main_amp)
  556. bird(0.52, 0.015, 3750, 250, 0.1, sup, $main_amp)
  557. bird(0.54, 0.015, 3600, 300, 0.1, sup, $main_amp)
  558. bird(0.56, 0.015, 3500, 250, 0.1, sup, $main_amp)
  559. bird(0.58, 0.015, 3400, 200, 0.1, sup, $main_amp)
  560. bird(0.60, 0.015, 3200, 200, 0.1, sup, $main_amp)
  561. bird(0.62, 0.015, 3800, 100, 0.1, sup, $main_amp)
  562. bird(0.65, 0.07, 3000, 750, 0.2, sup, $main_amp)
  563. bird(0.73, 0.03, 5000, 1000, 0.1, sdwn, $main_amp)
  564. bird(0.80, 0.07, 3000, 750, 0.2, sup, $main_amp)
  565. bird(0.88, 0.03, 5000, 1000, 0.1, sdwn, $main_amp)
  566. bird(0.95, 0.07, 3000, 750, 0.2, sup, $main_amp)
  567. bird(1.03, 0.03, 5000, 1000, 0.1, sdwn, $main_amp)
  568. bird(1.10, 0.07, 3000, 750, 0.2, sup, $main_amp)
  569. bird(1.18, 0.03, 5000, 1000, 0.1, sdwn, $main_amp)
  570. bird(1.25, 0.07, 3000, 750, 0.2, sup, $main_amp)
  571. bird(1.33, 0.03, 5000, 1000, 0.1, sdwn, $main_amp)
  572. bird(1.40, 0.07, 3000, 750, 0.2, sup, $main_amp)
  573. bird(1.48, 0.03, 5000, 1000, 0.1, sdwn, $main_amp)
  574. bird(1.55, 0.07, 3000, 750, 0.2, sup, $main_amp)
  575. bird(1.63, 0.03, 5000, 1000, 0.1, sdwn, $main_amp)
  576. bird(2.8, 0.06, 4000, 1700, 0.1, supn, $main_amp)
  577. bird(2.87, 0.01, 5200, 0, 0.2, supn, $main_amp)
  578. bird(2.9, 0.06, 4000, 1700, 0.1, supn, $main_amp)
  579. bird(2.97, 0.01, 5200, 0, 0.2, supn, $main_amp)
  580. bird(3.0, 0.06, 4000, 1700, 0.1, supn, $main_amp)
  581. bird(3.07, 0.01, 5200, 0, 0.2, supn, $main_amp)
  582. bird(3.1, 0.06, 4000, 1700, 0.1, supn, $main_amp)
  583. bird(3.17, 0.01, 5200, 0, 0.2, supn, $main_amp)
  584. bird(3.2, 0.06, 4000, 1700, 0.1, supn, $main_amp)
  585. bird(3.27, 0.01, 5200, 0, 0.2, supn, $main_amp)
  586. bird(3.4, 0.15, 3000, 1000, 0.2, slast, $main_amp)
  587. bird(3.6, 0.15, 3000, 1000, 0.2, slast, $main_amp)
  588. bird(3.8, 0.15, 3000, 1000, 0.2, slast, $main_amp)
  589. bird(4.0, 0.15, 3000, 1000, 0.2, slast, $main_amp)
  590. bird(4.2, 0.15, 3000, 1000, 0.2, slast, $main_amp)
  591. bird(4.4, 0.15, 3000, 1000, 0.2, slast, $main_amp)
  592. end
  593. end
  594. def cedar_waxwing(beg)
  595. cedar = [0.00, 0.00, 0.25, 0.70, 0.70, 1.00, 0.90, 1.00, 1.00, 0.20]
  596. cedamp = [0.00, 0.00, 0.20, 1.00, 0.40, 1.00, 1.00, 0.0]
  597. one_bird(beg, 1.0, "cedar_waxwing") do
  598. bird(0, 0.50, 6000, 800, 0.2, cedar, cedamp)
  599. end
  600. end
  601. def bairds_sparrow(beg)
  602. bairdend = [0.00, 0.00, 0.25, 1.00, 0.50, 0.00, 0.75, 1.00, 1.00, 0.0]
  603. bairdstart = [0.00, 0.50, 0.05, 1.00, 0.10, 0.00, 0.15, 1.00, 0.20, 0.00, 0.25, 1.00, 0.30, 0.00, 0.35, 1.00, 0.40, 0.00, 0.45, 1.00, 0.50, 0.00, 0.55, 1.00, 0.60, 0.00, 0.65, 1.00, 0.70, 0.00, 0.75, 1.00, 0.80, 0.00, 0.85, 1.00, 0.90, 0.00, 0.95, 1.00, 1.00, 0.0]
  604. one_bird(beg, 2.0, "bairds_sparrow") do
  605. bird(0, 0.09, 6500, 1500, 0.2, bairdstart, $main_amp)
  606. bird(0.22, 0.01, 5900, 100, 0.2, bairdend, $main_amp)
  607. bird(0.25, 0.09, 6000, 1000, 0.2, bairdstart, $main_amp)
  608. bird(0.45, 0.01, 4200, 100, 0.2, bairdend, $main_amp)
  609. bird(0.50, 0.08, 4200, 600, 0.2, bairdstart, $main_amp)
  610. bird(0.59, 0.01, 4400, 100, 0.2, bairdend, $main_amp)
  611. bird(0.60, 0.01, 4400, 100, 0.2, bairdend, $main_amp)
  612. bird(0.68, 0.07, 5400, 700, 0.2, bairdstart, $main_amp)
  613. bird(0.75, 0.01, 4200, 100, 0.2, bairdend, $main_amp)
  614. bird(0.79, 0.01, 4400, 100, 0.2, bairdend, $main_amp)
  615. bird(0.83, 0.01, 4200, 100, 0.19, bairdend, $main_amp)
  616. bird(0.87, 0.01, 4400, 100, 0.19, bairdend, $main_amp)
  617. bird(0.91, 0.01, 4200, 100, 0.18, bairdend, $main_amp)
  618. bird(0.95, 0.01, 4400, 100, 0.18, bairdend, $main_amp)
  619. bird(0.99, 0.01, 4200, 100, 0.17, bairdend, $main_amp)
  620. bird(1.03, 0.01, 4400, 100, 0.17, bairdend, $main_amp)
  621. bird(1.07, 0.01, 4200, 100, 0.16, bairdend, $main_amp)
  622. bird(1.11, 0.01, 4400, 100, 0.16, bairdend, $main_amp)
  623. bird(1.15, 0.01, 4200, 100, 0.15, bairdend, $main_amp)
  624. bird(1.19, 0.01, 4400, 100, 0.15, bairdend, $main_amp)
  625. bird(1.23, 0.01, 4200, 100, 0.14, bairdend, $main_amp)
  626. bird(1.27, 0.01, 4400, 100, 0.14, bairdend, $main_amp)
  627. bird(1.31, 0.01, 4200, 100, 0.13, bairdend, $main_amp)
  628. bird(1.35, 0.01, 4400, 100, 0.13, bairdend, $main_amp)
  629. bird(1.39, 0.01, 4200, 100, 0.12, bairdend, $main_amp)
  630. bird(1.43, 0.01, 4400, 100, 0.12, bairdend, $main_amp)
  631. bird(1.47, 0.01, 4200, 100, 0.11, bairdend, $main_amp)
  632. bird(1.51, 0.01, 4400, 100, 0.11, bairdend, $main_amp)
  633. bird(1.55, 0.01, 4200, 100, 0.10, bairdend, $main_amp)
  634. bird(1.59, 0.01, 4400, 100, 0.10, bairdend, $main_amp)
  635. bird(1.63, 0.01, 4200, 100, 0.09, bairdend, $main_amp)
  636. bird(1.67, 0.01, 4400, 100, 0.09, bairdend, $main_amp)
  637. bird(1.71, 0.01, 4200, 100, 0.08, bairdend, $main_amp)
  638. bird(1.75, 0.01, 4400, 100, 0.08, bairdend, $main_amp)
  639. bird(1.79, 0.01, 4200, 100, 0.07, bairdend, $main_amp)
  640. bird(1.83, 0.01, 4400, 100, 0.07, bairdend, $main_amp)
  641. bird(1.87, 0.01, 4200, 100, 0.06, bairdend, $main_amp)
  642. bird(1.92, 0.01, 4400, 100, 0.06, bairdend, $main_amp)
  643. bird(1.97, 0.01, 4200, 100, 0.05, bairdend, $main_amp)
  644. end
  645. end
  646. def kentucky_warbler(beg)
  647. kenstart = [0.00, 0.30, 0.50, 1.00, 1.00, 0.0]
  648. kendwn = [0.00, 0.90, 0.10, 1.00, 1.00, 0.0]
  649. kenup = [0.00, 0.00, 1.00, 1.0]
  650. kentrill = [0.00, 1.00, 0.25, 0.00, 0.50, 0.00, 0.75, 1.00, 1.00, 0.0]
  651. one_bird(beg, 3.0, "kentucky_warbler") do
  652. bigbird(0.6, 0.02, 3800, 200, 0.05, kenstart, $main_amp, [1, 1, 2, 0.03])
  653. bigbird(0.65, 0.03, 4300, 200, 0.15, kenup, $main_amp, [1, 1, 2, 0.1])
  654. bigbird(0.73, 0.02, 3200, 100, 0.1, kendwn, $main_amp, [1, 1, 2, 0.1])
  655. bigbird(0.75, 0.05, 3000, 800, 0.15, kenstart, $main_amp, [1, 1, 2, 0.01])
  656. bigbird(0.82, 0.06, 3100, 1200, 0.1, kendwn, $main_amp, [1, 1, 2, 0.01])
  657. bigbird(0.90, 0.06, 3200, 1200, 0.1, kendwn, $main_amp, [1, 1, 2, 0.01])
  658. bigbird(0.98, 0.05, 4600, 100, 0.2, kentrill, $main_amp, [1, 1, 2, 0.1])
  659. bigbird(1.10, 0.05, 2900, 800, 0.15, kenstart, $main_amp, [1, 1, 2, 0.01])
  660. bigbird(1.17, 0.06, 3000, 1200, 0.1, kendwn, $main_amp, [1, 1, 2, 0.01])
  661. bigbird(1.25, 0.06, 3100, 1200, 0.1, kendwn, $main_amp, [1, 1, 2, 0.01])
  662. bigbird(1.33, 0.05, 4600, 100, 0.2, kentrill, $main_amp, [1, 1, 2, 0.1])
  663. bigbird(1.43, 0.05, 2800, 800, 0.15, kenstart, $main_amp, [1, 1, 2, 0.01])
  664. bigbird(1.50, 0.05, 2700, 1200, 0.1, kendwn, $main_amp, [1, 1, 2, 0.01])
  665. bigbird(1.57, 0.06, 2800, 1200, 0.1, kendwn, $main_amp, [1, 1, 2, 0.01])
  666. bigbird(1.64, 0.05, 4600, 100, 0.2, kentrill, $main_amp, [1, 1, 2, 0.1])
  667. bigbird(1.75, 0.05, 2700, 800, 0.15, kenstart, $main_amp, [1, 1, 2, 0.01])
  668. bigbird(1.81, 0.05, 2600, 1200, 0.1, kendwn, $main_amp, [1, 1, 2, 0.01])
  669. bigbird(1.88, 0.06, 2600, 1200, 0.1, kendwn, $main_amp, [1, 1, 2, 0.01])
  670. bigbird(1.97, 0.05, 4600, 100, 0.2, kentrill, $main_amp, [1, 1, 2, 0.1])
  671. bigbird(2.05, 0.05, 2700, 800, 0.15, kenstart, $main_amp, [1, 1, 2, 0.01])
  672. bigbird(2.12, 0.06, 2600, 1200, 0.1, kendwn, $main_amp, [1, 1, 2, 0.01])
  673. bigbird(2.20, 0.05, 4600, 100, 0.2, kentrill, $main_amp, [1, 1, 2, 0.1])
  674. bigbird(2.30, 0.05, 2800, 800, 0.15, kenstart, $main_amp, [1, 1, 2, 0.01])
  675. bigbird(2.37, 0.06, 2700, 1200, 0.1, kendwn, $main_amp, [1, 1, 2, 0.01])
  676. bigbird(2.45, 0.05, 4700, 100, 0.25, kentrill, $main_amp, [1, 1, 2, 0.1])
  677. end
  678. end
  679. def rufous_sided_towhee(beg)
  680. towhee_one = [0.00, 0.10, 0.02, 0.05, 0.04, 0.15, 0.06, 0.05, 0.08, 0.20, 0.10, 0.04, 0.12, 0.25, 0.14, 0.03, 0.16, 0.30, 0.18, 0.02, 0.20, 0.35, 0.22, 0.01, 0.24, 0.40, 0.26, 0.00, 0.28, 0.45, 0.30, 0.00, 0.32, 0.50, 0.34, 0.00, 0.36, 0.50, 0.80, 1.00, 1.00, 0.0]
  681. towhee_two = [0.00, 0.00, 1.00, 1.0]
  682. towhee_three = [0.00, 1.00, 1.00, 0.0]
  683. one_bird(beg, 2.0, "rufous_sided_towhee") do
  684. bigbird(0.25, 0.13, 1400, 1100, 0.2, towhee_one, $main_amp, [1, 0.03, 2, 1, 3, 0.03])
  685. bigbird(0.45, 0.13, 1400, 1100, 0.2, towhee_one, $main_amp, [1, 0.03, 2, 1, 3, 0.03])
  686. bigbird(0.60, 0.13, 1400, 1100, 0.2, towhee_one, $main_amp, [1, 0.03, 2, 1, 3, 0.03])
  687. bigbird(0.75, 0.10, 1400, 1100, 0.2, towhee_one, $main_amp, [1, 0.03, 2, 1, 3, 0.03])
  688. bird(0.88, 0.01, 5100, 2000, 0.1, towhee_two, $main_amp)
  689. bird(0.895, 0.01, 5100, 1600, 0.1, towhee_two, $main_amp)
  690. bird(0.91, 0.01, 5100, 1000, 0.1, towhee_two, $main_amp)
  691. bird(0.93, 0.01, 3000, 1200, 0.1, towhee_three, $main_amp)
  692. bird(0.945, 0.01, 5100, 2000, 0.09, towhee_two, $main_amp)
  693. bird(0.96, 0.01, 5100, 1600, 0.09, towhee_two, $main_amp)
  694. bird(0.975, 0.01, 5100, 1000, 0.09, towhee_two, $main_amp)
  695. bird(0.995, 0.01, 3000, 1200, 0.09, towhee_three, $main_amp)
  696. bird(1.01, 0.01, 5100, 2000, 0.1, towhee_two, $main_amp)
  697. bird(1.025, 0.01, 5100, 1600, 0.1, towhee_two, $main_amp)
  698. bird(1.04, 0.01, 5100, 1000, 0.1, towhee_two, $main_amp)
  699. bird(1.06, 0.01, 3000, 1200, 0.1, towhee_three, $main_amp)
  700. bird(1.075, 0.01, 5100, 2000, 0.09, towhee_two, $main_amp)
  701. bird(1.09, 0.01, 5100, 1600, 0.09, towhee_two, $main_amp)
  702. bird(1.105, 0.01, 5100, 1000, 0.09, towhee_two, $main_amp)
  703. bird(1.125, 0.01, 3000, 1200, 0.09, towhee_three, $main_amp)
  704. bird(1.14, 0.01, 5100, 2000, 0.08, towhee_two, $main_amp)
  705. bird(1.155, 0.01, 5100, 1600, 0.08, towhee_two, $main_amp)
  706. bird(1.17, 0.01, 5100, 1000, 0.08, towhee_two, $main_amp)
  707. bird(1.19, 0.01, 3000, 1200, 0.08, towhee_three, $main_amp)
  708. bird(1.205, 0.01, 5100, 2000, 0.08, towhee_two, $main_amp)
  709. bird(1.220, 0.01, 5100, 1600, 0.08, towhee_two, $main_amp)
  710. bird(1.235, 0.01, 5100, 1000, 0.08, towhee_two, $main_amp)
  711. bird(1.255, 0.01, 3000, 1200, 0.08, towhee_three, $main_amp)
  712. bird(1.27, 0.01, 5100, 2000, 0.07, towhee_two, $main_amp)
  713. bird(1.285, 0.01, 5100, 1600, 0.07, towhee_two, $main_amp)
  714. bird(1.30, 0.01, 5100, 1000, 0.07, towhee_two, $main_amp)
  715. bird(1.32, 0.01, 3000, 1200, 0.07, towhee_three, $main_amp)
  716. bird(1.335, 0.01, 5100, 2000, 0.06, towhee_two, $main_amp)
  717. bird(1.350, 0.01, 5100, 1600, 0.06, towhee_two, $main_amp)
  718. bird(1.365, 0.01, 5100, 1000, 0.06, towhee_two, $main_amp)
  719. bird(1.385, 0.01, 3000, 1200, 0.06, towhee_three, $main_amp)
  720. bird(1.400, 0.01, 5100, 2000, 0.05, towhee_two, $main_amp)
  721. bird(1.415, 0.01, 5100, 1600, 0.05, towhee_two, $main_amp)
  722. bird(1.430, 0.01, 5100, 1000, 0.05, towhee_two, $main_amp)
  723. bird(1.45, 0.01, 3000, 1200, 0.05, towhee_three, $main_amp)
  724. bird(1.465, 0.01, 5100, 2000, 0.03, towhee_two, $main_amp)
  725. bird(1.480, 0.01, 5100, 1600, 0.03, towhee_two, $main_amp)
  726. bird(1.495, 0.01, 5100, 1000, 0.03, towhee_two, $main_amp)
  727. bird(1.515, 0.01, 3000, 1200, 0.03, towhee_three, $main_amp)
  728. end
  729. end
  730. def prothonotary_warbler(beg)
  731. pro_one = [0.00, 0.10, 0.20, 0.00, 1.00, 1.0]
  732. pro_two = [0.00, 0.00, 1.00, 1.0]
  733. pro_amp = [0.00, 0.00, 0.20, 1.00, 0.40, 0.50, 1.00, 0.0]
  734. one_bird(beg, 3.0, "prothonotary_warbler") do
  735. bird(0.76, 0.08, 3000, 3000, 0.05, pro_one, pro_amp)
  736. bird(0.85, 0.05, 4000, 2500, 0.06, pro_two, $bird_amp)
  737. bird(1.02, 0.09, 3000, 3000, 0.10, pro_one, pro_amp)
  738. bird(1.12, 0.05, 4000, 2500, 0.10, pro_two, $bird_amp)
  739. bird(1.26, 0.08, 3000, 3000, 0.15, pro_one, pro_amp)
  740. bird(1.35, 0.05, 4000, 2500, 0.16, pro_two, $bird_amp)
  741. bird(1.54, 0.08, 3000, 3000, 0.20, pro_one, pro_amp)
  742. bird(1.63, 0.05, 4000, 2500, 0.19, pro_two, $bird_amp)
  743. bird(1.80, 0.08, 3000, 3000, 0.20, pro_one, pro_amp)
  744. bird(1.89, 0.05, 4000, 2500, 0.16, pro_two, $bird_amp)
  745. bird(2.03, 0.08, 3000, 3000, 0.15, pro_one, pro_amp)
  746. bird(2.12, 0.05, 4000, 2500, 0.10, pro_two, $bird_amp)
  747. bird(2.30, 0.08, 3000, 3000, 0.10, pro_one, pro_amp)
  748. bird(2.39, 0.05, 4000, 2500, 0.06, pro_two, $bird_amp)
  749. end
  750. end
  751. def audubons_warbler(beg)
  752. w_up = [0.00, 0.00, 1.00, 1.0]
  753. w_down = [0.00, 1.00, 1.00, 0.0]
  754. w_end = [0.00, 0.00, 0.15, 1.00, 0.45, 0.90, 0.50, 0.00, 0.55, 1.00, 0.90, 0.90, 1.00, 0.10]
  755. w_updown = [0.00, 0.10, 0.50, 1.00, 1.00, 0.0]
  756. one_bird(beg, 3.0, "audubons_warbler") do
  757. bird(0.75, 0.04, 2400, 200, 0.05, w_down, $bird_amp)
  758. bird(0.83, 0.03, 3200, 200, 0.1, w_up, $bird_amp)
  759. bird(0.90, 0.04, 2500, 300, 0.15, w_up, $bird_amp)
  760. bird(0.97, 0.04, 2300, 600, 0.15, w_down, $bird_amp)
  761. bird(1.02, 0.03, 3500, 400, 0.20, w_up, $bird_amp)
  762. bird(1.06, 0.04, 2300, 1200, 0.10, w_up, $bird_amp)
  763. bird(1.13, 0.05, 2300, 1200, 0.15, w_down, $bird_amp)
  764. bird(1.22, 0.02, 3200, 800, 0.25, w_up, $bird_amp)
  765. bird(1.25, 0.08, 2400, 600, 0.20, w_updown, $bird_amp)
  766. bird(1.35, 0.02, 2200, 400, 0.10, w_up, $bird_amp)
  767. bird(1.38, 0.07, 2400, 1400, 0.15, w_down, $bird_amp)
  768. bird(1.47, 0.03, 3000, 800, 0.20, w_up, $bird_amp)
  769. bird(1.50, 0.03, 2500, 400, 0.10, w_updown, $bird_amp)
  770. bird(1.55, 0.01, 2300, 100, 0.05, w_up, $bird_amp)
  771. bird(1.56, 0.06, 2200, 1400, 0.15, w_down, $bird_amp)
  772. bird(1.65, 0.03, 3100, 800, 0.10, w_up, $bird_amp)
  773. bird(1.70, 0.07, 2800, 800, 0.15, w_updown, $bird_amp)
  774. bird(1.79, 0.06, 2400, 1000, 0.10, w_down, $bird_amp)
  775. bird(1.86, 0.14, 3100, 900, 0.25, w_end, $bird_amp)
  776. bird(2.02, 0.12, 3200, 800, 0.20, w_end, $bird_amp)
  777. end
  778. end
  779. def lark_bunting(beg)
  780. b_down = [0.00, 1.00, 1.00, 0.0]
  781. b_up = [0.00, 0.00, 1.00, 1.0]
  782. b_trill_one = [0.00, 0.00, 0.06, 0.80, 0.12, 0.00, 0.18, 0.85, 0.24, 0.05, 0.36, 0.90, 0.42, 0.10, 0.48, 0.95, 0.54, 0.20, 0.60, 1.00, 0.66, 0.20, 0.72, 1.00, 0.78, 0.20, 0.84, 1.00, 0.90, 0.20, 1.00, 1.0]
  783. b_trill_two = [0.00, 0.00, 0.05, 0.80, 0.10, 0.00, 0.15, 0.85, 0.20, 0.00, 0.25, 0.90, 0.30, 0.00, 0.35, 0.95, 0.40, 0.00, 0.45, 1.00, 0.50, 0.00, 0.55, 1.00, 0.60, 0.00, 0.65, 1.00, 0.70, 0.00, 0.75, 1.00, 0.80, 0.00, 0.85, 1.00, 0.90, 0.00, 0.95, 1.00, 1.00, 0.0]
  784. one_bird(beg, 3.0, "lark_bunting") do
  785. bird(0.1, 0.03, 1800, 100, 0.1, b_up, $bird_amp)
  786. bird(0.2, 0.12, 3700, 400, 0.2, b_up, $bird_amp)
  787. bird(0.4, 0.03, 4100, 500, 0.15, b_down, $bird_amp)
  788. bird(0.45, 0.05, 2000, 400, 0.20, b_down, $bird_amp)
  789. bird(0.51, 0.03, 1800, 100, 0.1, b_up, $bird_amp)
  790. bird(0.6, 0.03, 4100, 500, 0.15, b_down, $bird_amp)
  791. bird(0.65, 0.05, 2000, 400, 0.20, b_down, $bird_amp)
  792. bird(0.71, 0.03, 1800, 100, 0.1, b_up, $bird_amp)
  793. bird(0.8, 0.03, 4100, 500, 0.15, b_down, $bird_amp)
  794. bird(0.85, 0.05, 2000, 400, 0.20, b_down, $bird_amp)
  795. bird(0.91, 0.03, 1800, 100, 0.1, b_up, $bird_amp)
  796. bird(1.0, 0.03, 4100, 500, 0.15, b_down, $bird_amp)
  797. bird(1.05, 0.05, 2000, 400, 0.20, b_down, $bird_amp)
  798. bird(1.11, 0.03, 1800, 100, 0.1, b_up, $bird_amp)
  799. bird(1.2, 0.03, 4100, 500, 0.15, b_down, $bird_amp)
  800. bird(1.25, 0.05, 2000, 400, 0.20, b_down, $bird_amp)
  801. bird(1.31, 0.03, 1800, 100, 0.1, b_up, $bird_amp)
  802. bird(1.4, 0.03, 4100, 500, 0.15, b_down, $bird_amp)
  803. bird(1.45, 0.05, 2000, 400, 0.20, b_down, $bird_amp)
  804. bird(1.51, 0.03, 1800, 100, 0.1, b_up, $bird_amp)
  805. bird(1.6, 0.03, 4100, 500, 0.15, b_down, $bird_amp)
  806. bird(1.65, 0.05, 2000, 400, 0.20, b_down, $bird_amp)
  807. bird(1.71, 0.03, 1800, 100, 0.1, b_up, $bird_amp)
  808. bird(1.77, 0.23, 6000, 600, 0.15, b_trill_one, $bird_amp)
  809. bird(2.005, 0.28, 6000, 600, 0.15, b_trill_two, $bird_amp)
  810. end
  811. end
  812. def eastern_bluebird(beg)
  813. blue_one = [0.00, 0.00, 1.00, 1.0]
  814. blue_two = [0.00, 1.00, 1.00, 0.0]
  815. blue_three = [0.00, 0.60, 0.10, 1.00, 0.20, 0.00, 0.25, 1.00, 0.30, 0.00, 0.35, 1.00, 0.40, 0.00, 0.45, 1.00, 0.50, 0.00, 0.75, 1.00, 1.00, 0.0]
  816. blue_four = [0.00, 0.00, 0.50, 1.00, 1.00, 0.0]
  817. blue_five = [0.00, 0.50, 0.10, 1.00, 0.20, 0.00, 0.35, 1.00, 0.50, 0.00, 0.65, 1.00, 0.80, 0.00, 0.95, 1.00, 1.00, 0.50]
  818. one_bird(beg, 3.0, "eastern_bluebird") do
  819. bird(0.75, 0.02, 2000, 1600, 0.1, blue_one, $bird_amp)
  820. bird(0.80, 0.02, 2000, 1600, 0.1, blue_one, $bird_amp)
  821. bird(0.86, 0.02, 2000, 1600, 0.1, blue_one, $bird_amp)
  822. bird(1.00, 0.13, 2000, 1400, 0.2, blue_two, $bird_amp)
  823. bird(1.20, 0.24, 2000, 800, 0.2, blue_three, $bird_amp)
  824. bird(1.68, 0.03, 2200, 400, 0.1, blue_one, $bird_amp)
  825. bird(1.72, 0.10, 1950, 100, 0.15, blue_four, $bird_amp)
  826. bird(1.96, 0.15, 2000, 600, 0.20, blue_five, $bird_amp)
  827. end
  828. end
  829. def chuck_wills_widow(beg)
  830. wid_down = [0.00, 1.00, 1.00, 0.0]
  831. wid_one = [0.00, 0.00, 0.10, 0.10, 0.25, 1.00, 0.50, 0.30, 0.80, 0.70, 1.00, 0.0]
  832. wid_two = [0.00, 0.20, 0.30, 1.00, 0.50, 0.30, 0.60, 0.70, 0.90, 0.10, 1.00, 0.0]
  833. one_bird(beg, 1.0, "chuck_wills_widow") do
  834. bird(0.05, 0.03, 1000, 800, 0.1, wid_down, $bird_amp)
  835. bird(0.32, 0.20, 1000, 1000, 0.2, wid_one, $bird_amp)
  836. bird(0.56, 0.29, 900, 1100, 0.2, wid_two, $bird_amp)
  837. end
  838. end
  839. def blue_gray_gnatcatcher(beg)
  840. gskw1 = [0.00, 0.00, 0.15, 1.00, 0.75, 0.80, 0.90, 1.00, 1.00, 0.70]
  841. gskw2 = [0.00, 0.00, 0.25, 1.00, 0.75, 0.70, 1.00, 0.0]
  842. one_bird(beg, 3.0, "blue_gray_gnatcatcher") do
  843. bigbird(0.5, 0.20, 4000, 1000, 0.2, gskw1, $bird_amp, [1, 0.4, 2, 1, 3, 0.1])
  844. bigbird(0.8, 0.13, 4000, 800, 0.2, gskw2, $bird_amp, [1, 0.4, 2, 1, 3, 0.2])
  845. bigbird(1.4, 0.25, 4000, 800, 0.2, gskw2, $bird_amp, [1, 0.4, 2, 1, 3, 0.3])
  846. bigbird(1.80, 0.17, 4000, 900, 0.2, gskw1, $bird_amp, [1, 0.4, 2, 1, 3, 0.3])
  847. bigbird(2.00, 0.17, 4000, 700, 0.2, gskw1, $bird_amp, [1, 0.4, 2, 1, 3, 0.3])
  848. bigbird(2.20, 0.17, 4000, 800, 0.2, gskw2, $bird_amp, [1, 0.4, 2, 1, 3, 0.3])
  849. end
  850. end
  851. def black_throated_sparrow(beg)
  852. black_up = [0.00, 0.00, 1.00, 1.0]
  853. black_down = [0.00, 1.00, 1.00, 0.0]
  854. black_down_amp = [0.00, 0.00, 0.75, 1.00, 1.00, 0.0]
  855. black_trill = [0.00, 0.00, 0.03, 0.70, 0.06, 0.00, 0.09, 0.75, 0.12, 0.00, 0.15, 0.80, 0.18, 0.05, 0.21, 0.85, 0.24, 0.10, 0.27, 0.90, 0.30, 0.10, 0.33, 1.00, 0.36, 0.10, 0.39, 1.00, 0.42, 0.10, 0.45, 1.00, 0.48, 0.10, 0.51, 1.00, 0.54, 0.10, 0.57, 1.00, 0.60, 0.10, 0.63, 1.00, 0.66, 0.10, 0.69, 1.00, 0.72, 0.10, 0.75, 1.00, 0.78, 0.10, 0.81, 1.00, 0.84, 0.10, 0.87, 1.00, 0.90, 0.00, 0.93, 0.95, 0.96, 0.00, 1.00, 0.90]
  856. black_up_down = [0.00, 0.00, 0.50, 1.00, 1.00, 0.20]
  857. black_amp = [0.00, 0.00, 0.50, 1.00, 1.00, 0.0]
  858. one_bird(beg, 3.0, "black_throated_sparrow") do
  859. bird(0.8, 0.02, 2200, 1000, 0.1, black_down, $bird_amp)
  860. bird(0.83, 0.01, 3000, 200, 0.05, black_up, $bird_amp)
  861. bird(0.96, 0.02, 5800, 500, 0.05, black_up, $bird_amp)
  862. bird(1.00, 0.02, 4000, 200, 0.05, black_up, $bird_amp)
  863. bird(1.04, 0.10, 2100, 1700, 0.15, black_down, black_down_amp)
  864. bird(1.15, 0.05, 5700, 400, 0.25, black_up, $bird_amp)
  865. bird(1.25, 0.25, 2000, 900, 0.2, black_trill, $bird_amp)
  866. bird(1.52, 0.05, 5600, 400, 0.15, black_up_down, $bird_amp)
  867. bird(1.6, 0.04, 3900, 1100, 0.15, black_up, $bird_amp)
  868. bird(1.66, 0.01, 1900, 100, 0.10, black_up, black_amp)
  869. bird(1.69, 0.01, 3600, 300, 0.10, black_up, black_amp)
  870. bird(1.71, 0.03, 3900, 1000, 0.15, black_up, black_amp)
  871. bird(1.74, 0.02, 5000, 100, 0.20, black_up, black_amp)
  872. bird(1.76, 0.01, 1900, 100, 0.10, black_up, black_amp)
  873. bird(1.78, 0.01, 3600, 300, 0.10, black_up, black_amp)
  874. bird(1.80, 0.03, 3900, 1000, 0.15, black_up, black_amp)
  875. bird(1.83, 0.02, 5000, 100, 0.20, black_up, black_amp)
  876. bird(1.85, 0.01, 1900, 100, 0.10, black_up, black_amp)
  877. bird(1.87, 0.01, 3600, 300, 0.10, black_up, black_amp)
  878. bird(1.89, 0.03, 3900, 1000, 0.15, black_up, black_amp)
  879. bird(1.92, 0.02, 5000, 100, 0.20, black_up, black_amp)
  880. bird(1.94, 0.01, 1900, 100, 0.10, black_up, black_amp)
  881. bird(1.96, 0.01, 3600, 300, 0.10, black_up, black_amp)
  882. bird(1.98, 0.03, 3900, 1000, 0.15, black_up, black_amp)
  883. bird(2.01, 0.02, 5000, 100, 0.20, black_up, black_amp)
  884. bird(2.03, 0.01, 1900, 100, 0.10, black_up, black_amp)
  885. bird(2.05, 0.01, 3600, 300, 0.10, black_up, black_amp)
  886. bird(2.07, 0.03, 3900, 1000, 0.15, black_up, black_amp)
  887. bird(2.10, 0.02, 5000, 100, 0.20, black_up, black_amp)
  888. bird(2.13, 0.01, 1900, 100, 0.10, black_up, black_amp)
  889. bird(2.16, 0.03, 3800, 300, 0.1, black_up, $bird_amp)
  890. end
  891. end
  892. def black_chinned_sparrow(beg)
  893. chin_up = [0.00, 0.00, 1.00, 1.0]
  894. chin_up2 = [0.00, 0.00, 0.30, 0.20, 1.00, 1.0]
  895. one_bird(beg, 3.0, "black_chinned_sparrow") do
  896. bird(0.6, 0.2, 4200, 100, 0.1, chin_up, $bird_amp)
  897. bird(1.0, 0.09, 3800, 2000, 0.1, chin_up2, $bird_amp)
  898. bird(1.25, 0.08, 3900, 1700, 0.12, chin_up2, $bird_amp)
  899. bird(1.40, 0.08, 3600, 2300, 0.13, chin_up, $bird_amp)
  900. bird(1.50, 0.11, 3100, 2800, 0.14, chin_up, $bird_amp)
  901. bird(1.65, 0.07, 2900, 2700, 0.15, chin_up, $bird_amp)
  902. bird(1.74, 0.07, 2900, 2700, 0.15, chin_up, $bird_amp)
  903. bird(1.82, 0.07, 3000, 2300, 0.13, chin_up, $bird_amp)
  904. bird(1.89, 0.07, 3200, 2000, 0.10, chin_up, $bird_amp)
  905. bird(1.97, 0.05, 3200, 1500, 0.10, chin_up, $bird_amp)
  906. bird(2.04, 0.04, 3400, 1000, 0.07, chin_up, $bird_amp)
  907. bird(2.10, 0.03, 3600, 700, 0.05, chin_up, $bird_amp)
  908. bird(2.15, 0.03, 3800, 300, 0.05, chin_up, $bird_amp)
  909. bird(2.19, 0.02, 3900, 100, 0.03, chin_up, $bird_amp)
  910. bird(2.22, 0.01, 3900, 100, 0.01, chin_up, $bird_amp)
  911. bird(2.24, 0.01, 3900, 100, 0.01, chin_up, $bird_amp)
  912. end
  913. end
  914. def various_gull_cries_from_end_of_colony_5(beg)
  915. gullstart = [0, 0, 10, 1, 20, 0.5000, 40, 0.6000, 60, 0.5000, 100, 0]
  916. gullmiddle = [0, 0, 10, 1, 30, 0.5000, 80, 0.5000, 100, 0]
  917. gullend = [0, 0, 5, 1, 10, 0.5000, 90, 0.4000, 100, 0]
  918. unknown = [1, 0.1, 2, 1, 3, 0.1, 4, 0.01, 5, 0.09, 6, 0.01, 7, 0.01]
  919. one_bird(beg, 10.0, "gulls") do
  920. bigbird(0.250, 0.80, 1180, 1180, 0.08, gullend, $bird_amp, unknown)
  921. bigbird(1.500, 0.90, 1180, 1180, 0.07, gullend, $bird_amp, unknown)
  922. bigbird(2.750, 1.00, 1050, 1050, 0.08, gullend, $bird_amp, unknown)
  923. bigbird(4.800, 0.05, 1180, 1180, 0.06, gullstart, $bird_amp, unknown)
  924. bigbird(4.950, 0.10, 1180, 1180, 0.08, gullstart, $bird_amp, unknown)
  925. bigbird(5.150, 0.10, 1180, 1180, 0.09, gullstart, $bird_amp, unknown)
  926. bigbird(5.350, 0.10, 1180, 1180, 0.1, gullmiddle, $bird_amp, unknown)
  927. bigbird(5.450, 0.40, 1050, 1050, 0.1, gullend, $bird_amp, unknown)
  928. bigbird(6.250, 0.80, 1050, 1050, 0.1, gullend, $bird_amp, unknown)
  929. bigbird(7.450, 1.80, 1050, 1050, 0.1, gullend, $bird_amp, unknown)
  930. end
  931. end
  932. def make_birds
  933. # atime = Time.new
  934. $out_file = new_sound("test.snd")
  935. set_squelch_update(true, $out_file, 0)
  936. orchard_oriole(0)
  937. cassins_kingbird(3)
  938. chipping_sparrow(6)
  939. bobwhite(9)
  940. western_meadowlark(12)
  941. scissor_tailed_flycatcher(15)
  942. great_horned_owl(18)
  943. black_throated_gray_warbler(21)
  944. yellow_warbler(24)
  945. black_necked_stilt(27)
  946. chestnut_sided_warbler(30)
  947. grasshopper_sparrow(33)
  948. swamp_sparrow(36)
  949. golden_crowned_sparrow(39)
  950. indigo_bunting(42)
  951. hooded_warbler(45)
  952. american_widgeon(48)
  953. louisiana_waterthrush(51)
  954. robin(54)
  955. solitary_vireo(57)
  956. pigeon_hawk(61)
  957. cerulean_warbler(64)
  958. nashville_warbler(67)
  959. eastern_phoebe(70)
  960. painted_bunting(73)
  961. western_flycatcher(76)
  962. bachmans_sparrow(79)
  963. cedar_waxwing(82)
  964. bairds_sparrow(85)
  965. kentucky_warbler(88)
  966. rufous_sided_towhee(91)
  967. prothonotary_warbler(94)
  968. audubons_warbler(97)
  969. lark_bunting(100)
  970. eastern_bluebird(103)
  971. chuck_wills_widow(106)
  972. blue_gray_gnatcatcher(109)
  973. black_throated_sparrow(112)
  974. black_chinned_sparrow(115)
  975. set_squelch_update(false, $out_file, 0)
  976. various_gull_cries_from_end_of_colony_5(118)
  977. $out_data = false
  978. # btime = Time.new
  979. # $stderr.write sprintf("time: %f\n", btime - atime)
  980. end