I've also experienced that a few times while semi-asleep, it is really intriguing. I haven't been able to write the ideas down yet, and had a tendency to discrad them at the thought that being in that state made the ideas sound amazing but wouldn't be in retrospect. I wonder how that phenomenon works, and if taking any psychoactive drug would produce similar results.