Recording midi to audio

Okay so now I recorded a 4 bar melody on piano in cubasis track 1. i turned down channel volume and set midi out to virtual midi. i launch Garageband and selected a synth lead sound and made sure background audio is turned on. go back to Cubasis and solo midi track, create audio track and solo/arm track. Hit record from beginning of tune and the garageband audio (controlled via cubasis midi out) is recorded. BUT as with my first test, the audio track is recording audio from the ipad speaker and picked up on the iPad mic.