Skip to content
Permalink
Browse files

fix broken slicer peak detection

  • Loading branch information...
mmckegg committed May 25, 2018
1 parent 5f80a40 commit b29646dbfaa41b01dddb663a0f765d92842b5c2e
Showing with 2 additions and 1 deletion.
  1. +2 −1 nodes/slicer-chunk/object.js
@@ -161,7 +161,8 @@ function SlicerChunk (parentContext) {
}
} else if (sliceMode === 'snap') {
if (buffer) {
gridSlicePeaks(buffer.getChannelData(0), count, offset, function (peaks) {
gridSlicePeaks(buffer.getChannelData(0), count, offset, function (err, peaks) {
if (err) throw err
obs.sample.slices.set(sliceOffsets(peaks, offset, playToEnd))
})
}

0 comments on commit b29646d

Please sign in to comment.
You can’t perform that action at this time.