     $tempo = #{val}
     """
   end
+  @doc """
+  takes the name of the btu to sync to or false as a first param
+  takes beats per measure >= 1 as a second param.
+  When syncing to a parent btu, it will listen for a first message,
+  then it will keep track of time internally for one measure
+  """
   def maestro_beat_pattern(parent, beats_per_measure) do
     sync_to_network = case parent do
       false -> "#"

    # Main tempo cueing / UDP broadcasting thread
    live_loop :beat_pattern do
      use_bpm $tempo
      #{sync_to_network}
      cue  :beat1
      cue :down_beat
      sleep 0.5

            synced = true
          end
        rescue
          sleep 1.0 / 128.0
          next
        end
      end
