   "Read a single value from a buffer. Index defaults to 0 if not specified."
   ([buf] (buffer-get buf 0))
   ([buf index]
+     (ensure-buffer-active! buf)
      (assert (buffer? buf))
      (let [buf-id (:id buf)
            prom   (recv "/b_set" (fn [msg]

  writing the data (defaults to 0)."
  ([buf data] (buffer-write! buf 0 data))
  ([buf start-idx data]
     (assert (buffer? buf))
     (when (> (count data) MAX-OSC-SAMPLES)
       (throw (Exception. (str "Error - the data you attempted to write to the buffer was too large to be sent via UDP."))))

  the server. Index defaults to 0 if not specified."
  ([buf val] (buffer-set! buf 0 val))
  ([buf index val]
     (ensure-buffer-active! buf)
     (assert (buffer? buf))
     (snd "/b_set" (:id buf) index (double val))
     buf))
