 
 setMarker = ->
   time = wavesurfer.getCurrentTime()
-  wavesurfer.addRegion(start: time, drag: true, resize: false, data: { type: 'segment_item' }, color: 'rgba(0,0,0,0.5)')
+  wavesurfer.addRegion(start: round100(time), drag: true, resize: false, data: { type: 'segment_item' }, color: 'rgba(0,0,0,0.5)')
   saveRegions()
 
 window.regionsArray = ->

  time = wavesurfer.getCurrentTime()
  # Assume that time is always within a region, since we initialize a region over full audio at start
  splitCandidate = getRegions(time)[0]
  wavesurfer.addRegion { start: splitCandidate.start, end: round10(time), drag: false, resize: false, data: { type: 'segment' } }
  wavesurfer.addRegion { start: round10(time), end: splitCandidate.end, drag: false, resize: false, data: { type: 'segment' } }
  wavesurfer.regions.list[splitCandidate.region_id].remove()
  saveRegions()


  mapped.sort (a,b)->
    a.start - b.start

round100 = (input) ->
  Math.round(input * 100)/100

loadRegions = (regions) ->
  regions.forEach (region) ->
