Skip to content

sampler: capture from AUDIO_IN bus#912

Merged
bwhitman merged 1 commit into
mainfrom
update-sampler-bus-audio-in
Apr 26, 2026
Merged

sampler: capture from AUDIO_IN bus#912
bwhitman merged 1 commit into
mainfrom
update-sampler-bus-audio-in

Conversation

@bwhitman
Copy link
Copy Markdown
Collaborator

Summary

  • Use bus=2 (AMY_BUS_AUDIO_IN) in amy.start_sample so the sampler records audio input rather than the synth output mix
  • Defer the synth=1 PCM patch setup to note-off so the captured sample is loaded only after recording completes
  • Pause grab_midi_notes on synth 1 during recording so the sampled key doesn't double-trigger playback while capturing

Test plan

  • Hold a MIDI key on AMYboard with audio routed into AUDIO_IN0/1; verify the recorded buffer contains the input signal
  • Release the key and confirm subsequent presses play back the captured sample on synth 1
  • Confirm print diagnostics fire at start/stop of recording

🤖 Generated with Claude Code

Use bus=2 (AMY_BUS_AUDIO_IN) for start_sample so recording reads the
audio input rather than the synth output. Defer the synth=1 PCM patch
setup until note-off, and pause grab_midi_notes during recording so the
sampled key doesn't trigger playback before capture finishes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@bwhitman bwhitman merged commit ff81060 into main Apr 26, 2026
1 check passed
@bwhitman bwhitman deleted the update-sampler-bus-audio-in branch April 26, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant