Hydrofon wikiThe manual of an underwater listening app 文A eesti

Manual:Reviewing and notes

Other languages: eesti English

Tab 2 · Mark & save (the second tab inside the Recording suite) is where you listen back to a recording, place time markers accurately, enter trial metadata and write the final file pair. Quick markers tapped during recording are only rough; here you can refine them to millisecond precision against the spectrogram and audio. Read Recording and Markers first if you have not recorded a file yet.

Tab 2 · Mark & save: full-file overview spectrogram with marker lines, playback controls, marker table and notes editor.
Tab 2 · Mark & save: full-file overview spectrogram with marker lines, playback controls, marker table and notes editor.

Opening a recording or the draft

When you stop recording in tab 1 · Listen & record, the new draft in data/unsaved/ opens automatically in this tab. If the app finds a draft left over in data/unsaved/ at start-up, it loads it here automatically as well.

To open a previously saved file, press Open recording… (the dialog starts in data/recordings/ and accepts .wav and .flac files). You can also jump here directly from Clip analysis with Fix the label, which opens the file at the current playhead position.

Next to the filename at the top, the header displays the duration (mm:ss.s) and status:

  • Draft (data/unsaved/): not saved – changes are kept automatically until you press “Save”. Every marker edit is written to disk straight away and notes edits are flushed after a one-second pause, so an unexpected crash loses nothing.
  • Already saved file: saved YYYY-MM-DD HH:MM (or no data saved yet if the audio file has no saved JSON yet). Changes stay in memory until you press Save, and an asterisk (*) appears after the filename.

Overview spectrogram, playback and seeking

The upper-left pane draws a full-file dBFS spectrogram of channel 0 using the Display settings (display.fft_size, display.max_freq_hz, display.db_min, display.db_max; see Preferences). For long recordings, the overview samples up to 2000 FFT columns across the file so it loads quickly rather than rendering every frame at full resolution. You can zoom and pan horizontally with the mouse wheel and drag; the vertical frequency axis stays fixed.

A white vertical line marks the playhead. Playback sends channel 0 to the default audio output device:

  • Press Play / Pause or Space to start and pause playback.
  • Press −5 s or +5 s (or ← and →) to skip five seconds back or forward.
  • Click anywhere on the overview spectrogram to jump straight to that time.
  • Click any row in the marker table below to seek to that marker.

Adding, dragging, renaming and deleting markers

Coloured vertical lines mark events on the spectrogram: red for engine, green for background, yellow for interference (magenta for any extra state labels added in Settings) and light blue for custom markers. The same markers appear in the table below with columns Time and Marker.

  • Add a state marker: press 1 · engine, 2 · background or 3 · interference (or 1, 2, 3) to mark the current playhead time. Buttons and keys are generated from recording.labels in Settings.
  • Add a custom marker: press + Custom marker… or M. The timestamp is captured when you press the key, even if audio keeps playing while the dialog is open. Typing a known state's display name (such as mootor in Estonian UI) maps it to its English state code (engine); any other text (such as 5 m or boat sank) is kept as a custom marker and does not end the current segment.
  • Move a marker: drag its vertical line horizontally on the spectrogram. The timestamp rounds to three decimal places (milliseconds) and the table re-sorts automatically. Clicking a line also selects its row in the table.
  • Rename a marker: double-click a cell in the Marker column (or press the edit key) and type the new label. Leaving the cell empty restores the previous label.
  • Delete a marker: select a row in the table and press Delete marker or Delete.

Shortcuts work only while focus is inside tab 2. Typing in the notes editor or a table cell never triggers marker keys.

The notes editor and field syntax

The right pane shows Notes, a two-column list of the 11 standard fields with (?) tooltips, the Copy fields from previous recording button and a plain-text editor.

Each field starts with NAME: value (up to 40 characters before the colon) and runs until the next blank line or the next recognised field header. Standard field names are accepted in English, in Estonian, or as their raw JSON key, case-insensitively.

Field type Standard fields Accepted format
Text LOCATION, MOTOR TYPE, THROTTLE, EQUIPMENT, CONDITIONS Free text (may continue on following lines until a blank line).
Single number HYDROPHONE DEPTH (m), WATER DEPTH (m), GAIN (dB) One number with dot or comma (1.5, -6,5). Units (such as 3 m) and a space after a minus sign (- 6) are rejected.
Number list DISTANCE (m) One number, or several numbers separated by semicolons (10; 3; 10 for a moving boat). Commas (10,3,10) are rejected.
Yes/no MOTOR Yes: y, Y, yes, ja, Ja, jah, Jah. No: n, N, no, No, ei, Ei (case-insensitive). Single letters j and e are rejected.
Bullet list NOTES Lines starting with *, • or -. A bullet line is never parsed as a field header, even if it contains a colon (such as * throttle: full).
  • Unknown values: leaving a field empty, or writing - or ?, stores null in JSON. The same rule applies to custom uppercase fields.
  • Custom fields: any unrecognised UPPERCASE NAME: value line (all capitals before the colon, max 40 characters) is saved under extra_fields (for example TEMPERATURE: 12 C or SESSION_ID: S2026-12-14-taltech-01).
  • Free text: any text outside all fields is stored in other_notes.

Copying fields from the previous recording

When recording several trials in the same session, press Copy fields from previous recording. The app reads the standard fields (excluding NOTES) from the most recently saved JSON in data/recordings/ and fills them into the editor while keeping the current recording's NOTES, custom uppercase fields and free text. Because the text is inserted through the editor cursor, Ctrl+Z undoes it in one step.

What is not copied

Copy fields from previous recording copies only the 11 standard fields (fields), not custom extra_fields such as SESSION_ID or DEVICE_ID from the previous recording. Any extra_fields already in the editor are preserved. For structured field trials, paste a pre-filled notes_template.txt instead (see Field trials).

Validation errors, saving and unsaved edits

Pressing Save validates every field. If anything fails (such as MOTOR: j, two numbers in a single-number field, or text in a numeric field), nothing is written and a red error block appears above the Save button (Not saved. Fix in the notes:) listing each invalid field. Fix the lines and press Save again.

When validation passes, Hydrofon writes the final English-keyed JSON file (see The recording format), releases the audio file in the player and in Clip analysis so Windows permits the move, and—for a draft—moves the .wav from data/unsaved/ to data/recordings/ and removes the draft JSON. The JSON is written atomically first, so a failed move leaves the draft intact in data/unsaved/. For an already saved recording, its .json is updated in place and your playhead position is kept.

  • Unsaved edits prompt: for a non-draft file with unsaved changes (* in the header), opening another file, jumping from Clip analysis or closing the app asks whether to discard those changes. If you choose to keep editing when a new recording ends in tab 1, the new recording remains waiting in data/unsaved/.
  • One draft at a time: data/unsaved/ holds at most one recording. Starting a new REC in tab 1 while a draft is still unsaved warns you that the old draft will be deleted.

See also

This page has not been saved yet.

The Hydrofon project · volli.page