 ;; generic metadata
 
 (defn convert-settings [^SequenceSettings settings]
-  (def seqSettings settings)
   (-> settings
     (data-object-to-map)
     (rekey


(defn init-burst [length trigger-sequence relative-z]
  (core setAutoShutter (@state :init-auto-shutter))
  (load-property-sequences (:properties trigger-sequence))
  (let [absolute-slices (load-slice-sequence (:slices trigger-sequence) relative-z)]
    (start-property-sequences (:properties trigger-sequence))

  
(defn load-slice-sequence [slice-sequence relative-z]
  (when slice-sequence
    (println slice-sequence relative-z)
    (let [z (core getFocusDevice)
          ref (@state :reference-z)
          adjusted-slices (vec (if relative-z
                                 (map #(+ ref %) slice-sequence)
                                 slice-sequence))
          new-seq (not= [z adjusted-slices] @active-slice-sequence)]
      (println "adjusted-slices: " adjusted-slices ";" "reference-z" (@state :reference-z))
      (when new-seq
        (core loadStageSequence z (double-vector adjusted-slices)))
      (reset! active-slice-sequence [z adjusted-slices])
