Liam Rowley, 26, was given the antisocial behaviour order at Haddington Sheriff Court following an application made by East Lothian Council.
The court heard that complaints about loud music coming from Rowley's home and garden in Wilson Avenue in Prestonpans dated back to April 2008.
Despite warnings from police and the council's antisocial behaviour team, Rowley allegedly ignored the complaints.
The terms of the interim Asbo ban Rowley from "behaving antisocially by playing loud music or holding excessively noisy parties in his home, garden, communal gardens or street, or allowing visitors to his property to do the same".
The order also prohibits "shouting, swearing, being abusive, excessively noisy or threatening towards people in his home or its vicinity". The Asbo is set to remain in place until a further court hearing due to take place later this year.
Councillor Stuart Currie, the council's housing leader, said: "In any case like this, the police, antisocial behaviour and environmental protection teams work to try bring about positive changes without the need for legal proceedings. However, this is not always successful and court action is sometimes required."