-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup to get ready for v0.2 release
- Loading branch information
1 parent
57c0ae0
commit 4367f46
Showing
12 changed files
with
118 additions
and
32 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
|
||
Current "roadmap" of upcoming changes | ||
|
||
v0.1 release | ||
- checkbox to turn off sending notes (for practicing without it playing) | ||
- checkbox to turn off auto octave swap | ||
v0.2 | ||
|
||
v0.2 release | ||
- key switches for octaves (when in not auto octave mode) | ||
- buttons for manually shifting the internal octave | ||
- keymap selector | ||
- keymap selector with a few options | ||
|
||
v0.3 | ||
|
||
- Better ui for configuring note->key map | ||
|
||
future ideas | ||
|
||
- UI that shows a piano and keypresses | ||
- Automatically play through a song | ||
- Mac build | ||
- Send different note ranges to different game clients? | ||
-- Like if multiboxing multiple instruments | ||
-- May be against terms of service :( | ||
-- Like if multiboxing multiple instruments | ||
-- May be against terms of service :( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
|
||
.app { | ||
height: 100vh; | ||
overflow: hidden; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react'; | ||
|
||
export default InstrumentSelector; | ||
|
||
function InstrumentSelector(props) { | ||
return <div>Instrument: The Minstrel</div>; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React, { useEffect, useRef } from 'react'; | ||
import scrollIntoView from 'smooth-scroll-into-view-if-needed'; | ||
|
||
import { useKeySender } from '../hooks/useKeySender'; | ||
|
||
import styles from './MIDIMessageDisplay.module.css'; | ||
|
||
export default MIDIMessageDisplay; | ||
|
||
function MIDIMessageDisplay(props) { | ||
const { sentMessages } = useKeySender(); | ||
const messagesEndRef = useRef(null); | ||
|
||
const scrollToBottom = () => { | ||
scrollIntoView(messagesEndRef.current); | ||
}; | ||
|
||
useEffect(scrollToBottom, [sentMessages]); | ||
|
||
return ( | ||
<div className={styles.MIDIMessageDisplay}> | ||
<h3 className={styles.header}>Messages</h3> | ||
<div className={styles.messages}> | ||
{sentMessages.map((message, i) => ( | ||
<div key={i}>{message}</div> | ||
))} | ||
<div key="endDiv" ref={messagesEndRef} /> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.MIDIMessageDisplay { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
.header { | ||
flex: 0; | ||
} | ||
|
||
.messages { | ||
flex: 1; | ||
overflow-y: auto; | ||
width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
import { useKeySender } from '../hooks/useKeySender'; | ||
|
||
export default PianoDisplay; | ||
|
||
function PianoDisplay(props) { | ||
const { octave } = useKeySender(); | ||
return <div>Octave {octave}</div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters