//------------------------------------------------------------------------------------------
//komorki pamieciowe

//zapowiadania
//Ns-Dz (pospieszny)
node -1 0 memcell_sound1-zap memcell 1.0 1.0 0.0 sound1-zap 0 0 none endmemcell
event sound1-zap_upd_1 updatevalues 2.0 memcell_sound1-zap sound1-zap 1 1 endevent
event sound1-zap_upd_2 updatevalues 2.0 memcell_sound1-zap sound1-zap 2 2 endevent
event sound1-zap_upd_3 updatevalues 2.0 memcell_sound1-zap sound1-zap 3 3 endevent
event sound1-zap_upd_4 updatevalues 2.0 memcell_sound1-zap sound1-zap 4 4 endevent
event sound1-zap_upd_5 updatevalues 2.0 memcell_sound1-zap sound1-zap 5 5 endevent
event sound1-zap_upd_6 updatevalues 2.0 memcell_sound1-zap sound1-zap 6 6 endevent

//Dz-Ns (osobowy)
node -1 0 memcell_sound2-zap memcell 1.0 1.0 0.0 sound2-zap 0 0 none endmemcell
event sound2-zap_upd_1 updatevalues 2.0 memcell_sound2-zap sound2-zap 1 1 endevent
event sound2-zap_upd_2 updatevalues 2.0 memcell_sound2-zap sound2-zap 2 2 endevent
event sound2-zap_upd_3 updatevalues 2.0 memcell_sound2-zap sound2-zap 3 3 endevent
event sound2-zap_upd_4 updatevalues 2.0 memcell_sound2-zap sound2-zap 4 4 endevent

//inne (sound3)
node -1 0 memcell_sound3-zap memcell 1.0 1.0 0.0 sound3-zap 0 0 none endmemcell
event sound3-zap_upd_1 updatevalues 2.0 memcell_sound3-zap sound3-zap 1 1 endevent

//inne (sound4)
node -1 0 memcell_sound4-zap memcell 1.0 1.0 0.0 sound4-zap 0 0 none endmemcell
event sound4-zap_upd_1 updatevalues 2.0 memcell_sound4-zap sound4-zap 1 1 endevent
event sound4-zap_upd_2 updatevalues 2.0 memcell_sound4-zap sound4-zap 2 2 endevent

//=======================

//odjazdy
//Ns-Dz (pospieszny)
node -1 0 memcell_sound1-odj memcell 0.0 0.0 0.0 sound1-odj 0 0 none endmemcell
event sound1-odj_upd_1 updatevalues 2.0 memcell_sound1-odj sound1-odj 1 1 endevent
event sound1-odj_upd_2 updatevalues 2.0 memcell_sound1-odj sound1-odj 2 2 endevent
event sound1-odj_upd_3 updatevalues 2.0 memcell_sound1-odj sound1-odj 3 3 endevent
event sound1-odj_upd_4 updatevalues 2.0 memcell_sound1-odj sound1-odj 4 4 endevent

//Dz-Ns (osobowy)
node -1 0 memcell_sound2-odj memcell 0.0 0.0 0.0 sound2-odj 0 0 none endmemcell
event sound2-odj_upd_1 updatevalues 2.0 memcell_sound2-odj sound2-odj 1 1 endevent
event sound2-odj_upd_2 updatevalues 2.0 memcell_sound2-odj sound2-odj 2 2 endevent
event sound2-odj_upd_3 updatevalues 2.0 memcell_sound2-odj sound2-odj 3 3 endevent
event sound2-odj_upd_4 updatevalues 2.0 memcell_sound2-odj sound2-odj 4 4 endevent
event sound2-odj_upd_5 updatevalues 2.0 memcell_sound2-odj sound2-odj 5 5 endevent
event sound2-odj_upd_6 updatevalues 2.0 memcell_sound2-odj sound2-odj 6 6 endevent
event sound2-odj_upd_7 updatevalues 2.0 memcell_sound2-odj sound2-odj 7 7 endevent
event sound2-odj_upd_8 updatevalues 2.0 memcell_sound2-odj sound2-odj 8 8 endevent
event sound2-odj_upd_9 updatevalues 2.0 memcell_sound2-odj sound2-odj 9 9 endevent
event sound2-odj_upd_10 updatevalues 2.0 memcell_sound2-odj sound2-odj 10 10 endevent
event sound2-odj_upd_11 updatevalues 2.0 memcell_sound2-odj sound2-odj 11 11 endevent
event sound2-odj_upd_12 updatevalues 2.0 memcell_sound2-odj sound2-odj 12 12 endevent
event sound2-odj_upd_13 updatevalues 2.0 memcell_sound2-odj sound2-odj 13 13 endevent
event sound2-odj_upd_14 updatevalues 2.0 memcell_sound2-odj sound2-odj 14 14 endevent
event sound2-odj_upd_15 updatevalues 2.0 memcell_sound2-odj sound2-odj 15 15 endevent

