added swapv! function for replacing values in a vector (based on swap!)
translating Orchestral Composition library from Python to Clojure