From e22256e374694fd92cc55ba198d3f7b1911713fe Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 29 Mar 2026 10:15:38 +0200 Subject: docs: consolidate and sync docs with current codebase state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - PROJECT_CONTEXT.md: fix effect count (12→18), shader count (27→37), update CNN v3 pipeline description, tighten Next Up section - TODO.md: fix priority numbering, restore GPU PCM synthesis as pending, streamline CNN v3 section, consolidate Future items - doc/SEQUENCE.md: effect count 12→18 - cnn_v3/README.md: phases 1–7→1–9, test count 36→38, add phases 8–9 - cnn_v3/docs/HOWTO.md: fix dataset layout blender/photos→full/simple, update test counts 36→38 throughout - doc/COMPLETED.md: archive FFT/timing/OLA fixes, remove false GPU PCM claim - src/audio/audio_engine.cc: fix step comment numbering (6→5) - src/audio/synth.cc: remove stale fractional_pos tempo-scaling comment handoff(Gemini): docs now accurate — 18 effects, 37 shaders, 38/38 tests, GPU PCM synthesis back in TODO as pending, CNN v3 dataset layout corrected. --- src/audio/audio_engine.cc | 2 +- src/audio/synth.cc | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/audio/audio_engine.cc b/src/audio/audio_engine.cc index b4c4863..c184324 100644 --- a/src/audio/audio_engine.cc +++ b/src/audio/audio_engine.cc @@ -184,7 +184,7 @@ void AudioEngine::seek(float target_time) { tracker_update(t, 0.0f); } - // 6. Final update at exact target time + // 5. Final update at exact target time tracker_update(target_time, 0.0f); current_time_ = target_time; diff --git a/src/audio/synth.cc b/src/audio/synth.cc index 9b56069..0161385 100644 --- a/src/audio/synth.cc +++ b/src/audio/synth.cc @@ -28,7 +28,7 @@ struct Voice { float overlap_buf[OLA_OVERLAP]; // OLA tail from previous frame (v2 only) bool ola_mode; // True for SPEC_VERSION_V2_OLA int buffer_pos; - float fractional_pos; // Fractional sample position for tempo scaling + float fractional_pos; // Reserved int start_sample_offset; // Samples to wait before producing audio output @@ -212,8 +212,7 @@ void synth_trigger_voice(int spectrogram_id, float volume, float pan, v.ola_mode ? OLA_HOP_SIZE : DCT_SIZE; // Force reload on first render if (v.ola_mode) memset(v.overlap_buf, 0, sizeof(v.overlap_buf)); - v.fractional_pos = - 0.0f; // Initialize fractional position for tempo scaling + v.fractional_pos = 0.0f; v.start_sample_offset = start_offset_samples; v.active_spectral_data = g_synth_data.active_spectrogram_data[spectrogram_id]; -- cgit v1.2.3