Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BHSPitMonkey/Prelude
/ functions
Functions
79 in github.com/BHSPitMonkey/Prelude
⨍
Functions
79
◇
Types & classes
70
↓ 16 callers
Method
setState
* Overridden setState which persists prefs changes to localStorage
src/common/practice-intro.tsx:78
↓ 3 callers
Method
teoriaKeysToVexflowKeys
(keys: TeoriaNote[])
src/sheet-music-view.tsx:36
↓ 3 callers
Method
tonalNoteNamesToVexflowKeys
(notes: TonalNote[])
src/sheet-music-view.tsx:48
↓ 2 callers
Method
correctGuess
()
src/modes/perfect-pitch-practice.tsx:183
↓ 2 callers
Method
correctGuess
()
src/modes/sight-reading-practice.tsx:456
↓ 2 callers
Method
drawMusic
* Redraw the contents of the canvas
src/sheet-music-view.tsx:65
↓ 2 callers
Method
getRandomState
* Randomly generate a new question and return a state object
src/modes/perfect-pitch-practice.tsx:117
↓ 2 callers
Method
getRandomState
* Randomly generate a new question and return a state object
src/modes/sight-reading-practice.tsx:211
↓ 2 callers
Method
incorrectGuess
()
src/modes/perfect-pitch-practice.tsx:202
↓ 2 callers
Method
incorrectGuess
()
src/modes/sight-reading-practice.tsx:468
↓ 2 callers
Method
play
(key, seconds)
src/synth.ts:28
↓ 2 callers
Method
playSound
(event?, key?)
src/modes/perfect-pitch-practice.tsx:157
↓ 2 callers
Method
r
(arr)
src/modes/perfect-pitch-practice.tsx:45
↓ 2 callers
Method
r
(arr)
src/modes/sight-reading-practice.tsx:114
↓ 1 callers
Method
end
* End the practice session and return to the intro/prefs screen
src/common/practice-intro.tsx:105
↓ 1 callers
Method
newQuestion
* Generate a new question to ask and update state
src/modes/perfect-pitch-practice.tsx:143
↓ 1 callers
Method
newQuestion
* Generate a new question to ask and update state
src/modes/sight-reading-practice.tsx:351
↓ 1 callers
Method
persistPrefs
* Save the prefs currently in the state into localStorage
src/common/practice-intro.tsx:71
↓ 1 callers
Method
start
* Begin the practice session * TODO: Possibly do this using routing in the future * TODO: If we use routing, maybe pass the options as query par
src/common/practice-intro.tsx:94
Method
clearSettings
()
src/about.tsx:29
Method
componentDidMount
()
src/sheet-music-view.tsx:28
Method
componentDidMount
()
src/application.tsx:76
Method
componentDidMount
()
src/modes/free-play.tsx:67
Method
componentDidMount
()
src/modes/perfect-pitch-practice.tsx:49
Method
componentDidMount
()
src/modes/sight-reading-practice.tsx:127
Method
componentDidUpdate
(prevProps, prevState)
src/sheet-music-view.tsx:32
Method
componentWillMount
()
src/about.tsx:25
Method
componentWillMount
()
src/home.tsx:21
Method
componentWillMount
()
src/common/practice-intro.tsx:85
Method
componentWillUnmount
* We need to disable nosleep on unmount in case the user leaves the practice session by some other means than by * using the back button in the App
src/modes/free-play.tsx:62
Method
componentWillUnmount
* We need to disable nosleep on unmount in case the user leaves the practice session by some other means than by * using the back button in the App
src/modes/sight-reading-practice.tsx:122
Method
constructor
(props)
src/about.tsx:18
Method
constructor
(props: SheetMusicViewProps)
src/sheet-music-view.tsx:21
Method
constructor
()
src/synth.ts:21
Method
constructor
(props)
src/keyboard-buttons.tsx:59
Method
constructor
(props)
src/home.tsx:15
Method
constructor
(props)
src/application.tsx:37
Method
constructor
(props)
src/common/practice-intro.tsx:40
Method
constructor
(props: FreePlayProps)
src/modes/free-play.tsx:35
Method
constructor
(props: PerfectPitchPracticeProps)
src/modes/perfect-pitch-practice.tsx:30
Method
constructor
(props: SightReadingPracticeProps)
src/modes/sight-reading-practice.tsx:66
Method
displaySnackbar
(message, duration)
src/application.tsx:138
Method
drawerMenuItemTouched
(e)
src/application.tsx:126
Method
getChildContext
()
src/application.tsx:69
Method
handleGuess
* Handle a guessed answer and judge it to be right or wrong. * * Guesses should be sent here from multiple places: * - The on-screen musical
src/modes/perfect-pitch-practice.tsx:174
Method
handleGuess
* Handle a guessed answer and judge it to be right or wrong. * * Guesses could be sent here from multiple places: * - The on-screen musical
src/modes/sight-reading-practice.tsx:387
Method
handleKeyPress
* Handle a pressed key. * * Presses could be sent here from multiple places: * - The on-screen musical keyboard (KeyboardButtons component)
src/modes/free-play.tsx:152
Method
leftNavChange
(e, key, payload)
src/application.tsx:123
Method
onButtonPress
(event: MouseEvent<HTMLElement>)
src/keyboard-buttons.tsx:67
Method
onMidiAccessGranted
* Handler for after we've been granted the MIDI access we requested at launch
src/modes/free-play.tsx:85
Method
onMidiAccessGranted
* Handler for after we've been granted the MIDI access we requested at launch
src/modes/perfect-pitch-practice.tsx:61
Method
onMidiAccessGranted
* Handler for after we've been granted the MIDI access we requested at launch
src/modes/sight-reading-practice.tsx:145
Method
onMidiMessage
* Handler for when a new MIDI message arrives from an input port
src/modes/free-play.tsx:119
Method
onMidiMessage
* Handler for when a new MIDI message arrives from an input port
src/modes/perfect-pitch-practice.tsx:95
Method
onMidiMessage
* Handler for when a new MIDI message arrives from an input port
src/modes/sight-reading-practice.tsx:179
Method
onMidiStateChange
* Handler for new MIDI devices connected after launch
src/modes/free-play.tsx:106
Method
onMidiStateChange
* Handler for new MIDI devices connected after launch
src/modes/perfect-pitch-practice.tsx:82
Method
onMidiStateChange
* Handler for new MIDI devices connected after launch
src/modes/sight-reading-practice.tsx:166
Method
onToggle
* Handler for all toggle switches and checkboxes
src/common/practice-intro.tsx:117
Method
render
()
src/about.tsx:35
Method
render
()
src/sheet-music-view.tsx:171
Method
render
()
src/keyboard-buttons.tsx:19
Method
render
()
src/keyboard-buttons.tsx:81
Method
render
()
src/home.tsx:24
Method
render
()
src/application.tsx:155
Method
render
()
src/common/tip-card.tsx:13
Method
render
()
src/common/card.tsx:9
Method
render
()
src/common/prefs-toggle.tsx:7
Method
render
()
src/common/practice-intro.tsx:124
Method
render
()
src/common/prefs-checkbox.tsx:7
Method
render
()
src/modes/sight-reading-practice-intro.tsx:12
Method
render
()
src/modes/free-play.tsx:178
Method
render
()
src/modes/perfect-pitch-practice-intro.tsx:12
Method
render
()
src/modes/perfect-pitch-practice.tsx:213
Method
render
()
src/modes/free-play-intro.tsx:12
Method
render
()
src/modes/sight-reading-practice.tsx:483
Method
snackbarRequestClose
()
src/application.tsx:135
Method
toggleDrawer
()
src/application.tsx:118
Method
updateAppBar
* Used in child contexts to update the app bar
src/application.tsx:148