summaryrefslogtreecommitdiff
path: root/internal/generator/theme_sounds.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-16 09:00:39 +0300
committerPaul Buetow <paul@buetow.org>2026-04-16 09:00:39 +0300
commita846354700471a48b3bc885b343928460059d9d4 (patch)
tree1bf79294eb58506e8b7c4f5670e55c2e2bf3b332 /internal/generator/theme_sounds.go
parent24b04a11f215d898cf95bcc6c0316b3d25e2b35f (diff)
v0.3.0: add DOS theme with VT323 webfontv0.3.0
Amp-Thread-ID: https://ampcode.com/threads/T-019d94cc-99a9-74af-8f3d-9521cd73324f Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'internal/generator/theme_sounds.go')
-rw-r--r--internal/generator/theme_sounds.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/generator/theme_sounds.go b/internal/generator/theme_sounds.go
index e41e7a5..4876ab1 100644
--- a/internal/generator/theme_sounds.go
+++ b/internal/generator/theme_sounds.go
@@ -47,6 +47,7 @@ var themeSoundPresets = map[string]themeSounds{
"aurora": soundsAurora(),
"matrix": soundsMatrix(),
"ocean": soundsOcean(),
+ "dos": soundsDos(),
"retro": soundsRetro(),
"cosmos": soundsCosmos(),
}
@@ -141,6 +142,16 @@ func soundsOcean() themeSounds {
return s
}
+func soundsDos() themeSounds {
+ var s themeSounds
+ s.Splash.Freqs = []float64{800, 1000}
+ s.Splash.Spacing, s.Splash.Gain, s.Splash.Wave = 0.08, 0.12, "square"
+ s.Nav.Freq, s.Nav.Wave, s.Nav.Dur, s.Nav.Gain = 1000, "square", 0.03, 0.1
+ s.Open.Wave, s.Open.Start, s.Open.End, s.Open.Dur, s.Open.Gain = "square", 400, 800, 0.1, 0.1
+ s.Close.Wave, s.Close.Start, s.Close.End, s.Close.Dur, s.Close.Gain = "square", 800, 200, 0.1, 0.09
+ return s
+}
+
func soundsRetro() themeSounds {
var s themeSounds
s.Splash.Freqs = []float64{1046.5, 1318.5}