No More Learning

How would you           information from the outside world, say, the sound of an oboe or the temperature of a bath, into a pulse code?