Hi Alexandros,
attached is an example to do this with vanilla pd using datastructs instead of GEM.
You'll have to save both files (sine-wave-sub.pd and sine-wave.pd) under these names in the same folder and open up sine-wave.pd. The animation should start right away...
Is that what you were looking for?
-- Orm