We theoretically demonstrate that electromagnetic energy can be obtained by direct, lossless, conversion from gravitational and kinetic energies. For this purpose we discuss the properties of an electromechanical system which consists of a superconducting coil submitted to a constant external force and to magnetic fields. The coil oscillates and has induced in it a rectified electrical current whose magnitude may reach hundreds of Ampere. There is no need for an external electrical power source for the system to start out and it can be kept working continuously if linked to large capacitors. We extensively discuss the issue of energy dissipation in superconductors and show that the losses for such a system can be made extremely small for certain operational conditions, so that by reaching and keeping resonance the system main application should be in magnetic energy storage and transmission.