Conductivity from charge or spin density waves