MCPcopy Create free account

hub / github.com/BHSPitMonkey/Prelude / functions

Functions79 in github.com/BHSPitMonkey/Prelude

↓ 16 callersMethodsetState
* Overridden setState which persists prefs changes to localStorage
src/common/practice-intro.tsx:78
↓ 3 callersMethodteoriaKeysToVexflowKeys
(keys: TeoriaNote[])
src/sheet-music-view.tsx:36
↓ 3 callersMethodtonalNoteNamesToVexflowKeys
(notes: TonalNote[])
src/sheet-music-view.tsx:48
↓ 2 callersMethodcorrectGuess
()
src/modes/perfect-pitch-practice.tsx:183
↓ 2 callersMethodcorrectGuess
()
src/modes/sight-reading-practice.tsx:456
↓ 2 callersMethoddrawMusic
* Redraw the contents of the canvas
src/sheet-music-view.tsx:65
↓ 2 callersMethodgetRandomState
* Randomly generate a new question and return a state object
src/modes/perfect-pitch-practice.tsx:117
↓ 2 callersMethodgetRandomState
* Randomly generate a new question and return a state object
src/modes/sight-reading-practice.tsx:211
↓ 2 callersMethodincorrectGuess
()
src/modes/perfect-pitch-practice.tsx:202
↓ 2 callersMethodincorrectGuess
()
src/modes/sight-reading-practice.tsx:468
↓ 2 callersMethodplay
(key, seconds)
src/synth.ts:28
↓ 2 callersMethodplaySound
(event?, key?)
src/modes/perfect-pitch-practice.tsx:157
↓ 2 callersMethodr
(arr)
src/modes/perfect-pitch-practice.tsx:45
↓ 2 callersMethodr
(arr)
src/modes/sight-reading-practice.tsx:114
↓ 1 callersMethodend
* End the practice session and return to the intro/prefs screen
src/common/practice-intro.tsx:105
↓ 1 callersMethodnewQuestion
* Generate a new question to ask and update state
src/modes/perfect-pitch-practice.tsx:143
↓ 1 callersMethodnewQuestion
* Generate a new question to ask and update state
src/modes/sight-reading-practice.tsx:351
↓ 1 callersMethodpersistPrefs
* Save the prefs currently in the state into localStorage
src/common/practice-intro.tsx:71
↓ 1 callersMethodstart
* 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
MethodclearSettings
()
src/about.tsx:29
MethodcomponentDidMount
()
src/sheet-music-view.tsx:28
MethodcomponentDidMount
()
src/application.tsx:76
MethodcomponentDidMount
()
src/modes/free-play.tsx:67
MethodcomponentDidMount
()
src/modes/perfect-pitch-practice.tsx:49
MethodcomponentDidMount
()
src/modes/sight-reading-practice.tsx:127
MethodcomponentDidUpdate
(prevProps, prevState)
src/sheet-music-view.tsx:32
MethodcomponentWillMount
()
src/about.tsx:25
MethodcomponentWillMount
()
src/home.tsx:21
MethodcomponentWillMount
()
src/common/practice-intro.tsx:85
MethodcomponentWillUnmount
* 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
MethodcomponentWillUnmount
* 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
Methodconstructor
(props)
src/about.tsx:18
Methodconstructor
(props: SheetMusicViewProps)
src/sheet-music-view.tsx:21
Methodconstructor
()
src/synth.ts:21
Methodconstructor
(props)
src/keyboard-buttons.tsx:59
Methodconstructor
(props)
src/home.tsx:15
Methodconstructor
(props)
src/application.tsx:37
Methodconstructor
(props)
src/common/practice-intro.tsx:40
Methodconstructor
(props: FreePlayProps)
src/modes/free-play.tsx:35
Methodconstructor
(props: PerfectPitchPracticeProps)
src/modes/perfect-pitch-practice.tsx:30
Methodconstructor
(props: SightReadingPracticeProps)
src/modes/sight-reading-practice.tsx:66
MethoddisplaySnackbar
(message, duration)
src/application.tsx:138
MethoddrawerMenuItemTouched
(e)
src/application.tsx:126
MethodgetChildContext
()
src/application.tsx:69
MethodhandleGuess
* 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
MethodhandleGuess
* 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
MethodhandleKeyPress
* 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
MethodleftNavChange
(e, key, payload)
src/application.tsx:123
MethodonButtonPress
(event: MouseEvent<HTMLElement>)
src/keyboard-buttons.tsx:67
MethodonMidiAccessGranted
* Handler for after we've been granted the MIDI access we requested at launch
src/modes/free-play.tsx:85
MethodonMidiAccessGranted
* Handler for after we've been granted the MIDI access we requested at launch
src/modes/perfect-pitch-practice.tsx:61
MethodonMidiAccessGranted
* Handler for after we've been granted the MIDI access we requested at launch
src/modes/sight-reading-practice.tsx:145
MethodonMidiMessage
* Handler for when a new MIDI message arrives from an input port
src/modes/free-play.tsx:119
MethodonMidiMessage
* Handler for when a new MIDI message arrives from an input port
src/modes/perfect-pitch-practice.tsx:95
MethodonMidiMessage
* Handler for when a new MIDI message arrives from an input port
src/modes/sight-reading-practice.tsx:179
MethodonMidiStateChange
* Handler for new MIDI devices connected after launch
src/modes/free-play.tsx:106
MethodonMidiStateChange
* Handler for new MIDI devices connected after launch
src/modes/perfect-pitch-practice.tsx:82
MethodonMidiStateChange
* Handler for new MIDI devices connected after launch
src/modes/sight-reading-practice.tsx:166
MethodonToggle
* Handler for all toggle switches and checkboxes
src/common/practice-intro.tsx:117
Methodrender
()
src/about.tsx:35
Methodrender
()
src/sheet-music-view.tsx:171
Methodrender
()
src/keyboard-buttons.tsx:19
Methodrender
()
src/keyboard-buttons.tsx:81
Methodrender
()
src/home.tsx:24
Methodrender
()
src/application.tsx:155
Methodrender
()
src/common/tip-card.tsx:13
Methodrender
()
src/common/card.tsx:9
Methodrender
()
src/common/prefs-toggle.tsx:7
Methodrender
()
src/common/practice-intro.tsx:124
Methodrender
()
src/common/prefs-checkbox.tsx:7
Methodrender
()
src/modes/sight-reading-practice-intro.tsx:12
Methodrender
()
src/modes/free-play.tsx:178
Methodrender
()
src/modes/perfect-pitch-practice-intro.tsx:12
Methodrender
()
src/modes/perfect-pitch-practice.tsx:213
Methodrender
()
src/modes/free-play-intro.tsx:12
Methodrender
()
src/modes/sight-reading-practice.tsx:483
MethodsnackbarRequestClose
()
src/application.tsx:135
MethodtoggleDrawer
()
src/application.tsx:118
MethodupdateAppBar
* Used in child contexts to update the app bar
src/application.tsx:148