A heavily pregnant woman lost her twins after being repeatedly stabbed in an attempted murder.
The victim was also punched and throttled by Stephen Ramsay during the attack in Glenrothes, Fife.
Ramsay, who posed as a homeless person in Edinburgh, accused her of stealing money he made on the streets.
The 36-year-old stabbed his victim with a knife, resulting in her losing her 32-week-old unborn babies, in February.
The victim tried to cuddle Ramsay when he returned to the home they shared after accusing her of cheating.
Police kicked the door in at the flat at Delgatie Court where they found Ramsay straddling the victim with his hands around her neck
The victim and the floor around her were saturated with blood and she was almost unrecognisable because of bruising and swelling to her face.
Advocate depute Derick Nelson said: “The officers observed the complainer was heavily pregnant and appeared to have had her throat cut, with blood spurting every time she tried to breathe.”
Officers tried to stem the flow of blood from the wounded woman with clothing as they awaited paramedics but feared she was going to die in their arms.
When Ramsay was later told the unborn babies had died he became inconsolable and shouted: “I’ve murdered my kids. I don’t deserve to be treated. I deserve to die, just kill me now.”
The woman was taken to Victoria Hospital in Kirkcaldy.
Mr Nelson said: “It was reported the complainer was unconscious and had two episodes of cardiac arrest with CPR provided by the police and ambulance staff.”
The victim suffered a spinal cord injury because of the stab wound to her neck and respiratory arrest, along with extensive bruising and at least 22 separate injuries on her torso alone.
She suffered brain damage and was left with balance problems in the wake of the attack.
The victim was initially put into a medically induced coma before the unborn children died following a collapse in the woman’s circulation as a result of which they were deprived of sufficient blood supply.
Mr Nelson said: “The twins did not survive for longer than a couple of minutes after the circulatory collapse.”
Ramsay, who has extensive previous convictions including assault, theft and fraud, was under the influence of drink, prescription medication and illegal drugs at the time of the attempted murder.
The court was told that the twins were going to be named Edith and Ajay.
Sentencing has been deferred until September 27 at the High Court in Glasgow.