Envelope Function Analysis of Quasicrystals