From d76432715a7d13bac7f3647f1809c0a5c5a810e3 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 3 Aug 2018 15:48:43 +0200 Subject: webpack --- .eslintrc.js | 280 +++++++++++++++++++++++++++++++++++++++++++++ index.js | 1 + info.html | 332 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ info.txt | 311 ++++++++++++++++++++++++++++++++++++++++++++++++++ package-lock.json | 13 +++ package.json | 18 +++ webpack.config.js | 24 ++++ 7 files changed, 979 insertions(+) create mode 100644 .eslintrc.js create mode 100644 index.js create mode 100644 info.html create mode 100644 info.txt create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 webpack.config.js diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..0e9df3f --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,280 @@ +module.exports = { + "env": { + "browser": true, + "es6": true + }, + "extends": "eslint:recommended", + "parserOptions": { + "sourceType": "module" + }, + "rules": { + "accessor-pairs": "error", + "array-bracket-newline": "error", + "array-bracket-spacing": [ + "error", + "never" + ], + "array-callback-return": "off", + "array-element-newline": "off", + "arrow-body-style": "error", + "arrow-parens": "off", + "arrow-spacing": [ + "error", + { + "after": true, + "before": true + } + ], + "block-scoped-var": "error", + "block-spacing": [ + "error", + "always" + ], + "brace-style": "off", + "callback-return": "off", + "camelcase": "off", + "capitalized-comments": "off", + "class-methods-use-this": "error", + "comma-dangle": "off", + "comma-spacing": "off", + "comma-style": [ + "error", + "last" + ], + "complexity": "error", + "computed-property-spacing": "off", + "consistent-return": "error", + "consistent-this": "error", + "curly": "off", + "default-case": "error", + "dot-location": "error", + "dot-notation": "error", + "eol-last": "off", + "eqeqeq": "off", + "for-direction": "error", + "func-call-spacing": "off", + "func-name-matching": "error", + "func-names": [ + "error", + "never" + ], + "func-style": "off", + "function-paren-newline": "error", + "generator-star-spacing": "error", + "getter-return": "error", + "global-require": "error", + "guard-for-in": "error", + "handle-callback-err": "error", + "id-blacklist": "error", + "id-length": "off", + "id-match": "error", + "implicit-arrow-linebreak": [ + "error", + "beside" + ], + "indent": "off", + "indent-legacy": "off", + "init-declarations": "off", + "jsx-quotes": "error", + "key-spacing": "off", + "keyword-spacing": "off", + "line-comment-position": "off", + "linebreak-style": [ + "error", + "unix" + ], + "lines-around-comment": "off", + "lines-around-directive": "error", + "lines-between-class-members": [ + "error", + "never" + ], + "max-depth": "error", + "max-len": "off", + "max-lines": "error", + "max-nested-callbacks": "error", + "max-params": "off", + "max-statements": "off", + "max-statements-per-line": "off", + "multiline-comment-style": "off", + "new-cap": "error", + "new-parens": "error", + "newline-after-var": "off", + "newline-before-return": "off", + "newline-per-chained-call": "off", + "no-alert": "error", + "no-array-constructor": "error", + "no-await-in-loop": "error", + "no-bitwise": "off", + "no-buffer-constructor": "error", + "no-caller": "error", + "no-catch-shadow": "error", + "no-confusing-arrow": "error", + "no-continue": "error", + "no-div-regex": "error", + "no-duplicate-imports": "error", + "no-else-return": "error", + "no-empty-function": "off", + "no-eq-null": "error", + "no-eval": "error", + "no-extend-native": "error", + "no-extra-bind": "error", + "no-extra-label": "error", + "no-extra-parens": "off", + "no-floating-decimal": "error", + "no-implicit-globals": "error", + "no-implied-eval": "error", + "no-inline-comments": "off", + "no-inner-declarations": [ + "error", + "functions" + ], + "no-invalid-this": "off", + "no-iterator": "error", + "no-label-var": "error", + "no-labels": "error", + "no-lone-blocks": "error", + "no-lonely-if": "error", + "no-loop-func": "error", + "no-magic-numbers": "off", + "no-mixed-operators": "off", + "no-mixed-requires": "error", + "no-multi-assign": "off", + "no-multi-spaces": "off", + "no-multi-str": "error", + "no-multiple-empty-lines": "off", + "no-native-reassign": "error", + "no-negated-condition": "error", + "no-negated-in-lhs": "error", + "no-nested-ternary": "off", + "no-new": "error", + "no-new-func": "error", + "no-new-object": "error", + "no-new-require": "error", + "no-new-wrappers": "error", + "no-octal-escape": "error", + "no-param-reassign": "off", + "no-path-concat": "error", + "no-plusplus": [ + "error", + { + "allowForLoopAfterthoughts": true + } + ], + "no-process-env": "error", + "no-process-exit": "error", + "no-proto": "error", + "no-prototype-builtins": "error", + "no-restricted-globals": "error", + "no-restricted-imports": "error", + "no-restricted-modules": "error", + "no-restricted-properties": "error", + "no-restricted-syntax": "error", + "no-return-assign": "error", + "no-return-await": "error", + "no-script-url": "error", + "no-self-compare": "error", + "no-sequences": "off", + "no-shadow": "off", + "no-shadow-restricted-names": "error", + "no-spaced-func": "off", + "no-sync": "error", + "no-tabs": "off", + "no-template-curly-in-string": "error", + "no-ternary": "off", + "no-throw-literal": "error", + "no-trailing-spaces": "off", + "no-undef-init": "error", + "no-undefined": "error", + "no-underscore-dangle": "off", + "no-unmodified-loop-condition": "error", + "no-unneeded-ternary": "error", + "no-unused-expressions": "off", + "no-use-before-define": "off", + "no-useless-call": "error", + "no-useless-computed-key": "error", + "no-useless-concat": "error", + "no-useless-constructor": "error", + "no-useless-rename": "error", + "no-useless-return": "error", + "no-var": "off", + "no-void": "error", + "no-warning-comments": "error", + "no-whitespace-before-property": "error", + "no-with": "error", + "nonblock-statement-body-position": [ + "error", + "any" + ], + "object-curly-newline": "error", + "object-curly-spacing": [ + "error", + "always" + ], + "object-property-newline": "off", + "object-shorthand": "off", + "one-var": "off", + "one-var-declaration-per-line": "off", + "operator-assignment": [ + "error", + "always" + ], + "operator-linebreak": "error", + "padded-blocks": "off", + "padding-line-between-statements": "error", + "prefer-arrow-callback": "off", + "prefer-const": "off", + "prefer-destructuring": "off", + "prefer-numeric-literals": "error", + "prefer-promise-reject-errors": "error", + "prefer-reflect": "error", + "prefer-rest-params": "error", + "prefer-spread": "error", + "prefer-template": "off", + "quote-props": "off", + "quotes": "off", + "radix": "error", + "require-await": "error", + "require-jsdoc": "off", + "rest-spread-spacing": "error", + "semi": "off", + "semi-spacing": [ + "error", + { + "after": true, + "before": false + } + ], + "semi-style": [ + "error", + "last" + ], + "sort-imports": "off", + "sort-keys": "off", + "sort-vars": "off", + "space-before-blocks": "off", + "space-before-function-paren": "off", + "space-in-parens": "off", + "space-infix-ops": "off", + "space-unary-ops": "off", + "spaced-comment": "off", + "strict": "error", + "switch-colon-spacing": "error", + "symbol-description": "error", + "template-curly-spacing": "error", + "template-tag-spacing": "error", + "unicode-bom": [ + "error", + "never" + ], + "valid-jsdoc": "off", + "vars-on-top": "off", + "wrap-iife": "error", + "wrap-regex": "error", + "yield-star-spacing": "error", + "yoda": [ + "error", + "never" + ] + } +}; \ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 0000000..945ce43 --- /dev/null +++ b/index.js @@ -0,0 +1 @@ +index.js \ No newline at end of file diff --git a/info.html b/info.html new file mode 100644 index 0000000..142ac1f --- /dev/null +++ b/info.html @@ -0,0 +1,332 @@ + + diff --git a/info.txt b/info.txt new file mode 100644 index 0000000..cf9aedd --- /dev/null +++ b/info.txt @@ -0,0 +1,311 @@ +CONTROL / PARAMETER +CC +CC VALUE RANGE +14 BIT MSB / LSB +%% +AMPLIFIER EG ATTACK +28 +0-16383 +14 BIT: CC 28 / CC 60 +%% +AMPLIFIER EG DECAY +29 +0-16383 +14 BIT: CC 29 / CC 61 +%% +AMPLIFIER EG SUSTAIN +30 +0-16383 +14 BIT: CC 30 / CC 62 +%% +AMPLIFIER EG RELEASE +31 +0-16383 +14 BIT: CC 31 / CC 63 +%% +FILTER EG ATTACK +23 +0-16383 +14 BIT: CC 23 / CC 55 +%% +FILTER EG DECAY +24 +0-16383 +14 BIT: CC 24 / CC 56 +%% +FILTER EG SUSTAIN +25 +0-16383 +14 BIT: CC 25 / CC 57 +%% +FILTER EG RELEASE +26 +0-16383 +14 BIT: CC 26 / CC 58 +%% +VCO 1 LEVEL +15 +0-16383 +14 BIT: CC 15 / CC 47 +%% +VCO 2 LEVEL +16 +0-16383 +14 BIT: CC 16 / CC 48 +%% +NOISE LEVEL +8 +0-16383 +14 BIT: CC 8 / CC 40 +%% +VCO 1 SUB LEVEL +17 +0-16383 +14 BIT: CC 17 / CC 49 +%% +VCO 1 WAVE +9 +0-16383 +14 BIT: CC 9 / CC 41 +%% +VCO 2 WAVE +14 +0-16383 +14 BIT: CC 14 / CC 46 +%% +VCO 2 FREQUENCY +12 +0-16383 +14 BIT: CC 12 / CC 44 +%% +VCO 2 BEAT FREQUENCY +13 +0-16383 +14 BIT: CC 13 / CC 45 +%% +VCO 2 HARD SYNC +77 +0 = OFF, 64 = ON +%% +VCO GATE RESET +81 +0 = OFF, 64 = ON +%% +FILTER CUTOFF FREQUENCY +19 +0-16383 +14 BIT: CC 19 / CC 51 +%% +FILTER RESONANCE +21 +0-16383 +14 BIT: CC 21 / CC 53 +%% +FILTER KB TRACKING AMOUNT +27 +0-16383 +14 BIT: CC 27 / CC 59 +%% +FILTER EG AMOUNT +22 +0-16383 +14 BIT: CC 22 / CC 54 +%% +MULTIDRIVE AMOUNT +18 +0-16383 +14 BIT: CC 18 / CC 50 +%% +FILTER EG VELOCITY TO AMPLITUDE +110 +0-127 +%% +AMPLIFIER EG VELOCITY TO AMPLITUDE +92 +0-127 +%% +NOTE PRIORITY +111 +0 = Global, 32 = Low Note, 64 = High Note, 96 = Last Note +RELEASE ON / OFF +88 +0 = OFF, 64 = ON +%% +MODULATION SOURCE +71 +0 = Triangle LFO, 16 = Square LFO, 32 = Saw LFO, 48 = Ramp LFO, 64 = S&H, 80 = Filter Envelope +%% +LFO RATE +3 +0-16383 +14 BIT: CC 3 / CC 35 +%% +LFO MIDI SYNC +102 +0 = OFF, 64 = ON +%% +LFO GATE RESET +93 +0 = OFF, 64 = ON +%% +FILTER MOD AMOUNT +2 +0-16383 +14 BIT: CC 2 / CC 34 +%% +PITCH MOD AMOUNT +4 +0-16383 +14 BIT: CC 4 / CC 36 +%% +WAVE MOD AMOUNT +20 +0-16383 +14 BIT: CC 20 / CC 52 +%% +PITCH BEND UP +107 +0-24 +%% +PITCH BEND DOWN +108 +0-24 +%% +GLIDE ON / OFF +65 +0 = OFF, 64 = ON +%% +GLIDE LEGATO +94 +0 = OFF, 64 = ON +%% +GLIDE RATE +5 +0-16383 +14 BIT: CC 5 / CC 37 +%% +GLIDE TYPE +85 +0 = Linear Constant Rate, 43 = Linear Constant Time, 85 = Exponential +%% +LFO KB TRACKING AMT. +78 +0-127 +%% +AMPLIFIER EG RESET +83 +0 = OFF, 64 = ON +%% +FILTER EG RESET +82 +0 = OFF, 64 = ON +%% +OUTPUT LEVEL +7 +0-16383 +14 BIT: CC 7 / CC 39 +%% +KEYBOARD OCTAVE +89 +0 = -2 Oct, 16 = -1 Oct, 32 = +0 Oct 48 = +1 Oct, 64 = +2 Oct +%% +EXTERNAL INPUT LVL. +116 +0-127 +%% +AMPLIFIER EG DELAY +104 +0-127 +%% +AMPLIFIER EG HOLD +106 +0-127 +%% +FILTER EG DELAY +103 +0-127 +%% +FILTER EG HOLD +105 +0-127 +%% +PITCH MOD. OSC 2 ONLY +70 +0 = OFF, 64 = ON +%% +MODULATION WHEEL +1 +0-16383 +%% +WAVE MOD DESTINATION +72 +0 = OSC 1 Only, 43 = OSC 2 Only, 85 = Both OSC 1 & 2 +%% +VCO 1 OCTAVE +74 +16 = 16', 32 = 8', 48 = 4', 64 = 2' +%% +VCO 2 OCTAVE +75 16 = 16', 32 = 8', 48 = 4', 64 = 2' +%% +FILTER POLES +109 +0 = 1 POLE, 32 = 2 POLES, 64 = 3 POLES, 96 = 4 POLES +%% +LFO RANGE +76 +0 = Low (.01 Hz - 10Hz) 43 = Mid (.1Hz - 100Hz) 85 = High (1Hz - 1kHz) +%% +LEGATO +68 +0 = OFF, 64 = ON +%% +KEYBOARD TRANSPOSE +119 +0 = -12 Semitones, 1 = -11 Semitones... 12 = +0 Semitones... 24 = +12 Semitones +%% +GATED GLIDE +73 +0 = OFF, 64 = ON +%% +FILTER EG REPEAT +112 +0 = OFF, 64 = ON +%% +FILTER EG VELOCITY TO TIME +86 +0-127 +%% +FILTER EG KB AMOUNT +79 +0-127 +%% +FILTER EG GATE SOURCE +90 +0 = Gate On, 32 = Keys Only, 64 = Gate Only, 96 = Keys Or Gate Input +%% +AMPLIFIER EG REPEAT +113 +0 = OFF, 64 = ON +%% +AMPLIFIER EG VELOCITY TO TIME +87 +0-127 +%% +AMPLIFIER EG KB AMOUNT +80 +0-127 +%% +VOLUME EG GATE SOURCE +91 +0 = Gate On, 32 = Keys Only, 64 = Gate Only, 96 = Keys Or Gate Input +%% +FILTER EG TRIGGER MODE +114 +0 = OFF, 64 = ON +%% +AMPLIFIER EG TRIGGER MODE +115 +0 = OFF, 64 = ON +%% + diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..0c780bd --- /dev/null +++ b/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "subphatty", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "webmidi": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/webmidi/-/webmidi-2.2.0.tgz", + "integrity": "sha512-/HncJbftTyijTAhk/oKAZFBk5sE3UgWFlBUcd82YVEz1epAXMk0thXLpSKe3nGPR8V4R/LLBCbdzqQ9ZeBQOsw==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..17706cc --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "subphatty", + "version": "1.0.0", + "description": "midi interface for the moog subphatty", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git@asdf.us:subphatty.git" + }, + "author": "jules ", + "license": "MIT", + "dependencies": { + "webmidi": "^2.2.0" + } +} diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..3b2bf92 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,24 @@ +var webpack = require('webpack'); + +module.exports = { + entry: './client/index.js', + watch: true, + devtool: 'cheap-source-map', + output: { + filename: './bundle.js' + }, + module: { + rules: [ + { + test: /\.jsx?$/, + exclude: /(node_modules|bower_components)/, + use: { + loader: 'babel-loader', + options: { + presets: ['env'] + } + } + } + ] + }, +} -- cgit v1.2.3-70-g09d2