Uploaded October 2024 | Updated December 2026, 1 day ago
using a new improved Pulse Density Modulated c code app by chatGPT:
https://u.pcloud.link/publink/show?code=XZGc2X5ZuzlXGlEfNHVtKjDgFma960Gstkgk
compile(linux)
gcc -o pdmcw7 pdmcw7.c `pkg-config --cflags --libs jack gtk+-3.0` -lm
run(linux)
./pdmcw7 sample_rate buffer_size
e.g ./pdmcw7 192000 1024
TRANSMITTER SETUP:
cw keyboard output keys the input of the PDM-CW app above...
the output of the PulseDensityModulator APP produces a certain amount of pulses per millisecond depending on the length of the CW ELEMENTs keying its input and the frequency set on the PDM-CW APP...the pulses are set to 20μS pulse widths(just enough to get the SCR GATE to fire) and sent out the laptop sound card to an audio amp, the output of the audio amp goes to a step up transformer, output of transformer goes to a diode/cap/resistor that 'keyes' the SCR gate and dumps the HV CAP CHARGE from the 12v to 1200v interter's PULSE CAP into the orange extension cord's coil antenna...
HOWEVER, before the SCR is opened , first the CAP DISCHARGE HV INVERTER(CDI) is turned on by another signal from the laptop, a 61 khz sine wave that gets rectified after audio amp/stepUP transformer/full bridge diode rectifierk/CAP to turn on a solid state relay that powers up the CDI
the transmitter uses a sidechain GATE APP...and a DELAY APP
the output of the PDM-CW app pulse triggers the SIDECHAIN GATE APP to release its 61Khz signal holding at its upper port to pass through the system above to the solid state relay, the delay app holds back the actual PDM-CW 20μS pulse to the SCR gate until the end of the 61Khz that turns on for a preset amount of time the SOLID STATE RELAY; the SSR then turns off, just before the SCR 20μS pulse arrives to trigger the SCR gate
RECEIVER SETUP:
the incoming signal pulses from the transmit antenna are picked up by a tuned ferrite rod loopstick antenna... 29 milliseconds are added to each pulse by another sidechain gate app...which holds back a CW CPO SIDETONE waiting at its upper port, when triggered by the incoming RX pulse it passes the CPO TONE adding 29 milliseconds to each RX pulse....then to a final audio filter to smooth out the edge noise and it is the CW TONE you hear on this video
using a new improved Pulse Density Modulated c code app by chatGPT:
https://u.pcloud.link/publink/show?code=XZGc2X5ZuzlXGlEfNHVtKjDgFma960Gstkgk
compile(linux)
gcc -o pdmcw7 pdmcw7.c `pkg-config --cflags --libs jack gtk+-3.0` -lm
run(linux)
./pdmcw7 sample_rate buffer_size
e.g ./pdmcw7 192000 1024
TRANSMITTER SETUP:
cw keyboard output keys the input of the PDM-CW app above...
the output of the PulseDensityModulator APP produces a certain amount of pulses per millisecond depending on the length of the CW ELEMENTs keying its input and the frequency set on the PDM-CW APP...the pulses are set to 20μS pulse widths(just enough to get the SCR GATE to fire) and sent out the laptop sound card to an audio amp, the output of the audio amp goes to a step up transformer, output of transformer goes to a diode/cap/resistor that 'keyes' the SCR gate and dumps the HV CAP CHARGE from the 12v to 1200v interter's PULSE CAP into the orange extension cord's coil antenna...
HOWEVER, before the SCR is opened , first the CAP DISCHARGE HV INVERTER(CDI) is turned on by another signal from the laptop, a 61 khz sine wave that gets rectified after audio amp/stepUP transformer/full bridge diode rectifierk/CAP to turn on a solid state relay that powers up the CDI
the transmitter uses a sidechain GATE APP...and a DELAY APP
the output of the PDM-CW app pulse triggers the SIDECHAIN GATE APP to release its 61Khz signal holding at its upper port to pass through the system above to the solid state relay, the delay app holds back the actual PDM-CW 20μS pulse to the SCR gate until the end of the 61Khz that turns on for a preset amount of time the SOLID STATE RELAY; the SSR then turns off, just before the SCR 20μS pulse arrives to trigger the SCR gate
RECEIVER SETUP:
the incoming signal pulses from the transmit antenna are picked up by a tuned ferrite rod loopstick antenna... 29 milliseconds are added to each pulse by another sidechain gate app...which holds back a CW CPO SIDETONE waiting at its upper port, when triggered by the incoming RX pulse it passes the CPO TONE adding 29 milliseconds to each RX pulse....then to a final audio filter to smooth out the edge noise and it is the CW TONE you hear on this video




