This help file describes the NMR Tutor workspace panels and the five chart surfaces. It is based on the legacy tutorial text, the NMRTutor8 SwiftUI control names, and the supplied NMR/apodization and shimming references.
Quick Orientation
NMR Tutor shows how a time-domain NMR signal becomes a frequency-domain spectrum.
- The FID, or free induction decay, is the signal collected by the spectrometer.
- The FID is time-based. It is made from overlapping oscillating signals that decay over time.
- The real and imaginary FID channels are the two quadrature detection channels.
- Processing changes the FID before the Fourier transform.
- The Fourier transform converts the time-domain FID into the frequency-domain spectrum.
- Phasing combines the transformed real and imaginary frequency-domain data into the displayed spectrum.
- Shimming demonstrates how magnetic-field inhomogeneity distorts the FID and final spectrum.
On wide screens the workspace shows the controls beside all five charts. On iPhone the app may focus the workflow into compact panels and selectable chart views so the same analysis remains usable on a smaller screen.
External display and mirroring:
- On supported iPhone models, NMR Tutor can use external display output. To mirror to an Apple TV instead, open Control Center > Screen Mirroring : open Control Center , tap Screen Mirroring , then choose the Apple TV.
- On iPad, connect an external display or use Control Center > Screen Mirroring for AirPlay. When iPadOS provides an external display scene, NMR Tutor can show chart-only output on the connected display; when iPadOS mirrors instead, the whole workspace is mirrored.
Suggested Workflow
- Start with Setup Peaks to choose the simulated peaks and optional coupling.
- Use Relaxation & Integration to compare both peaks' T1/T2 values and change relaxation delay (d1).
- Watch the raw FID and final spectrum as decay, peak width, and model-based integrals change.
- Use Apodization, Noise FID, and Mangle FID to apply realistic acquisition and processing effects.
- Use Fourier Transform to zero fill and optionally scale the first point.
- Use Phase Spectrum to correct the frequency-domain spectrum.
- Use Shimming to see how field inhomogeneity changes peak shape.
- Use each chart's reset button to restore that chart's zoom/pan range, or reset all plots from the workspace toolbar.
Panels
Setup Peaks
Use this panel to build the simulated FID before processing.
First Peak Position
Enables and positions the first resonance. The slider range is -0.50...0.50. Moving a peak away from the spectrum center increases the oscillation frequency in the FID. Peaks farther from the carrier frequency oscillate faster in the time-domain charts.
Second Peak Position
Enables and positions the second resonance. The slider range is -0.50...0.50. With both peaks enabled, the FID is the sum of both oscillating decays.
Coupling
Turns on coupling between the two peaks. The slider range is 0.00...50.00. Moving the slider higher increases the apparent splitting and makes the FID and spectrum more complex. At higher values, the two peaks form a stronger coupled AB-style pattern.
What to watch:
- Real FID without processing and Imaginary FID without processing respond immediately to peak position and coupling.
- Spectrum after FID is processed and Fourier transformed shows the corresponding peak positions and coupling pattern.
Relaxation & Integration
This panel demonstrates the central quantitative-NMR lesson: a short d1 can produce wrong integrals. Both simulated peaks have independent relaxation time (T1 = T2) sliders from 0.5...5.0 s. Peak 1 starts at 1.0 s and Peak 2 starts at 3.0 s.
Relaxation delay (d1) ranges from 0...24 s. Acquisition time is fixed at 5.0 s, so repetition time is:
TR = acquisition time + d1
After a fixed 90° pulse, the steady-state recovery for each peak is 1 − exp(−TR/T1). A longer T1 recovers more slowly. In this simplified lesson T1 also equals T2, so increasing a peak's relaxation time makes its FID decay more slowly and its spectrum line narrower.
At the defaults, TR is 5.0 s. Peak 1 recovers to about 0.993, while Peak 2 recovers to about 0.811. Two chemically equal signals therefore appear at about 1.22:1 instead of 1:1. At d1 = 10 s, TR is five times the longest T1 and the ratio is within roughly one percent of the expected value. The 5-second acquisition window reduces visible FID truncation while retaining the existing 4,096 sample points.
The displayed integrals are calculated from the known simulated Peak 1 and Peak 2 components. This model-based calculation remains valid when the displayed lines overlap or coupling is enabled; it does not estimate area from the height or width of the combined spectrum. For an isolated Lorentzian, area can be related to height and full width at half maximum, but that shortcut is not reliable for overlapping lines or a coupled multiplet. Imported FIDs do not have known source components, so this teaching readout is unavailable for them.
This is an educational steady-state model, not research-grade qNMR. Real signals generally have different T1 and T2 values, and coupled-spin relaxation can be more complex than the two component envelopes used here.
Apodization
Use this panel to multiply the FID by window functions before Fourier transformation. Apodization can improve signal-to-noise, reduce truncation artifacts, or trade sensitivity for resolution. The green dashed apodization curve is overlaid on the processed FID charts.
Line broadening
Enables exponential multiplication. The slider range is 0.00...10.00. Larger values damp the end of the FID more strongly. This often improves apparent signal-to-noise and reduces truncation artifacts, but it broadens peaks.
Sinebell
Enables a sinebell window. The slider range is 0.00...2.00. Sinebell weighting emphasizes the middle or later part of the FID and tapers toward zero, which can help with truncation behavior.
Sinebell squared
Enables a squared sinebell window. The slider range is 0.00...2.00. It is a stronger version of the sinebell taper, with more aggressive weighting near the ends.
Gaussian
Enables Gaussian multiplication. The slider range is 0.00...10.00. Gaussian weighting applies a bell-shaped window that can improve apparent resolution in some cases, but it may also change lineshapes or introduce artifacts if pushed too far.
What to watch:
- Real FID after processing and Imaginary FID after processing show both the processed signal and the green apodization curve.
- The final spectrum shows the tradeoff between peak width, peak shape, and signal-to-noise.
Noise FID
Use this panel to add realistic random noise and explore signal averaging.
Add noise to FID
Enables noise in the processed FID. The slider range is 0.00...4.00. Larger values add more random variation to both FID channels.
Number of scans
Controls signal averaging. The slider range is 1...16 scans. Increasing the number of scans increases signal relative to noise, but the improvement follows the square root of the number of scans. In practice, doubling signal-to-noise requires roughly four times as many scans.
Spectrum SNR Reports the tallest peak in the final spectrum relative to noise measured in an automatically selected clear baseline region. The readout appears in the top-left of the spectrum plot whenever a reliable measurement is available. It updates live while a Noise, Number of Scans, Apodization, Mangle FID, or Shimming slider moves and is remeasured after other spectrum changes settle; it is hidden when noise is off or no reliable measurement is available.
What to watch:
- Noise is easiest to see in the processed FID charts.
- In the final spectrum, noise appears as baseline roughness and reduced confidence in small peaks.
Mangle FID
Use this panel to demonstrate common acquisition or receiver problems that produce artifacts in the spectrum.
Offset Real FID vertically
Adds a vertical offset to the real FID channel. The slider range is 0.00...1.00. An offset can create baseline artifacts after transformation.
Scale Real FID vertically
Scales the real FID channel. The slider range is 0.00...2.00. Scaling only the real channel simulates channel imbalance and can create spectral artifacts that phasing alone cannot fix.
Delay first point
Simulates a small acquisition delay before the first sampled point, which mainly affects phase. The slider range is 0.00...1.00. This behaves like a fractional-point or dwell-time-related delay in the acquired FID.
Gain overload
Clips overloaded FID values. The slider range is 0.00...1.00. Larger values lower the clipping threshold. The current implementation clips both channels using a limit derived from the maximum absolute value of the real channel.
What to watch:
- The processed FID charts show the direct damage.
- The spectrum shows artifacts caused by channel imbalance, offset, clipping, and delayed acquisition.
Fourier Transform
Use this panel to control the final conversion from time domain to frequency domain.
Correct baseline and drift For an imported raw FID, NMR Tutor conservatively centers the tail of a decayed complex FID, then fits a smooth sign-independent spectral baseline and shifts it to zero. Raw FID data stay unchanged, and uncertain corrections are skipped. Turn this off to see the uncorrected processing path.
Use detected delay Some Bruker and JEOL FIDs include a receiver delay. NMR Tutor normally corrects it automatically before processing, while leaving the Raw FID unchanged. Files marked as already corrected are left alone. Turn off Use detected delay to adjust the correction manually.
Zero fill
When enabled, the app appends an equal number of zeroes to the FID before Fourier transformation. This increases digital interpolation in the frequency-domain spectrum. Zero filling does not create new measured data, but it gives a smoother-looking spectrum and better visual placement of peaks between original data points.
Scale first point
When enabled, the first FID point is multiplied by 0.5 before transformation. This can lower the spectrum baseline.
What to watch:
- Zero fill increases the number of points used for the transformed spectrum.
- Scale first point mostly affects baseline behavior in the final spectrum.
Phase Spectrum
Use this panel to correct how the transformed real and imaginary frequency-domain data combine into the displayed real spectrum.
Zero order
Rotates the entire spectrum by the same amount. The slider range is approximately -pi...pi (-3.14...3.14).
First order
Changes phase linearly across the spectrum. The slider range is approximately -pi...pi (-3.14...3.14).
Pivot point
Sets the point where the first-order phase contribution is zero. The slider range is 0...100 percent across the spectrum. The pivot can also be changed by dragging the yellow diamond marker on the spectrum chart. A common teaching strategy is to pivot on the tallest peak or on the right side of the spectrum.
What to watch:
- The spectrum should become more absorptive and less dispersive as phase is corrected.
- Zero-order changes should affect the spectrum broadly.
- First-order changes should rotate the spectrum around the pivot point.
Shimming
Use this panel to demonstrate magnetic-field inhomogeneity through the sample.
Enable shimming
Turns the shim simulation on and off.
Z1 through Z6
Adjust vertical shim terms through the NMR tube. Each slider range is -1024...1024. These are the axial Z shims only; transverse shims are not calculated in this workspace.
Reset zeroes
Sets all shim terms back to zero.
What to watch:
- Bad shims distort the FID and produce misshapen, broadened, or split peaks in the spectrum.
- The final spectrum is usually the clearest place to see shim quality, but the FID can also show modulation and decay changes.
- In real NMR work, shims are usually adjusted before acquisition, either manually or with automatic shimming.
Charts
Real FID without processing
This chart shows the raw real time-domain FID generated from the active peaks. It is the first quadrature channel before noise, mangle controls, apodization, shimming, or Fourier transformation.
Use it to see:
- how peak position changes FID frequency;
- how each peak's T2 changes its decay envelope;
- how coupling changes the waveform complexity;
- how the real channel differs from the imaginary channel.
Imaginary FID without processing
This chart shows the raw imaginary time-domain FID. Together with the real FID, it represents quadrature detection.
Use it to see:
- the second detection channel before processing;
- phase relationship between real and imaginary channels;
- how both channels carry information that becomes the spectrum.
Real FID after processing
This chart shows the real FID after the processing pipeline. Depending on the active controls, it can include scan scaling, shimming, real-channel scaling, real-channel offset, noise, gain clipping, first-point delay, first-point scaling, and apodization.
The dashed green line is the apodization function. If no apodization is active, it stays flat.
Use it to see:
- how processing changes the real time-domain data before transformation;
- whether offset, scaling, clipping, or noise has damaged the FID;
- how apodization weights early and late points.
Imaginary FID after processing
This chart shows the imaginary FID after the processing pipeline. It uses the same acquisition and apodization operations as the processed real chart, except controls that explicitly affect only the real channel do not directly scale or offset the imaginary channel.
Use it to see:
- how noise, gain clipping, shimming, delay, and apodization affect the imaginary channel;
- how mismatches between real and imaginary channels can become spectral artifacts.
Spectrum after FID is processed and Fourier transformed
This chart shows the final frequency-domain spectrum. It is calculated by Fourier transforming the processed real and imaginary FID channels, then applying phase correction to display the real spectrum.
When you open a processed JCAMP-DX spectrum, its real values are displayed directly. The app does not inverse Fourier transform it to invent an FID, and apodization, Fourier-transform, and phase controls are hidden because those steps have already been performed. An imported imaginary component is retained with the dataset but is not displayed.
The yellow diamond marks the phase pivot point. Drag it horizontally to change the pivot.
Use it to see:
- peak position and width;
- coupling patterns;
- signal-to-noise changes;
- truncation and apodization effects;
- baseline effects from first-point scaling or FID offset;
- artifacts from gain overload, delayed acquisition, channel imbalance, and bad shims;
- zero-order and first-order phase correction.
Chart Interaction
Each chart supports:
- panning by dragging in the plot area;
- pinch zooming where the platform supports it;
- a reset-scale button for that individual chart;
- graph audio playback where available;
- accessibility labels summarizing the visible data range.
The final spectrum additionally supports dragging the yellow phase pivot marker.
Use the expand button in the spectrum header to open a spectrum-only workspace, then use the close button to return. Simulated data keeps every control panel available in the overlay; Bruker, Varian, and JEOL JDF FIDs keep the Apodization, Fourier Transform, and Phase Spectrum panels. Their ppm scale is approximate and unreferenced: it uses the recorded spectral width and observe frequency, with 0 ppm at the right edge.
Practical Experiments
Peak width and decay
- Turn on one peak.
- In Relaxation & Integration, move that peak's relaxation time (T1 = T2) lower and higher.
- Compare the FID length with the final peak width.
Shorter FIDs produce broader peaks. Longer FIDs produce sharper peaks.
Zero filling
- Turn Zero fill off.
- Observe the final spectrum point spacing.
- Turn Zero fill on.
The spectrum becomes more smoothly interpolated, but the underlying measured information has not increased.
Signal averaging
- Enable Add noise to FID.
- Increase the noise level.
- Increase Number of scans.
Noise decreases slowly relative to scan count because signal-to-noise improves with the square root of the number of scans.
Apodization tradeoff
- Enable Line broadening.
- Increase the slider.
- Watch the processed FID shorten and the final spectrum broaden.
Line broadening can improve signal-to-noise and reduce truncation artifacts, but it costs resolution.
Phase correction
- Use the final spectrum.
- Drag the yellow pivot marker to a peak or to the right side of the spectrum.
- Adjust Zero order and First order until the displayed peaks look absorptive.
Shimming
- Enable Shimming.
- Move one
Zshim at a time. - Watch the final spectrum distort.
- Use Reset zeroes to return to an ideal field.
Glossary
Apodization
A mathematical window applied to the FID before Fourier transformation.
FID
Free induction decay, the time-domain signal collected in an NMR experiment.
Fourier transform
The operation that converts the time-domain FID into a frequency-domain spectrum.
Line broadening
Exponential apodization that damps the FID and broadens peaks.
Phase correction
The process of combining transformed real and imaginary data so peaks appear in the desired absorptive shape.
Quadrature detection
Detection using real and imaginary channels.
Shimming
Adjusting magnetic-field correction coils so the field is homogeneous through the sample.
Zero filling
Appending zero-valued points to the FID before Fourier transformation to improve digital interpolation in the spectrum.
Advanced Notes
These details are useful for technical review, but should not be the first explanation shown to most users.
- The Coupling slider is displayed as
0...50. Internally, the simulator divides the displayed slider value by50before applying coupling, so the internal coupling value spans0.0...1.0. - The help uses standard NMR terminology for phase: zero-order phase is the constant rotation, first-order phase is the linear phase term, and the pivot is where first-order phase contribution is zero.