A real-time audio analysis and MIDI conversion tool for whale sounds, with visual representation of detected frequencies.
- Load and analyze whale sounds in various audio formats
- Convert detected frequencies to musical notes
- Generate MIDI files from detected notes
- Real-time visualization of sound frequencies and waveforms
- Streaming note visualization showing detected notes as they occur
- Minimalistic interface with icon-based controls
- Place your whale sound files in the
sounds/directory - Update the
sounds/sound_library.jsonfile with metadata for your sound files:{ "sounds": [ { "filename": "YourWhaleSoundFile.wav", "name": "Descriptive Name", "species": "Scientific Name", "date": "YYYY-MM-DD", "location": "Recording Location" } ] }
- Open
index.htmlin a web browser - Select a whale sound from the dropdown menu
- Use the play/pause button to control playback
- Toggle MIDI recording with the music note switch
- When the sound stops, a MIDI file will be automatically generated and downloaded (if MIDI recording is enabled)
The application features a minimalistic, icon-based interface:
- Sound Selector: Dropdown menu to choose whale sounds
- Play/Pause Button: Icon button to control audio playback
- MIDI Toggle: Switch with music note icon to enable/disable MIDI recording
- View Toggle: Buttons to switch between main and circular visualizations
- Info Display: Shows frequency and note information in the bottom right
The application offers two visualization modes:
-
Main View (Bar Visualization):
- Shows notes as horizontal bars moving from right to left
- Height represents pitch, width represents duration
- Displays frequency and note information in the bottom right
-
Circular View:
- Shows a circular representation of the frequency spectrum
- Blue waveforms represent different aspects of the sound
- Compact 70% scaled visualization for better screen utilization
- Supported formats: WAV, MP3 (and other formats supported by your browser)
- Higher quality recordings will yield better frequency analysis results
- Files with minimal background noise will provide cleaner note detection