Skip to content

Commit

Permalink
still broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Nov 7, 2023
1 parent c583041 commit 3217ef8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function createTimeline() {
primaryFontColor: 'white',
secondaryFontColor: 'white',
fontSize: 14
})).initPlugin('Timeline');
})).initPlugin('timeline');
}

const resetRegions = () => {
Expand Down Expand Up @@ -1937,15 +1937,15 @@ function handleKeyDown(e) {

function initRegion() {
if (wavesurfer.regions) wavesurfer.destroyPlugin('regions');
wavesurfer.addPlugin(wavesurfer.regions.create({
wavesurfer.addPlugin(WaveSurfer.regions.create({
formatTimeCallback: formatRegionTooltip,
dragSelection: true,
// Region length bug (likely mine) means I don't trust leangths > 60 seconds
maxLength: config[config.backend].batchSize * 3,
slop: 5,
color: "rgba(255, 255, 255, 0.2)"
}).initPlugin('Region')
)
})
).initPlugin('regions')
}

function initSpectrogram(height, fftSamples) {
Expand Down Expand Up @@ -1981,7 +1981,7 @@ function initSpectrogram(height, fftSamples) {
colorMap: colormap({
colormap: config.colormap, nshades: 256, format: 'float'
}),
})).initPlugin('Spectrogram')
})).initPlugin('spectrogram')
updateElementCache();
}

Expand Down

0 comments on commit 3217ef8

Please sign in to comment.