//------------------------------------------------------------------------------------------

//wyzwolenia zapowiadan
//grupa sound1-odj (pospiech z ns)
event zapow_kr-po_wjazd multiple 0.0 memcell_sound1-zap zapowiadanie_wjazd_kr-po sound1-zap_upd_1 condition memcompare sound1-zap 0 0 endevent
event zapow_kr-po_odjazd multiple 0.0 memcell_sound1-zap zapowiadanie_odjazd_kr-po sound1-zap_upd_2 condition memcompare sound1-zap 1 1 endevent
event zapow_ns-dz_odjazd multiple 0.0 memcell_sound1-zap zapowiadanie_odjazd_ns-dz sound1-zap_upd_3 condition memcompare sound1-zap 2 2 endevent
event zapow_ns-dz_postoj-kr multiple 0.0 memcell_sound1-zap zapowiadanie_postoj-kr_ns-dz sound1-zap_upd_4 condition memcompare sound1-zap 3 3 endevent
event zapow_ns-dz_postoj-kr_ai multiple 0.0 memcell_sound4-zap zapowiadanie_postoj-kr_ns-dz_ai sound4-zap_upd_1 condition memcompare sound4-zap 0 0 endevent
event zapow_ns-dz_postoj-od multiple 0.0 memcell_sound1-zap zapowiadanie_postoj-od_ns-dz sound1-zap_upd_5 condition memcompare sound1-zap 4 4 endevent
event zapow_ns-dz_konczybieg multiple 0.0 memcell_sound1-zap zapowiadanie_konczybieg_ns-dz sound1-zap_upd_6 condition memcompare sound1-zap 5 5 endevent

//grupa sound2-odj (osobowy z dzierzawy)
event zapow_dz-ns_odjazd multiple 1.0 memcell_sound2-zap zapowiadanie_odjazd_dz-ns sound2-zap_upd_1 condition memcompare sound2-zap 0 0 endevent
event zapow_dz-ns_postoj multiple 1.0 memcell_sound2-zap zapowiadanie_postoj-od_dz-ns sound2-zap_upd_2 condition memcompare sound2-zap 1 1 endevent
event zapow_dz-ns_postoj-kr multiple 1.0 memcell_sound2-zap zapowiadanie_postoj-od_dz-ns sound2-zap_upd_3 condition memcompare sound2-zap 2 2 endevent
event zapow_dz-ns_konczybieg multiple 1.0 memcell_sound2-zap zapowiadanie_konczybieg_dz-ns sound2-zap_upd_4 condition memcompare sound2-zap 3 3 endevent

//grupa inna niz wszystkie :P
event zapow_po-ns_konczybieg multiple 1.0 memcell_sound3-zap zapowiadanie_konczybieg_po-ns sound3-zap_upd_1 condition memcompare sound3-zap 0 0 endevent
event zapow_dz-ns_odjazd-kr_ai multiple 1.0 memcell_sound4-zap zapowiadanie_postoj-kr_odjazd-ai sound4-zap_upd_2 condition memcompare sound4-zap 1 1 endevent

//=======================

