From e9973447bcc335a4dd907da71029fd4a52621faa Mon Sep 17 00:00:00 2001 From: Mattk70 Date: Thu, 28 Mar 2024 15:16:27 +0000 Subject: [PATCH] Bumped version Fixed #81 --- js/state.js | 2 +- js/tracking.js | 2 +- js/ui.js | 2 +- js/worker.js | 20 ++++++++++---------- package.json | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/js/state.js b/js/state.js index b9b030f1..ef88ffe1 100644 --- a/js/state.js +++ b/js/state.js @@ -32,7 +32,7 @@ export class State { this.list = 'everything', this.customList = undefined, this.local = true, - this.incrementor = 250, + this.incrementor = 1, this.UUID = 0, this.track = true } diff --git a/js/tracking.js b/js/tracking.js index c67ea88f..01b2dd08 100644 --- a/js/tracking.js +++ b/js/tracking.js @@ -1,5 +1,5 @@ const DEBUG = false; -const ID_SITE = 3; +const ID_SITE = 2; function trackEvent(uuid, event, action, name, value){ diff --git a/js/ui.js b/js/ui.js index cc99dab7..a7ecca5b 100644 --- a/js/ui.js +++ b/js/ui.js @@ -4322,7 +4322,7 @@ DOM.gain.addEventListener('input', () => { } case 'colourmap': { config.colormap = element.value; - if (wavesurfer) { + if (wavesurfer && currentFile) { initSpectrogram(); // refresh caches updateElementCache() diff --git a/js/worker.js b/js/worker.js index 9b820779..c66bc8a9 100644 --- a/js/worker.js +++ b/js/worker.js @@ -1394,7 +1394,7 @@ const fetchAudioBuffer = async ({ command.audioFilters( { filter: 'loudnorm', - options: "I=-16:LRA=11:TP=-1.5:offset=" + STATE.audio.gain + options: "I=-16:LRA=11:TP=-1.5" } ) } @@ -1427,7 +1427,7 @@ const fetchAudioBuffer = async ({ }); } }); - + command.run(); }); } @@ -1749,14 +1749,14 @@ const bufferToAudio = async ({ } ) } - if (STATE.audio.normalise){ - ffmpgCommand = ffmpgCommand.audioFilters( - { - filter: 'loudnorm', - options: "I=-16:LRA=11:TP=-1.5:offset=" + STATE.audio.gain - } - ) - } + // if (STATE.audio.normalise){ + // ffmpgCommand = ffmpgCommand.audioFilters( + // { + // filter: 'loudnorm', + // options: "I=-16:LRA=11:TP=-1.5:offset=" + STATE.audio.gain + // } + // ) + // } ffmpgCommand.on('start', function (commandLine) { DEBUG && console.log('FFmpeg command: ' + commandLine); }) diff --git a/package.json b/package.json index 71e1a5e4..2c9c96b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chirpity", - "version": "1.6.2", + "version": "1.6.3", "description": "Chirpity Nocmig", "main": "main.js", "scripts": {