From 12cb43d197dc8ea688a3a9f21cb4b42c7eca1c8e Mon Sep 17 00:00:00 2001 From: "[poww10s]" <[theironminer@gmail.com]> Date: Wed, 2 Sep 2020 21:33:28 -0400 Subject: [PATCH] add basic fileinput to MIDIComponent --- src/App.js | 13 ++++++-- src/components/MidiComponent.js | 53 +++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 src/components/MidiComponent.js diff --git a/src/App.js b/src/App.js index 60e14f5..0561a3b 100644 --- a/src/App.js +++ b/src/App.js @@ -4,12 +4,18 @@ import './App.css'; import { makeStyles } from '@material-ui/styles' import Slider from '@material-ui/core/Slider' +import MidiComponent from './components/MidiComponent' + const useStyles = makeStyles({ root: { width: 127, }, }); +function valuetext(value) { + return `${value}`; +} + function SettingSlider() { const classes = useStyles(); @@ -20,7 +26,7 @@ function SettingSlider() { return(
- +
); } @@ -30,9 +36,10 @@ function App() {
logo -

+

-

+ +
{ + event.preventDefault(); + alert( + `Selected file - ${fileInput.current.files[0].name}` + ); + } + + return( +
+ +
+ +
+ ); + + +} + +function parseSysexFile() { + +} + +export default MIDIComponent; \ No newline at end of file