New York (CNN) -- A 57-year-old musician arrested in connection with the drugs found in actor Philip Seymour Hoffman's apartment was granted bail Friday. 

The musician, Robert Vineberg, was among four people arrested in Manhattan in the days after the apparent heroin overdose of the Academy Award-winning actor on February 2. 

Prosecutors said Vineberg, who was arrested on a felony charge of criminal possession of a controlled substance, had just under 50 small bags of heroin as well as packaging paraphernalia in his apartment during the raid. In another one of his apartments in the same Mott Street building, prosecutors said, 250 small bags of heroin were found. 

In addition, prosecutors said, detectives recovered nearly $1,300 in cash on Vineberg. 

Manhattan Supreme Court Judge Edward McLaughlin set bail at $200,000 bond or $40,000 cash. Vineberg is due back in court Tuesday. 

Vineberg's attorney, Edward Kratt, asked for a lower bail, saying his client has been an "accomplished musician" since the late 1980s and a "functioning heroin addict" with a 10-bag-a-day habit. The large quantity of drugs found in the apartments were for Vineberg's personal use, Kratt said. 

The judge, however, appeared to doubt that assertion, saying that the amount of heroin in Vineberg's possession was "off the charts." 

Vineberg was found to have the actor's phone number stored in his cell phone, a law enforcement official told CNN. Police discovered the largest amount of what is believed to be heroin in his apartment, the source said. 

Outside court, Kratt said his client hoped to raise bail money with the help of friends. 
Where is his apartment?
one of his apartments in the same Mott Street building