Skip to content
Snippets Groups Projects
Commit 57225a39 authored by RANWEZ Pierre's avatar RANWEZ Pierre :anchor:
Browse files

:zap: performance

parent 28c35a41
No related branches found
No related tags found
Loading
......@@ -475,11 +475,11 @@ function audioEvent() {
volume = meter.volume * 1.4;
value = value.replace('[' + template.templateFull + ']', (meter.volume * 1.4 < 1 ? range(template, volume) : 0));
}
if (template.eventType == 'onset' && template.eventName == noteStrings[note % 12]) {
else if (template.eventType == 'onset' && template.eventName == noteStrings[note % 12]) {
eventIn = true;
value = value.replace('[' + template.templateFull + ']', range(template, 1));
}
if (attack && template.eventType == 'attack') {
else if (attack && template.eventType == 'attack') {
console.log('Attack');
eventIn = true;
value = value.replace('[' + template.templateFull + ']', '');
......@@ -575,5 +575,6 @@ chrome.runtime.onMessage.addListener(onMessage);
chrome.storage.sync.get(['activate'], function (result) {
if (result.activate) {
audioApi();
midiApi();
}
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment