From 2c1e3f5b1f014444db90875041e036777e029d6a Mon Sep 17 00:00:00 2001
From: "[poww10s]" <[theironminer@gmail.com]>
Date: Thu, 19 Nov 2020 22:16:13 -0500
Subject: [PATCH] Squashed commit of the following:
commit 1c83bf85b13a426c9b74d3e7d4ec2613b2aaff39
Author: [poww10s] <[theironminer@gmail.com]>
Date: Thu Nov 19 22:12:31 2020 -0500
Styling Timbre Sections
commit e662f36f78e0d89a2f4ef195b768e955a0130094
Author: [poww10s] <[theironminer@gmail.com]>
Date: Thu Nov 19 21:08:12 2020 -0500
update styling
commit f9a87e5749799406e9a00a45c0c02f1b5e8c8f2d
Author: [poww10s] <[theironminer@gmail.com]>
Date: Thu Nov 19 20:54:36 2020 -0500
fix initialState for dwgsOrModType
commit 15b89fa96f224fec3d5df982433536951e99ba21
Author: [poww10s] <[theironminer@gmail.com]>
Date: Thu Nov 19 20:47:38 2020 -0500
implemented react-select
commit 23dddc2d6bcd25ed01ef68e3040d9d7375761e5f
Author: [poww10s] <[theironminer@gmail.com]>
Date: Thu Nov 19 15:23:47 2020 -0500
add react-select
commit 47b74abadfd125b90c883d43786149a51bb7cdba
Author: [poww10s] <[theironminer@gmail.com]>
Date: Thu Nov 19 14:15:03 2020 -0500
custom rc-slider style and include
commit b2d1161cbc7eabb6a2c512606b66104084c25754
Author: [poww10s] <[theironminer@gmail.com]>
Date: Thu Nov 19 14:14:45 2020 -0500
include rc-slider package
commit fca611edc959935b09dcd70cfaa737680f22d559
Author: [poww10s] <[theironminer@gmail.com]>
Date: Thu Nov 19 03:09:47 2020 -0500
add styled-components
commit 86bec44f1ea5f631107aad0c561a5788728946c8
Author: [poww10s] <[theironminer@gmail.com]>
Date: Thu Nov 19 01:13:09 2020 -0500
added timbre2 to App
commit d1c275b9915861fde8ca9225e5dcb591c707949d
Author: [poww10s] <[theironminer@gmail.com]>
Date: Thu Nov 19 01:13:00 2020 -0500
updated parameterSlice with correct ID's
commit 3e694c135722c4c63c489e6c2691b18fea4f977a
Author: [poww10s] <[theironminer@gmail.com]>
Date: Thu Nov 19 01:12:30 2020 -0500
added timbre reducer to store
commit 251693a3fd35aca039de51dda79a17e4154afb89
Author: [poww10s] <[theironminer@gmail.com]>
Date: Thu Nov 19 01:12:11 2020 -0500
added support for seperate timbres
commit a2b24c1e6f7cf1b95bfeffb828418319932658ec
Author: [poww10s] <[theironminer@gmail.com]>
Date: Thu Nov 19 01:11:54 2020 -0500
added timbreSlice
---
package-lock.json | 80 ++++++
package.json | 1 +
src/App.js | 2 +-
src/features/helpers/Helpers.js | 25 +-
src/features/helpers/rcSelectTheme.css | 251 ++++++++++++++++++
src/features/timbre/Timbre.js | 191 +++++++------
src/features/timbre/parameters/Amp.js | 4 +
src/features/timbre/parameters/EG.js | 5 +
src/features/timbre/parameters/Filter.js | 13 +-
src/features/timbre/parameters/LFO.js | 4 +
src/features/timbre/parameters/Mixer.js | 3 +
.../timbre/parameters/Parameters.module.css | 35 ++-
src/features/timbre/parameters/Pitch.js | 123 +++++++++
.../timbre/parameters/parameterSlice.js | 12 +-
14 files changed, 657 insertions(+), 92 deletions(-)
create mode 100644 src/features/helpers/rcSelectTheme.css
diff --git a/package-lock.json b/package-lock.json
index df0dae1..e3ac9ce 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1191,6 +1191,16 @@
"resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz",
"integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg=="
},
+ "@emotion/utils": {
+ "version": "0.11.3",
+ "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-0.11.3.tgz",
+ "integrity": "sha512-0o4l6pZC+hI88+bzuaX/6BgOvQVhbt2PfmxauVaYOGgbsAw14wdKyvMCZXnsnsHys94iadcF+RG/wZyx6+ZZBw=="
+ },
+ "@emotion/weak-memoize": {
+ "version": "0.2.5",
+ "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.2.5.tgz",
+ "integrity": "sha512-6U71C2Wp7r5XtFtQzYrW5iKFT67OixrSxjI4MptCHzdSVlgabczzqLe0ZSgnub/5Kp4hSbpDB1tMytZY9pwxxA=="
+ },
"@eslint/eslintrc": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.2.1.tgz",
@@ -3378,6 +3388,23 @@
"object.assign": "^4.1.0"
}
},
+ "babel-plugin-emotion": {
+ "version": "10.0.33",
+ "resolved": "https://registry.npmjs.org/babel-plugin-emotion/-/babel-plugin-emotion-10.0.33.tgz",
+ "integrity": "sha512-bxZbTTGz0AJQDHm8k6Rf3RQJ8tX2scsfsRyKVgAbiUPUNIRtlK+7JxP+TAd1kRLABFxe0CFm2VdK4ePkoA9FxQ==",
+ "requires": {
+ "@babel/helper-module-imports": "^7.0.0",
+ "@emotion/hash": "0.8.0",
+ "@emotion/memoize": "0.7.4",
+ "@emotion/serialize": "^0.11.16",
+ "babel-plugin-macros": "^2.0.0",
+ "babel-plugin-syntax-jsx": "^6.18.0",
+ "convert-source-map": "^1.5.0",
+ "escape-string-regexp": "^1.0.5",
+ "find-root": "^1.1.0",
+ "source-map": "^0.5.7"
+ }
+ },
"babel-plugin-istanbul": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.0.0.tgz",
@@ -5252,6 +5279,15 @@
"utila": "~0.4"
}
},
+ "dom-helpers": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.0.tgz",
+ "integrity": "sha512-Ru5o9+V8CpunKnz5LGgWXkmrH/20cGKwcHwS4m73zIvs54CN9epEmT/HLqFJW3kXpakAFkEdzgy1hzlJe3E4OQ==",
+ "requires": {
+ "@babel/runtime": "^7.8.7",
+ "csstype": "^3.0.2"
+ }
+ },
"dom-serializer": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz",
@@ -6653,6 +6689,11 @@
"pkg-dir": "^3.0.0"
}
},
+ "find-root": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz",
+ "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng=="
+ },
"find-up": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
@@ -10067,6 +10108,11 @@
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
"integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g="
},
+ "memoize-one": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.1.1.tgz",
+ "integrity": "sha512-HKeeBpWvqiVJD57ZUAsJNm71eHTykffzcLZVYWiVfQeI1rJtuEaS7hQiEpWfVVk18donPwJEcFKIkCmPJNOhHA=="
+ },
"memory-fs": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz",
@@ -12650,6 +12696,14 @@
"resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.8.tgz",
"integrity": "sha512-HvPuUQnLp5H7TouGq3kzBeioJmXms1wHy9EGjz2OURWBp4qZO6AfGEcnxts1D/CbwPLRAgTMPCEgYhA3sEM4vw=="
},
+ "react-input-autosize": {
+ "version": "2.2.2",
+ "resolved": "https://registry.npmjs.org/react-input-autosize/-/react-input-autosize-2.2.2.tgz",
+ "integrity": "sha512-jQJgYCA3S0j+cuOwzuCd1OjmBmnZLdqQdiLKRYrsMMzbjUrVDS5RvJUDwJqA7sKuksDuzFtm6hZGKFu7Mjk5aw==",
+ "requires": {
+ "prop-types": "^15.5.8"
+ }
+ },
"react-is": {
"version": "16.13.1",
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
@@ -12737,6 +12791,32 @@
"workbox-webpack-plugin": "5.1.4"
}
},
+ "react-select": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/react-select/-/react-select-3.1.0.tgz",
+ "integrity": "sha512-wBFVblBH1iuCBprtpyGtd1dGMadsG36W5/t2Aj8OE6WbByDg5jIFyT7X5gT+l0qmT5TqWhxX+VsKJvCEl2uL9g==",
+ "requires": {
+ "@babel/runtime": "^7.4.4",
+ "@emotion/cache": "^10.0.9",
+ "@emotion/core": "^10.0.9",
+ "@emotion/css": "^10.0.9",
+ "memoize-one": "^5.0.0",
+ "prop-types": "^15.6.0",
+ "react-input-autosize": "^2.2.2",
+ "react-transition-group": "^4.3.0"
+ }
+ },
+ "react-transition-group": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.1.tgz",
+ "integrity": "sha512-Djqr7OQ2aPUiYurhPalTrVy9ddmFCCzwhqQmtN+J3+3DzLO209Fdr70QrN8Z3DsglWql6iY1lDWAfpFiBtuKGw==",
+ "requires": {
+ "@babel/runtime": "^7.5.5",
+ "dom-helpers": "^5.0.1",
+ "loose-envify": "^1.4.0",
+ "prop-types": "^15.6.2"
+ }
+ },
"read-pkg": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz",
diff --git a/package.json b/package.json
index e746ead..2a58598 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,7 @@
"react-dom": "^17.0.1",
"react-redux": "^7.2.2",
"react-scripts": "4.0.0",
+ "react-select": "^3.1.0",
"styled-components": "^5.2.1"
},
"scripts": {
diff --git a/src/App.js b/src/App.js
index 0202973..4269812 100644
--- a/src/App.js
+++ b/src/App.js
@@ -7,7 +7,7 @@ function App() {
);
diff --git a/src/features/helpers/Helpers.js b/src/features/helpers/Helpers.js
index 6a843af..e5455cc 100644
--- a/src/features/helpers/Helpers.js
+++ b/src/features/helpers/Helpers.js
@@ -1,9 +1,17 @@
import React from 'react';
import RCSlider, { createSliderWithTooltip } from 'rc-slider';
-import './index.css';
+import Select from 'react-select';
+import './rcSelectTheme.css';
const SliderWithToolTip = createSliderWithTooltip(RCSlider);
+const SelectStyle = {
+ control: (provided) => ({
+ ...provided,
+ width: '100%',
+ }),
+};
+
const Slider = (props) => {
return (
{
};
const SelectList = (props) => {
- const options = props.list.map((option, index) => (
-
- ));
return (
+<<<<<<< HEAD
+=======
+