![New QRQ CW Keyboard written in C++ using advanced DPSS PSWF wave functions to shape CW
this is a new type of QRQ CW Keyboard written in C++ using a specialized ramp function to shape the CW edges by using DPSS Discrete prolate spheroidal sequences a subset from Prolate spheroidal wave functions ( PSWF ) The implementation of custom Slepian/DPSS window computation from scratch is mathematically complex and rare in Morse code software. This approach generates ramp envelopes with maximal energy concentration in the frequency domain, greatly reducing spectral leakage and audio artifacts in tone generation compared to simple windowing (e.g., linear or cosine ramps). High-performance Eigenvalue Computation via Spectra + MKL: The code leverages the Spectra library’s SymEigsSolver in conjunction with Intel’s Math Kernel Library (MKL), enabling extremely efficient and robust eigenvalue/eigenvector decomposition for large symmetric matrices. The conditional use of MKL (#ifdef EIGEN_USE_MKL_ALL) allows the Eigen library (upon which Spectra depends) to be transparently accelerated when built with Intel’s BLAS/LAPACK backend, thereby vastly improving computational speed and stability for numerical routines—critical when generating Slepian (DPSS) windows and other digital signal processing tasks at high resolution.
software written & organized by 3 different A I z over a few weeks of effort, with many hours of them making mistakes and me helping them, reporting their errors back to them, but running out of tokens, and having to wait until the next day, trying to help them correct all their mistakes... frustrating... but finally getting a working version to test [ Gemini, chatGPT, GROK ]
what is unique about this version of this DPSS CW KB, is its SPEED of its internal calcs/ops... it is able to calculate and create DPSS shape CW edges at near zero latency ... send a file and on the fly, you can adjust any CW setting in the Controls gui...and try and find the best settings for all CW timings that you prefer, when you change any CW value you will hear that change immediately in the audio output from the CW keyboard, and be able to hear the differences as you adjust back and forth between any/all settings... This QRQ speed of operation of the internal coding operation of the C++ software APP is achieved by using the intel MKL software that the C++ file and its qmake.pro complier uses to divert its massive calculation loads over to the INTEL MKL software, and the SPECTRA library, to create this advanced CW EDGE wave shaping formula, it also uses the SPCTRA library from GITHUB, which is used to assist operations as well... Here is the contents of the MorseApp.pro Qmake file... download or view the contents of the video version demos main.cpp here:
https://u.pcloud.link/publink/show?code=XZ7hls5ZD23n2249nchttPdy1qqWdV8BOv0V
UPDATE 9-4-25: new improved version of main.cpp plus PDF on why its better:
https://u.pcloud.link/publink/show?code=XZqaID5ZLgTeQH91QdSQ4TzUVKXbB56hhzVV
https://u.pcloud.link/publink/show?code=XZaaID5Zqew9hCQ5OiV491963ebtFHt84yLy
here is the MorseApp.pro compiler file contents:
*******************************************************
# MorseApp.pro
# This file is used by qmake to build the project.
TEMPLATE = app
CONFIG += console c++17
QT += widgets
TARGET = MorseApp
# The source file for our application.
SOURCES += main.cpp
# Include the Qt Widgets module and the Eigen headers.
INCLUDEPATH += /usr/include/eigen3
INCLUDEPATH += /home/chaseology/cppintelcwkb/spectra-master/include
# Intel MKL and other library linkages
# Define preprocessor macro for Eigen to use MKL.
DEFINES += EIGEN_USE_MKL_ALL
# Link to the MKL run-time library and the JACK library.
LIBS += -ljack
LIBS += -L/opt/intel/oneapi/mkl/latest/lib/intel64 -lmkl_rt
# Embed the MKL library path into the executable to avoid runtime errors.
QMAKE_LFLAGS += -Wl,-rpath,/opt/intel/oneapi/mkl/latest/lib/intel64
*************************************************************************
DPSS (PSWF) are a set of continuous, doubly orthogonal functions that serve as an optimal basis for producing band-limited signals.
Key Property: A DPSS (PSWF) is both time-limited to a specific interval and has its energy maximally concentrated within a given frequency band.
DPSSs are the discrete, or sampled, counterpart of PSWFs. They are also known as Slepian sequences, after the mathematician who developed them.
DPSSs vvare a set of orthonormal, time-limited sequences whose Discrete-Time Fourier Transform (DTFT) has maximal energy concentration in a frequency band.
Key Property: Like PSWFs, DPSSs are doubly concentrated. This means that for a given time duration and frequency band, they capture the most energy possible.
Optimal Waveforms: The energy concentration property makes them ideal for applications like shaping the edges of Morse Code Audio tones, They can be used to optimized waveforms like CW audio tones for communication systems. New QRQ CW Keyboard written in C++ using advanced DPSS PSWF wave functions to shape CW](https://i.ytimg.com/vi/zDhE-Bhpbtc/mqdefault.jpg)


