     if localStorage.regions
       loadRegions JSON.parse(localStorage.regions)
     else
-      wavesurfer.addRegion(start: 0, end: round10(wavesurfer.getDuration()), drag: false, resize: false, data: { type: 'segment' })
+      wavesurfer.addRegion(start: 0, end: round100(wavesurfer.getDuration()), drag: false, resize: false, data: { type: 'segment' })
       saveRegions()
     return
 

    region = wavesurfer.regions.list[id]
    {
      region_id: id
      start: region.start
      end: region.end
      data: region.data
      texts: []
      drag: (if region.data.type == 'segment_item' then true else false)

showNote = (region) ->
  if !showNote.el
    showNote.el = $('#subtitle')
  if region.data.type == 'segment_item'
    showNote.el.html region.data.note or '–'
  return

window.wavesurfer = Object.create(WaveSurfer)
