func NewHeaderFrames(options *GenerationOptions) []*Frame {

	evenData := make([]int, options.CarrierCount)
	oddData := make([]int, options.CarrierCount)

	for i := 0; i < options.CarrierCount; i++ {
		even := i%2 == 0
		if even {
			evenData[i] = 1
			oddData[i] = 0
		} else {
			evenData[i] = 0
			oddData[i] = 1
		}
	}

	evenFrame := NewFrame(evenData...)
	evenFrame.SignalFrequency = 300

	oddFrame := NewFrame(oddData...)
	oddFrame.SignalFrequency = 300

	return []*Frame{evenFrame, oddFrame}
}
// NewHeaderFrames creates the header frames
NewHeaderFrames creates the header frames
// NewHeaderFrames creates the header frames
func NewHeaderFrames(options *GenerationOptions) []*Frame {
	evenData := make([]int, options.CarrierCount)
	oddData := make([]int, options.CarrierCount)
	for i := 0; i < options.CarrierCount; i++ {
		even := i%2 == 0
		if even {
			evenData[i] = 1
			oddData[i] = 0
		} else {
			evenData[i] = 0
			oddData[i] = 1
		}
	}
	evenFrame := NewFrame(evenData...)
	evenFrame.SignalFrequency = 300
	oddFrame := NewFrame(oddData...)
	oddFrame.SignalFrequency = 300
	return []*Frame{evenFrame, oddFrame}
}
func NewHeaderFrames ( options * GenerationOptions ) [ ] * Frame { evenData := make ( [ ] int , options . CarrierCount ) oddData := make ( [ ] int , options . CarrierCount ) for i := 0 ; i < options . CarrierCount ; i ++ { even := i % 2 == 0 if even { evenData [ i ] = 1 oddData [ i ] = 0 } else { evenData [ i ] = 0 oddData [ i ] = 1 } } evenFrame := NewFrame ( evenData ... ) evenFrame . SignalFrequency = 300 oddFrame := NewFrame ( oddData ... ) oddFrame . SignalFrequency = 300 return [ ] * Frame { evenFrame , oddFrame } }
NewHeaderFrames creates the header frames
NewHeaderFrames creates the header frames