Rewrite the code comments for consistent tone and accuracy

Comments only: the tokens of every Go file are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 19:08:00 +00:00
co-authored by Claude Sonnet 5.5
parent 41f752e1c1
commit 158661eefe
27 changed files with 716 additions and 437 deletions
+5 -1
View File
@@ -14,6 +14,8 @@ func readInstrument(t *testing.T, doc *Document) *Instrument {
return doc.Flatten().Instrument()
}
// TestApplyEditsOwnHeader checks that Apply changes the region's own header
// and nothing else, and that a second Apply starts from what the first wrote.
func TestApplyEditsOwnHeader(t *testing.T) {
text := "<control> default_path=S/ note_offset=12\n<group> volume=-6 ampeg_release=0.5 group_volume=-2\n" +
"<region> sample=a.wav lokey=c3 hikey=e3 // keys\n zampler_x=1\n<region> sample=b.wav\n"
@@ -52,6 +54,8 @@ func TestApplyEditsOwnHeader(t *testing.T) {
}
}
// TestApplyNothingToDo checks that a region that hasn't changed has no
// patches.
func TestApplyNothingToDo(t *testing.T) {
doc := mustParse(t, "<region> sample=a.wav\n", nil)
inst := readInstrument(t, doc)
@@ -109,7 +113,7 @@ func TestApplyRefusals(t *testing.T) {
}
}
// edits are changes a region can take, by what they change.
// edits are the changes that TestApplyProperty makes to a region, by name.
var edits = map[string]func(r *Region){
"sample": func(r *Region) { r.Sample = "other/x y.wav" },
"keys": func(r *Region) { r.LowKey, r.HighKey = 10, 20 },