A 58-year-old man allegedly repeatedly had sex with a child, took photographs of the activity and then threatened to disclose the images to the public.
Derek Scotland, of Peddie Street, will stand trial on November 20.
He denies a total of 12 charges, 11 of which relate to offences which allegedly took place at his home address.
They include allegedly supplying ecstasy, cannabis and cannabis resin between January 16 2006, and November 21 last year and having 2C-E – a Class A drug – and amphetamine, both on November 21 last year.
Scotland also denies engaging in sexual activity and having sex with a child on a number of occasions between August 2 2013 and August 1 2015.
He further denies taking, permitting the taking of or making indecent photographs or pseudo photographs of children between April 23 and November 16 last year, and having indecent photographs or pseudo photographs of a child, with a view to them being distributed or shown to others, between August 13 2016 and November 16 last year.
Among other charges, Scotland also denies making threats to the child that he would disclose pornographic images of them to the public.