diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-15 23:04:33 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-15 23:04:33 +0200 |
| commit | e1c678ef00f0159bbeb5571e5ebb0d4697121334 (patch) | |
| tree | 6547edef81a62a812a4d0f64e03fda226b5f0a7e /lib/genwave.f90 | |
| parent | b9daa22c4c3ad51cd4bc0ef624a19f21d01c9305 (diff) | |
| parent | 0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff) | |
Update upstream source from tag 'upstream/3.0.0_rc1+repack'
Update to upstream version '3.0.0~rc1+repack'
with Debian dir 68c212e23136fecf9ebc6f12ff355579224d27ee
Diffstat (limited to 'lib/genwave.f90')
| -rwxr-xr-x | lib/genwave.f90 | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/lib/genwave.f90 b/lib/genwave.f90 index 8cd47269..4d9b55cb 100755 --- a/lib/genwave.f90 +++ b/lib/genwave.f90 @@ -1,15 +1,14 @@ -subroutine genwave(itone,nsym,nsps,nwave,fsample,hmod,f0,icmplx,cwave,wave)
+subroutine genwave(itone,nsym,nsps,nwave,fsample,tonespacing,f0,icmplx, &
+ cwave,wave)
+ real*8 tonespacing
real wave(nwave)
complex cwave(nwave)
- integer hmod
integer itone(nsym)
- logical ex
- real*8 dt,phi,dphi,twopi,freq,baud
+ real*8 dt,phi,dphi,twopi,freq
dt=1.d0/fsample
twopi=8.d0*atan(1.d0)
- baud=fsample/nsps
! Calculate the audio waveform
phi=0.d0
@@ -17,7 +16,7 @@ subroutine genwave(itone,nsym,nsps,nwave,fsample,hmod,f0,icmplx,cwave,wave) if(icmplx.eq.1) cwave=0.
k=0
do j=1,nsym
- freq=f0 + itone(j)*hmod*baud
+ freq=f0 + itone(j)*tonespacing
dphi=twopi*freq*dt
do i=1,nsps
k=k+1
@@ -31,22 +30,5 @@ subroutine genwave(itone,nsym,nsps,nwave,fsample,hmod,f0,icmplx,cwave,wave) enddo
enddo
-!### TEMPORARY code to allow transmitting both A and B submodes
- inquire(file='Q65_Tx2',exist=ex)
- if(ex) then
- k=0
- do j=1,nsym
- freq=f0 + itone(j)*2.d0*hmod*baud + 500.d0
- dphi=twopi*freq*dt
- do i=1,nsps
- k=k+1
- wave(k)=0.5*(wave(k)+sin(phi))
- phi=phi+dphi
- if(phi.gt.twopi) phi=phi-twopi
- enddo
- enddo
- endif
-!###
-
return
end subroutine genwave
|
