Signal Generator#
The Signal Generator builds a synthetic signal or spectrum from a formula, a list of decaying components, a multiplet description, a spin system or a molecular structure. You can look at the result, load it as the current scan, or overlay it on real data. Nothing is acquired from an instrument.
Opening it#
Click Generator in the status bar (right side), or press Ctrl+Shift+G (Cmd+Shift+G on macOS). The same command toggles it closed; Escape closes it too. It opens in its own window titled Signal Generator. Controls sit on the left and the preview on the right; in a narrow window the preview moves below the controls.
Modes#
| Tab | What you describe |
|---|---|
| Formula | An expression in t, for example sin(2*pi*50*t) * exp(-t/0.1). Available: sin, cos, exp, sqrt, pi. Named Constants can be added. |
| FID | A list of FID Components, each with a Frequency, Amplitude, decay (Decay (T2*)) and Phase. An optional Reference Frequency allows shifts in ppm. |
| Multiplet | A Center Frequency or one or more Chemical Shifts, Coupling Constants (J), Linewidth (HWHM) and a Frequency Range with Resolution. Each shift gets its own multiplet with the same couplings. |
| Spin system | Spins with shift, nucleus and equivalent-nucleus count, plus a J-coupling matrix (Hz). See below. |
| Predict | A structure entered as SMILES or drawn with Draw Structure. Shows a Predicted Signals table (atom, shift, pattern, J, nH). Only present in builds that include the prediction models. |
Shared settings#
Formula and FID modes also have a Time Axis section (Duration, Sampling Rate). All modes except spin system add two optional sections, each with its own switch:
- Noise: a target SNR, and a Type (Gaussian, Pink, Thermal by default; Advanced Settings lists twelve types such as Uniform, Spike and Baseline Drift, some with extra parameters).
- Phase Correction: Zero-order (p0) and First-order (p1) with a Linear or Exponential method, to produce a spectrum with phase errors.
Spin system#
The spin-system tab simulates a full quantum-mechanical spectrum from chemical shifts and J couplings, including strongly coupled systems. The preview updates a moment after each edit; there is no Generate Preview button on this tab.
- Start from Examples: AB pair, Ethyl group or ABX.
- Equivalent nuclei are entered as one spin with a count (a CH3 is 3). The limit is 12 nuclei in total; beyond it the tab reports an error instead of simulating.
- Second-order character shows J / delta-nu for each coupling and labels it First order, Roofing, Strong or Collapsed.
- Acquisition sets Spectrometer frequency (MHz), Observed nucleus, Linewidth (Hz), Line shape (Lorentzian or Gaussian), Spectrum points and the ppm range. The Transitions list shows each line.
From structure#
From structure fills the table from the structure of the loaded scan's sample (or the structure set on the Predict tab): predicted proton shifts and couplings, grouped by molecular symmetry.
- Protons that are chemically and magnetically equivalent share one row with a count (a CH3 is one row of 3). Chemically equivalent protons that are not magnetically equivalent, such as the A and A' of an AA'BB' ring, stay as separate rows with one shared shift, and symmetry-related couplings share one value in a fit.
- Use my assignments replaces predicted shifts with the assigned shifts of the current scan, and predicted couplings with the measured couplings of the assigned multiplets. Predictions fill whatever is not assigned.
- Include OH and NH adds protons on O, N and S, which are left out by default.
- The simulator takes at most 12 nuclei. For a molecule with more protons, the tab lists the coupled groups with their shift range; choosing one builds the system for that group. If the chosen group is itself larger than the limit, the protons with the weakest coupling to the chosen atoms are left out and the number omitted is shown.
Couplings below 1 Hz do not join two groups. Couplings are estimates (vicinal from a Karplus relation, geminal and long-range aromatic from typical values); they are a starting point for a fit, not a result.
Fit to spectrum#
Fit to spectrum adjusts the shifts and couplings of the table, the linewidth, an intensity scale and a linear baseline until the simulated lines match the loaded scan over a ppm range. The range starts as the plot's current window; Use plot view resets it.
- Each shift and coupling has a Lock box; locked values stay. Spins whose shift lies outside the range keep their shift. A coupling entered as 0 is treated as absent and is not fitted. Tied (symmetry-related) values are fitted as one.
- Couplings keep the sign they start with.
- A start from a prediction is first slid onto the data, and shifts and couplings are held near their predicted values, so the fit cannot swap spins. A fit started from the values you typed or from a previous fit is not restricted this way.
- The fit runs in the backend with a progress bar and a Cancel button. After 60 seconds it stops and keeps the best values found. Nothing else is changed while it runs.
- The result is written back to the table, so the preview and Overlay show it. The table lists each shift and coupling with its standard error. R squared and Residual RMS describe the fit over the range. A note marks a value on its limit, a coupling whose sign the spectrum cannot determine, and a search that did not converge.
Uncertainties come from the local curvature of the fit and do not include a wrong start basin. A broad line or a poor phase raises the residual and can leave small couplings undetermined (their standard error is then larger than the value).
Apply to multiplet#
Apply to multiplet writes the fitted system to a multiplet of the plotted scan that lies in the fit range (a list appears when there are several). The couplings are set as the multiplet's J values, and the system name (for example ABX), the spin shifts and the coupling names are set as the multiplet's spin system. The two edits are one batch, so one undo reverts both. A later manual change of the multiplet's pattern replaces the applied system.
Applying also stores the fit with the scan as a spin system record: the range, every parameter with its uncertainty, R squared and the residual, in the same record type as a line fit. A fit of the same range replaces the earlier record.
Using the output#
Generate Preview runs the current tab and draws a time-domain Signal and a frequency-domain Spectrum (the Predict tab shows the spectrum first). Two buttons act on the preview:
- Load as Current turns it into a new unsaved scan and plots it. It is disabled until a preview exists. If the current scan has unsaved work you are asked first.
- Overlay generates a fresh preview, scales it to the amplitude of the current data and draws it on top, labelled "(overlay)". It is meant for comparing a model against a measurement.
Preview traces are marked preview-only and are not saved with the project until you load them.
Note
Changing tabs clears the current preview.
With Teaching features on, the FID ↔ spectrum lab on the Learn page works on the FID you last generated here.