How doublegg1505/bachtunerproject works
BachTuner is a React Native violin practice app. Its main workflow takes microphone audio in the tuner screen, detects pitch, and presents tuning feedback; users can also manage repertoire and string inventory, sign in, and configure their profile and theme. The app initializes navigation, theme, and Redux state centrally. The tree and excerpts support these major capabilities, but several screens and persistence details are unsampled, so their internal links are omitted where not evidenced.
Main entry points: Profile.tsx Profile Settings · StackNavigator.tsx Stack Navigation · Home.tsx Tuner Screen · TabsNavigator.tsx Feature Tabs
Components 22
App Shell
- App Root
App.tsx - Stack Navigation
src/navigation/StackNavigator.tsx - Feature Tabs
src/navigation/TabsNavigator.tsx - Shared Button
src/components/CustomButton.tsx - Shared Input
src/components/CustomInput.tsx
Tuning Practice
- Tuner Screen
src/screens/Home.tsx - Pitch Detection
src/utils/audioProcessor.ts - Metronome
src/components/MetronomeModal.tsx
Accounts
- Sign In
src/screens/Login.tsx - Registration
src/screens/Register.tsx - Profile Settings
src/screens/features/user-settings/Profile.tsx - Auth Context
src/context/AuthContext.tsx - Supabase Client
src/lib/supabase.ts
Practice Library
- Repertoire
src/screens/features/Repertoire.tsx - String Inventory
src/screens/MyStrings.tsx
App State
- Redux Store
src/store/index.ts - User State
src/store/slices/userSlice.ts - Repertoire State
src/store/slices/repertoireSlice.ts - Inventory State
src/store/slices/stringsSlice.ts - Theme Context
src/context/ThemeContext.tsx - Theme Palettes
src/theme/colors.ts
Other components
- Violinist
Connections 32
- Violinist → Stack Navigation: navigates
src/navigation/StackNavigator.tsx - App Root → Stack Navigation: mounts
App.tsx - App Root → Theme Context: provides
App.tsx - App Root → Redux Store: provides
App.tsx - Stack Navigation → Tuner Screen: routes
src/navigation/StackNavigator.tsx - Stack Navigation → Sign In: routes
src/navigation/StackNavigator.tsx - Stack Navigation → Registration: routes
src/navigation/StackNavigator.tsx - Stack Navigation → Feature Tabs: routes
src/navigation/StackNavigator.tsx - Feature Tabs → Tuner Screen: routes
src/navigation/TabsNavigator.tsx - Feature Tabs → String Inventory: routes
src/navigation/TabsNavigator.tsx - Feature Tabs → Profile Settings: routes
src/navigation/TabsNavigator.tsx - Tuner Screen → Pitch Detection: detects pitch
src/screens/Home.tsx - Tuner Screen → Metronome: opens
src/screens/Home.tsx - Sign In → Supabase Client: authenticates
src/screens/Login.tsx - Registration → Supabase Client: registers
src/screens/Register.tsx - Profile Settings → Supabase Client: signs out
src/screens/features/user-settings/Profile.tsx - Profile Settings → User State: updates state
src/screens/features/user-settings/Profile.tsx - Profile Settings → Inventory State: clears inventory
src/screens/features/user-settings/Profile.tsx - Auth Context → Supabase Client: uses
src/context/AuthContext.tsx - Auth Context → User State: updates
src/context/AuthContext.tsx - Auth Context → Inventory State: updates
src/context/AuthContext.tsx - Repertoire → Repertoire State: dispatches
src/screens/features/Repertoire.tsx - String Inventory → Inventory State: uses
src/screens/MyStrings.tsx - Redux Store → User State: combines
src/store/index.ts - Redux Store → Inventory State: combines
src/store/index.ts - Redux Store → Repertoire State: combines
src/store/index.ts - Theme Context → Theme Palettes: selects palette
src/context/ThemeContext.tsx - Tuner Screen → Shared Button: renders
src/screens/Home.tsx - Repertoire → Shared Button: renders
src/screens/features/Repertoire.tsx - Repertoire → Shared Input: renders
src/screens/features/Repertoire.tsx - Profile Settings → Shared Button: renders
src/screens/features/user-settings/Profile.tsx - Profile Settings → Shared Input: renders
src/screens/features/user-settings/Profile.tsx