def newyork():
  stopTracking()
  #i01.startedGesture()
  #disable audiofile mouthcontrol
  mouthControlAudiofile=False
  #start the song
  i01_audioPlayer.playFile('resource/InMoov2/system/sounds/newYorkSong.mp3', False)
  i01.setHeadSpeed(100.0,100.0,100.0,100.0,100.0)
  i01.setArmSpeed("left",100.0,100.0,100.0,100.0)
  i01.setArmSpeed("right",100.0,100.0,100.0,100.0)
  i01.setHandSpeed("left",100.0,100.0,100.0,100.0,100.0,100.0)
  i01.setHandSpeed("right",100.0,100.0,100.0,100.0,100.0,100.0)
  i01.setTorsoSpeed(100.0,100.0,100.0)
  i01.moveHead(90,90)
  i01.moveArm("left",70,90,75,10)
  i01.moveArm("right",5,90,30,10)
  i01.moveHand("left",40,171,180,180,180,90)
  i01.moveHand("right",2,2,2,2,2,90)
  sleep(0.45)
  i01.moveHead(60,107)
  i01.moveArm("left",49,90,75,10)
  i01.moveArm("right",5,90,30,10)
  i01.moveHand("left",40,171,180,180,180,90)
  i01.moveHand("right",2,2,2,2,2,90)
  sleep(0.45)
  i01.moveHead(60,107)
  i01.moveArm("left",70,90,75,10)
  i01.moveArm("right",5,90,30,10)
  i01.moveHand("left",40,171,180,180,180,90)
  i01.moveHand("right",2,2,2,2,2,90)
  sleep(0.45)
  i01.moveHead(60,107)
  i01.moveArm("left",49,90,75,10)
  i01.moveArm("right",5,90,30,10)
  i01.moveHand("left",40,171,180,180,180,90)
  i01.moveHand("right",2,2,2,2,2,90)
  sleep(0.45)
  i01.moveHead(60,107)
  i01.moveArm("left",70,90,75,10)
  i01.moveArm("right",5,90,30,10)
  i01.moveHand("left",40,171,180,180,180,90)
  i01.moveHand("right",2,2,2,2,2,90)
  sleep(0.45)
  i01.moveHead(90,90)
  i01.moveArm("left",49,90,75,10)
  i01.moveArm("right",5,90,30,10)
  i01.moveHand("left",40,171,180,180,180,140)
  i01.moveHand("right",2,2,2,2,2,90)
  sleep(0.45)
  i01.moveHead(60,107)
  i01.moveArm("left",70,90,75,10)
  i01.moveArm("right",5,90,30,10)
  i01.moveHand("left",40,171,180,180,180,90)
  i01.moveHand("right",2,2,2,2,2,90)
  sleep(0.45)
  i01.moveHead(90,90)
  i01.moveArm("left",49,90,75,10)
  i01.moveArm("right",5,90,30,10)
  i01.moveHand("left",40,171,180,180,180,140)
  i01.moveHand("right",2,2,2,2,2,90)
  sleep(0.45)
  i01.moveHead(90,90)
  i01.moveArm("left",70,90,75,10)
  i01.moveArm("right",8,85,28,12)
  i01.moveHand("left",40,171,180,180,180,90)
  i01.moveHand("right",2,2,2,2,2,90)
  sleep(0.45)
  i01.moveHead(60,107)
  i01.moveArm("left",49,90,75,10)
  i01.moveArm("right",5,90,30,10)
  i01.moveHand("left",40,171,180,180,180,90)
  i01.moveHand("right",2,2,2,2,2,90)
  sleep(0.45)
  i01.moveHead(60,107)
  i01.moveArm("left",70,90,75,10)
  i01.moveArm("right",7,82,33,13)
  i01.moveHand("left",40,171,180,180,180,90)
  i01.moveHand("right",2,2,2,2,2,90)
  sleep(0.45)
  i01.moveHead(60,107)
  i01.moveArm("left",49,90,75,10)
  i01.moveArm("right",5,90,30,10)
  i01.moveHand("left",40,171,180,180,180,90)
  i01.moveHand("right",2,2,2,2,2,90)
  sleep(0.45)
  i01.moveHead(60,107)
  i01.moveArm("left",70,90,75,10)
  i01.moveArm("right",6,85,28,10)
  i01.moveHand("left",40,171,180,180,180,90)
  i01.moveHand("right",2,2,2,2,2,90)
  sleep(0.45)
  i01.moveHead(90,90)
  i01.moveArm("left",49,90,75,10)
  i01.moveArm("right",5,90,30,10)
  i01.moveHand("left",40,171,180,180,180,140)
  i01.moveHand("right",2,2,2,2,2,90)
  sleep(0.45)
  i01.moveHead(60,107)
  i01.moveArm("left",70,90,75,10)
  i01.moveArm("right",7,87,33,11)
  i01.moveHand("left",40,171,180,180,180,90)
  i01.moveHand("right",2,2,2,2,2,90)
  sleep(0.45)
  i01.moveHead(90,90)
  i01.moveArm("left",49,90,75,10)
  i01.moveArm("right",5,90,30,10)
  i01.moveHand("left",40,171,180,180,180,140)
  i01.moveHand("right",2,2,2,2,2,90)
  sleep(0.5)
  i01.setHeadSpeed(43.0,43.0)
  i01.setArmSpeed("left",50,50,50,50)
  i01.setArmSpeed("right",50,50,50,50)
  i01.setHandSpeed("left",100.0,100.0,100.0,100.0,100.0,100.0)
  i01.setHandSpeed("right",100.0,100.0,100.0,100.0,100.0,100.0)
  i01.setTorsoSpeed(100.0,100.0,100.0)
  i01.moveHead(75,97)
  i01.moveArm("left",85,106,25,18)
  i01.moveArm("right",87,107,32,18)
  i01.moveHand("left",110,62,56,88,81,145)
  i01.moveHand("right",78,88,101,95,81,27)
  i01.moveTorso(90,90,90)
  if MouthControlActivated:i01.mouthControl.onStartSpeaking("Start spreading the news spreading the news")
  i01.setHeadSpeed(43.0,43.0)
  i01.setArmSpeed("left",36,36,36,36)
  i01.setArmSpeed("right",36,36,36,36)
  i01.setHandSpeed("left",36,36,36,36,36,36)
  i01.setHandSpeed("right",36,36,36,36,36,36)
  i01.setTorsoSpeed(100.0,100.0,100.0)
  i01.moveHead(160,107)
  i01.moveArm("left",5,86,30,10)
  i01.moveArm("right",86,140,83,80)
  i01.moveHand("left",99,140,173,167,130,26)
  i01.moveHand("right",135,6,170,145,168,180)
  i01.moveTorso(90,90,90)
  sleep(3)
  if MouthControlActivated:i01.mouthControl.onStartSpeaking("I am leaving today")
  i01.moveHead(160,68)
  i01.moveArm("left",5,86,30,10)
  i01.moveArm("right",86,140,83,80)
  i01.moveHand("left",99,140,173,167,130,26)
  i01.moveHand("right",135,6,170,145,168,180)
  i01.moveTorso(90,90,90)
  sleep(3)
  if MouthControlActivated:i01.mouthControl.onStartSpeaking("I want to be a part of it to be a part of it")
  i01.moveHead(138,86)
  i01.moveArm("left",80,112,52,34)
  i01.moveArm("right",80,122,59,54)
  i01.moveHand("left",105,76,71,98,76,90)
  i01.moveHand("right",55,0,55,48,142,93)
  i01.moveTorso(90,90,90)
  sleep(1.5)
  if MouthControlActivated:i01.mouthControl.onStartSpeaking("New York, New York, New York, New York")
  i01.moveHead(138,86)
  i01.moveArm("left",80,112,52,34)
  i01.moveArm("right",80,122,59,54)
  i01.moveHand("left",105,76,71,98,76,90)
  i01.moveHand("right",55,0,55,48,142,93)
  i01.moveTorso(90,90,90)
  sleep(2)
  if MouthControlActivated:i01.mouthControl.onStartSpeaking("If I can make it there it there")
  i01.moveHead(160,86)
  i01.moveArm("left",80,128,71,62)
  i01.moveArm("right",80,132,69,80)
  i01.moveHand("left",45,40,30,25,35,90)
  i01.moveHand("right",55,0,55,48,142,72)
  i01.moveTorso(90,90,90)
  sleep(1.5)
  if MouthControlActivated:i01.mouthControl.onStartSpeaking("I'll make it anywhere, it anywhere")
  i01.moveHead(160,86)
  i01.moveArm("left",80,128,71,62)
  i01.moveArm("right",80,132,69,80)
  i01.moveHand("left",45,40,30,25,35,90)
  i01.moveHand("right",55,0,55,48,142,72)
  i01.moveTorso(90,90,90)
  sleep(0.2)
  i01.moveHead(136,66)
  i01.moveArm("left",5,138,30,77)
  i01.moveArm("right",5,134,59,75)
  i01.moveHand("left",127,101,122,129,123,131)
  i01.moveHand("right",55,2,50,48,30,90)
  i01.moveTorso(90,90,90)
  sleep(2)
  if MouthControlActivated:i01.mouthControl.onStartSpeaking("It's up to you")
  i01.moveHead(160,86)
  i01.moveArm("left",46,131,30,80)
  i01.moveArm("right",71,145,36,80)
  i01.moveHand("left",45,40,30,96,107,90)
  i01.moveHand("right",55,4,50,49,114,90)
  i01.moveTorso(90,90,90)
  sleep(2)
  if MouthControlActivated:i01.mouthControl.onStartSpeaking("New York, New York")
  sleep(1.5)
  if MouthControlActivated:i01.mouthControl.onStartSpeaking("New York, New York")
  sleep(2)
  i01.finishedGesture()
  mouthControlAudiofile=True
  ear.setAutoListen(setAutoListen)
  rest()
