 
 ;; {PMOsc.ar(440 * In.ar(rotateBus).abs, 10 * In.ar(accBus).abs, 3)}.play(soundGroup)
 ;; )
+
+(comment
+  (def GRT-RECEIVE-PORT 5000)
+  (def GRT-RECEIVE-PORT 1235)
+  (def client (osc-client "192.168.0.2" GRT-RECEIVE-PORT))
+  
+
+ (osc-send client "/Setup" 0.0 3.0 1.0)
+ (osc-send client "/Data" 100.0 (float 100) (float 250))
+
+ (def server (osc-server 1235))
+ (osc-listen server (fn [msg] (println "MSG: " msg)) :debug)
+  (osc-rm-listener server :debug)
+ )

                 (let [listener (reify SensorEventListener
                                  (onAccuracyChanged [this sensor value] ())
                                  (onSensorChanged [this event]
                                    (apply #'push-vector stack (seq (list (. event values))))))]
                   (send-every id stack interval)
                   (.. sensorManager
                       (registerListener listener
                                         (.getDefaultSensor sensorManager sensor-type)

                                         SensorManager/SENSOR_DELAY_GAME))
                   listener))]
    [(create "rotate" Sensor/TYPE_ROTATION_VECTOR rotate-stack)
     (create "acc" Sensor/TYPE_LINEAR_ACCELERATION acc-stack)
     ]))

(def sensorManager (atom nil))

