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

:bug: bug: fixs

parent 8f9dfe6c
Branches
Tags
1 merge request!1✨ feat: CSSLSD V2
let css = "body {\n\tbackground-color: [couleur];\n}\nh1, h2 {\n opacity: [opacité];\n\tfont-family: [typo];\n\tcolor: rgb([chiffre 0:255],255,255);\n}";
let parameters = '[[\" \",\"typo\",\"sans-serif;serif;cursive;fantasy\",\"r\",\"note:10\",\"onset:E\"],[\" \",\"chiffre\",\"0:1000\",\"i:100\",\"cc:60\",\"onset:D\"],[\" \",\"couleur\",\"#000:#fff\",\"d\",\"cc:60\",\"loud\"],[\" \",\"opacité\",\"0:1\",\"d\",\"cc:60\",\"hi\"]]';
let css = `body {
background-color: [couleur];
}
h1, h2 {
opacity: [opacité];
font-family: [typo];
font-size: [chiffre2 20:100]px;
color: rgb([chiffre 0:255],255,255);
}`;
let parameters = `[[\" \",\"typo\",\"sans-serif;serif;cursive;fantasy\",\"r\",\"note:10\",\"onset:E\"],[\" \",\"chiffre\",\"0:1000\",\"i:100\",\"cc:60\",\"onset:D\"],[\" \",\"chiffre2\",\"0:200\",\"i:10\",\"cc:60\",\"onset:E\"],[\" \",\"couleur\",\"#000:#fff\",\"d\",\"cc:60\",\"loud\"],[\" \",\"opacité\",\"0:1\",\"d\",\"cc:60\",\"hi\"]]`;
let activate = false;
let activateFav = "ressources/icon256.png";
let audioB = false;
......@@ -35,3 +43,14 @@ chrome.runtime.onConnect.addListener(function (port) {
});
}
});
function loopPlay2() {
console.log('looooop');
}
chrome.runtime.onMessage.addListener((message, callback) => {
// const tabId = getForegroundTabId();
// if (message.data === "loop") {
// chrome.scripting.executeScript({ func: loopPlay2, tabId });
// }
});
\ No newline at end of file
......@@ -185,6 +185,8 @@ function midiEvent(type, data) {
// Function that play recorded midi loop
function playMidiLoop(loopId) {
chrome.runtime.sendMessage({ data: 'loop' });
// if (records[loopId]) {
// playLoopInfo = true;
// while (playLoopInfo && playLoop && records[loopId]['events'].length > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment