diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
index 99d3d405..67930c54 100644
--- a/.idea/codeStyles/Project.xml
+++ b/.idea/codeStyles/Project.xml
@@ -41,6 +41,8 @@
+
+
diff --git a/src/spessasynth_lib/external_midi/midi_handler.js b/src/spessasynth_lib/external_midi/midi_handler.js
index e3671e35..b996028b 100644
--- a/src/spessasynth_lib/external_midi/midi_handler.js
+++ b/src/spessasynth_lib/external_midi/midi_handler.js
@@ -38,7 +38,8 @@ export class MIDIDeviceHandler
this.outputs = response.outputs;
SpessaSynthInfo("%cMIDI handler created!", consoleColors.recognized);
return true;
- } catch (e)
+ }
+ catch (e)
{
SpessaSynthWarn(`Could not get MIDI Devices:`, e);
this.inputs = [];
diff --git a/src/spessasynth_lib/sequencer/worklet_sequencer/song_control.js b/src/spessasynth_lib/sequencer/worklet_sequencer/song_control.js
index 4bac886f..e1f3c11a 100644
--- a/src/spessasynth_lib/sequencer/worklet_sequencer/song_control.js
+++ b/src/spessasynth_lib/sequencer/worklet_sequencer/song_control.js
@@ -156,7 +156,8 @@ export function loadNewSongList(midiBuffers)
try
{
mids.push(new MIDI(b.binary, b.altName || ""));
- } catch (e)
+ }
+ catch (e)
{
this.post(WorkletSequencerReturnMessageType.midiError, e.message);
return mids;
diff --git a/src/spessasynth_lib/soundfont/basic_soundfont/basic_sample.js b/src/spessasynth_lib/soundfont/basic_soundfont/basic_sample.js
index e6cd6fe4..122dd61f 100644
--- a/src/spessasynth_lib/soundfont/basic_soundfont/basic_sample.js
+++ b/src/spessasynth_lib/soundfont/basic_soundfont/basic_sample.js
@@ -117,7 +117,8 @@ export class BasicSample
// flag as compressed
this.sampleType |= 0x10;
this.isCompressed = true;
- } catch (e)
+ }
+ catch (e)
{
SpessaSynthWarn(`Failed to compress ${this.sampleName}. Leaving as uncompressed!`);
this.isCompressed = false;
diff --git a/src/spessasynth_lib/soundfont/read_sf2/soundfont.js b/src/spessasynth_lib/soundfont/read_sf2/soundfont.js
index a3abfe08..b5bb895a 100644
--- a/src/spessasynth_lib/soundfont/read_sf2/soundfont.js
+++ b/src/spessasynth_lib/soundfont/read_sf2/soundfont.js
@@ -139,7 +139,8 @@ export class SoundFont2 extends BasicSoundFont
this.dataArray.currentIndex,
this.dataArray.currentIndex + sdtaChunk.size - 12
)).data[0];
- } catch (e)
+ }
+ catch (e)
{
SpessaSynthGroupEnd();
throw new Error(`SF2Pack Ogg Vorbis decode error: ${e}`);
diff --git a/src/spessasynth_lib/synthetizer/synthetizer.js b/src/spessasynth_lib/synthetizer/synthetizer.js
index 6e9115e6..86b8c2d2 100644
--- a/src/spessasynth_lib/synthetizer/synthetizer.js
+++ b/src/spessasynth_lib/synthetizer/synthetizer.js
@@ -139,7 +139,8 @@ export class Synthetizer
startRenderingData: startRenderingData
}
});
- } catch (e)
+ }
+ catch (e)
{
throw new Error("Could not create the audioWorklet. Did you forget to addModule()?");
}
diff --git a/src/spessasynth_lib/synthetizer/worklet_system/main_processor.js b/src/spessasynth_lib/synthetizer/worklet_system/main_processor.js
index 86cfd4a7..dc7cd5ee 100644
--- a/src/spessasynth_lib/synthetizer/worklet_system/main_processor.js
+++ b/src/spessasynth_lib/synthetizer/worklet_system/main_processor.js
@@ -168,7 +168,8 @@ class SpessaSynthProcessor extends AudioWorkletProcessor
options.processorOptions.soundfont,
this.postReady.bind(this)
);
- } catch (e)
+ }
+ catch (e)
{
this.post({
messageType: returnMessageType.soundfontError,
diff --git a/src/spessasynth_lib/synthetizer/worklet_system/worklet_methods/program_control.js b/src/spessasynth_lib/synthetizer/worklet_system/worklet_methods/program_control.js
index 08d75160..ae7bb491 100644
--- a/src/spessasynth_lib/synthetizer/worklet_system/worklet_methods/program_control.js
+++ b/src/spessasynth_lib/synthetizer/worklet_system/worklet_methods/program_control.js
@@ -239,7 +239,8 @@ export function reloadSoundFont(buffer, isOverride = false)
{
this.soundfontManager.reloadManager(buffer);
}
- } catch (e)
+ }
+ catch (e)
{
this.post({
messageType: returnMessageType.soundfontError,
diff --git a/src/website/js/dls_to_sf2.js b/src/website/js/dls_to_sf2.js
index 061d0005..97a4e77b 100644
--- a/src/website/js/dls_to_sf2.js
+++ b/src/website/js/dls_to_sf2.js
@@ -21,7 +21,8 @@ document.getElementById("dls_upload").oninput = e =>
try
{
sfont = loadSoundFont(await file.arrayBuffer());
- } catch (e)
+ }
+ catch (e)
{
message.style.color = "red";
message.innerText = `Error: ${e.message}`;
diff --git a/src/website/js/main/demo_main.js b/src/website/js/main/demo_main.js
index 30457991..a92b6ad6 100644
--- a/src/website/js/main/demo_main.js
+++ b/src/website/js/main/demo_main.js
@@ -123,7 +123,8 @@ async function saveSoundFontToIndexedDB(arr)
{
console.error("Error saving soundfont", e);
};
- } catch (e)
+ }
+ catch (e)
{
SpessaSynthWarn("Failed saving soundfont:", e);
}
@@ -139,7 +140,8 @@ async function demoInit(initLocale)
{
const context = window.AudioContext || window.webkitAudioContext;
window.audioContextMain = new context({ sampleRate: SAMPLE_RATE });
- } catch (e)
+ }
+ catch (e)
{
changeIcon(getExclamationSvg(256));
loadingMessage.textContent = localeManager.getLocaleString("locale.synthInit.noWebAudio");
@@ -435,7 +437,8 @@ demoInit(initLocale).then(() =>
{
soundFontBuffer = await file.arrayBuffer();
window.soundFontParser = soundFontBuffer;
- } catch (e)
+ }
+ catch (e)
{
loadingMessage.textContent = window.manager.localeManager.getLocaleString(
"locale.warnings.outOfMemory");
diff --git a/src/website/js/main/local_main.js b/src/website/js/main/local_main.js
index 1e1c151e..cef0eff3 100644
--- a/src/website/js/main/local_main.js
+++ b/src/website/js/main/local_main.js
@@ -62,7 +62,8 @@ async function fetchFont(fileName, callback)
try
{
dataArray = new Uint8Array(parseInt(size));
- } catch (e)
+ }
+ catch (e)
{
let message = `Your browser ran out of memory. Consider using Firefox or SF3 soundfont instead
(see console for error)`;
if (window.manager)
diff --git a/src/website/js/manager/export_audio.js b/src/website/js/manager/export_audio.js
index f0bb279b..00dc9073 100644
--- a/src/website/js/manager/export_audio.js
+++ b/src/website/js/manager/export_audio.js
@@ -80,7 +80,8 @@ export async function _doExportAudioData(normalizeAudio = true, additionalTime =
chorusConfig: undefined,
reverbImpulseResponse: this.impulseResponse
});
- } catch (e)
+ }
+ catch (e)
{
showNotification(
this.localeManager.getLocaleString("locale.warnings.warning"),
diff --git a/src/website/js/manager/export_song.js b/src/website/js/manager/export_song.js
index 26cee1cf..1aafded6 100644
--- a/src/website/js/manager/export_song.js
+++ b/src/website/js/manager/export_song.js
@@ -37,7 +37,8 @@ export async function exportSong()
try
{
this._exportSoundfont();
- } catch (e)
+ }
+ catch (e)
{
showNotification(
"Warning",
@@ -58,7 +59,8 @@ export async function exportSong()
try
{
this._exportRMIDI();
- } catch (e)
+ }
+ catch (e)
{
showNotification(
"Warning",
diff --git a/src/website/js/sequencer_ui/sequencer_ui.js b/src/website/js/sequencer_ui/sequencer_ui.js
index 11cb77b1..7aeb15ea 100644
--- a/src/website/js/sequencer_ui/sequencer_ui.js
+++ b/src/website/js/sequencer_ui/sequencer_ui.js
@@ -149,7 +149,8 @@ class SequencerUI
}
return this.decoder.decode(text);
- } catch (e)
+ }
+ catch (e)
{
encodingIndex++;
this.changeEncoding(supportedEncodings[encodingIndex]);
diff --git a/src/website/js/sequencer_ui/title_and_media_status.js b/src/website/js/sequencer_ui/title_and_media_status.js
index 28845a9e..bc0acd11 100644
--- a/src/website/js/sequencer_ui/title_and_media_status.js
+++ b/src/website/js/sequencer_ui/title_and_media_status.js
@@ -101,7 +101,8 @@ export function updateTitleAndMediaStatus(cleanOtherTextEvents = true)
playbackRate: this.seq.playbackRate,
position: this.seq.currentTime
});
- } catch (e)
+ }
+ catch (e)
{
}
diff --git a/src/website/server/serve.js b/src/website/server/serve.js
index 58a4b95f..6b7b822d 100644
--- a/src/website/server/serve.js
+++ b/src/website/server/serve.js
@@ -116,7 +116,8 @@ export function serveStaticFile(res, filePath, mimeType = undefined)
try
{
file = fs.readFileSync(filePath);
- } catch (e)
+ }
+ catch (e)
{
res.writeHead(404);
res.end(`