diff --git a/numberstation.go b/numberstation.go index 295f5f3..b82fc06 100644 --- a/numberstation.go +++ b/numberstation.go @@ -25,8 +25,9 @@ const ( ) func main() { - // Define and parse the -r flag + // Define and parse the flags repeat := flag.Bool("r", false, "Repeat each section separated by space, '-', '_', or a new line") + low := flag.Bool("l", false, "Use lower pitched SAM sound bank") flag.Usage = func() { fmt.Fprintf(os.Stderr, "Usage: %s [options]\n", os.Args[0]) @@ -47,15 +48,23 @@ func main() { flag.Parse() + // Select the correct file prefix based on the low flag + prefix := "sam" + if *low { + prefix = "losam" + } + // Create a map to store sound data for each character soundMap := make(map[rune][]byte) // Load all sound files into the map for _, c := range "abcdefghijklmnopqrstuvwxyz0123456789" { - filename := fmt.Sprintf("sound/sam%c.wav", c) + filename := fmt.Sprintf("sound/%s%c.wav", prefix, c) data, err := soundFS.ReadFile(filename) if err == nil { soundMap[c] = data + } else { + fmt.Printf("Failed to load sound for '%c': %v\n", c, err) } } diff --git a/sound/losam0.wav b/sound/losam0.wav new file mode 100644 index 0000000..7658858 Binary files /dev/null and b/sound/losam0.wav differ diff --git a/sound/losam1.wav b/sound/losam1.wav new file mode 100644 index 0000000..15786ad Binary files /dev/null and b/sound/losam1.wav differ diff --git a/sound/losam2.wav b/sound/losam2.wav new file mode 100644 index 0000000..f360bb4 Binary files /dev/null and b/sound/losam2.wav differ diff --git a/sound/losam3.wav b/sound/losam3.wav new file mode 100644 index 0000000..8b686ec Binary files /dev/null and b/sound/losam3.wav differ diff --git a/sound/losam4.wav b/sound/losam4.wav new file mode 100644 index 0000000..ef536a2 Binary files /dev/null and b/sound/losam4.wav differ diff --git a/sound/losam5.wav b/sound/losam5.wav new file mode 100644 index 0000000..cb64cbc Binary files /dev/null and b/sound/losam5.wav differ diff --git a/sound/losam6.wav b/sound/losam6.wav new file mode 100644 index 0000000..459bfcb Binary files /dev/null and b/sound/losam6.wav differ diff --git a/sound/losam7.wav b/sound/losam7.wav new file mode 100644 index 0000000..ea4a29d Binary files /dev/null and b/sound/losam7.wav differ diff --git a/sound/losam8.wav b/sound/losam8.wav new file mode 100644 index 0000000..32e8c65 Binary files /dev/null and b/sound/losam8.wav differ diff --git a/sound/losam9.wav b/sound/losam9.wav new file mode 100644 index 0000000..1528f96 Binary files /dev/null and b/sound/losam9.wav differ diff --git a/sound/losama.wav b/sound/losama.wav new file mode 100644 index 0000000..73e5042 Binary files /dev/null and b/sound/losama.wav differ diff --git a/sound/losamb.wav b/sound/losamb.wav new file mode 100644 index 0000000..2ac2307 Binary files /dev/null and b/sound/losamb.wav differ diff --git a/sound/losamc.wav b/sound/losamc.wav new file mode 100644 index 0000000..fbd0158 Binary files /dev/null and b/sound/losamc.wav differ diff --git a/sound/losamd.wav b/sound/losamd.wav new file mode 100644 index 0000000..7612991 Binary files /dev/null and b/sound/losamd.wav differ diff --git a/sound/losame.wav b/sound/losame.wav new file mode 100644 index 0000000..75fa02e Binary files /dev/null and b/sound/losame.wav differ diff --git a/sound/losamf.wav b/sound/losamf.wav new file mode 100644 index 0000000..b710021 Binary files /dev/null and b/sound/losamf.wav differ diff --git a/sound/losamg.wav b/sound/losamg.wav new file mode 100644 index 0000000..d17e9b0 Binary files /dev/null and b/sound/losamg.wav differ diff --git a/sound/losamh.wav b/sound/losamh.wav new file mode 100644 index 0000000..152e212 Binary files /dev/null and b/sound/losamh.wav differ diff --git a/sound/losami.wav b/sound/losami.wav new file mode 100644 index 0000000..01fd5d4 Binary files /dev/null and b/sound/losami.wav differ diff --git a/sound/losamj.wav b/sound/losamj.wav new file mode 100644 index 0000000..867f3c8 Binary files /dev/null and b/sound/losamj.wav differ diff --git a/sound/losamk.wav b/sound/losamk.wav new file mode 100644 index 0000000..de38f11 Binary files /dev/null and b/sound/losamk.wav differ diff --git a/sound/losaml.wav b/sound/losaml.wav new file mode 100644 index 0000000..27845c1 Binary files /dev/null and b/sound/losaml.wav differ diff --git a/sound/losamm.wav b/sound/losamm.wav new file mode 100644 index 0000000..a16267c Binary files /dev/null and b/sound/losamm.wav differ diff --git a/sound/losamn.wav b/sound/losamn.wav new file mode 100644 index 0000000..1eaff59 Binary files /dev/null and b/sound/losamn.wav differ diff --git a/sound/losamo.wav b/sound/losamo.wav new file mode 100644 index 0000000..2a49d95 Binary files /dev/null and b/sound/losamo.wav differ diff --git a/sound/losamp.wav b/sound/losamp.wav new file mode 100644 index 0000000..b440ae9 Binary files /dev/null and b/sound/losamp.wav differ diff --git a/sound/losamq.wav b/sound/losamq.wav new file mode 100644 index 0000000..d33ca12 Binary files /dev/null and b/sound/losamq.wav differ diff --git a/sound/losamr.wav b/sound/losamr.wav new file mode 100644 index 0000000..b49e8ed Binary files /dev/null and b/sound/losamr.wav differ diff --git a/sound/losams.wav b/sound/losams.wav new file mode 100644 index 0000000..3e3ca3d Binary files /dev/null and b/sound/losams.wav differ diff --git a/sound/losamt.wav b/sound/losamt.wav new file mode 100644 index 0000000..cf7824f Binary files /dev/null and b/sound/losamt.wav differ diff --git a/sound/losamu.wav b/sound/losamu.wav new file mode 100644 index 0000000..5fdcfaf Binary files /dev/null and b/sound/losamu.wav differ diff --git a/sound/losamv.wav b/sound/losamv.wav new file mode 100644 index 0000000..07ab88a Binary files /dev/null and b/sound/losamv.wav differ diff --git a/sound/losamw.wav b/sound/losamw.wav new file mode 100644 index 0000000..ce2b0c1 Binary files /dev/null and b/sound/losamw.wav differ diff --git a/sound/losamx.wav b/sound/losamx.wav new file mode 100644 index 0000000..ecf61aa Binary files /dev/null and b/sound/losamx.wav differ diff --git a/sound/losamy.wav b/sound/losamy.wav new file mode 100644 index 0000000..aaac4cb Binary files /dev/null and b/sound/losamy.wav differ diff --git a/sound/losamz.wav b/sound/losamz.wav new file mode 100644 index 0000000..86b51f3 Binary files /dev/null and b/sound/losamz.wav differ