Skip to content

Commit f223866

Browse files
committed
rename catnip file, move config
1 parent 47f7a09 commit f223866

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

cmd/catnip/config.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,30 @@ type config struct {
4747
styles graphic.Styles
4848
}
4949

50+
// NewZeroConfig returns a zero config
51+
// it is the "default"
52+
//
53+
// nori's defaults:
54+
// - sampleRate: 122880
55+
// - sampleSize: 2048
56+
// - smoothFactor: 80.15
57+
// - super smooth detail view
58+
func newZeroConfig() config {
59+
return config{
60+
sampleRate: 44100,
61+
sampleSize: 1024,
62+
smoothFactor: 80.15,
63+
frameRate: 0,
64+
baseSize: 1,
65+
barSize: 2,
66+
spaceSize: 1,
67+
channelCount: 2,
68+
drawType: int(graphic.DrawDefault),
69+
combine: false,
70+
useThreaded: false,
71+
}
72+
}
73+
5074
// Sanitize cleans things up
5175
func (cfg *config) Sanitize() error {
5276

cmd/catnip/catnip.go renamed to cmd/catnip/main.go

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -140,30 +140,6 @@ func catnip(cfg *config) error {
140140
return nil
141141
}
142142

143-
// NewZeroConfig returns a zero config
144-
// it is the "default"
145-
//
146-
// nori's defaults:
147-
// - sampleRate: 122880
148-
// - sampleSize: 2048
149-
// - smoothFactor: 80.15
150-
// - super smooth detail view
151-
func newZeroConfig() config {
152-
return config{
153-
sampleRate: 44100,
154-
sampleSize: 1024,
155-
smoothFactor: 80.15,
156-
frameRate: 0,
157-
baseSize: 1,
158-
barSize: 2,
159-
spaceSize: 1,
160-
channelCount: 2,
161-
drawType: int(graphic.DrawDefault),
162-
combine: false,
163-
useThreaded: false,
164-
}
165-
}
166-
167143
func doFlags(cfg *config) bool {
168144

169145
parser := flaggy.NewParser(AppName)

0 commit comments

Comments
 (0)