Metastate is an interactive computer system that I have been developing for this past semester. The piece derives musical influence from Iannis Xenakis' Metastaseis which was composed using Xenakis' theory of stochastic music. Stochastic music uses randomly generated elements which are created by strict mathematical processes. Metastate uses an approximation of the particle swarm algorithm to determine in real time the next state of the system. Swarming mathematics were discovered by studying the behaviour of bird flocks, fish schools and swarming insects. By ascribing a few simple rules to an entity, a bird for example, the higher level structure of a flock seems to emerge.