//wyzwolenia odjazdow
//grupa sound1 (pospiech z ns)
event 35907odjazd1 multiple 3.0 memcell_sound1-odj 35907od_ns sound1-odj_upd_1 condition memcompare sound1-odj 0 0 endevent
event 35907odjazd2 multiple 3.0 memcell_sound1-odj 35907od_kr sound1-odj_upd_2 condition memcompare sound1-odj 1 1 endevent
event 35907odjazd3 multiple 3.0 memcell_sound1-odj 35907od_rb sound1-odj_upd_3 condition memcompare sound1-odj 2 2 endevent
event 35907odjazd4 multiple 3.0 memcell_sound1-odj 35907od_rb condition memcompare sound1-odj 3 3 endevent

//grupa sound2 (osobowy z dz)
event dz_5501odjazd multiple 3.0 memcell_sound2-odj dz_5501od sound2-odj_upd_1 condition memcompare sound2-odj 0 0 endevent
event dj_5501odjazd multiple 3.0 memcell_sound2-odj dj_5501od sound2-odj_upd_2 condition memcompare sound2-odj 1 1 endevent
event rb_5501odjazd multiple 3.0 memcell_sound2-odj rb_5501od sound2-odj_upd_3 condition memcompare sound2-odj 2 2 endevent
event ml_5501odjazd multiple 3.0 memcell_sound2-odj ml_5501od sound2-odj_upd_4 condition memcompare sound2-odj 3 3 endevent
event pa_5501odjazd multiple 3.0 memcell_sound2-odj pa_5501od sound2-odj_upd_5 condition memcompare sound2-odj 4 4 endevent
event cz_5501odjazd multiple 3.0 memcell_sound2-odj cz_5501od sound2-odj_upd_6 condition memcompare sound2-odj 5 5 endevent
event zm_5501odjazd multiple 3.0 memcell_sound2-odj zm_5501od sound2-odj_upd_7 condition memcompare sound2-odj 6 6 endevent
event ru_5501odjazd multiple 3.0 memcell_sound2-odj ru_5501od sound2-odj_upd_8 condition memcompare sound2-odj 7 7 endevent
event kr_5501odjazd multiple 3.0 memcell_sound2-odj kr_5501od sound2-odj_upd_9 condition memcompare sound2-odj 8 8 endevent
event kk_5501odjazd multiple 3.0 memcell_sound2-odj kk_5501od sound2-odj_upd_10 condition memcompare sound2-odj 9 9 endevent
event ka_5501odjazd multiple 3.0 memcell_sound2-odj ka_5501od sound2-odj_upd_11 condition memcompare sound2-odj 10 10 endevent
event si_5501odjazd multiple 3.0 memcell_sound2-odj si_5501od sound2-odj_upd_12 condition memcompare sound2-odj 11 11 endevent
event sw_5501odjazd multiple 3.0 memcell_sound2-odj sw_5501od sound2-odj_upd_13 condition memcompare sound2-odj 12 12 endevent
event mo_5501odjazd multiple 3.0 memcell_sound2-odj mo_5501od sound2-odj_upd_14 condition memcompare sound2-odj 13 13 endevent
event ns_5501odjazd multiple 3.0 memcell_sound2-odj ns_5501od sound2-odj_upd_15 condition memcompare sound2-odj 14 14 endevent

//14352 - gosc honorowy (nie ruszac! :D)
node -1 0 memcell_14352 memcell 0.0 0.0 0.0 14352 0 0 none endmemcell
event 14352_update_1 updatevalues 2.0 memcell_14352 14352 0 1 endevent
event 14352odjazd multiple 0.0 memcell_14352 14352od 14352_update_1 condition memcompare 14352 0 0 endevent


//------------------------------------------------------------------------------------------

//zapowiadania
node -1 0 zapowiedz1_ns_dzwiek sound 0.0 0.0 0.0 linia546_ns-dz_start.wav endsound
node -1 0 zapowiedz2_ns_dzwiek sound 0.0 0.0 0.0 linia546_kr-po_postoj.wav endsound
node -1 0 zapowiedz3_ns_dzwiek sound 0.0 0.0 0.0 linia546_kr-po_wjazd.wav endsound
node -1 0 zapowiedz4_ns_dzwiek sound 238.166 0.0 32019.1 linia546_ns-dz_postoj.wav endsound
node -1 0 zapowiedz5_ns_dzwiek sound 0.0 0.0 0.0 linia546_dz-ns_koniec.wav endsound
node -1 0 zapowiedz6_kr_dzwiek sound -9690.87 0.0 13889.8 linia546_kr-ns_start.wav endsound
node -1 0 zapowiedz7_dz-ns_dzwiek sound 238.166 0.0 32019.1 linia546_dz-ns_postoj-od.wav endsound
node -1 0 zapowiedz8_dz-ns_kr-dzwiek sound -9690.87 0.0 13889.8 linia546_ns-dz_postoj.wav endsound
node -1 0 zapowiedz8_dz-ns_kr-ai sound -9690.87 0.0 13889.8 linia546_dz-ns_ai-kr.wav endsound
node -1 0 zapowiedz8_dz-ns_kr-ai_odjazd sound -9690.87 0.0 13889.8 linia546_dz-ns_postoj-od.wav endsound
node -1 0 zapowiedz9_dz-ns_dzwiek sound 240.077 0.0 40970.1 linia546_dz-ns_odjazd.wav endsound
node -1 0 zapowiedz9_ns-dz_kbieg-dzwiek sound 240.077 0.0 40970.1 linia546_ns-dz_koniec.wav endsound
node -1 0 zapowiedz10_ns_dzwiek sound 0.0 0.0 0.0 linia546_po-ns_konczybieg.wav endsound
event zapowiadanie_odjazd_ns-dz sound 3.0 zapowiedz1_ns_dzwiek 1 endevent
event zapowiadanie_odjazd_kr-po sound 5.0 zapowiedz2_ns_dzwiek 1 endevent
event zapowiadanie_wjazd_kr-po sound 3.0 zapowiedz3_ns_dzwiek 1 endevent
event zapowiadanie_postoj-od_ns-dz sound 3.0 zapowiedz4_ns_dzwiek 1 endevent
event zapowiadanie_konczybieg_dz-ns sound 3.0 zapowiedz5_ns_dzwiek 1 endevent
event zapowiadanie_start_kr-ns sound 3.0 zapowiedz6_kr_dzwiek 1 endevent
event zapowiadanie_postoj-od_dz-ns sound 1.0 zapowiedz7_dz-ns_dzwiek 1 endevent
event zapowiadanie_postoj-kr_ns-dz sound 1.0 zapowiedz8_dz-ns_kr-dzwiek 1 endevent
event zapowiadanie_postoj-kr_ns-dz_ai sound 1.0 zapowiedz8_dz-ns_kr-ai 1 endevent
event zapowiadanie_postoj-kr_odjazd-ai sound 1.0 zapowiedz8_dz-ns_kr-ai_odjazd 1 endevent
event zapowiadanie_odjazd_dz-ns sound 3.0 zapowiedz9_dz-ns_dzwiek 1 endevent
event zapowiadanie_konczybieg_ns-dz sound 3.0 zapowiedz9_ns-dz_kbieg-dzwiek 1 endevent
event zapowiadanie_konczybieg_po-ns sound 3.0 zapowiedz10_ns_dzwiek 1 endevent

//===================
//zdarzenia dzwiekowe
//dzwony kościelne
node -1 0 memcell_dzwony memcell 1.0 1.0 3.0 dzwony 0 0 none endmemcell
node 2000 0 dzwon1_ns sound 196.867 0.0 143.753 linia546-dzwony.wav endsound

event dzwon1_ns-start sound 4.0 dzwon1_ns 1 endevent
event dzwony_update_1 updatevalues 0.0 memcell_dzwony dzwony 0 5 endevent
event dzwony_bija multiple 0.0 memcell_dzwony dzwon1_ns-start dzwony_update_1 condition memcompare dzwony 0 5 endevent

//===================
//odjazdy

//35907
node -1 0 35907-ns_dzwiek sound 0.0 0.0 0.0 linia546_35907od.wav endsound
node -1 0 35907-kr_dzwiek sound -9690.87 0.0 13889.8 linia546_35907od.wav endsound
node -1 0 35907-rb_dzwiek sound 238.166 0.0 32019.1 linia546_35907od.wav endsound
event 35907od_ns sound 17.0 35907-ns_dzwiek 1 endevent
event 35907od_kr sound 8.0 35907-kr_dzwiek 1 endevent
event 35907od_rb sound 6.0 35907-rb_dzwiek 1 endevent

//14352
node -1 0 14352_dzwiek sound 0.0 0.0 0.0 linia546_14352od.wav endsound
event 14352od sound 11.0 14352_dzwiek 1 endevent

//5501
node -1 0 5501od-dz_dzwiek sound 240.077 0.0  40970.1 linia546_5501od.wav endsound
node -1 0 5501od-dj_dzwiek sound 240.077 0.0  38487.0 linia546_5501od.wav endsound
node -1 0 5501od-rb_dzwiek sound 238.166 0.0  32019.1 linia546_5501od.wav endsound
node -1 0 5501od-ml_dzwiek sound 210.727 0.0  26531.5 linia546_5501od.wav endsound
node -1 0 5501od-pa_dzwiek sound 412.06  0.0  23606.9 linia546_5501od.wav endsound
node -1 0 5501od-cz_dzwiek sound 212.05  0.0  18324.6 linia546_5501od.wav endsound
node -1 0 5501od-zm_dzwiek sound -3064.91 0.0 16647.7 linia546_5501od.wav endsound
node -1 0 5501od-ru_dzwiek sound -6717.27 0.0 16657.3 linia546_5501od.wav endsound
node -1 0 5501od-kr_dzwiek sound -9690.87 0.0 13889.8 linia546_5501od.wav endsound
node -1 0 5501od-kk_dzwiek sound -9532.26 0.0 11091.1 linia546_5501od.wav endsound
node -1 0 5501od-ka_dzwiek sound -8896.47 0.0 7912.12 linia546_5501od.wav endsound
node -1 0 5501od-si_dzwiek sound -5179.76 0.0 6942.55 linia546_5501od.wav endsound
node -1 0 5501od-sw_dzwiek sound -5567.57 0.0 3381.57 linia546_5501od.wav endsound
node -1 0 5501od-mo_dzwiek sound -1933.54 0.0 2283.88 linia546_5501od.wav endsound
node -1 0 5501od-ns_dzwiek sound 0.0      0.0     0.0 linia546_5501od.wav endsound
event dz_5501od sound  8.0 5501od-dz_dzwiek 1 endevent
event dj_5501od sound 10.0 5501od-dj_dzwiek 1 endevent
event rb_5501od sound 10.0 5501od-rb_dzwiek 1 endevent
event ml_5501od sound 10.0 5501od-ml_dzwiek 1 endevent
event pa_5501od sound 10.0 5501od-pa_dzwiek 1 endevent
event cz_5501od sound 10.0 5501od-cz_dzwiek 1 endevent
event zm_5501od sound 10.0 5501od-zm_dzwiek 1 endevent
event ru_5501od sound 10.0 5501od-ru_dzwiek 1 endevent
event kr_5501od sound 10.0 5501od-kr_dzwiek 1 endevent
event kk_5501od sound 10.0 5501od-kk_dzwiek 1 endevent
event ka_5501od sound 10.0 5501od-ka_dzwiek 1 endevent
event si_5501od sound  5.0 5501od-si_dzwiek 1 endevent
event sw_5501od sound 10.0 5501od-sw_dzwiek 1 endevent
event mo_5501od sound 10.0 5501od-mo_dzwiek 1 endevent
event ns_5501od sound 20.0 5501od-ns_dzwiek 1 endevent

//the end
//made by hunter

