Skip to content

Commit

Permalink
Correct random frequency selection for SCM generation test.
Browse files Browse the repository at this point in the history
  • Loading branch information
bemasher committed Jun 26, 2016
1 parent 2b386b0 commit 7de771c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/gen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func TestGenerateSCM(t *testing.T) {
manchester := lut.Encode(scm)
bits := Upsample(UnpackBits(manchester), 72<<1)

freq := rand.Float64() - 0.5*float64(cfg.SampleRate)
freq := (rand.Float64() - 0.5) * float64(cfg.SampleRate)
carrier := CmplxOscillatorF64(len(bits)>>1, freq, float64(cfg.SampleRate))

signalAmplitude := math.Pow(10, signalLevel/20)
Expand Down

0 comments on commit 7de771c

Please sign in to comment.