Skip to content

Commit

Permalink
prog
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisheng Jiang committed Nov 24, 2023
1 parent 61aa366 commit bbdc382
Show file tree
Hide file tree
Showing 11 changed files with 3,050 additions and 2,069 deletions.
8 changes: 4 additions & 4 deletions chart/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ export function mkcanvas(params = {}) {
params
);
const canvas = document.createElement("canvas");
container.ondblclick = (e) => {
container.style =
"display:fixed; width:100vw;height:100vh;text-align:cewnter";
};
// container.ondblclick = (e) => {
// container.style =
// "display:fixed; width:100vw;height:100vh;text-align:center";
// };
function on_resize() {
canvas.setAttribute("width", `${width}`);
canvas.setAttribute("height", `${height}`);
Expand Down
3 changes: 0 additions & 3 deletions dist/895.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/895.js.LICENSE.txt

This file was deleted.

3 changes: 0 additions & 3 deletions dist/main.js

This file was deleted.

3 changes: 0 additions & 3 deletions dist/main.js.LICENSE.txt

This file was deleted.

4 changes: 2 additions & 2 deletions dist/sequence.js

Large diffs are not rendered by default.

520 changes: 283 additions & 237 deletions lib/input-knobs.js

Large diffs are not rendered by default.

4,549 changes: 2,756 additions & 1,793 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
"eslint-plugin-mocha": "^10.1.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^27.5.1",
"tailwindcss": "^3.3.2",
"webpack": "^5.78.0",
"webpack-cli": "^4.10.0"
},
Expand All @@ -26,14 +24,8 @@
"@babel/preset-react": "^7.18.6",
"babel-loader": "^9.1.2",
"css-loader": "^6.7.3",
"eslint-plugin-jest": "^27.2.1",
"grepupload": "^1.1.10",
"parse-sf2": "^2.1.3",
"puppeteer": "^19.8.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "^5.0.1",
"sf2-service": "^1.5.0",
"style-loader": "^3.3.2"
}
}
18 changes: 4 additions & 14 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,28 @@
import { mkdiv, mkdiv2 } from "../mkdiv/mkdiv.js";
import { mkui } from "./ui.js";
import SF2Service from "../sf2-service/index.js";
import { fetchSF2List, fetchmidilist } from "./midilist.js";
import { fetchmidilist } from "./midilist.js";
import { mkeventsPipe } from "./mkeventsPipe.js";
import { createChannel } from "./createChannel.js";
import { DRUMSCHANNEL, ccnames, midi_ch_cmds } from "./constants.js";
import { DRUMSCHANNEL, midi_ch_cmds } from "./constants.js";
import { sf2list } from "../sflist.js";
import { mfilelist } from "../mfilelist.js";

import { readMidi } from "./midiread.js";
import { mkcanvas, chartRect, chart } from "../chart/chart.js";
// import * as sequence from "../dist/sequence.js";
import { logdiv, mktabs, mkcollapse } from "./logdiv.js";
import {
mk_vcf_ctrl,
mk_vca_ctrl,
mk_filter_ctrls,
mk_eq_bar,
} from "./eqslide.js";
import { mk_vcf_ctrl, mk_vca_ctrl, mk_filter_ctrls } from "./eqslide.js";
import { initNavigatorMidiAccess } from "./initNavigatorMidiAccess.js";
function $(sel) {
return document.querySelector(sel);
}

const sf2select = $("#sf2select"),
col4 = $("#col4"),
col5 = $("#col5");
const sf2select = $("#sf2select");

const drumList = document.querySelector("#drums");
const programList = document.querySelector("#programs");
export const navhead = document.querySelector("header");
const analyze = document.querySelector("#analyze");
const maindiv = document.querySelector("main");
const debugContainer = document.querySelector("#debug");
const footer = document.querySelector("footer");

Expand All @@ -40,7 +31,6 @@ const debugInfo = mkdiv("pre");
const ctrbar = mkdiv("div");
const debugInfo2 = mkdiv("pre");

const debugInfo3 = mkdiv("div");
const ffholder = mkdiv("div", { style: "display:flex;flex-direction:row" });
const ff = { container: ffholder, width: 220, height: 150 };
const [cv1, cv2, cv3] = [
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
entry: {
sequence: "./src/sequence/index.js",
timer: "./src/sequence/timer.js",
main: "./src/index.js",
// main: "./src/index.js",
},
module: {
rules: [
Expand Down

0 comments on commit bbdc382

Please sign in to comment.