▁wrote ▁about ▁ten ▁works ▁in ▁Ven ice ▁and ▁Milan ▁and ▁various ▁sacred ▁music ▁( including ▁some ▁mot ets ▁for ▁I pp ol ito ▁Bent iv og lio ). ▁During ▁years ▁ 1 6 8 5 - 1 6 8 6 ▁he ▁was ▁also ▁active ▁as ▁a ▁composer ▁and ▁a ▁cap ella ▁teacher ▁for ▁the ▁Duke ▁of ▁Hannover ▁Ern esto ▁August o ▁of ▁Brun sw ick - L ü ne burg . ▁While ▁there , ▁he ▁stayed ▁in ▁a ▁building ▁over looking ▁the ▁Grand ▁Canal . ▁ ▁On ▁May ▁ 1 , ▁ 1 6 8 6 , ▁Gian ett ini ▁left ▁his ▁offices ▁at ▁San ▁Marco ▁to ▁take ▁the ▁place ▁of ▁ma estro ▁di ▁c app ella ▁at ▁the ▁court ▁of ▁Francesco ▁II , ▁Duke ▁of ▁Mod ena . ▁His ▁sal ary ▁for ▁his ▁services ▁to ▁the ▁court ▁of ▁Mod ena ▁was ▁ 3 9 6 ▁lire ▁a ▁month ▁( a ▁considerable ▁amount ▁for ▁the ▁time ). ▁For ▁the ▁Duke ' s ▁court ▁he ▁wrote ▁ 9 ▁or ator ios , ▁but ▁also ▁other ▁sacred ▁compos itions , ▁cant at as ▁and ▁ser en ades . ▁With ▁the ▁out break ▁of ▁the ▁Spanish ▁succession ▁war , ▁Mod ena ▁was ▁occupied ▁by ▁the ▁French ▁and ▁in ▁ 1 7 0 2 ▁he ▁had ▁to ▁fle e ▁with ▁Duke ▁R inal do ▁I ▁( success or ▁of ▁Francesco ▁II ) ▁to ▁Bolog na . ▁After ▁the ▁war , ▁in ▁ 1 7 0 7 ▁he ▁returned ▁to ▁Mod ena , ▁where ▁he ▁continued ▁his ▁work