├── python ├── translate │ ├── it_IT.qm │ ├── zh_CN.qm │ ├── README │ ├── it_IT.ts │ └── zh_CN.ts ├── Makefile ├── qrnstation.py ├── calllist.py ├── trlineedit.py ├── qrmstation.py ├── prefix.py ├── mplwidget.py ├── qsb.py ├── mystation.py ├── keyer.py ├── dxstation.py ├── audioprocess.py ├── station.py ├── dxoper.py └── contest.py ├── .gitignore ├── requirements.txt ├── requirements_qt5.txt ├── .github └── workflows │ ├── dispatch.yml │ └── release.yml ├── README.md └── LICENSE /python/translate/it_IT.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w9cf/cwsim/HEAD/python/translate/it_IT.qm -------------------------------------------------------------------------------- /python/translate/zh_CN.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w9cf/cwsim/HEAD/python/translate/zh_CN.qm -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__ 2 | *.pyc 3 | python/cwsimgui.py 4 | python/ui.license 5 | python/py.license 6 | testing/ 7 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | cffi>=1.15.1 2 | cycler>=0.11.0 3 | fonttools>=4.34.4 4 | kiwisolver>=1.4.4 5 | matplotlib>=3.5.2 6 | numpy>=1.23.1 7 | packaging>=21.3 8 | Pillow>=9.2.0 9 | pycparser>=2.21 10 | pyparsing>=3.0.9 11 | PyQt6>=6.3.1 12 | PyQt6-Qt6>=6.3.1 13 | PyQt6-sip>=13.4.0 14 | python-dateutil>=2.8.2 15 | pyxdg>=0.28 16 | six>=1.16.0 17 | sounddevice>=0.4.4 18 | -------------------------------------------------------------------------------- /requirements_qt5.txt: -------------------------------------------------------------------------------- 1 | cffi>=1.15.1 2 | cycler>=0.11.0 3 | fonttools>=4.34.4 4 | kiwisolver>=1.4.4 5 | matplotlib>=3.5.2 6 | numpy>=1.23.1 7 | packaging>=21.3 8 | Pillow>=9.2.0 9 | pycparser>=2.21 10 | pyparsing>=3.0.9 11 | PyQt5>=5.15.7 12 | PyQt5-Qt5>=5.15.2 13 | PyQt5-sip>=12.11.0 14 | python-dateutil>=2.8.2 15 | pyxdg>=0.28 16 | six>=1.16.0 17 | sounddevice>=0.4.4 18 | -------------------------------------------------------------------------------- /python/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: pyqt6 pyqt5 cwsim.exe 2 | 3 | cwsimgui.py: cwsimgui.ui 4 | pyuic6 -i 3 -o cwsimgui.py cwsimgui.ui 5 | 6 | pyqt5: 7 | pyuic5 -i 3 -o cwsimgui.py cwsimgui.ui 8 | 9 | pyqt6: 10 | pyuic6 -i 3 -o cwsimgui.py cwsimgui.ui 11 | 12 | cwsim.exe: pyqt6 13 | pyinstaller.exe -w -F --clean --add-data "MASTER.SCP;." --add-data "cwsimgui.ui;." --add-data "translate/zh_CN.qm;translate/" -n cwsim cwsim.py 14 | 15 | distclean: 16 | rm -rf cwsimgui.py 17 | rm -rf __pycache__ 18 | rm -f *.pyc 19 | -------------------------------------------------------------------------------- /python/translate/README: -------------------------------------------------------------------------------- 1 | Use either 2 | pylupdate5 ../cwsim.py ../mplwidget.py ../cwsimgui.ui -ts xx_XX.ts 3 | or 4 | pylupdate6 ../cwsim.py ../mplwidget.py ../cwsimgui.ui -ts xx_XX.ts 5 | where xx is the language and XX the country 6 | 7 | Then use 8 | linguist xx_XX.ts 9 | to edit the translation file. Once satisfied make the release file 10 | lrelease xx_XX.ts -qm xx_XX.qm 11 | to get the compressed translation file used by cwsim.py 12 | 13 | The it_IT.ts file contains an italian translation by Gabrielle Battaglia, 14 | IZ4APU. Any mistakes should be blamed on Kevin, W9CF, who transcribed the 15 | english from linguist and the italian from Gabry, IZ4APU, into linguist. 16 | -------------------------------------------------------------------------------- /python/qrnstation.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 Kevin E. Schmidt. 2 | # 3 | # This file is part of cwsim 4 | # 5 | # This program is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program. If not, see . 17 | import station 18 | 19 | class QrnStation(station.Station): 20 | 21 | def __init__(self,rng,bufsize=512,rate=11025): 22 | super().__init__(rng,None,bufsize=bufsize,rate=rate) 23 | nenv = int((round(rng.random()*rate/bufsize)+1)*bufsize) 24 | amp = 1.0e5*10.0**(2.0*rng.random()) 25 | self._envelop = amp*(rng.random(nenv)-0.5) 26 | self._envelop[rng.random(nenv) < 0.99] = 0.0 27 | self.state = station.StationState.Sending 28 | 29 | def processEvent(self,evt): 30 | if evt == station.StationEvent.MsgSent: 31 | self.state = station.StationState.DeleteMe 32 | -------------------------------------------------------------------------------- /python/calllist.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 Kevin E. Schmidt. 2 | # 3 | # This file is part of cwsim 4 | # 5 | # This program is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program. If not, see . 17 | import sys 18 | import os 19 | 20 | class CallList(): 21 | """ 22 | Class to read call file and select calls randomly 23 | """ 24 | def __init__(self,rng,callFile='MASTER.SCP'): 25 | """ 26 | Arguments 27 | rng: numpy random number generator 28 | Keyword Arguments 29 | callFile: File in same directory with 1 callsign per line, 30 | # in first column is a comment (default MASTER.SCP). 31 | """ 32 | self._rng = rng 33 | myDir = os.path.dirname(__file__) 34 | callFile = os.path.join(myDir,callFile) 35 | try: 36 | with open(callFile,'r') as f: 37 | calls = f.readlines() 38 | except EnvironmentError: 39 | print("Error processing " + callFile,file=sys.stderr) 40 | sys.exit(1) 41 | 42 | self._calls = [x for x in calls if not x.startswith('#')] 43 | for i in range(len(self._calls)): 44 | self._calls[i] = self._calls[i].replace('\n','') 45 | self._calls = sorted(set(self._calls)) 46 | 47 | def pickCall(self): 48 | """ 49 | Returns 50 | A randomly chosen callsign. 51 | """ 52 | return self._calls[self._rng.integers(low=0,high=len(self._calls))] 53 | -------------------------------------------------------------------------------- /python/trlineedit.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2022 Kevin E. Schmidt. All rights reserved. 3 | # 4 | # This file is part of cwsim 5 | # 6 | # cwsim is free software: you can redistribute it and/or modify it under the 7 | # terms of the GNU General Public License version 2 as published by the 8 | # Free Software Foundation and appearing in the file LICENSE included in the 9 | # packaging of this file. 10 | # 11 | # cwsim is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | # 15 | # See https://www.gnu.org/licenses/ for GPL licensing information. 16 | # 17 | try: 18 | from PyQt6 import QtWidgets, QtCore 19 | except ImportError: 20 | from PyQt5 import QtWidgets, QtCore 21 | 22 | class TrLineEdit(QtWidgets.QLineEdit): 23 | 24 | def keyPressEvent(self,event): 25 | if ((event.key() == QtCore.Qt.Key.Key_A) and 26 | event.modifiers() & QtCore.Qt.KeyboardModifier.ControlModifier): 27 | self.cursorWordBackward(False) 28 | elif ((event.key() == QtCore.Qt.Key.Key_S) and 29 | event.modifiers() & QtCore.Qt.KeyboardModifier.ControlModifier): 30 | self.cursorBackward(False) 31 | elif ((event.key() == QtCore.Qt.Key.Key_D) and 32 | event.modifiers() & QtCore.Qt.KeyboardModifier.ControlModifier): 33 | self.cursorForward(False) 34 | elif ((event.key() == QtCore.Qt.Key.Key_F) and 35 | event.modifiers() & QtCore.Qt.KeyboardModifier.ControlModifier): 36 | self.cursorWordForward(False) 37 | elif ((event.key() == QtCore.Qt.Key.Key_G) and 38 | event.modifiers() & QtCore.Qt.KeyboardModifier.ControlModifier): 39 | self.del_() 40 | elif ((event.key() == QtCore.Qt.Key.Key_W) and 41 | event.modifiers() & QtCore.Qt.KeyboardModifier.ControlModifier): 42 | self.clear() 43 | elif ((event.key() == QtCore.Qt.Key.Key_Y) and 44 | event.modifiers() & QtCore.Qt.KeyboardModifier.ControlModifier): 45 | self.clear() 46 | else: 47 | super(TrLineEdit,self).keyPressEvent(event) 48 | 49 | -------------------------------------------------------------------------------- /.github/workflows/dispatch.yml: -------------------------------------------------------------------------------- 1 | on: 2 | workflow_dispatch: 3 | 4 | name: Test pyinstall 5 | 6 | env: 7 | G_RELEASE: "x.xx" 8 | 9 | jobs: 10 | generate: 11 | name: Create release-artifacts 12 | runs-on: ubuntu-22.04 13 | steps: 14 | - name: Checkout the repository 15 | uses: actions/checkout@main 16 | - name: Generate the artifacts 17 | run : | 18 | set -x 19 | pwd 20 | ls -l 21 | sudo apt-get install xvfb 22 | Xvfb :0 -screen 0 1024x768x16 & 23 | export DISPLAY=:0.0 24 | export WINEARCH=win32 25 | sudo dpkg --add-architecture i386 26 | sudo apt-get update -y 27 | sudo apt-get install wine32 -y 28 | sudo apt-get install wine -y 29 | sudo apt-get install winetricks -y 30 | sudo winetricks --self-update -y 31 | wine --version 32 | wine winecfg -v win7 33 | winetricks -q vcrun2017 34 | wget -q https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe 35 | wine python-3.8.10.exe /quiet /nogui \ 36 | InstallAllUsers=1 \ 37 | TargetDir="C:Python38" \ 38 | PrependPath=1 39 | wine C:Python38/python.exe -m pip install --upgrade pip 40 | wine C:Python38/python.exe -m pip install \ 41 | -r requirements_qt5.txt 42 | wine C:Python38/python.exe -m pip install pyinstaller 43 | cd python 44 | wine C:/Python38/Scripts/pyuic5.exe -i 3 -o cwsimgui.py cwsimgui.ui 45 | wine C:/Python38/Scripts/pyinstaller.exe -w -F --clean \ 46 | --add-data "MASTER.SCP;." --add-data "cwsimgui.ui;." \ 47 | -n cwsim cwsim.py 48 | cd .. 49 | RELEASE="0.01" 50 | echo "G_RELEASE=${RELEASE}" >> $GITHUB_ENV 51 | rm -rf tmp 52 | mkdir -p tmp 53 | cp python/dist/cwsim.exe tmp/cwsim.exe 54 | echo Done 55 | - name: Upload the artifacts 56 | uses: actions/upload-artifact@v3 57 | with: 58 | name: cwsim windows executable 59 | path: tmp/cwsim.exe 60 | -------------------------------------------------------------------------------- /python/qrmstation.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 Kevin E. Schmidt. 2 | # 3 | # This file is part of cwsim 4 | # 5 | # This program is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program. If not, see . 17 | import station 18 | from station import StationMessage 19 | 20 | class QrmStation(station.Station): 21 | qrm = [ 22 | StationMessage.QRL, 23 | StationMessage.QRL2, 24 | StationMessage.QRL2, 25 | StationMessage.LongCQ, 26 | StationMessage.LongCQ, 27 | StationMessage.LongCQ, 28 | StationMessage.QSY 29 | ] 30 | 31 | def __init__(self,rng,keyer,callList,hisCall="",bufsize=512,rate=11025): 32 | super().__init__(rng,keyer,bufsize=bufsize,rate=rate) 33 | self._b2 = round(2*self._rate/self._bufsize) 34 | self._b6 = round(6*self._rate/self._bufsize) 35 | self.patience = rng.integers(low=1,high=6) # [1,5] 36 | self.hisCall = hisCall 37 | self.myCall = callList.pickCall() 38 | self._amplitude = 5000 + 25000*rng.random() 39 | self.pitch = rng.integers(low=-300,high=301) 40 | self.wpm = rng.integers(low=30,high=51) 41 | self.sendMsg(QrmStation.qrm[ 42 | rng.integers(low=0,high=len(QrmStation.qrm))]) 43 | 44 | def processEvent(self,evt): 45 | if evt == station.StationEvent.MsgSent: 46 | self.patience -= 1 47 | if self.patience > 0: 48 | self._timeout = self._rng.integers(self._b2,self._b6,endpoint=True) 49 | else: 50 | self.state = station.StationState.DeleteMe 51 | elif evt == station.StationEvent.Timeout: 52 | self.sendMsg(StationMessage.LongCQ) 53 | -------------------------------------------------------------------------------- /python/prefix.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 Kevin E. Schmidt. 2 | # 3 | # This file is part of cwsim 4 | # 5 | # This program is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program. If not, see . 17 | import re 18 | 19 | class Prefix(): 20 | 21 | def __init__(self): 22 | self._nre = re.compile(r'[0-9]') 23 | 24 | def getPrefix(self,call): 25 | parts = call.strip().split('/') 26 | np = len(parts) 27 | pfx = self._getPrefixNoStroke(parts[0]) 28 | if np < 2 or (len(parts[1])>2 and parts[1].isalpha()): 29 | return pfx 30 | else: 31 | if len(parts[1]) == 1: 32 | if parts[1].isdigit(): 33 | pfx = pfx[0:len(pfx)-1]+parts[1] 34 | return pfx 35 | else: 36 | if len(parts[0]) > len(parts[1]): 37 | pfx = self._getPrefixNoStroke(parts[1]) 38 | if pfx[-1].isdigit(): 39 | return pfx 40 | else: 41 | return pfx+'0' 42 | 43 | def _getPrefixNoStroke(self,call): 44 | if not call.isalnum(): 45 | return '' 46 | if call.isalpha() or ((len(call) == 2) and call[0].isdigit()): 47 | return call+'0' 48 | i = list(self._nre.finditer(call))[-1].span(0)[1] 49 | if i > 1: 50 | return call[:i] 51 | return '' 52 | 53 | if __name__ == "__main__": 54 | p = Prefix() 55 | with open("MASTER.SCP","r") as f: 56 | while True: 57 | c = f.readline().rstrip() 58 | if len(c) == 0: 59 | break 60 | c = c.rstrip() 61 | pfx = p.getPrefix(c) 62 | print(c,pfx,pfx,len(pfx),len(pfx)) 63 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | release: 3 | types: [created] 4 | name: Handle Release 5 | 6 | env: 7 | G_RELEASE: "x.xx" 8 | 9 | jobs: 10 | generate: 11 | name: Create release-artifacts 12 | runs-on: ubuntu-22.04 13 | steps: 14 | - name: Checkout the repository 15 | uses: actions/checkout@v3 16 | - name: Generate the artifacts 17 | run : | 18 | set -x 19 | pwd 20 | ls -l 21 | Xvfb :0 -screen 0 1024x768x16 & 22 | export DISPLAY=:0.0 23 | export WINEARCH=win32 24 | sudo dpkg --add-architecture i386 25 | sudo apt-get update -y 26 | sudo apt-get install libgcc-s1:i386 27 | sudo apt-get install libstdc++6:i386 28 | sudo apt-get install libatomic1:i386 29 | sudo apt-get install wine32 -y 30 | sudo apt-get install wine -y 31 | sudo apt-get install winetricks -y 32 | sudo winetricks --self-update -y 33 | wine --version 34 | wine winecfg -v win7 35 | winetricks -q vcrun2017 36 | wget -q https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe 37 | wine python-3.8.10.exe /quiet /nogui \ 38 | InstallAllUsers=1 \ 39 | TargetDir="C:Python38" \ 40 | PrependPath=1 41 | wine C:Python38/python.exe -m pip install --upgrade pip 42 | wine C:Python38/python.exe -m pip install contourpy==1.0.1 43 | wine C:Python38/python.exe -m pip install \ 44 | -r requirements_qt5.txt 45 | wine C:Python38/python.exe -m pip install pyinstaller 46 | cd python 47 | wine C:/Python38/Scripts/pyuic5.exe -i 3 -o cwsimgui.py cwsimgui.ui 48 | wine C:/Python38/Scripts/pyinstaller.exe -w -F --clean \ 49 | --add-data "MASTER.SCP;." --add-data "cwsimgui.ui;." \ 50 | --add-data "translate/*.qm;translate/" \ 51 | -n cwsim cwsim.py 52 | cd .. 53 | RELEASE="0.09" 54 | echo "G_RELEASE=${RELEASE}" >> $GITHUB_ENV 55 | rm -rf tmp 56 | mkdir -p tmp 57 | cp python/dist/cwsim.exe tmp/cwsim.exe 58 | cd .. 59 | echo Done 60 | - name: Upload the artifacts 61 | env: 62 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 63 | uses: softprops/action-gh-release@v1 64 | with: 65 | files: tmp/cwsim.exe 66 | -------------------------------------------------------------------------------- /python/mplwidget.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 Kevin E. Schmidt. 2 | # 3 | # This file is part of cwsim 4 | # 5 | # This program is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program. If not, see . 17 | try: 18 | from PyQt6 import QtWidgets 19 | from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg as Canvas 20 | except ImportError: 21 | from PyQt5 import QtWidgets 22 | from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as Canvas 23 | 24 | from matplotlib.figure import Figure 25 | import matplotlib 26 | import numpy as np 27 | 28 | class MplCanvas(Canvas): 29 | def __init__(self): 30 | scale = 1 31 | self.fig = Figure(figsize=(5*scale,4*scale),dpi=100) 32 | self.fig.set_tight_layout(True) 33 | Canvas.__init__(self, self.fig) 34 | self.ax = self.fig.add_subplot() 35 | Canvas.updateGeometry(self) 36 | 37 | def setaxes(self,nbin,dt,maxrate): 38 | _translate = QtWidgets.QApplication.translate 39 | self.ax.clear() 40 | self.ax.set_xlabel(_translate("MplCanvas","Minutes")) 41 | self.ax.set_ylabel(_translate("MplCanvas","QS0s/Hour")) 42 | self.nbin = nbin 43 | self.dt = dt 44 | self.maxrate = maxrate 45 | self.ax.set_xlim(0,dt*self.nbin) 46 | self.ax.set_ylim(0,self.maxrate) 47 | self.ax.grid() 48 | self.t = np.arange(self.nbin)*self.dt+0.5*dt 49 | rate = np.zeros(self.nbin) 50 | self.bar = self.ax.bar(self.t,rate,width=0.8*self.dt,color='blue') 51 | self.fig.canvas.draw() 52 | 53 | def newData(self,rate): 54 | for i in range(self.nbin): 55 | self.bar.patches[i].set_height(rate[i]) 56 | self.fig.canvas.draw() 57 | 58 | class MplWidget(QtWidgets.QFrame): 59 | def __init__(self, parent=None): 60 | QtWidgets.QWidget.__init__(self,parent) 61 | self.canvas = MplCanvas() 62 | self.vbl = QtWidgets.QVBoxLayout() 63 | self.vbl.addWidget(self.canvas) 64 | self.setLayout(self.vbl) 65 | 66 | def setTitle(self,t): 67 | pass 68 | -------------------------------------------------------------------------------- /python/qsb.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 Kevin E. Schmidt. 2 | # 3 | # This file is part of cwsim 4 | # 5 | # This program is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program. If not, see . 17 | import numpy as np 18 | import audioprocess 19 | 20 | class Qsb(): 21 | """ 22 | Class to adjust gain to simulate QSB. 23 | """ 24 | def __init__(self,rng,bandwidth=0.1,bufsize=512,rate=11025): 25 | """ 26 | Arguments: 27 | rng: a numpy random number generator 28 | Keyword Arguments: 29 | bandwidth: The inverse of the correlation time for the 30 | (approximate) gaussian process (default 0.1). 31 | """ 32 | self.buf4 = bufsize // 4 33 | self.rate = rate 34 | self._av1 = None 35 | self._av2 = None 36 | self._av3 = None 37 | self._buf = None 38 | self._bufptr = None 39 | self._bufsize = None 40 | self._norm = None 41 | self._gain0 = None 42 | self._rng = rng 43 | self.bandwidth = bandwidth 44 | 45 | @property 46 | def bandwidth(self): 47 | """ 48 | The inverse of the correlation time for the (approximate) gaussian 49 | process. 50 | """ 51 | return self._bandwidth 52 | 53 | @bandwidth.setter 54 | def bandwidth(self,b): 55 | self._bandwidth = b 56 | navg = np.max([int(np.ceil(0.37*self.rate/(self.buf4*b))),1]) 57 | self._norm = np.sqrt(3.0*navg) 58 | self._bufsize = np.max([navg+4-(navg % 4),100]) 59 | self._av1 = audioprocess.movavg(self._bufsize,navg,dtype=np.complex128) 60 | self._av2 = audioprocess.movavg(self._bufsize,navg,dtype=np.complex128) 61 | self._av3 = audioprocess.movavg(self._bufsize,navg,dtype=np.complex128) 62 | bufptr = 3*navg 63 | self._newbuf() 64 | while self._bufsize < bufptr: 65 | self._newbuf() 66 | bufptr -= self._bufsize 67 | self._gain0 = self._buf[bufptr] 68 | self._bufptr = bufptr+1 69 | if self._bufptr >= self._bufsize: 70 | self._newbuf() 71 | 72 | def _newbuf(self): 73 | r2 = 2.0*self._rng.random(2*self._bufsize)-1.0 74 | r = r2[::2]+1j*r2[1::2] 75 | self._buf = np.abs( 76 | self._av3.avg(self._av2.avg(self._av1.avg(r))))*self._norm 77 | self._bufptr = 0 78 | 79 | def applyTo(self,buf): 80 | """ 81 | Applies the sampled process gain to the buffer. 4 samples are used 82 | and the gain is linearly interpolated between them. 83 | """ 84 | i4 = self.buf4 85 | for i in range(4): 86 | g1 = self._buf[self._bufptr] 87 | buf[i*i4:(i+1)*i4] *= np.linspace(self._gain0,g1,i4,endpoint=False) 88 | self._gain0 = g1 89 | self._bufptr += 1 90 | if self._bufptr >= self._bufsize: 91 | self._newbuf() 92 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CW Simulator 2 | 3 | This is the source repository for a CW contest 4 | simulator written in python, based on and mostly a clone of 5 | Morse Runner by Alex, VE3NEA. Therefore it is a derivative work 6 | of Morse Runner Copyright 2004-2006, Alex Shovkoplyas, VE3NEA 7 | ve3nea@dxatlas.com. 8 | The Morse Runner source 9 | is distributed under the [Mozilla Public 10 | License, v. 2.0.](http://mozilla.org/MPL/2.0/) 11 | You can download it 12 | [here](https://github.com/VE3NEA/MorseRunner). 13 | 14 | No Morse Runner 15 | files are used directly in this project, but most algorithms are identical, 16 | and often functions are straightforward 17 | translations of the Morse Runner Delphi code 18 | into python. I used 19 | the GNU GPL version of Qt and Qt Designer 20 | for my GUI code, so the cwsim code is licensed under 21 | [GNU GPL version 22 | 3.0](https://www.gnu.org/licenses/gpl-3.0.en.html), to 23 | be consistent with that license. 24 | 25 | The code runs on Linux, Mac OS, and Windows, and probably any 26 | other platform that supports python, Qt, and portaudio. 27 | 28 | ## Windows Users 29 | If you are running Microsoft Windows, and do not wish to install python 30 | and the requirements, 31 | as described below, a windows executable file 32 | is available under the [Releases](https://github.com/w9cf/cwsim/releases) 33 | tag on [Github](https://github.com/w9cf/cwsim). This file is automatically 34 | built by github runners on release. It just uses Pyinstall to gather the 35 | python components below and package them into an exe file. Download 36 | and run the executable. 37 | 38 | Windows users can also install and run python directly as described below. 39 | 40 | ## Installation 41 | 42 | You just need to satisfy the 43 | requirements in requirements.txt or requirements_qt5.txt 44 | (sounddevice uses portaudio). One way is to use pip and requirements: 45 | 46 | ### Steps 47 | - Install [python](https://python.org) version 3.8 or later. 48 | - The following steps should be done in a terminal (or powershell on Windows) 49 | - Clone this archive: 50 | 51 | `git clone https://github.com/w9cf/cwsim` 52 | - Change to the cwsim directory: 53 | 54 | `cd cwsim` 55 | 56 | - Install requirements 57 | 58 | `pip install -r requirements.txt --user` 59 | 60 | alternatively, to use the older Qt5 version instead of the current Qt6, 61 | 62 | `pip install -r requirements_qt5.txt --user` 63 | 64 | - Run the program with: 65 | 66 | `python python/cwsim.py` 67 | 68 | ### Alternative for Raspberry Pi 4B 69 | I normally run Slackware on my PI 4B. The installation just uses 70 | sbopkg and slackbuilds.com to add the needed packages. I did 71 | test with the 2022-04-04 64bit Raspberry Pi operating system. Here are 72 | the commands I used to install the needed packages: 73 | ``` 74 | git clone https://github.com/w9cf/cwsim.git 75 | sudo apt-get install python3-matplotlib 76 | sudo apt-get install python3-pyqt5 77 | sudo apt-get install libportaudio2 78 | pip install pip --upgrade --user 79 | python3 -m pip install numpy==1.23 --user 80 | python3 -m pip install sounddevice --user 81 | python3 -m pip install pyxdg --user 82 | ``` 83 | 84 | Then 85 | ``` 86 | cd cwsim/python 87 | python3 cwsim.py 88 | ``` 89 | Note! Make sure the numpy version is >= 1.22, otherwise a numpy.accumulate 90 | bug in older versions will crash the program unless QSK is turned off. 91 | This bug was fixed in numpy 1.22. The 92 | ```python3 -m pip install numpy==1.23 --user``` 93 | command above will install numpy 1.23 locally. 94 | -------------------------------------------------------------------------------- /python/mystation.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 Kevin E. Schmidt. 2 | # 3 | # This file is part of cwsim 4 | # 5 | # This program is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program. If not, see . 17 | import numpy as np 18 | import station 19 | from station import StationMessage 20 | 21 | class MyStation(station.Station): 22 | def __init__(self,rng,keyer,contest,myCall,pitch,wpm,bufsize=512,rate=11025): 23 | super().__init__(rng,keyer,bufsize=bufsize,rate=rate) 24 | self._contest = contest 25 | self.myCall = myCall 26 | self.nr = 1 27 | self._rst = 599 28 | self.pitch = pitch 29 | self.wpm = wpm 30 | self._amplitude = 1.0 31 | self._pieces = [] 32 | self.app = None 33 | 34 | def processEvent(self,evt): 35 | if evt == station.StationEvent.MsgSent: 36 | self._contest.onMeFinishedSending() 37 | 38 | def abortSend(self): 39 | self._envelop = None 40 | self._sendpos = 0 41 | self.msgs = [StationMessage.Garbage] 42 | self._msgtext = '' 43 | self._pieces = [] 44 | self.state = station.StationState.Listening 45 | self.processEvent(station.StationEvent.MsgSent) 46 | 47 | def sendText(self,msg): 48 | p = msg.find('') 49 | while p >= 0: 50 | if p !=0: 51 | self._pieces.append(msg[0:p]) 52 | self._pieces.append('@') 53 | msg = msg[p+5:] 54 | p = msg.find('') 55 | if len(msg) > 0: 56 | self._pieces.append(msg) 57 | if self.state != station.StationState.Sending: 58 | self.sendNextPiece() 59 | self._contest.onMeStartedSending() 60 | 61 | def sendNextPiece(self): 62 | self._msgtext = '' 63 | if self._pieces[0] != '@': 64 | super().sendText(self._pieces[0]) 65 | else: 66 | super().sendText(self.hisCall) 67 | 68 | def getBuffer(self): 69 | buf = super().getBuffer() 70 | if self._envelop is None: 71 | self._pieces.pop(0) 72 | if len(self._pieces) > 0: 73 | self.sendNextPiece() 74 | if not (self.app is None): 75 | self.app.advance() 76 | return buf 77 | 78 | def updateCallInMessage(self,call): #check if sound thread problem? 79 | if call == '': 80 | return False 81 | if len(self._pieces) > 0: 82 | res = self._pieces[0] == '@' 83 | else: 84 | res = False 85 | if res: 86 | s = self._keyer.encode(call.lower()) 87 | ne = self._keyer.getenvelop(s,self.wpm)*self._amplitude 88 | res = len(ne) >= self._sendpos 89 | if res: 90 | res = np.array_equiv(self._envelop[0:self._sendpos] 91 | ,ne[0:self._sendpos]) 92 | if res: 93 | self._envelop = ne 94 | self.hisCall = call 95 | else: 96 | tmp = list(self._pieces) 97 | if len(tmp) > 0: 98 | tmp.pop(0) 99 | if '@' in tmp: 100 | res = True 101 | self.hisCall = call 102 | return res 103 | -------------------------------------------------------------------------------- /python/keyer.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 Kevin E. Schmidt. 2 | # 3 | # This file is part of cwsim 4 | # 5 | # This program is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program. If not, see . 17 | import numpy as np 18 | import math 19 | import configparser 20 | import os 21 | 22 | class Keyer(): 23 | """ 24 | Class to encode text to morse and produce keying envelope from morse 25 | """ 26 | 27 | _morse = ({ "a":".-", "b":"-...", "c":"-.-.", "d":"-..", "e":".", "f":"..-.", 28 | "g":"--.", "h":"....", "i":"..", "j":".---", "k":"-.-", "l":".-..", 29 | "m":"--", "n":"-.", "o":"---", "p":".--.", "q":"--.-", "r":".-.", 30 | "s":"...", "t":"-", "u":"..-", "v":"...-", "w":".--", "x":"-..-", 31 | "y":"-.--", "z":"--..", "0":"-----", "1":".----", "2":"..---", 32 | "3":"...--", "4":"....-", "5":".....", "6":"-....", "7":"--...", 33 | "8":"---..", "9":"----.", ".":".-.-.-", "-":"-....-", ",":"--..--", 34 | "?":"..--..", "/":"-..-.", ";":"-.-.-.", "(":"-.--.", "[":"-.--.", 35 | ")":"-.--.-", "]":"-.--.-", "@":".--.-.", "*":"...-.-", "+":".-.-.", 36 | "%":".-...", ":":"---...", "=":"-...-", '"':".-..-.", "'":".----.", 37 | "!":"---.", "$":"...-..-"," ":"", "_":"" 38 | }) 39 | 40 | def __init__(self,rate=11025,bufsize=512,risetime=0.005): 41 | """ 42 | Keyword arguments 43 | rate: audio sample rate (default 11025) 44 | bufsize: audio buffer size (default 512) 45 | risetime: keyer risetime in seconds (default 0.005) 46 | """ 47 | self.rate = rate 48 | self._bufsize = bufsize 49 | self.risetime = risetime 50 | 51 | @property 52 | def risetime(self): 53 | """ 54 | keyer risetime in seconds 55 | """ 56 | return self._risetime 57 | 58 | @risetime.setter 59 | def risetime(self,risetime): 60 | self._risetime = risetime 61 | x = np.arange(0.0,1.0,1.0/(2.7*risetime*self.rate)) 62 | erf = np.frompyfunc(math.erf,1,1) 63 | self.rise = 0.5*(1.0+erf(5*(x-0.5))).astype(np.float32) 64 | self.fall = np.array(self.rise) 65 | self.fall[:] = self.rise[len(self.rise)::-1] 66 | 67 | def encode(self,txt): 68 | """ 69 | Arguments: 70 | txt: ascii text to convert to morse 71 | Returns: 72 | string encoding for morse dits and dahs 73 | """ 74 | s = "" 75 | for i in range(len(txt)-1): 76 | s += Keyer._morse[txt[i]] + " " 77 | s += Keyer._morse[txt[len(txt)-1]] 78 | if s != "": 79 | s += "~" 80 | return s 81 | 82 | def getenvelop(self,msg,wpm): 83 | """ 84 | Arguments 85 | msg: morse encoding of dits and dahs 86 | wpm: speed in words per minute (PARIS) 87 | Returns 88 | keying envelop for audio samples 89 | """ 90 | nr = len(self.rise) 91 | count = 2*(msg.count('.')+msg.count(' ')+2*msg.count('-'))+msg.count('~') 92 | samples = int(np.rint(1.2*self.rate/wpm)) 93 | n = int(self._bufsize*np.ceil((count*samples+nr)/self._bufsize)) 94 | env = np.zeros(n,dtype=np.float32) 95 | dit = np.ones(nr+samples,dtype=np.float32) 96 | dit[:nr] = self.rise 97 | dit[samples:] = self.fall 98 | dah = np.ones(nr+3*samples,dtype=np.float32) 99 | dah[:nr] = self.rise 100 | dah[3*samples:] = self.fall 101 | k = 0 102 | for i in range(len(msg)): 103 | if msg[i] == '.': 104 | env[k:k+len(dit)] = dit 105 | k += 2*samples 106 | elif msg[i] == '-': 107 | env[k:k+len(dah)] = dah 108 | k += 4*samples 109 | elif msg[i] == ' ': 110 | k += 2*samples-nr 111 | elif msg[i] == '~': 112 | k += samples-nr 113 | return env 114 | -------------------------------------------------------------------------------- /python/dxstation.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 Kevin E. Schmidt. 2 | # 3 | # This file is part of cwsim 4 | # 5 | # This program is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program. If not, see . 17 | import numpy as np 18 | import station 19 | from station import StationState 20 | from station import StationEvent 21 | from station import StationMessage 22 | from dxoper import DxOperator 23 | from dxoper import Os 24 | from qsb import Qsb 25 | 26 | class DxStation(station.Station): 27 | def __init__(self,rng,keyer,callList,cqstn,minutes=0, 28 | lids=True,lidNrProb=0.1,lidRstProb=0.03,qsb=True,flutterProb=0.3, 29 | rptProb=0.1,fast=1.1,slow=0.9, 30 | isSingle=False,bufsize=512,rate=11025): 31 | super().__init__(rng,keyer,bufsize=bufsize,rate=rate) 32 | self.cqstn = cqstn 33 | self.hisCall = self.cqstn.myCall 34 | self.myCall = callList.pickCall() 35 | self.called = False # have not transmitted yet 36 | self.oper = DxOperator( 37 | rng, 38 | minutes, 39 | call=self.myCall, 40 | skills=rng.integers(low=1,high=4), 41 | s2bfac=rate/bufsize, 42 | lids=lids, 43 | rptProb=rptProb, 44 | wpm=cqstn.wpm, 45 | fast=fast, 46 | slow=slow, 47 | isSingle = isSingle, 48 | state=Os.NeedPrevEnd, 49 | cqstn=cqstn) 50 | self.nrWithError = lids and (self._rng.random() < lidNrProb) 51 | self.wpm = self.oper.getWpm() 52 | self.nr = self.oper.getNr() 53 | if lids and self._rng.random() < lidRstProb: 54 | self._rst = 559+10*self._rng.integers(4) 55 | else: 56 | self._rst = 599 57 | self._qsb = None 58 | if qsb: 59 | if self._rng.random() < flutterProb: 60 | self._qsb = Qsb(self._rng,bandwidth=3.0+30.0*self._rng.random() 61 | ,bufsize=self._bufsize,rate=self._rate) 62 | else: 63 | self._qsb = Qsb(self._rng,bandwidth=0.1+0.5*self._rng.random() 64 | ,bufsize=self._bufsize,rate=self._rate) 65 | self._amplitude = 9000+18000*(1.0+np.sin(np.pi*(self._rng.random()-0.5))) 66 | self.pitch = np.fmod(self._rng.normal(0,150),300) 67 | self.state = StationState.Copying 68 | 69 | def processEvent(self,evt): 70 | if self.oper.state == Os.Done: 71 | return 72 | 73 | if evt == StationEvent.MsgSent: 74 | if self.cqstn.state == StationState.Sending: 75 | self._timeout = station.NEVER 76 | else: 77 | self._timeout = self.oper.getReplyTimeout() 78 | elif evt == StationEvent.Timeout: 79 | if self.state == StationState.Listening: 80 | self.oper.msgReceived([StationMessage.NoMsg]) 81 | if self.oper.state == Os.Failed: 82 | self.state = StationState.DeleteMe 83 | return 84 | else: 85 | self.state = StationState.PreparingToSend 86 | if self.state == StationState.PreparingToSend: 87 | for i in range(self.oper.repeatCnt): 88 | reply = self.oper.getReply() 89 | self.called |= reply != StationMessage.NoMsg 90 | self.sendMsg(reply) 91 | elif evt == StationEvent.MeFinished: 92 | if self.state != StationState.Sending: 93 | if self.state == StationState.Copying: 94 | self.oper.msgReceived(self.cqstn.msgs) 95 | elif self.state in [StationState.Listening, 96 | StationState.PreparingToSend]: 97 | if (StationMessage.CQ in self.cqstn.msgs or 98 | StationMessage.TU in self.cqstn.msgs or 99 | StationMessage.Nil in self.cqstn.msgs): 100 | self.oper.msgReceived(self.cqstn.msgs) 101 | else: 102 | self.oper.msgReceived([StationMessage.Garbage]) 103 | if self.oper.state == Os.Failed: 104 | self.state = StationState.DeleteMe 105 | return 106 | else: 107 | self._timeout = self.oper.getSendDelay() 108 | self.state = StationState.PreparingToSend 109 | 110 | elif evt == StationEvent.MeStarted: 111 | if self.state != StationState.Sending: 112 | self.state = StationState.Copying 113 | self._timeout = station.NEVER 114 | 115 | def dataToLastQso(self): 116 | self.state = StationState.DeleteMe 117 | return self.myCall,self._rst,self.nr 118 | 119 | def getBuffer(self): 120 | buf = super().getBuffer() 121 | if self._qsb is not None: 122 | self._qsb.applyTo(buf) 123 | return buf 124 | -------------------------------------------------------------------------------- /python/audioprocess.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 Kevin E. Schmidt. 2 | # 3 | # This file is part of cwsim 4 | # 5 | # This program is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program. If not, see . 17 | import sys 18 | import numpy as np 19 | 20 | class movavg(): 21 | """ Class to perform a moving average over bufsize inputs returning 22 | bufsiz moving averages. 23 | """ 24 | 25 | def __init__(self,bufsize,navg,dtype=np.float64): 26 | """ 27 | Arguments: 28 | bufsize: number of elements to process and return 29 | navg: number of elements to average; navg < bufsize 30 | Keyword arguments: 31 | dtype: The data type (default float64) 32 | """ 33 | assert (bufsize > navg) 34 | self._bufsize = bufsize 35 | self._navg = navg 36 | self._dt = dtype 37 | self._sums = np.zeros((2,bufsize),self._dt) 38 | self._inew = 1 39 | 40 | def avg(self,buf): 41 | """ 42 | Calculate moving averages. 43 | Arguments: 44 | buf = input buffer of length bufsize 45 | Returns: bufsize moving averages where the last element 46 | returned is the average of the last navg elements in buf. 47 | """ 48 | np.cumsum(buf,out=self._sums[self._inew,:]) 49 | avg = np.zeros(self._bufsize,self._dt) 50 | avg[:self._navg] = (self._sums[self._inew,:self._navg] 51 | +self._sums[1-self._inew,self._bufsize-1] 52 | -self._sums[1-self._inew,self._bufsize-self._navg:]) 53 | avg[self._navg:] = (self._sums[self._inew,self._navg:] 54 | -self._sums[self._inew,:self._bufsize-self._navg]) 55 | self._inew = 1-self._inew 56 | return avg/self._navg 57 | 58 | class modulator(): 59 | """ 60 | Class to shift the frequency of the i/q buffer by pitch. 61 | """ 62 | def __init__(self,bufsize,rate,pitch,reverse=False): 63 | """ 64 | Arguments: 65 | bufsize: number of elements to process and return 66 | rate: The sampling rate of the audio in samples/second 67 | pitch: A positive shift frequency. This is changed so that 68 | bufsize corresponds to an integer number of periods. 69 | reverse: Shift by -pitch when true (default False) 70 | """ 71 | self._bufsize = bufsize 72 | self._rate = rate 73 | self._reverse = False 74 | self.pitch = pitch 75 | self.reverse = reverse 76 | 77 | @property 78 | def pitch(self): 79 | """ 80 | The pitch rounded so that bufsize is an integer number of periods. 81 | """ 82 | return self._pitch 83 | 84 | @pitch.setter 85 | def pitch(self,pitch): 86 | self._pitch = pitch 87 | period = np.rint(self._rate/pitch) 88 | self._shift = int(self._bufsize % period) 89 | dphi = 2.0*np.pi/period 90 | if self.reverse: 91 | self._ex = -np.exp(1j*dphi*np.arange(self._bufsize-self._shift 92 | +period)) 93 | else: 94 | self._ex = -np.exp(-1j*dphi*np.arange(self._bufsize-self._shift 95 | +period)) 96 | 97 | @property 98 | def reverse(self): 99 | """ 100 | Use a negative pitch shift 101 | """ 102 | return self._reverse 103 | 104 | @reverse.setter 105 | def reverse(self,reverse): 106 | self._reverse = reverse 107 | self.pitch = self.pitch 108 | 109 | def modulate(self,buf): 110 | """ 111 | Arguments: 112 | buf: The input complex i/q buffer whose frequency is shifted 113 | Returns: 114 | Real part of i*exp(-i*w*t)*buf, w = 2*pi*pitch 115 | """ 116 | assert(self._bufsize == len(buf)) 117 | out = np.imag(self._ex[:self._bufsize]*buf) 118 | self._ex = np.roll(self._ex,-self._shift) 119 | return out 120 | 121 | class agc(): 122 | """ 123 | Class to apply agc to audio buffer 124 | """ 125 | 126 | def __init__(self,bufsize,maxout=20000,maxoutnorm=0.67,noiseindb=76.0 127 | ,noiseoutdb=76,attacksamples=155,holdsamples=155): 128 | """ 129 | Arguments: 130 | bufsize: number of elements to process and return 131 | Keyword arguments: 132 | maxout: maximum output before normalization (default 20000) 133 | maxoutnorm: maximum output after normalization (default 0.67) 134 | noiseindb: input noise in dB to map to output noise (default 76) 135 | noiseoutdb: output noise in dB to map to (default 76) 136 | attacksamples: samples multiplied by raised cosine (default 155) 137 | holdsamples: samples multiplied by 1 (default 155) 138 | """ 139 | self._bufsize = bufsize 140 | self._maxoutnorm = maxoutnorm 141 | noisein = 10.0**(0.05*noiseindb) 142 | noiseout = np.minimum(10.0**(0.05*noiseoutdb),0.25*maxout) 143 | self._beta = noisein/np.log(maxout/(maxout-noiseout)) 144 | agcmid = attacksamples+holdsamples 145 | agcbufsize = 2*agcmid+1 146 | self._agcshape = np.ones(agcbufsize,dtype=np.float32) 147 | self._agcshape[:attacksamples] = 0.5-0.5*np.cos( 148 | np.arange(1,attacksamples+1)*np.pi/(attacksamples+1)) 149 | self._agcshape[-attacksamples:] =\ 150 | self._agcshape[attacksamples-1::-1] 151 | self._magbufsize = agcbufsize+self._bufsize-1 152 | self._valbufsize = agcmid+self._bufsize 153 | self._magbuf = np.zeros(self._magbufsize,dtype=np.float32) 154 | self._valbuf = np.zeros(self._valbufsize,dtype=np.float32) 155 | self._ind = np.add.outer( 156 | agcbufsize*np.arange(self._magbufsize-agcbufsize+1), 157 | (agcbufsize+1)*np.arange(agcbufsize)).astype(int) 158 | 159 | def process(self,buf): 160 | """ 161 | Apply agc 162 | Arguments: 163 | buf: input buffer to apply agc to 164 | Returns: new buffer with agc applied 165 | """ 166 | self._valbuf[:self._valbufsize-self._bufsize] = ( 167 | self._valbuf[self._bufsize:]) 168 | self._magbuf[:self._magbufsize-self._bufsize] = ( 169 | self._magbuf[self._bufsize:]) 170 | self._valbuf[self._valbufsize-self._bufsize:] = buf[:].astype(np.float32) 171 | self._magbuf[self._magbufsize-self._bufsize:] = ( 172 | np.abs(buf[:]).astype(np.float32)) 173 | gain = np.ravel(np.outer(self._magbuf,self._agcshape))[self._ind].max(1) 174 | gain = np.maximum(gain,1.0e-8) 175 | gain = self._maxoutnorm*(1.0-np.exp(-gain/self._beta))/gain 176 | return gain*self._valbuf[:self._bufsize] 177 | -------------------------------------------------------------------------------- /python/station.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 Kevin E. Schmidt. 2 | # 3 | # This file is part of cwsim 4 | # 5 | # This program is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program. If not, see . 17 | import numpy as np 18 | import enum 19 | 20 | NEVER = np.iinfo(np.int32).max 21 | 22 | class StationMessage(enum.Enum): 23 | r''' 24 | Define messages that the station can receive 25 | ''' 26 | NoMsg = enum.auto() 27 | CQ = enum.auto() 28 | NR = enum.auto() 29 | TU = enum.auto() 30 | MyCall = enum.auto() 31 | HisCall = enum.auto() 32 | B4 = enum.auto() 33 | Qm = enum.auto() 34 | Nil = enum.auto() 35 | Garbage = enum.auto() 36 | R_NR = enum.auto() 37 | R_NR2 = enum.auto() 38 | DeMyCall1 = enum.auto() 39 | DeMyCall2 = enum.auto() 40 | DeMyCallNr1 = enum.auto() 41 | DeMyCallNr2 = enum.auto() 42 | NrQm = enum.auto() 43 | LongCQ = enum.auto() 44 | MyCallNr2 = enum.auto() 45 | QRL = enum.auto() 46 | QRL2 = enum.auto() 47 | QSY = enum.auto() 48 | AGN = enum.auto() 49 | 50 | class StationState(enum.Enum): 51 | r''' 52 | Define the states for the station state machine 53 | ''' 54 | Listening = enum.auto() 55 | Copying = enum.auto() 56 | PreparingToSend = enum.auto() 57 | Sending = enum.auto() 58 | DeleteMe = enum.auto() 59 | 60 | class StationEvent(enum.Enum): 61 | r''' 62 | Define station events that change state machine 63 | ''' 64 | Timeout = enum.auto() 65 | MsgSent = enum.auto() 66 | MeStarted = enum.auto() 67 | MeFinished = enum.auto() 68 | 69 | class Station(): 70 | r''' 71 | Base class for stations. 72 | ''' 73 | msg2txt = { 74 | StationMessage.CQ : 'TEST ', 75 | StationMessage.NR : '<#>', 76 | StationMessage.TU : 'TU', 77 | StationMessage.MyCall : '', 78 | StationMessage.HisCall : '', 79 | StationMessage.B4 : 'QSO B4', 80 | StationMessage.Qm : '?', 81 | StationMessage.Nil : 'NIL', 82 | StationMessage.R_NR: 'R <#>', 83 | StationMessage.R_NR2: 'R <#> <#>', 84 | StationMessage.DeMyCall1: 'DE ', 85 | StationMessage.DeMyCall2: 'DE ', 86 | StationMessage.DeMyCallNr1: 'DE <#>', 87 | StationMessage.DeMyCallNr2: 'DE <#>', 88 | StationMessage.MyCallNr2: ' <#>', 89 | StationMessage.NrQm: 'NR?', 90 | StationMessage.LongCQ: 'CQ CQ TEST TEST', 91 | StationMessage.QRL: 'QRL?', 92 | StationMessage.QRL2: 'QRL? QRL?', 93 | StationMessage.QSY: ' QSY QSY', 94 | StationMessage.AGN: 'AGN' 95 | } 96 | 97 | def __init__(self,rng,keyer,bufsize=512,rate=11025): 98 | """ 99 | Arguments: 100 | rng: a numpy random number generator 101 | keyer: class that makes keying envelope 102 | """ 103 | self._rng = rng 104 | self._keyer = keyer 105 | self._bufsize = bufsize 106 | self._rate = rate 107 | self.pitch = 500 108 | self.state = StationState.Listening 109 | self._envelop = None 110 | self._timeout = NEVER 111 | self._amplitude = 0.7 112 | self.wpm = 30 113 | self._rst = 599 114 | self.nr = 1 115 | self.nrWithError = False 116 | self.myCall = '' 117 | self.hisCall = '' 118 | self._msgtext = '' 119 | self._sendpos = 0 120 | self.msgs = [] 121 | 122 | @property 123 | def pitch(self): 124 | return self._pitch 125 | 126 | @pitch.setter 127 | def pitch(self,f): 128 | self._pitch = f 129 | self._dphi = 2.0*np.pi*f/self._rate 130 | self._fbfo = 0.0 131 | 132 | def getBfo(self): 133 | bfo = np.arange(self._fbfo,self._fbfo+(self._bufsize-0.5)*self._dphi, 134 | self._dphi) 135 | self._fbfo = (self._fbfo+self._bufsize*self._dphi) % (2.0*np.pi) 136 | return bfo 137 | 138 | def getBuffer(self): 139 | buffer = self._envelop[self._sendpos:self._sendpos+self._bufsize] 140 | self._sendpos += self._bufsize 141 | if self._sendpos >= len(self._envelop): 142 | self._envelop = None 143 | self._sendpos = 0 144 | return buffer 145 | 146 | def sendText(self,msg): 147 | if msg.find('<#>') >= 0: 148 | msg = msg.replace('<#>',self.nrAsText(),1) 149 | msg = msg.replace('<#>',self.nrAsText()) 150 | msg = msg.replace('',self.myCall) 151 | msg = msg.replace('',self.hisCall) 152 | if self._msgtext != '': 153 | self._msgtext = '{}{}{}'.format(self._msgtext,' ',msg) 154 | else: 155 | self._msgtext = msg 156 | s = self._keyer.encode(self._msgtext.lower()) 157 | self._envelop = self._keyer.getenvelop(s,self.wpm)*self._amplitude 158 | self.state = StationState.Sending 159 | self._timeout = NEVER 160 | 161 | def sendMsg(self,stationmsg): 162 | if self._envelop is None: 163 | self.msgs = [] 164 | if stationmsg == StationMessage.NoMsg: 165 | self.state = StationState.Listening 166 | else: 167 | self.msgs.append(stationmsg) 168 | self.sendText(Station.msg2txt[stationmsg]) 169 | 170 | def tick(self): 171 | if self.state == StationState.Sending and self._envelop is None: 172 | self._msgtext = '' 173 | self.state = StationState.Listening 174 | self.processEvent(StationEvent.MsgSent) 175 | elif self.state != StationState.Sending: 176 | self._timeout -= 1 177 | if self._timeout < 0: 178 | self.processEvent(StationEvent.Timeout) 179 | 180 | def nrAsText(self): 181 | s = '{:d}{:03d}'.format(int(self._rst),int(self.nr)) 182 | if self.nrWithError: 183 | if s[-1] in ['2','3','4','5','6','7']: 184 | if self._rng.random() < 0.5: 185 | s = '{:d}{:03d}{:s}{:03d}'.format( 186 | self._rst,self.nr-1,'eeeee ',self.nr) 187 | else: 188 | s = '{:d}{:03d}{:s}{:03d}'.format( 189 | self._rst,self.nr+1,'eeeee ',self.nr) 190 | elif s[-2] in ['2','3','4','5','6','7']: 191 | if self._rng.random() < 0.5: 192 | s = '{:d}{:03d}{:s}{:03d}'.format( 193 | self._rst,self.nr-10,'eeeee ',self.nr) 194 | else: 195 | s = '{:d}{:03d}{:s}{:03d}'.format( 196 | self._rst,self.nr+10,'EEEEE ',self.nr) 197 | self.nrWithError = False 198 | s = s.replace('599','5NN') 199 | s = s.replace('000','TTT') 200 | s = s.replace('00','TT') 201 | if self._rng.random() < 0.4: 202 | s = s.replace('0','O') 203 | elif self._rng.random() < 0.97: 204 | s = s.replace('0','T') 205 | if self._rng.random() < 0.97: 206 | s = s.replace('9','N') 207 | return s 208 | -------------------------------------------------------------------------------- /python/dxoper.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 Kevin E. Schmidt. 2 | # 3 | # This file is part of cwsim 4 | # 5 | # This program is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program. If not, see . 17 | import numpy as np 18 | import enum 19 | import sys 20 | from station import StationMessage 21 | 22 | class Mc(enum.Enum): 23 | """ 24 | My call is correct enumeration. 25 | """ 26 | Yes = enum.auto() 27 | No = enum.auto() 28 | Almost = enum.auto() 29 | 30 | class Os(enum.Enum): 31 | """ 32 | States for operator state machine. 33 | """ 34 | NeedPrevEnd = enum.auto() 35 | NeedQso = enum.auto() 36 | NeedNr = enum.auto() 37 | NeedCall = enum.auto() 38 | NeedCallNr = enum.auto() 39 | NeedEnd = enum.auto() 40 | Done = enum.auto() 41 | Failed = enum.auto() 42 | 43 | class DxOperator(): 44 | """ 45 | Class for the state machine for an operator of a dxstation. 46 | """ 47 | FULL_PATIENCE = 5 48 | def __init__(self,rng,minutes=0,cqstn=None,call=None,skills=2, 49 | s2bfac=11025/512,lids=True,rptProb=0.1,wpm=40,fast=1.1,slow=0.9, 50 | isSingle=False,state=Os.NeedPrevEnd): 51 | """ 52 | Arguments 53 | rng: numpy random number generator 54 | Keyword arguments 55 | minutes: elapsed contest minutes -- for nr selection 56 | cqstn: The cq station we are answering 57 | call: My station's call 58 | skills: My skills 59 | isSingle: True if RunMode is single calls 60 | state: Initial operator state 61 | """ 62 | self._rng = rng 63 | self.myCall = call 64 | self.cqstn = cqstn 65 | self.call = call 66 | self.skills = skills 67 | self.state = state 68 | self.patience = None 69 | self.repeatCnt= None 70 | self._minutes = minutes 71 | self._isSingle = isSingle 72 | self._lids = lids 73 | self._wpm = wpm 74 | self._slow = slow 75 | self._fast = fast 76 | self._rptProb = rptProb 77 | self._s2bfac = s2bfac 78 | 79 | def getSendDelay(self): 80 | """ 81 | How long to wait to begin sending 82 | """ 83 | if self.state == Os.NeedPrevEnd: 84 | return sys.maxsize 85 | else: 86 | return self._s2bfac*(0.1+0.5*self._rng.random()) 87 | 88 | def getWpm(self): 89 | """ 90 | Calculate my code speed. 91 | """ 92 | return np.rint(self._wpm*(self._slow+(self._fast-self._slow) 93 | *self._rng.random())) 94 | 95 | def getNr(self): 96 | """ 97 | Calculate my number. 98 | """ 99 | return int(np.rint(1+self._rng.random()*self._minutes*self.skills)) 100 | 101 | def getReplyTimeout(self): 102 | """ 103 | Time to wait for a reply to me. 104 | """ 105 | b = self._s2bfac*(6-self.skills) 106 | return np.clip(self._rng.standard_normal(1)*0.25*b+b,0.5*b,1.5*b) 107 | 108 | def decPatience(self): 109 | """ 110 | Decrement patience and give up if zero 111 | """ 112 | if self.state != Os.Done: 113 | self.patience -= 1 114 | if self.patience < 1: 115 | self.state = Os.Failed 116 | 117 | def setState(self,state): 118 | """ 119 | Set operator state with side effects for patience and repeat count. 120 | """ 121 | self.state = state 122 | if state == Os.NeedQso: 123 | self.patience = np.rint(self._rng.rayleigh(3.191538,1)) #4*sqrt(2/pi) 124 | else: 125 | self.patience = DxOperator.FULL_PATIENCE 126 | if (state == Os.NeedQso and (not self._isSingle) and 127 | self._rng.random() < 0.1): 128 | self.repeatCnt = 2 129 | else: 130 | self.repeatCnt = 1 131 | 132 | def ismycall(self): 133 | """ 134 | Calculate edit distance from cq station's reply to my call, 135 | and decide if it is yes, no, or maybe. Lids make mistakes. 136 | """ 137 | c0 = self.myCall 138 | c = self.cqstn.hisCall 139 | m = np.zeros([len(c)+1,len(c0)+1]) 140 | m[:,0] = np.arange(len(c)+1) 141 | for x in range(1,len(c)): 142 | if c[x-1] != '?': 143 | for y in range(1,len(c0)+1): 144 | d = m[x-1,y-1] 145 | if c[x-1] != c0[y-1]: d += 1 146 | m[x,y] = np.min([m[x,y-1]+1,m[x-1,y]+1,d]) 147 | else: 148 | for y in range(1,len(c0)+1): 149 | m[x,y] = np.min([m[x,y-1],m[x-1,y],m[x-1,y-1]]) 150 | x = len(c) 151 | if c[x-1] != '?': 152 | for y in range(1,len(c0)+1): 153 | d = m[x-1,y-1] 154 | if c[x-1] != c0[y-1]: d += 1 155 | m[x,y] = np.min([m[x,y-1],m[x-1,y]+1,d]) 156 | else: 157 | for y in range(1,len(c0)+1): 158 | m[x,y] = np.min([m[x,y-1],m[x-1,y],m[x-1,y-1]]) 159 | if m[-1,-1] == 0: 160 | res = Mc.Yes 161 | elif m[-1,-1] == 1: 162 | res = Mc.Almost 163 | else: 164 | res = Mc.No 165 | 166 | if (not self._lids) and (len(c) == 2) and (res == Mc.Almost): 167 | res = Mc.No 168 | if (res == Mc.Yes) and ((len(c) != len(c0)) or ('?' in c)): 169 | res = Mc.Almost 170 | if len(c.replace('?','')) < 2: 171 | res = Mc.No 172 | if self._lids and (len(c) > 3): 173 | if res == Mc.Yes: 174 | if self._rng.random() < 0.01: 175 | res = Mc.Almost 176 | elif res == Mc.Almost: 177 | if self._rng.random() < 0.04: 178 | res = Mc.Yes 179 | return res 180 | 181 | def msgReceived(self,msgs): 182 | """ 183 | Make state machine transitions based on contents of msgs 184 | Arguments 185 | msgs: messages sent by cq station. 186 | """ 187 | if StationMessage.CQ in msgs: 188 | if self.state == Os.NeedPrevEnd: 189 | self.setState(Os.NeedQso) 190 | elif self.state == Os.NeedQso: 191 | self.decPatience() 192 | elif self.state in [Os.NeedNr, Os.NeedCall, Os.NeedCallNr]: 193 | self.state = Os.Failed 194 | elif self.state == Os.NeedEnd: 195 | self.state = Os.Done 196 | return 197 | 198 | if StationMessage.Nil in msgs: 199 | if self.state == Os.NeedPrevEnd: 200 | self.setState(Os.NeedQso) 201 | elif self.state == Os.NeedQso: 202 | self.decPatience() 203 | elif self.state in [Os.NeedNr, Os.NeedCall, Os.NeedCallNr, Os.NeedEnd]: 204 | self.state = Os.Failed 205 | return 206 | 207 | if StationMessage.HisCall in msgs: 208 | isme = self.ismycall() 209 | if isme == Mc.Yes: 210 | if self.state in [Os.NeedPrevEnd, Os.NeedQso, Os.NeedCallNr]: 211 | self.setState(Os.NeedNr) 212 | elif self.state == Os.NeedCall: 213 | self.setState(Os.NeedEnd) 214 | elif isme == Mc.Almost: 215 | if self.state in [Os.NeedPrevEnd, Os.NeedQso, Os.NeedNr]: 216 | self.setState(Os.NeedCallNr) 217 | elif self.state == Os.NeedEnd: 218 | self.setState(Os.NeedCall) 219 | elif isme == Mc.No: 220 | if self.state == Os.NeedQso: 221 | self.state = Os.NeedPrevEnd 222 | elif self.state in [Os.NeedNr, Os.NeedCall, Os.NeedCallNr]: 223 | self.state = Os.Failed 224 | elif self.state == Os.NeedEnd: 225 | self.state = Os.Done 226 | 227 | if StationMessage.B4 in msgs: 228 | if self.state in [Os.NeedPrevEnd, Os.NeedQso]: 229 | self.setState(Os.NeedQso) 230 | elif self.state in [Os.NeedNr, Os.NeedEnd]: 231 | self.state = Os.Failed 232 | 233 | if StationMessage.NR in msgs: 234 | if self.state == Os.NeedQso: 235 | self.state = Os.NeedPrevEnd 236 | elif self.state == Os.NeedNr: 237 | if self._rng.random() >= self._rptProb: 238 | self.setState(Os.NeedEnd) 239 | elif self.state in [Os.NeedCallNr]: 240 | if self._rng.random() >= self._rptProb: 241 | self.setState(Os.NeedCall) 242 | 243 | if StationMessage.TU in msgs: 244 | if self.state == Os.NeedPrevEnd: 245 | self.setState(Os.NeedQso) 246 | elif self.state == Os.NeedEnd: 247 | self.state = Os.Done 248 | 249 | if (not self._lids) and (msgs == [StationMessage.Garbage]): 250 | self.state = Os.NeedPrevEnd 251 | 252 | if self.state != Os.NeedPrevEnd: 253 | self.decPatience() 254 | 255 | def getReply(self): 256 | """ 257 | Given current state, patience and relevant probabilities, 258 | return reply message. 259 | """ 260 | if self.state in [Os.NeedPrevEnd, Os.Done, Os.Failed]: 261 | res = StationMessage.noMsg 262 | elif self.state == Os.NeedQso: 263 | res = StationMessage.MyCall 264 | elif self.state == Os.NeedNr: 265 | if (self.patience == (DxOperator.FULL_PATIENCE-1) 266 | or self._rng.random() < 0.3): 267 | res = StationMessage.NrQm 268 | else: 269 | res = StationMessage.AGN 270 | elif self.state == Os.NeedCall: 271 | r1 = self._rng.random() # Morserunner's probabilities are 0.5, 0.5*0.25 272 | if r1 < 0.5: 273 | res = StationMessage.DeMyCallNr1 274 | elif r1 < 0.625: 275 | res = StationMessage.DeMyCallNr2 276 | else: 277 | res = StationMessage.MyCallNr2 278 | elif self.state == Os.NeedCallNr: 279 | if self._rng.random() < 0.5: 280 | res = StationMessage.DeMyCall1 281 | else: 282 | res = StationMessage.DeMyCall2 283 | else: #NeedEnd 284 | if (self.patience == (DxOperator.FULL_PATIENCE-1) 285 | or self._rng.random() < 0.9): 286 | res = StationMessage.R_NR 287 | else: 288 | res = StationMessage.R_NR2 289 | 290 | return res 291 | 292 | -------------------------------------------------------------------------------- /python/contest.py: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2022 Kevin E. Schmidt. All rights reserved. 3 | # 4 | # This file is part of cwsim 5 | # 6 | # cwsim is free software: you can redistribute it and/or modify it under the 7 | # terms of the GNU General Public License version 2 as published by the 8 | # Free Software Foundation and appearing in the file LICENSE included in the 9 | # packaging of this file. 10 | # 11 | # cwsim is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | # 15 | # See https://www.gnu.org/licenses/ for GPL licensing information. 16 | # 17 | import numpy as np 18 | import enum 19 | import keyer 20 | import calllist 21 | from audioprocess import movavg, modulator, agc 22 | from station import StationEvent, StationState, StationMessage 23 | from qrmstation import QrmStation 24 | from qrnstation import QrnStation 25 | from dxstation import DxStation 26 | from mystation import MyStation 27 | from dxoper import Os 28 | import queue 29 | import wave 30 | import time 31 | import sys 32 | import os 33 | import errno 34 | import configparser 35 | import sounddevice as sd 36 | 37 | class RunMode(enum.IntEnum): 38 | stop = 1 39 | pileup = 2 40 | single = 3 41 | pileup_qsonr = 4 42 | single_qsonr = 5 43 | 44 | class Contest(): 45 | """ 46 | Class to hold contest stations and produce audio buffers 47 | """ 48 | def __init__(self,rng,inifile=None): 49 | """ 50 | Arguments 51 | rng = numpy random number generator 52 | inifile = initialization file name 53 | """ 54 | self.modulator = None 55 | self.me = None 56 | try: 57 | self.readConfig(inifile) 58 | except: 59 | self._rate = 11025 60 | self._bufsize = 512 61 | self.call = "P55CF" 62 | self.wpm = 40 63 | self.fast = 1.1 64 | self.slow = 0.9 65 | self.bandwidth = 500 66 | self.pitch = 500 67 | self.qsk = 1 68 | self.qskdecaytime = 0.030 69 | self.rit = 0 70 | self.monitor = 0.1 71 | self.qrn = 1 72 | self.qrm = 1 73 | self.qsb = 1 74 | self.qsy = 1 75 | self.flutter = 1 76 | self.flutterProb = 0.3 77 | self.lids = 1 78 | self.activity = 4 79 | self.lidRstProb = 0.03 80 | self.lidNrProb = 0.1 81 | self.rptProb = 0.1 82 | self.tqrm = 240 83 | self.duration = 60 84 | self.mode = RunMode.pileup 85 | self.cwreverse = 0 86 | self.savewave = 0 87 | self.saveini = 1 88 | self.savesummary = 1 89 | self.fontsize = 12 # not used 90 | 91 | self._qskdecayfactor = 1.0/(self._rate*self.qskdecaytime) 92 | self.q = queue.Queue() 93 | self.modulator = modulator(self._bufsize,self._rate,self.pitch 94 | ,reverse=self.cwreverse == 1) 95 | self._m5 = agc(self._bufsize) 96 | self._rng = rng 97 | self._keyer = keyer.Keyer(rate=self._rate,bufsize=self._bufsize) 98 | self._callList = calllist.CallList(rng) 99 | self.stations = [] 100 | self.me = MyStation(self._rng,self._keyer,self,self.call,self.pitch 101 | ,self.wpm,bufsize=self._bufsize,rate=self._rate) 102 | self.bufcount = 0 103 | self._rfg0 = 1.0 104 | self._rfg = np.zeros(self._bufsize+1,dtype=np.float64) 105 | self._rfgcal = np.frompyfunc(self.rfgfun,2,1) 106 | self._ritph = 0.0 107 | self._bufindex = np.arange(self._bufsize,dtype=np.float64) 108 | self._extratime = 0 109 | self.seconds = 0 110 | # self.ef = open('temp.out',mode='w') 111 | # self.ef.close() 112 | # self.ef = open('temp.out',mode='a') 113 | # self.wf = wave.open('temp.wav',mode='wb') 114 | # self.wf.setnchannels(1) 115 | # self.wf.setsampwidth(2) 116 | # self.wf.setframerate(self._rate) 117 | @property 118 | def tqrm(self): 119 | """ 120 | Mean time for QRM station 121 | """ 122 | return self._tqrm 123 | 124 | @tqrm.setter 125 | def tqrm(self,tqrm): 126 | self._tqrm = tqrm 127 | self.qrmProbPerBuffer = self._bufsize/self._rate/self._tqrm 128 | 129 | @property 130 | def bandwidth(self): 131 | """ 132 | Filter bandwidth for receive audio 133 | """ 134 | return self._bandwidth 135 | 136 | @bandwidth.setter 137 | def bandwidth(self,bandwidth): 138 | self._bandwidth = np.max([np.min([round(bandwidth/50)*50,600]),100]) 139 | navg = int(np.rint(0.7*self._rate/self._bandwidth)) 140 | self._fgain = np.sqrt(500/self._bandwidth); 141 | self._m1 = movavg(self._bufsize,navg,dtype=np.complex128) 142 | self._m2 = movavg(self._bufsize,navg,dtype=np.complex128) 143 | self._m3 = movavg(self._bufsize,navg,dtype=np.complex128) 144 | 145 | @property 146 | def pitch(self): 147 | """ 148 | Filter center pitch for receive audio 149 | """ 150 | return self._pitch 151 | 152 | @pitch.setter 153 | def pitch(self,pitch): 154 | self._pitch = pitch 155 | if self.modulator is not None: 156 | self.modulator.pitch = pitch 157 | 158 | @property 159 | def call(self): 160 | """ 161 | myStation call 162 | """ 163 | return self._call 164 | 165 | @call.setter 166 | def call(self,call): 167 | self._call = call 168 | if self.me is not None: 169 | self.me.myCall = call 170 | 171 | @property 172 | def wpm(self): 173 | """ 174 | myStation wpm 175 | """ 176 | return self._wpm 177 | 178 | @wpm.setter 179 | def wpm(self,wpm): 180 | self._wpm = wpm 181 | if self.me is not None: 182 | self.me.wpm = wpm 183 | 184 | @property 185 | def cwreverse(self): 186 | """ 187 | Use LSB shift by -pitch 188 | """ 189 | return self._cwreverse 190 | 191 | @cwreverse.setter 192 | def cwreverse(self,cwreverse): 193 | self._cwreverse = cwreverse 194 | if self.modulator is not None: 195 | self.modulator.reverse = (cwreverse == 1) 196 | 197 | def rfgfun(self,a0,a1): 198 | """ 199 | Function for rf gain fast attack slow decay 200 | """ 201 | if a0= self.duration and 360 | self.me.state != StationState.Sending): 361 | if self._extratime == 0: 362 | self._extratime = self.seconds+0.5 #continue for 1/2 second 363 | elif self.seconds > self._extratime: 364 | self._extratime = 0 365 | self.me.app.contestEnded() 366 | 367 | def readConfig(self,filename): 368 | if os.path.exists(filename): 369 | configFile = filename 370 | else: 371 | myDir = os.path.dirname(__file__) 372 | configFile = os.path.join(myDir,filename) 373 | if not os.path.exists(configFile): 374 | raise FileNotFoundError(errno.ENOENT, 375 | os.strerror(errno.ENOENT),filename) 376 | p = configparser.ConfigParser(delimiters='=',comment_prefixes='#') 377 | p.read(configFile) 378 | appearancedict = dict(p['Appearance']) 379 | self.fontsize = int(appearancedict['fontsize']) 380 | sounddict = dict(p['Sound']) 381 | self._rate = int(sounddict['rate']) 382 | self._bufsize = int(sounddict['bufsize']) 383 | stationdict = dict(p['Station']) 384 | self.call = stationdict['call'].upper() 385 | self.wpm = int(stationdict['wpm']) 386 | self.fast = float(stationdict['fast']) 387 | self.slow = float(stationdict['slow']) 388 | self.bandwidth = int(stationdict['bandwidth']) 389 | self.pitch = int(stationdict['pitch']) 390 | self.cwreverse = int(stationdict['cwreverse']) 391 | self.qsk = int(stationdict['qsk']) 392 | self.qskdecaytime = float(stationdict['qskdecaytime']) 393 | self.rit = int(stationdict['rit']) 394 | self.monitor = float(stationdict['monitor']) 395 | conditionsdict = dict(p['Conditions']) 396 | self.qrn = int(conditionsdict['qrn']) 397 | self.qrm = int(conditionsdict['qrm']) 398 | self.qsy = int(conditionsdict['qsy']) 399 | self.tqrm = int(conditionsdict['tqrm']) 400 | self.qsb = int(conditionsdict['qsb']) 401 | self.flutter = int(conditionsdict['flutter']) 402 | self.flutterProb = float(conditionsdict['flutterprob']) 403 | self.lids = int(conditionsdict['lids']) 404 | self.activity = int(conditionsdict['activity']) 405 | self.lidRstProb = float(conditionsdict['lidrstprob']) 406 | self.lidNrProb = float(conditionsdict['lidnrprob']) 407 | self.rptProb = float(conditionsdict['rptprob']) 408 | contestdict = dict(p['Contest']) 409 | self.duration = int(contestdict['duration']) 410 | self.mode = eval(contestdict['mode']) 411 | self.savewave = int(contestdict['savewave']) 412 | self.saveini = int(contestdict['saveini']) 413 | self.savesummary = int(contestdict['savesummary']) 414 | 415 | def writeConfig(self,filename): 416 | with open(filename,'w') as f: 417 | p = configparser.ConfigParser(delimiters='=',comment_prefixes='#') 418 | p.add_section('Appearance') 419 | for i in ['fontsize']: 420 | p.set('Appearance',i,str(eval('self.'+i))) 421 | p.add_section('Sound') 422 | for i in ['rate', 'bufsize']: 423 | p.set('Sound',i,str(eval('self._'+i))) 424 | p.add_section('Station') 425 | for i in ['call','wpm','fast','slow','bandwidth','pitch','qsk' 426 | ,'qskdecaytime', 'cwreverse', 'rit', 'monitor']: 427 | p.set('Station',i,str(eval('self.'+i))) 428 | p.add_section('Conditions') 429 | for i in ['qrn','qrm','tqrm','qsb','flutter','qsy','lids','activity' 430 | ,'lidRstProb','lidNrProb','rptProb','flutterProb']: 431 | p.set('Conditions',i,str(eval('self.'+i))) 432 | p.add_section('Contest') 433 | for i in ['duration','mode','savewave','saveini','savesummary']: 434 | p.set('Contest',i,str(eval('self.'+i))) 435 | p.write(f) 436 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /python/translate/it_IT.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CwsimMainWindow 6 | 7 | 8 | CW Simulator 9 | 10 | 11 | 12 | 13 | Log 14 | 15 | 16 | 17 | 18 | Log in table format 19 | Log formato tabella 20 | 21 | 22 | 23 | Log Table 24 | Tabella log 25 | 26 | 27 | 28 | QSO log including error report 29 | Log dei QSO incluso un rapporto sugli errori 30 | 31 | 32 | 33 | Station and Parameters 34 | Stazione e Parametri 35 | 36 | 37 | 38 | Station tab 39 | Stazione 40 | 41 | 42 | 43 | Station information input 44 | Dati della stazione 45 | 46 | 47 | 48 | Station 49 | Stazione 50 | 51 | 52 | 53 | Receiver bandwidth 54 | Larghezza di banda del ricevitore 55 | 56 | 57 | 58 | Bandwidth 59 | Larghezza di banda 60 | 61 | 62 | 63 | Sets Receiver bandwidth 64 | Imposta la larghezza di banda 65 | 66 | 67 | 68 | Hz 69 | 70 | 71 | 72 | 73 | Sidetone Level 74 | Livello del sidetone 75 | 76 | 77 | 78 | Sending speed 79 | Velocità di trasmissione 80 | 81 | 82 | 83 | CW Speed 84 | Velocità CW 85 | 86 | 87 | 88 | Sets initial CW speed in words per minute 89 | Imposta la velocità iniziale in WPM 90 | 91 | 92 | 93 | RIT 94 | 95 | 96 | 97 | 98 | Receiver incremental tuning 99 | Correzione sintonia 100 | 101 | 102 | 103 | Receiver incremental tuning (RIT) 104 | Correzione sintonia (RIT) 105 | 106 | 107 | 108 | CW Pitch 109 | Picco nota CW 110 | 111 | 112 | 113 | WPM 114 | 115 | 116 | 117 | 118 | RX Bandwidth 119 | Larghezza di banda 120 | 121 | 122 | 123 | My call 124 | Mio nominativo 125 | 126 | 127 | 128 | P55CF 129 | 130 | 131 | 132 | 133 | Sidetone pitch 134 | Picco del sidetone 135 | 136 | 137 | 138 | Pitch 139 | Picco 140 | 141 | 142 | 143 | CW Reverse 144 | 145 | 146 | 147 | 148 | CWR 149 | 150 | 151 | 152 | 153 | Full break in 154 | 155 | 156 | 157 | 158 | QSK 159 | 160 | 161 | 162 | 163 | Sidetone level 164 | Livello del sidetone 165 | 166 | 167 | 168 | RIT value in Hz 169 | Valore del RIT in Hz 170 | 171 | 172 | 173 | Call 174 | Nominativo 175 | 176 | 177 | 178 | Simulation parameters 179 | Parametri della simulazione 180 | 181 | 182 | 183 | Simulation parameters and probabilities 184 | Parametri della simulazione e probabilità 185 | 186 | 187 | 188 | Condition/Op parameters 189 | Parametri delle condizioni operative 190 | 191 | 192 | 193 | Adds QRN 194 | Aggiunge QRN 195 | 196 | 197 | 198 | QRN 199 | 200 | 201 | 202 | 203 | Adds QRN when checked 204 | Aggiunge QRN se selezionato 205 | 206 | 207 | 208 | QSY 209 | 210 | 211 | 212 | 213 | Show stations in log that give up and QSY 214 | Mostra a log le statazioni che hanno smesso di chiamare o si sono spostate (QSY) 215 | 216 | 217 | 218 | Lid RST 219 | Cattivi RST 220 | 221 | 222 | 223 | Rpt Prob 224 | Prob Rpt 225 | 226 | 227 | 228 | Fast WPM 229 | WPM alto 230 | 231 | 232 | 233 | Add QRM stations 234 | Aggiunge stazioni (QRM) 235 | 236 | 237 | 238 | QRM 239 | 240 | 241 | 242 | 243 | Add operators who make mistakes 244 | Aggiunge operatori che sbagliano 245 | 246 | 247 | 248 | Lids 249 | Cattivi 250 | 251 | 252 | 253 | Lid RST probability 254 | Probabilità di RST non-standard 255 | 256 | 257 | 258 | Repeat Probability 259 | Probabilità di richiesta ripetizione 260 | 261 | 262 | 263 | Probability of stations repeating information 264 | Probabilità che la stazione chieda di ripetere 265 | 266 | 267 | 268 | The DX station speed is randomly chosen between Slow WPM and Fast WPM multiplied by our speed 269 | La velocità del corrispondente è scelta casualmente fra WPM Bassi e WPM alti moltiplicato per la tua velocità 270 | 271 | 272 | 273 | Add QSB to callers 274 | Aggiunge QSB ai corrispondenti 275 | 276 | 277 | 278 | QSB 279 | 280 | 281 | 282 | 283 | QRM time 284 | Durata QRM 285 | 286 | 287 | 288 | Lid Nr 289 | Cattivi RST 290 | 291 | 292 | 293 | Flutter Prob 294 | Prob flutter 295 | 296 | 297 | 298 | Slow WPM 299 | WPM bassi 300 | 301 | 302 | 303 | Flutter 304 | 305 | 306 | 307 | 308 | Average time in seconds for a QRM station to appear 309 | Tempo medio in secondi, prima dell'arrivo di stazioni (QRM) 310 | 311 | 312 | 313 | Probability that QSB is flutter 314 | Probabilità presenza QSB è flutter 315 | 316 | 317 | 318 | Flutter probability 319 | Probabilità di flutter 320 | 321 | 322 | 323 | DX stations randomly choose speeds between your speed multiplied by slow WPM and your speed multipled by fast WPM 324 | La velocità del corrispondente è scelta casualmente fra WPM Bassi e WPM alti moltiplicato per la tua velocità 325 | 326 | 327 | 328 | F1 CQ 329 | 330 | 331 | 332 | 333 | F1 CQ Button 334 | F1 pulsante CQ 335 | 336 | 337 | 338 | N1MM Input 339 | N1MM 340 | 341 | 342 | 343 | RST 344 | 345 | 346 | 347 | 348 | Nr 349 | 350 | 351 | 352 | 353 | 0:00:00 354 | 355 | 356 | 357 | 358 | F7 ? 359 | 360 | 361 | 362 | 363 | F7 Question Mark button 364 | F7 pulsante del punto interrogativo 365 | 366 | 367 | 368 | F2 Nr 369 | 370 | 371 | 372 | 373 | F2 number Button 374 | F2 pulsante del Rapporto e Progressivo 375 | 376 | 377 | 378 | F2 <#> 379 | 380 | 381 | 382 | 383 | F6 B4 384 | 385 | 386 | 387 | 388 | F6 Q S O B4 button 389 | F6 pulsante QSO precedente 390 | 391 | 392 | 393 | F3 T U 394 | 395 | 396 | 397 | 398 | F3 Thank you button 399 | F3 pulsante del _Grazie_ (TU) 400 | 401 | 402 | 403 | F3 TU 404 | 405 | 406 | 407 | 408 | F5 his 409 | F5 suo 410 | 411 | 412 | 413 | F5 his call button 414 | F5 nominativo del corrispondente 415 | 416 | 417 | 418 | F5 <his> 419 | F5 <suo> 420 | 421 | 422 | 423 | F4 My 424 | F4 Mio 425 | 426 | 427 | 428 | F4 My call button 429 | F4 Mio nominativo 430 | 431 | 432 | 433 | F4 <my> 434 | F4 <mio> 435 | 436 | 437 | 438 | F8 Nil 439 | F8 Non in Log (NIL) 440 | 441 | 442 | 443 | F8 Nil Not in log button 444 | F8 Pulsante del Non copiato (NIL) 445 | 446 | 447 | 448 | F8 NIL 449 | 450 | 451 | 452 | 453 | TR Input 454 | TR 455 | 456 | 457 | 458 | F2 Number button 459 | F2 Pulsante del rapporto 460 | 461 | 462 | 463 | F7 question mark button 464 | F7 Pulsante del punto interrogativo 465 | 466 | 467 | 468 | Exchange 469 | Progressivo 470 | 471 | 472 | 473 | Contest 474 | 475 | 476 | 477 | 478 | Choose contest type 479 | Seleziona tipo di contest 480 | 481 | 482 | 483 | Contest Type 484 | Tipo di contest 485 | 486 | 487 | 488 | Pile Up 489 | 490 | 491 | 492 | 493 | Single Calls 494 | Chiamata singola 495 | 496 | 497 | 498 | Duration (Min) 499 | Durata (Min) 500 | 501 | 502 | 503 | Activity 504 | Attività 505 | 506 | 507 | 508 | Contest simulation duration 509 | Durata della simulazione Contest 510 | 511 | 512 | 513 | Duration 514 | Durata 515 | 516 | 517 | 518 | Average number of calling stations 519 | Media del numero di chiamate contemporanee 520 | 521 | 522 | 523 | Start/Stop 524 | Avvia/Ferma 525 | 526 | 527 | 528 | Start 529 | Avvia 530 | 531 | 532 | 533 | Score 534 | Punteggio 535 | 536 | 537 | 538 | Panel with current score 539 | Finestra col punteggio corrente 540 | 541 | 542 | 543 | Score table 544 | Tabella dei punteggi 545 | 546 | 547 | 548 | Score table of raw and correct contacts and multipliers 549 | Tabella dei punteggi per i calls trasmessi, quelli corretti e dei moltiplicatori 550 | 551 | 552 | 553 | Rate 554 | Tasso di QSO 555 | 556 | 557 | 558 | Rate Plot 559 | Grafico del tasso di QSO 560 | 561 | 562 | 563 | Plot of contact rate in 5 minute intervals 564 | Valutazione suddivisa per fascie da 5 minuti ciascuna 565 | 566 | 567 | 568 | &File 569 | 570 | 571 | 572 | 573 | &Help 574 | &Aiuto 575 | 576 | 577 | 578 | toolBar 579 | Barra degli strumenti 580 | 581 | 582 | 583 | &Exit 584 | &Esci 585 | 586 | 587 | 588 | &Pile up 589 | 590 | 591 | 592 | 593 | &Single calls 594 | &Singolo QRZ 595 | 596 | 597 | 598 | &End run 599 | &Ferma 600 | 601 | 602 | 603 | &About 604 | &Info su 605 | 606 | 607 | 608 | &Load Configuration 609 | &Carica configurazione 610 | 611 | 612 | 613 | &Save Configuration 614 | &Salva configurazione 615 | 616 | 617 | 618 | &Keyboard Shortcuts 619 | &Abbreviazioni da tastiera 620 | 621 | 622 | 623 | &Copy Log 624 | Copia &Log 625 | 626 | 627 | 628 | &Function Key CW 629 | &Tasti funzione CW 630 | 631 | 632 | 633 | &Always Update Default Configuration on Exit 634 | Aggiorna la configurazione all'&uscita 635 | 636 | 637 | 638 | &Update Default Configuration 639 | &Aggiorna la configurazione di default 640 | 641 | 642 | 643 | &Write Simulation Summary File 644 | Scrivi il &report della simulazione 645 | 646 | 647 | 648 | Station Data input tab and simulator parameter tab 649 | Inserimento dati stazione tab e Parametri del simulatore tab 650 | 651 | 652 | 653 | RIT value 654 | Valore RIT 655 | 656 | 657 | 658 | Probability a lid does not send 599 659 | Probabilità che un cattivo Operatore non invii 599 660 | 661 | 662 | 663 | With QSB checked instead adds flutter to callers with flutter probability 664 | Seleziona QSB invece di aggiungi flutter ai corrispondenti con probabilità di flutter 665 | 666 | 667 | 668 | TR entry 669 | TR inserito 670 | 671 | 672 | 673 | Start or stop contest Alt+x 674 | Premere alt+x per avviare o fermare 675 | 676 | 677 | 678 | &Overwrite summary to cwsim.txt when simulation ends 679 | Sovrascrivi il report (cwsim.txt), al &termine della simulazione 680 | 681 | 682 | 683 | Probability a lid sends incorrect number 684 | Probabilità che un cattivo operatore invii un Progressivo sbagliato 685 | 686 | 687 | 688 | A&ppend summary to cwsim.txt when simulation ends 689 | A&ggiungi il report (cwsim.txt), al termine della simulazione 690 | 691 | 692 | 693 | Choose duration, total time in minutes, or total QSOs 694 | Durata, tempo totale in minuti, o QSO totale 695 | 696 | 697 | 698 | Duration (QSOs) 699 | Durata (QSO) 700 | 701 | 702 | 703 | MplCanvas 704 | 705 | 706 | Minutes 707 | Minuti 708 | 709 | 710 | 711 | QS0s/Hour 712 | QSO per ora 713 | 714 | 715 | 716 | RunApp 717 | 718 | 719 | UTC 720 | 721 | 722 | 723 | 724 | Call 725 | Nominativo 726 | 727 | 728 | 729 | Recv 730 | RX 731 | 732 | 733 | 734 | Sent 735 | TX 736 | 737 | 738 | 739 | Pref 740 | 741 | 742 | 743 | 744 | Chk 745 | CFM 746 | 747 | 748 | 749 | Points 750 | Punti 751 | 752 | 753 | 754 | Mults 755 | Moltip 756 | 757 | 758 | 759 | Score 760 | Punteggio 761 | 762 | 763 | 764 | Raw 765 | Originale 766 | 767 | 768 | 769 | Verified 770 | Verificato 771 | 772 | 773 | 774 | Open Configuration 775 | Apri cnfigurazione 776 | 777 | 778 | 779 | Configuration Files 780 | File di configurazione 781 | 782 | 783 | 784 | Save Summary File 785 | Salva il report della simulazione 786 | 787 | 788 | 789 | txt 790 | 791 | 792 | 793 | 794 | cwsim summary 795 | Report cwsim 796 | 797 | 798 | 799 | CW Speed 800 | Velocità CW 801 | 802 | 803 | 804 | WPM 805 | 806 | 807 | 808 | 809 | Conditions 810 | Condizioni 811 | 812 | 813 | 814 | QRN 815 | 816 | 817 | 818 | 819 | QRM 820 | 821 | 822 | 823 | 824 | QSB 825 | 826 | 827 | 828 | 829 | Flutter 830 | 831 | 832 | 833 | 834 | QSY 835 | 836 | 837 | 838 | 839 | Lids 840 | Difficoltà 841 | 842 | 843 | 844 | Activity 845 | Attività 846 | 847 | 848 | 849 | Duration 850 | Durata 851 | 852 | 853 | 854 | Raw Points 855 | Punti totali 856 | 857 | 858 | 859 | Raw Prefixes 860 | Prefissi totali 861 | 862 | 863 | 864 | Raw Score 865 | Punteggio totale 866 | 867 | 868 | 869 | Verified Points 870 | Punti verificati 871 | 872 | 873 | 874 | Verified Prefixes 875 | Prefissi verificati 876 | 877 | 878 | 879 | Verified Score 880 | Punteggio verificato 881 | 882 | 883 | 884 | Error percentage 885 | Percentuale d'errore 886 | 887 | 888 | 889 | QSOs/Hour for each 5 minute interval 890 | QSO per ora, suddiviso in intervalli da 5 minuti 891 | 892 | 893 | 894 | Calls miscopied 895 | Nominativi copiati male 896 | 897 | 898 | 899 | Exchanges miscopied 900 | Progressivi copiati male 901 | 902 | 903 | 904 | copied 905 | copiato 906 | 907 | 908 | 909 | should be 910 | era 911 | 912 | 913 | 914 | Stations who gave up without a QSO 915 | Stazioni che hanno abbandonato senza terminare il QSO 916 | 917 | 918 | 919 | Save Log File 920 | Salva il log 921 | 922 | 923 | 924 | csv 925 | 926 | 927 | 928 | 929 | Start 930 | Avvia 931 | 932 | 933 | 934 | Stop 935 | Ferma 936 | 937 | 938 | 939 | 940 | Keyboard Shortcuts: 941 | Alt+X = Start/Stop simulation run 942 | Only when simulation is running: 943 | Alt+W = Wipe 944 | Escape = Stop sending 945 | Enter = Enter sends message 946 | Up arrow = N1MM Tune RIT higher in frequency 25 Hz 947 | Down arrow = N1MM Tune RIT lower in frequency 25 Hz 948 | Shift+Up arrow = TR Tune RIT higher in frequency 25 Hz 949 | Shift+Down arrow = TR Tune RIT lower in frequency 25 Hz 950 | Alt+C = Clear RIT 951 | Ctrl+Up arrow = Increase receive bandwidth 50 Hz 952 | Ctrl+Down arrow = Decrease receive bandwidth 50 Hz 953 | Alt+Up arrow = Increase pitch 50 Hz 954 | Alt+Down arrow = Decrease pitch 50 Hz 955 | Page Up = Increase cw speed 2 wpm 956 | Page Down = Decrease cw speed 2 wpm 957 | 958 | 959 | Scorciatoie da tastiera: 960 | Alt+X = Avvia e ferma la simulazione 961 | Solamente con simulazione attiva: 962 | Alt+W = Pulisci tutti i campi 963 | Escape = Smette di trasmettere 964 | Enter = Invia il messaggio 965 | Freccia su = Alza il RIT di 25 Hz 966 | Freccia giù = Abbassa il RIT di 25 Hz 967 | Shift+Freccia su = TR Alza il RIT di 25 Hz 968 | Shift+Freccia giù = TR Abbassa il RIT di 25 Hz 969 | Alt+C = Azzera il RIT 970 | Ctrl+Freccia su = Aumenta la larghezza di banda in ricezione di 50 Hz 971 | Ctrl+Freccia giù = Diminuisce la larghezza di banda in ricezione di 50 Hz 972 | Alt+Freccia su = Aumenta Picco di 50 Hz 973 | Alt+Freccia giù = Diminuisce Picco di 50 Hz 974 | Pagina su = Velocità più 2 WPM 975 | Pagina giù = Velocità meno 2 WPM 976 | 977 | 978 | 979 | 980 | 981 | Function Keys: 982 | F1 = Send CQ 983 | F2 = Send exchange 984 | F3 = Send TU to acknowledge receipt 985 | F4 = Send my call 986 | F5 = Send his call (Contents of the Call field) 987 | F6 = Send QSO B4 988 | F7 = Send a question mark 989 | F8 = Send Nil, not in log 990 | 991 | 992 | Tasti funzione: 993 | F1 = Trasmette un CQ 994 | F2 = Trasmette rapporto e progressivo 995 | F3 = Trasmette TU per confermare l'avvenuta ricezione 996 | F4 = Trasmette il mio nominativo 997 | F5 = Trasmette il nominativo del corrispondente (quanto scritto nel campo QRZ) 998 | F6 = Trasmette QSO B4 (collegamento precedente) 999 | F7 = Trasmette un punto interrogativo 1000 | F8 = Trasmette NIL (non in log) 1001 | 1002 | 1003 | 1004 | 1005 | Rate 1006 | Valutazione 1007 | 1008 | 1009 | 1010 | QSOs/Hr (5m) 1011 | QSO per Ora (5m) 1012 | 1013 | 1014 | 1015 | None 1016 | Nessuna 1017 | 1018 | 1019 | 1020 | -------------------------------------------------------------------------------- /python/translate/zh_CN.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CwsimMainWindow 6 | 7 | 8 | CW Simulator 9 | CW 模拟器 10 | 11 | 12 | 13 | 14 | Log 15 | 日志 16 | 17 | 18 | 19 | Log in table format 20 | 表格格式的日志 21 | 22 | 23 | 24 | Log Table 25 | 日志表格 26 | 27 | 28 | 29 | QSO log including error report 30 | 包括错误报告的 QSO 日志 31 | 32 | 33 | 34 | Station and Parameters 35 | 电台与参数 36 | 37 | 38 | 39 | Station Data input tab and simulator parameter tab 40 | 电台数据输入标签以及模拟器参数标签 41 | 42 | 43 | 44 | Station tab 45 | 电台标签 46 | 47 | 48 | 49 | Station information input 50 | 电台信息输入 51 | 52 | 53 | 54 | Station 55 | 电台 56 | 57 | 58 | 59 | Receiver bandwidth 60 | 接收带宽 61 | 62 | 63 | 64 | Bandwidth 65 | 带宽 66 | 67 | 68 | 69 | Sets Receiver bandwidth 70 | 设置接收带宽 71 | 72 | 73 | 74 | 75 | 76 | Hz 77 | 78 | 79 | 80 | 81 | Sidetone Level 82 | 侧音音量 83 | 84 | 85 | 86 | Sending speed 87 | 发报速度 88 | 89 | 90 | 91 | 92 | CW Speed 93 | CW 速度 94 | 95 | 96 | 97 | Sets initial CW speed in words per minute 98 | 设定初始 CW 发报速度,WPM 99 | 100 | 101 | 102 | 103 | RIT 104 | 105 | 106 | 107 | 108 | Receiver incremental tuning 109 | 接收频率微调 110 | 111 | 112 | 113 | Receiver incremental tuning (RIT) 114 | 接收频率微调 (RIT) 115 | 116 | 117 | 118 | CW Pitch 119 | CW 音调 120 | 121 | 122 | 123 | WPM 124 | 125 | 126 | 127 | 128 | RX Bandwidth 129 | 接收带宽 130 | 131 | 132 | 133 | 134 | 135 | My call 136 | 我的呼号 137 | 138 | 139 | 140 | P55CF 141 | 142 | 143 | 144 | 145 | 146 | Sidetone pitch 147 | 侧音频率 148 | 149 | 150 | 151 | Pitch 152 | 音调 153 | 154 | 155 | 156 | 157 | 158 | CW Reverse 159 | CW-R 160 | 161 | 162 | 163 | CWR 164 | 165 | 166 | 167 | 168 | 169 | Full break in 170 | 全插入 171 | 172 | 173 | 174 | 175 | QSK 176 | 177 | 178 | 179 | 180 | 181 | 182 | Sidetone level 183 | 侧音音量 184 | 185 | 186 | 187 | 188 | RIT value in Hz 189 | 接收频率微调值,单位 Hz 190 | 191 | 192 | 193 | RIT value 194 | 接收频率微调值 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | Call 204 | 呼号 205 | 206 | 207 | 208 | Simulation parameters 209 | 模拟器参数 210 | 211 | 212 | 213 | Simulation parameters and probabilities 214 | 模拟器参数与概率 215 | 216 | 217 | 218 | Condition/Op parameters 219 | 仿真度/操作参数 220 | 221 | 222 | 223 | Adds QRN 224 | 添加 QRN 225 | 226 | 227 | 228 | 229 | QRN 230 | 231 | 232 | 233 | 234 | Adds QRN when checked 235 | 勾选时添加 QRN 236 | 237 | 238 | 239 | 240 | Show stations in log that give up and QSY 241 | 在日志中显示放弃和 QSY 的电台 242 | 243 | 244 | 245 | 246 | QSY 247 | 248 | 249 | 250 | 251 | Lid RST 252 | 非标RST 253 | 254 | 255 | 256 | Rpt Prob 257 | 错误纠正 258 | 259 | 260 | 261 | 262 | Fast WPM 263 | 快速 WPM 264 | 265 | 266 | 267 | 268 | Add QRM stations 269 | 添加 QRM 电台 270 | 271 | 272 | 273 | 274 | QRM 275 | 276 | 277 | 278 | 279 | 280 | Add operators who make mistakes 281 | 添加对方错误 282 | 283 | 284 | 285 | 286 | Lids 287 | 对方错误 288 | 289 | 290 | 291 | 292 | Probability a lid does not send 599 293 | 不发送竞赛标准信号报告(599)的概率 294 | 295 | 296 | 297 | Lid RST probability 298 | 非标准信号报告概率 299 | 300 | 301 | 302 | 303 | Probability of stations repeating information 304 | B4电台出现的概率 305 | 306 | 307 | 308 | Repeat Probability 309 | 重复概率 310 | 311 | 312 | 313 | 314 | The DX station speed is randomly chosen between Slow WPM and Fast WPM multiplied by our speed 315 | 以设置的发送速度为基准,对方电台随机出现发送慢速报和快速报的概率 316 | 317 | 318 | 319 | 320 | Add QSB to callers 321 | QSB干扰(信号衰落) 322 | 323 | 324 | 325 | 326 | QSB 327 | 328 | 329 | 330 | 331 | 332 | QRM time 333 | QRM 时间 334 | 335 | 336 | 337 | 338 | Lid Nr 339 | 错误序号 340 | 341 | 342 | 343 | Flutter Prob 344 | 扰动概率 345 | 346 | 347 | 348 | Slow WPM 349 | 慢速 WPM 350 | 351 | 352 | 353 | 354 | With QSB checked instead adds flutter to callers with flutter probability 355 | 选中 QSB 后,将扰动干扰添加到具有扰动干扰概率的呼叫者 356 | 357 | 358 | 359 | 360 | Flutter 361 | 扰动模式 362 | 363 | 364 | 365 | 366 | Average time in seconds for a QRM station to appear 367 | QRM 出现的平均时间 (以秒为单位) 368 | 369 | 370 | 371 | 372 | Probability a lid sends incorrect number 373 | 对方电台发送错误序号的概率 374 | 375 | 376 | 377 | 378 | Probability that QSB is flutter 379 | QSB附加扰动干扰出现的概率 380 | 381 | 382 | 383 | Flutter probability 384 | 扰动干扰概率 385 | 386 | 387 | 388 | 389 | DX stations randomly choose speeds between your speed multiplied by slow WPM and your speed multipled by fast WPM 390 | 以设置的发送速度为基准,对方电台随机出现发送慢速报和快速报的概率 391 | 392 | 393 | 394 | 395 | 396 | 397 | F1 CQ 398 | F1 呼叫 399 | 400 | 401 | 402 | 403 | F1 CQ Button 404 | F1 CQ 按钮 405 | 406 | 407 | 408 | 409 | 410 | N1MM Input 411 | N1MM 模式 412 | 413 | 414 | 415 | 416 | 417 | RST 418 | 419 | 420 | 421 | 422 | 423 | 424 | Nr 425 | 接收序号 426 | 427 | 428 | 429 | 430 | 0:00:00 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | F7 ? 439 | 440 | 441 | 442 | 443 | F7 Question Mark button 444 | 445 | 446 | 447 | 448 | 449 | F2 Nr 450 | F2 发送序号 451 | 452 | 453 | 454 | F2 number Button 455 | 456 | 457 | 458 | 459 | 460 | F2 <#> 461 | F2 发送序号 462 | 463 | 464 | 465 | 466 | 467 | 468 | F6 B4 469 | 470 | 471 | 472 | 473 | 474 | F6 Q S O B4 button 475 | 476 | 477 | 478 | 479 | 480 | F3 T U 481 | 482 | 483 | 484 | 485 | 486 | F3 Thank you button 487 | 488 | 489 | 490 | 491 | 492 | F3 TU 493 | 494 | 495 | 496 | 497 | 498 | F5 his 499 | F5 对方 500 | 501 | 502 | 503 | 504 | F5 his call button 505 | 506 | 507 | 508 | 509 | 510 | F5 <his> 511 | F5 对方 512 | 513 | 514 | 515 | 516 | F4 My 517 | 518 | 519 | 520 | 521 | 522 | F4 My call button 523 | 524 | 525 | 526 | 527 | 528 | F4 <my> 529 | F4 本台 530 | 531 | 532 | 533 | 534 | F8 Nil 535 | 536 | 537 | 538 | 539 | 540 | F8 Nil Not in log button 541 | 542 | 543 | 544 | 545 | 546 | F8 NIL 547 | 548 | 549 | 550 | 551 | 552 | TR entry 553 | TR 条目 554 | 555 | 556 | 557 | TR Input 558 | TR LOG 模式 559 | 560 | 561 | 562 | F2 Number button 563 | 564 | 565 | 566 | 567 | F7 question mark button 568 | 569 | 570 | 571 | 572 | 573 | Exchange 574 | 交换 575 | 576 | 577 | 578 | Contest 579 | 竞赛 580 | 581 | 582 | 583 | 584 | Choose contest type 585 | 选择竞赛类型 586 | 587 | 588 | 589 | Contest Type 590 | 竞赛类型 591 | 592 | 593 | 594 | Pile Up 595 | 堆叠 596 | 597 | 598 | 599 | Single Calls 600 | 单呼号模式 601 | 602 | 603 | 604 | Duration (Min) 605 | 周期 (分钟) 606 | 607 | 608 | 609 | 610 | Activity 611 | 堆叠数 612 | 613 | 614 | 615 | 616 | Contest simulation duration 617 | 竞赛模拟周期 618 | 619 | 620 | 621 | Duration 622 | 周期 623 | 624 | 625 | 626 | 627 | Average number of calling stations 628 | 平均堆叠数 629 | 630 | 631 | 632 | 633 | Start or stop contest Alt+x 634 | 按Alt+X 开始或终止比赛 635 | 636 | 637 | 638 | Start/Stop 639 | 开始/停止 640 | 641 | 642 | 643 | Start 644 | 开始 645 | 646 | 647 | 648 | 649 | Score 650 | 成绩 651 | 652 | 653 | 654 | Panel with current score 655 | 当前成绩面板 656 | 657 | 658 | 659 | Score table 660 | 成绩表格 661 | 662 | 663 | 664 | Score table of raw and correct contacts and multipliers 665 | 最终成绩表格 666 | 667 | 668 | 669 | Rate 670 | 通联速度 671 | 672 | 673 | 674 | Rate Plot 675 | 通联速度图 676 | 677 | 678 | 679 | Plot of contact rate in 5 minute intervals 680 | 以 5 分钟为间隔的通联速率图 681 | 682 | 683 | 684 | &File 685 | 文件 (&F) 686 | 687 | 688 | 689 | &Help 690 | 帮助 (&H) 691 | 692 | 693 | 694 | toolBar 695 | 工具栏 696 | 697 | 698 | 699 | &Exit 700 | 退出 (&E) 701 | 702 | 703 | 704 | &Pile up 705 | 堆叠 (&P) 706 | 707 | 708 | 709 | &Single calls 710 | 单呼号模式 (&S) 711 | 712 | 713 | 714 | &End run 715 | 停止运行 (&E) 716 | 717 | 718 | 719 | &About 720 | 关于 (&A) 721 | 722 | 723 | 724 | &Load Configuration 725 | 载入配置 (&L) 726 | 727 | 728 | 729 | &Save Configuration 730 | 保存配置 (&S) 731 | 732 | 733 | 734 | &Keyboard Shortcuts 735 | 快捷键 (&K) 736 | 737 | 738 | 739 | &Copy Log 740 | 保存结果 (&C) 741 | 742 | 743 | 744 | &Function Key CW 745 | CW快捷键 (&F) 746 | 747 | 748 | 749 | &Always Update Default Configuration on Exit 750 | 总是在退出时更新默认配置 (&A) 751 | 752 | 753 | 754 | &Update Default Configuration 755 | 更新默认配置 (&U) 756 | 757 | 758 | 759 | &Write Simulation Summary File 760 | 保存训练摘要数据 (&W) 761 | 762 | 763 | 764 | &Overwrite summary to cwsim.txt when simulation ends 765 | 训练结束后使用最新训练摘要数据覆盖cwsim.txt (&O) 766 | 767 | 768 | 769 | A&ppend summary to cwsim.txt when simulation ends 770 | 训练结束后将最新训练摘要数据增加到cwsim.txt (&P) 771 | 772 | 773 | 774 | MplCanvas 775 | 776 | 777 | Minutes 778 | 分钟 779 | 780 | 781 | 782 | QS0s/Hour 783 | QSO / 小时 784 | 785 | 786 | 787 | RunApp 788 | 789 | 790 | UTC 791 | 792 | 793 | 794 | 795 | Call 796 | 呼号 797 | 798 | 799 | 800 | Recv 801 | 接收 802 | 803 | 804 | 805 | Sent 806 | 发送 807 | 808 | 809 | 810 | Pref 811 | 前缀 812 | 813 | 814 | 815 | Chk 816 | 确认 817 | 818 | 819 | 820 | Points 821 | 点数 822 | 823 | 824 | 825 | Mults 826 | 乘系数 827 | 828 | 829 | 830 | Score 831 | 成绩 832 | 833 | 834 | 835 | Raw 836 | 原始值 837 | 838 | 839 | 840 | Verified 841 | 核实值 842 | 843 | 844 | 845 | Open Configuration 846 | 打开配置 847 | 848 | 849 | 850 | Configuration Files 851 | 配置文件 852 | 853 | 854 | 855 | Save Summary File 856 | 保存训练摘要文件 857 | 858 | 859 | 860 | txt 861 | 862 | 863 | 864 | 865 | cwsim summary 866 | cwsim 摘要文件 867 | 868 | 869 | 870 | CW Speed 871 | CW 速度 872 | 873 | 874 | 875 | WPM 876 | 877 | 878 | 879 | 880 | Conditions 881 | 仿真度 882 | 883 | 884 | 885 | QRN 886 | 887 | 888 | 889 | 890 | QRM 891 | 892 | 893 | 894 | 895 | QSB 896 | 897 | 898 | 899 | 900 | Flutter 901 | 扰动模式 902 | 903 | 904 | 905 | QSY 906 | 907 | 908 | 909 | 910 | Lids 911 | 他台错误 912 | 913 | 914 | 915 | Activity 916 | 堆叠 917 | 918 | 919 | 920 | Duration 921 | 周期 922 | 923 | 924 | 925 | Raw Points 926 | 原始点数 927 | 928 | 929 | 930 | Raw Prefixes 931 | 原始前缀 932 | 933 | 934 | 935 | Raw Score 936 | 原始成绩 937 | 938 | 939 | 940 | Verified Points 941 | 核实点数 942 | 943 | 944 | 945 | Verified Prefixes 946 | 核实前缀 947 | 948 | 949 | 950 | Verified Score 951 | 核实成绩 952 | 953 | 954 | 955 | Error percentage 956 | 错误率 957 | 958 | 959 | 960 | QSOs/Hour for each 5 minute interval 961 | 每隔5分钟计算 QSOs/小时 962 | 963 | 964 | 965 | Calls miscopied 966 | 抄收错误的呼号 967 | 968 | 969 | 970 | Exchanges miscopied 971 | 抄收错误的交换数字 972 | 973 | 974 | 975 | copied 976 | 抄收 977 | 978 | 979 | 980 | should be 981 | 应该为 982 | 983 | 984 | 985 | Stations who gave up without a QSO 986 | 没有 QSO 就放弃的电台 987 | 988 | 989 | 990 | Save Log File 991 | 保存日志文件 992 | 993 | 994 | 995 | csv 996 | 997 | 998 | 999 | 1000 | Start 1001 | 开始 1002 | 1003 | 1004 | 1005 | Stop 1006 | 停止 1007 | 1008 | 1009 | 1010 | 1011 | Keyboard Shortcuts: 1012 | Alt+X = Start/Stop simulation run 1013 | Only when simulation is running: 1014 | Alt+W = Wipe 1015 | Escape = Stop sending 1016 | Enter = Enter sends message 1017 | Up arrow = N1MM Tune RIT higher in frequency 25 Hz 1018 | Down arrow = N1MM Tune RIT lower in frequency 25 Hz 1019 | Shift+Up arrow = TR Tune RIT higher in frequency 25 Hz 1020 | Shift+Down arrow = TR Tune RIT lower in frequency 25 Hz 1021 | Alt+C = Clear RIT 1022 | Ctrl+Up arrow = Increase receive bandwidth 50 Hz 1023 | Ctrl+Down arrow = Decrease receive bandwidth 50 Hz 1024 | Alt+Up arrow = Increase pitch 50 Hz 1025 | Alt+Down arrow = Decrease pitch 50 Hz 1026 | Page Up = Increase cw speed 2 wpm 1027 | Page Down = Decrease cw speed 2 wpm 1028 | 1029 | 1030 | 键盘快捷键: 1031 | Alt+X = 启动/停止模拟运行 1032 | 只有在开始训练时: 1033 | Alt+W = 擦除 1034 | ESC = 停止发送 1035 | 回车 = 回车发送消息 1036 | ↑ = N1MM 调高 RIT 25Hz 1037 | ↓ = N1MM 调低 RIT 25Hz 1038 | Shift+↑ = TR 调高 RIT 25Hz 1039 | Shift+↓ = TR 调低 RIT 25Hz 1040 | Alt+C = 清除RIT 1041 | Ctrl+↑ = 增加接收带宽 50Hz 1042 | Ctrl+↓ = 减少接收带宽 50Hz 1043 | Alt+↑ = 增加音调 50Hz 1044 | Alt+↓ = 降低音调50Hz 1045 | PageUP = 增加 CW 速度 2 WPM 1046 | PageDown = 降低 CW 速度 2 WPM 1047 | 1048 | 1049 | 1050 | 1051 | 1052 | Function Keys: 1053 | F1 = Send CQ 1054 | F2 = Send exchange 1055 | F3 = Send TU to acknowledge receipt 1056 | F4 = Send my call 1057 | F5 = Send his call (Contents of the Call field) 1058 | F6 = Send QSO B4 1059 | F7 = Send a question mark 1060 | F8 = Send Nil, not in log 1061 | 1062 | 1063 | 功能键: 1064 | F1 = 发送CQ 1065 | F2 = 发送交换信息 1066 | F3 = 发送 TU 确认收到 1067 | F4 = 发送我的呼号 1068 | F5 = 发送对方呼号(call字段的内容) 1069 | F6 = 发送 QSO B4(重复通联) 1070 | F7 = 发送一个问号 1071 | F8 =发送Nil,不在日志中 1072 | 1073 | 1074 | 1075 | 1076 | Rate 1077 | 速度 1078 | 1079 | 1080 | 1081 | QSOs/Hr (5m) 1082 | QSO 每小时 (5m) 1083 | 1084 | 1085 | 1086 | None 1087 | 1088 | 1089 | 1090 | 1091 | --------------------------------------------------------------------------------