Skip to content

Interactive 2D wave optics simulator. Turn any image into a refractive scene, add sources, watch waves refract, diffract and interfere. Probes, intensity maps, video export.

C#

Engine library, decoupled live preview, embedded colour schemes

Alexander Graef0f9fd9d0a61c
diff --git a/CLAUDE.md b/CLAUDE.md
index cd964e6..041c442 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -1,6 +1,6 @@
# Wave Dude 2D — project notes for Claude
-Last updated 2026-10-07. Update this file when the facts below change.
+Last updated 2026-10-09. Update this file when the facts below change.
## What this is
@@ -20,22 +20,65 @@ that build). Treat it as the authority for intent, comments and constant names;
| project | what | state |
|---|---|---|
| `Wave_Dude_2D/` | the original WinForms app, **.NET Framework 4.6.1**, legacy csproj, namespace `_2D_wave_sim_V01` | all the real code; builds and runs; **reference implementation, not the future** |
-| `WaveDude/` | SDK class library, `net10.0`, nullable + implicit usings | empty; intended home for the UI-independent engine/model code |
-| `WaveDude.WPF/` | SDK WPF app, `net10.0-windows`, references `WaveDude` | **the replacement UI**; layout shell only, builds clean (0 warnings) |
+| `WaveDude/` | SDK class library, `net10.0`, nullable + implicit usings; packages NLog and `System.Numerics.Tensors` (Microsoft, MIT: vectorised float↔Half) | the model (`Model/`), the engines (`Engine/`), probes, rendering, the run driver and frame store (`Runs/`); see "Architecture (WaveDude library)" |
+| `WaveDude.WPF/` | SDK WPF app, `net10.0-windows`, references `WaveDude` | **the replacement UI**; docking shell, editors, preview with live simulation; builds clean (0 warnings) |
WPF shell as it stands:
-- `MainWindow` = menu + `AvalonDock.DockingManager` (Project tree pane left, Preview document
- centre, Properties pane right) + status bar. Panes drag/dock/float/auto-hide; nothing is wired to
- data yet. `App.OnStartup` applies the theme before creating the window.
-- Docking: `Dirkster.AvalonDock` 4.74.1 + `Dirkster.AvalonDock.Themes.VS2013` (MIT).
-- Theming: WPF built-in Fluent theme via `Application.ThemeMode` (experimental API; `WPF0001`
- suppressed in the csproj). `Theming/ThemeController` switches System/Light/Dark, sets the matching
- `Vs2013Dark/LightTheme` on the docking manager (it does not follow Fluent on its own) and darkens
- the native title bar via DWM because WPF only does that on Windows 11. View > Theme drives it; the
- choice is not persisted yet. **Every window that hosts a `DockingManager` must subscribe to
- `ThemeController.Changed`** and re-read `CreateDockTheme()`.
-- Preview document: `Panes/PreviewPane` (dummy, 2026-10-08). Two placeholder pictures (field,
- intensity) side by side or stacked (`Orientation`), each centred in its cell, with a `GridSplitter`
+- `MainWindow` = menu + the in-house `Docking/DockHost` (Project tree pane left, Preview document
+ centre, Properties pane right, Messages pane bottom, hidden by default) + status bar. The window
+ is its own `DataContext` and owns `Project`, `Filename`, `SelectedItem` and the current `Run`
+ (`MainWindow.Simulation.cs`); panes get them through dependency-property bindings. The dock
+ layout and window placement persist in `Properties/Settings`; a first start gets
+ `MainWindow.DefaultLayout()` (agreed 2026-10-09): a left column of a quarter of the width with the
+ Project tree in its upper third and Properties below, the preview in the rest, Messages hidden;
+ the preview starts stacked (`PreviewOrientation` default Vertical). No third-party packages but NLog.
+- Theming: own `Themes/Dark.xaml` / `Light.xaml` dictionaries swapped by `Theming/ThemeController`
+ (persisted in settings); the native title bar is darkened via DWM. Use `DynamicResource` for every
+ theme brush.
+- Logging: NLog; `Info` and up reach the status bar (`Logging/StatusBarTarget`, Warn/Error coloured),
+ everything reaches the Messages pane and the log file next to the exe (Debug builds).
+- **Simulation** (2026-10-09): menu Simulation > Run (F5), Pause/Resume (F6), Stop (Shift+F5, also
+ Esc). `OnRun` decodes the scene image (`Rendering/SceneImageLoader`, WPF decoders → BGRA bytes),
+ snapshots the project into a `RunSpec`, checks the cache drive, creates the `FrameStore` and
+ starts a `SimulationRun` posting to the dispatcher's `SynchronizationContext`; the right status
+ bar item shows `State: done / total steps, engine` (`RunStatusConverter`, AutomationId
+ `StatusRun`). The project stays editable during a run; the run uses its snapshot. New/Open/Close
+ and closing the window discard the run and delete its cache file.
+- **Live editing** (`MainWindow.Live.cs`, 2026-10-09): a `ProjectWatcher` reports every model
+ change; a simulation-affecting one (`ProjectChange.AffectsSimulation`: scene, solver, seed,
+ sources; not display or probes) marks the run **stale** (`IsRunStale`: status text gets
+ ", edited since", the timeline's available shading turns grey), asks the `ScratchRunner` for the
+ frame the preview shows (debounced 120 ms, also on scrubbing while stale or without a run) and,
+ with the persisted setting **Simulation > Re-run automatically after edits** (`AutoRerun`, default
+ on), redoes the stored run after 1.5 s of quiet. An automatic run (`SimulationRun.IsAutomatic`)
+ never moves the preview: the position stays (the reachable end of the axis stays the planned run
+ while it fills, so nothing coerces it), Live is switched off whatever the button said, and the
+ scratch frame stays on screen until the store has that frame. An edit during an automatic run
+ stops it at once (its snapshot is obsolete) and the quiet period starts a fresh one; a run the
+ user started keeps going and is just marked stale. Discarding a run keeps the position too.
+ **Play means "show me the simulation"**: Play/Space issues `SimulationCommands.EnsureRun`, which
+ starts an automatic run when there is none or it is stale (position kept, Live off, playback not
+ interrupted); while the run has not reached the playhead, playback holds at the newest frame
+ (no loop, no stop) and frames that do not exist yet show black, then it goes on at the chosen
+ speed. Skipping to a position first and then pressing Play works the same way (2026-10-09).
+ Nothing is requested while a run is active; when it ends and edits happened meanwhile, both are
+ scheduled again (agreed 2026-10-09 after the replay-to-position behaviour read as live-follow).
+ Scratch frames are requested whenever the store cannot show the position (no run, a stale run, or
+ a run that has not got there yet), also while a stored run is active: the runner has its own
+ engine, and holding it back made scrubbing during a run show black for seconds (2026-10-09).
+ Opening a project requests frame 0 right away so the engine (an OpenCL compile) is built before
+ the first click. While a scratch frame computes, an active automatic run is paused (on the CPU the
+ run would otherwise take every core and the frame never arrives) and resumed when it is there; an
+ automatic run is not started while a scratch frame computes. **A picture changes only when a frame
+ for the position itself arrives** (scratch or stored); with nothing for it yet the last picture
+ stays. Showing the run's newest frame meanwhile was tried twice and rejected both times: it reads
+ as a replay from frame 0 (2026-10-10). A skipped scratch frame (predicted cost over
+ `ScratchRunner.Budget`, 6 s) is said in the status bar once per frame.
+- Preview document: `Panes/PreviewPane`. Two pictures (field,
+ intensity) side by side or stacked (`Orientation`, persisted as the `PreviewOrientation` user
+ setting), each centred in its cell with its label laid out by `Controls/PictureFrame` (label above
+ the picture, or rotated 90° on its left when the cell is wider than the picture's aspect ratio, so
+ the label never eats the picture's room), with a `GridSplitter`
between them (one 3×3 grid; the unused dimension is spanned, so each orientation keeps its own
ratio; Enter or double-click resets to half). Below them the time axis, `Controls/TimelineBar`
(2026-10-09, custom `OnRender`: tick labels, playhead with frame number, in/out range as a band
@@ -43,14 +86,42 @@ WPF shell as it stands:
`MediaCommands.Play/Pause` (Space toggles), `Commands/PreviewCommands` (step `,` `.`, Home/End to
the in/out points, `I`/`O` set them, `X` clears, `L` loops; letters are `KeyBinding`s on the pane
because `KeyGesture` rejects unmodified letters, and `CanTransport` refuses them inside text
- boxes), a frame and step readout, `FrameCount` bound to `Simulation.Steps`/`VisualizeEvery` via
+ boxes; the pane's `OnKeyDown` marks those letters handled even when the command cannot run,
+ otherwise WPF takes an unhandled letter as a menu mnemonic, opens the File menu and activates the
+ window, which the harness caught as "the app took the foreground"), a frame and step readout, `FrameCount` bound to `Simulation.Steps`/`VisualizeEvery` via
`FrameCountConverter`, and an editable speed combo
(`SpeedPresets` 0.25…4, any value typed; `DoubleTextConverter` ignores text that does not parse
yet, otherwise every keystroke logs a binding error to the status bar). Numbers follow the Windows
locale everywhere: `App.OnStartup` overrides `FrameworkElement.Language` with the current culture
(WPF defaults to en-US), so the preset list and the typed text both say `0,25` on a de-DE machine. Playback is a
- `DispatcherTimer` moving `Position` at `BaseFrameRate` × `Speed`; nothing renders yet. The render
- pipeline will set `FieldImage` / `IntensityImage`. `Editors.xaml` gained the editable-combo text
+ `DispatcherTimer` moving `Position` at `Fps` × `Speed`, where `Fps` is the project's
+ `Display.Video.Fps` (speed 1 plays as the export would). The pictures come from the `Run`'s
+ `FrameStore` through `Rendering/FramePresenter` (thread-pool colouring with `FrameRenderer`, only
+ the newest requested frame is rendered, `WriteableBitmap.WritePixels` on the UI thread); the
+ palette, brightness, black level and visibility of each picture follow `Display.Field` /
+ `Display.Intensity` (`ColorSchemeCatalog` caches the LUTs), so a finished run can be re-coloured.
+ While a run is in progress the timeline axis is the planned run (`PlannedLastFrame`), the frames
+ that exist are shaded (`TimelineBar.Available`) and `LastFrame` is the newest one; **`IsLive`**
+ follows it until the user scrubs, steps or plays, and the Live toggle (`F`, AutomationId
+ `PreviewLive`) re-attaches. Live only exists while a run is in progress: the button is disabled
+ otherwise and switches itself off when the run ends (2026-10-09, after it "did not know what to
+ do" on a finished run). For an automatic re-run the reachable end of the axis is always the
+ planned run, filling or cancelled, so the position is never pulled back, and a position without
+ a stored frame shows black (or the scratch frame) rather than some other frame. Playback ends at `min(OutPoint, LastFrame)`. Without a run the
+ pictures are **black frames of the canvas size** (`CanvasWidth`/`CanvasHeight`: the run's size,
+ else `Scene.Width/Height`; a scene image's size is only known once it ran). Over each picture a
+ `Controls/SceneOverlay` draws the project's sources and probes as draggable handles
+ (`Controls/MarkerThumb`, a focusable `Thumb`, 20 px: ring = source, square = probe point, both with
+ four crosshair ticks outside and a gap around the exact pixel; a line probe gets two handles and
+ a dashed line, a composite source its emitter dots, every item its name). Every stroke, dot, line
+ and label is drawn over a dark halo first (`HaloThickness`), so the handles read on any picture
+ and colour scheme (agreed 2026-10-09 after thin white rings vanished on the intensity picture).
+ Dragging writes `Source.X/Y`, `Probe.AX/AY/BX/BY` in canvas pixels; the arrow keys move the
+ focused handle by one pixel (ten with Shift); grabbing or focusing a handle selects the item
+ (`PreviewPane.SelectedItem` ↔ `MainWindow.SelectedItem` ↔ the Project tree, both ways). Handles
+ carry AutomationIds `Source:<name>`, `Probe:<name>:A|B`. The overlay is styled explicitly where it
+ is placed: WPF applies implicit styles inside a control template only to `Control`s, and the
+ overlay is a `Panel` (its handles came out as bare default thumbs until then). `Editors.xaml` gained the editable-combo text
box, a `Slider` style and keyboard-focus visuals for combo and slider. An open combo list sits
on the combo's own background (`ComboBoxListBackground`, not the darker menu popup colour) and
the highlighted item is the accent with white text (`ComboBoxItemHover*`), like a tree
@@ -65,8 +136,10 @@ WPF shell as it stands:
the model: explicit `TabIndex` order, the radio group is one tab stop (`IsTabStop` bound to
`IsChecked`, arrows handled in code because WPF's directional navigation skips non-tab-stops),
Play/Pause hand focus to each other when they get disabled, `AutomationProperties.AutomationId`
- on everything a harness needs. Toolbar buttons in `ProjectTree`/`MessagesPane` are still
- `Focusable=False` (reachable only through menus/shortcuts), not yet brought in line.
+ on everything a harness needs. Every shortcut a harness must press needs an **unmodified** key
+ (posted messages cannot carry Shift/Ctrl/Alt), which is why Stop also has Esc. Toolbar buttons
+ in `ProjectTree`/`MessagesPane` are still `Focusable=False` (reachable only through
+ menus/shortcuts), not yet brought in line.
- File type: `FileAssociation.Register` (called from `App.OnStartup`) registers `.wdproj` → ProgId
`WaveDude.Project` → `"exe" "%1"` under HKCR when elevated, else HKCU\Software\Classes (same order
as DTCODataSimulator), idempotently; a double-click arrives as `e.Args[0]` and goes to
@@ -80,9 +153,12 @@ below). Baseline commit `1266f10` is the first compiling, cleaned, documented st
after it (AVI fix, style pass, engine refactor, WPF shell) is uncommitted at the time of writing.
Repo root also holds runtime data that is tracked on purpose: `ColorSchemeList/` (the shipped colour
-schemes, `*.json`) and `Project/` (a sample project root). `.vs/`, `bin/`, `obj/` are ignored.
+schemes, `*.json`; **embedded into `WaveDude.dll`** as resources `ColorSchemes/<file>` by the library's
+csproj, loaded by `ColorSchemeStore.LoadBuiltIn`; the user's own schemes come from
+`%LOCALAPPDATA%\WaveDude\ColorSchemes` and shadow built-ins of the same name; agreed 2026-10-10, no
+external files) and `Project/` (a sample project root). `.vs/`, `bin/`, `obj/` are ignored.
-No automated tests in the solution; two standalone harnesses exist under `_tools/` (see Verification).
+No automated tests in the solution; standalone harnesses exist under `_tools/` (see Verification).
## Build
@@ -91,7 +167,10 @@ No automated tests in the solution; two standalone harnesses exist under `_tools
```
"C:\Program Files\Microsoft Visual Studio\18\Community\MSBuild\Current\Bin\MSBuild.exe" Wave_Dude_2D.sln -restore -p:Configuration=Debug -v:minimal -nologo -m
```
-- WPF + library only: `dotnet build WaveDude.WPF/WaveDude.WPF.csproj`.
+- WPF + library only: `dotnet build WaveDude.WPF/WaveDude.WPF.csproj` (the UI harnesses run the Debug exe).
+- Publish: `dotnet publish WaveDude.WPF/WaveDude.WPF.csproj -p:PublishProfile=SingleFile` →
+ `WaveDude.WPF/bin/Publish/`: one framework-dependent win-x64 `WaveDude.WPF.exe`, nothing else needed.
+ The profile takes the framework from the project.
- Expected result: 0 errors; 6 warnings in `Wave_Dude_2D` that are known and harmless
(`components` never assigned in the four generated Designer files, unused `Form1._hasRun`, one
sign-extension in `MfVideoWriter`). `DocumentationFile` is on, so malformed `///` XML or a wrong
@@ -105,8 +184,24 @@ No automated tests in the solution; two standalone harnesses exist under `_tools
## Verification harnesses (`_tools/`)
-Run these after touching the code they cover; both are console programs compiled with `csc` against
-the project sources (same reference list as above, `-target:exe`, `-nowarn:...,1591`).
+Run these after touching the code they cover.
+
+- `_tools/library_check/` — an SDK console project (not in the `.sln`) referencing `WaveDude.csproj`:
+ `dotnet run --project _tools/library_check -c Release`. 70+ checks over the library: scene from BGRA
+ bytes; CPU vs GPU field, intensity, point samples and line profiles within 1e-3 (actual ~1e-7) for
+ both stencils, probe re-install, `SetProbes(null)`, double dispose, the factory fallback; seed
+ determinism (same project seed → bit-identical field, different seed → different, **CPU = GPU on
+ randomized gaps**); `Emitter.FromSource` mapping; `FrameStore` round trip in `%TEMP%` (zero-copy
+ and copying reads, ordering, capacity, deletion); `FrameRenderer` index mapping; every shipped
+ colour scheme loads and `Save` reproduces the file; a headless `SimulationRun` (CPU, Completed,
+ frames and probe trace counted) and a GPU run paused, resumed and stopped; a 1 GB full-HD store
+ must dispose in under 1.5 s (no flush); `CaptureFrame`/`AwaitFrame` (deferred, both planes),
+ `Reset` reproducing a run and `SetEmitters` matching a fresh engine, on both engines. Prints
+ `skip GPU: …` when no OpenCL device works. `dotnet run --project _tools/library_check -c Release
+ -- bench [w h]` prints the per-step cost table above for this machine.
+
+The two legacy harnesses are console programs compiled with `csc` against the `Wave_Dude_2D` sources
+(same reference list as above, `-target:exe`, `-nowarn:...,1591`):
- `_tools/engine_check/Program.cs` — add `-main:EngineCheck.Program` and all `Wave_Dude_2D` sources.
Runs `WaveSimulator` and `GpuWaveSimulator` over one scene (image source, continuous / Gaussian-pulsed /
@@ -117,28 +212,142 @@ the project sources (same reference list as above, `-target:exe`, `-nowarn:...,1
- `_tools/avi_check/Program.cs` — compile with `AviMjpegWriter.cs` only. Writes a 3-frame MJPEG AVI and
walks the RIFF tree (44 structural checks: header offsets, strh dwQuality = -1, movi size, idx1 offsets, EOF).
-- `_tools/ui_check/PreviewCheck.ps1` drives the WPF preview pane end to end (39 checks: play/pause,
- speed incl. locale spelling, timeline keys, frame steps, in/out/loop, split radios, splitter, tab
- order, focus hand-off, foreground untouched).
- Run `powershell -ExecutionPolicy Bypass -File _tools/ui_check/PreviewCheck.ps1` (`-Trace` adds
+- `_tools/ui_check/PreviewCheck.ps1` drives the WPF preview pane end to end on the default project
+ (41 checks: play/pause at the 60 fps clock, speed incl. locale spelling, timeline keys, frame
+ steps, in/out/loop, split radios, splitter, tab order, focus hand-off, foreground untouched).
+ `_tools/ui_check/RunCheck.ps1` runs simulations (26 checks): `tiny.wdproj` (64×48, 200 steps) with
+ F5 to completion, live follow, `,` detaching, the field picture differing between frames (MD5 of
+ a `PrintWindow` crop), `F` re-attaching, playback of the stored frames, a second run, the source
+ handle sitting at the source's canvas position on both pictures and moving with the arrow keys
+ while the tree selection follows, a scratch frame replacing the black canvas after an edit with
+ no run, and after the run: an edit marks it stale, the shown frame is recomputed from scratch,
+ the automatic re-run completes with the position kept and reproduces the original picture; then
+ `tiny_long.wdproj` (2 000 000 steps, a frame every 1000) for F6 pause/resume and Esc stop with the
+ partial frames kept, then an edit starting an automatic re-run that leaves the position and Live
+ alone, and a second edit stopping it at once before a fresh one starts. Both dot-source `Common.ps1` (native helpers, lookups, `Start-App`/`Stop-App`,
+ `CanvasPoint` for the picture's uniform mapping, `TreeItemSelected`). The split orientation is a
+ persisted user setting, so a harness must set the layout it expects instead of assuming it.
+ Run `powershell -ExecutionPolicy Bypass -File _tools/ui_check/<script>.ps1` (`-Trace` adds
foreground/focus per line); exit code = failures. **How UI harnesses must work here**: the user may
be using the machine, so no mouse, no `SendKeys`, no `SetForegroundWindow`. Post `WM_KEYDOWN`/
`WM_CHAR` to the app's HWND (WPF processes them while inactive) and read state back through
`System.Windows.Automation` properties. Do **not** call UIA *patterns* (`Invoke`, `SetValue`,
- `Select`, `SetFocus`): on this app each one focuses its target and activates the window.
+ `Select`, `SetFocus`): on this app each one focuses its target and activates the window. Modifier
+ keys cannot be posted (WPF reads them from the real keyboard state), so only unmodified shortcuts
+ are testable.
`_tools/ui_check/ComboListShot.ps1` opens the speed combo by keyboard and screenshots the list
(the popup has no HWND in UIA, so its screen rectangle is copied), for judging list colours.
`PrintWindow(…, PW_RENDERFULLCONTENT)` captures the inactive window. UIA lookups can miss while
the UI thread is busy, so `Find` retries; the harness parks the foreground on its own off-screen
form (minimise the app, activate the form, show the app without activation). The older scripts in the
folder (`MessagesCheck`, `ProjectTreeCheck`, `StatusBar*Check`) predate this rule and still use
- patterns/mouse; rewrite them the same way when they are next needed.
+ patterns/mouse; rewrite them on `Common.ps1` when they are next needed.
Other files in `_tools/` are one-off scripts from the clean-up (`replace_method.py`, `fix_semantic.py`,
`split_form1.py`, `modernize.py`) and the agent guides (`CLEANUP_GUIDE.md`, `DOC_GUIDE.md`). They are
history, not build inputs. `field_usage.py <Class> …` is still useful: it lists every private
field/const of a class with the methods that use it, flagging single-method ones.
+## Architecture (WaveDude library, 2026-10-09)
+
+```
+Project (Model/, UI thread) --RunSpec.Create--> RunSpec (immutable snapshot: EngineOptions, Emitters, ProbeSpecs, ScenePixels)
+MainWindow.OnRun: FrameCache.CheckSpace -> FrameStore.Create -> new SimulationRun(spec, store, SynchronizationContext).Start()
+SimulationRun (Task.Run worker; ManualResetEventSlim pause gate, CancellationTokenSource stop)
+ |- SceneData.FromBgra / Empty -> WaveEngineFactory.Create -> IWaveEngine (WaveSimulator CPU | GpuWaveSimulator OpenCL)
+ |- per step: AdvanceOneStep, SampleProbes; every VisualizeEvery steps: PrepareFrame -> FrameStore.Write (float -> Half)
+ |- per frame: engine.CaptureFrame(snapshot) (GPU: to_half kernel + non-blocking read into a pinned FrameSnapshot;
+ | CPU: row copy) -> writer task: engine.AwaitFrame -> FrameStore.Write -> snapshot back to a pool of 3
+ |- ProbeSampler/ProbeCollector -> ProbeUpdate batches (<= 20 Hz) applied to run.Traces on the UI context
+ '- State/StepsDone/FrameCount/EngineDescription posted to the UI context (INotifyPropertyChanged, bindable)
+ScratchRunner (one long-running task, one kept engine: Reset/SetEmitters between requests, rebuilt when the scene or
+ the options change; computes "frame k of the project as it is now" from step 0, newest request wins, skips when
+ the predicted cost exceeds Budget) -> ScratchResult (a FrameSnapshot) -> FramePresenter via SnapshotFrameSource
+FrameStore (temporary file in %LOCALAPPDATA%\WaveDude\cache, DeleteOnClose, pre-sized; Half planes, padding stripped;
+ | positional RandomAccess reads/writes through the OS cache, no memory mapping)
+ '- read by FramePresenter (WPF): CopyLayer -> FrameRenderer (LUT, Parallel.For) -> WriteableBitmap
+```
+
+- Namespaces: `WaveDude.Engine` (engines, `SceneData`, `Emitter`, `EngineOptions`, `OpenClApi`),
+ `WaveDude.Probes` (`ProbeSpec`, sampler, collector, series, trace, update), `WaveDude.Rendering`
+ (`Rgb`, `ColorScheme`, `ColorLut`, `ColorSchemeStore` with `System.Text.Json`, built-in schemes
+ embedded, `FrameRenderer`),
+ `WaveDude.Runs` (`RunSpec`, `SimulationRun`, `RunState`, `FrameStore`, `FrameLayer(s)`,
+ `FrameCache`, `ScenePixels`). All copied from `Wave_Dude_2D` and adapted; the legacy app keeps
+ its own copies and does not reference the library. Not ported: video sinks (`MfVideoWriter`,
+ `AviMjpegWriter`, `AviFrameSink`), GDI+ painters (`ProbeGraphPainter`, `ProbeOverlay`), the glow
+ overlay; export will render from the store instead.
+- **The engine choice is not in the project** (2026-10-09, the user's call: the old app's flag was an
+ artefact): `Simulation > Use the GPU (OpenCL)` is the persisted user setting `UseGpu` (default on),
+ passed to `RunSpec.Create(project, image, preferGpu)`; the CPU is the fallback with a note when no
+ device works. A `Gpu` attribute in an old `.wdproj` is ignored by the serializer.
+- **Engine contract** (`IWaveEngine`): padded grid (`Stride = Width + 2`), one driver thread at a
+ time, `PrepareFrame` before reading, CPU `FieldData` is a different array every sub-step, GPU
+ `FieldData` a host copy. Added 2026-10-09: `CaptureFrame(FrameSnapshot, needIntensity)` /
+ `AwaitFrame` (the frame as `Half` planes without padding; the GPU converts on the card with the
+ `to_half` kernel and reads asynchronously with OpenCL events into pinned arrays, `AwaitFrame` may
+ run on another thread; the CPU copies rows at capture and converts at await, so the stepping
+ thread pays little), `Reset()` (step 0; probes removed) and `SetEmitters()` (new object sources on
+ the same scene; the GPU keeps them in their own `Resources` group and rebinds the intensity
+ retention). Engines take `SceneData`, `EngineOptions` and
+ `IReadOnlyList<Emitter>`; `Emitter.FromSource` resolves a model `Source` + `SourceElement`
+ (amplitude/100, phase in radians, `PulseWidth` → on-width, `OffWidth` → off-width base,
+ `Array.RandomOffWidth` → redraw amount, `DetachAfter`). `RunSpec.Create` regenerates the
+ elements first (the model only does that on load/reseed/add).
+- **Determinism**: every emitter gets a non-zero `RngSeed` from `Pcg32(projectSeed,
+ StableHash(name) ^ GapStream)`; both engines redraw the per-period off-width with the same
+ xorshift32 (`Emitter.Xorshift32`, the GPU kernel's generator), so a run reproduces from the
+ project file and CPU = GPU bit-for-bit on the gap sequence. The legacy engines used unseeded
+ `Random` and disagreed with each other.
+- **Frames vs. steps**: a frame is recorded after step `i` when `i % VisualizeEvery == 0`, so frame
+ k shows the state after 0-based step `k × VisualizeEvery` (what the readout's `step` prints);
+ `RunSpec.FrameCount = ceil(Steps / VisualizeEvery)`, the same as `FrameCountConverter`.
+- **FrameStore**: 64-byte header (`WDFS`, version, width, height, layers, every, capacity) then
+ fixed-size frames, planes in `FrameLayer` order, only those present (`RunSpec.Layers`: field
+ always; intensity when the intensity preview or export is on or a probe needs it). The worker
+ writes in order (`RandomAccess.Write` of a vectorised Half staging buffer) and publishes `Count`;
+ readers use `CopyLayer` (`RandomAccess.Read`; safe against a concurrent `Dispose`, which waits for
+ readers). **Not memory-mapped, on purpose** (2026-10-09): the first version mapped the file and
+ touching 16 MB of fresh pages per frame cost 14-20 ms per frame on the writer and about as much
+ on the reader, and unmapping flushed every dirty page to disk (a minute-long freeze on the second
+ run and on closing, for a 10 GB file about to be deleted). Size: a 1920×1080 run of 2500 steps at
+ `VisualizeEvery` 2 with both planes is **10.4 GB** on disk (`FrameStore.SizeOf`;
+ `FrameCache.CheckSpace` refuses with the number when the drive lacks it); the file is marked
+ `Temporary` so the cache manager keeps it in RAM while it can. It is deleted on dispose/exit/crash
+ (`DeleteOnClose`); `FrameCache.Sweep` at start-up removes leftovers; the window disposes a store
+ on the thread pool, never on the UI thread, and `Dispose` closes the file outside the store's lock
+ (deleting 10 GB takes a second; a reader gets false instead of waiting). When a run is replaced the
+ window drops `Run` before clearing the stale flag, so the preview never falls back to the old store
+ for a moment (that showed the old frame for a second after every edit, 2026-10-09).
+- **Numbers (RTX 2080, 64 GB RAM, SATA SSD RAID, Debug build, 2026-10-09)**, from
+ `library_check bench 1920 1080` (Release) and the app's "Run timing" Debug line:
+ | per step at 1920×1080 | GPU 9-point | GPU 4th order | CPU 9-point |
+ |---|---|---|---|
+ | pure stepping | 0.25 ms | 0.5 ms | 6 ms |
+ | with pipelined half captures every 2 steps | 1.3 ms | 1.6 ms | 13 ms |
+ | GPU engine build (OpenCL compile) | 230–300 ms | | CPU build 10 ms |
+ The stored full-HD run (2500 steps, 1250 frames, 10.4 GB) still takes **14 s**: the stepping thread
+ waits for free snapshots because the writer stores at ~11 ms per frame, which is the disk. Windows
+ throttles a process whose dirty cache pages outrun the drive, so a store larger than the cache's
+ allowance runs at disk speed whatever the code does (a 1 GB store writes at 600–1100 MB/s). The
+ fix, if wanted: a RAM-first store with an explicit budget that spills to the file in the
+ background (64 GB here would hold the whole run), or fewer bytes (`VisualizeEvery`, resolution).
+ A second OpenCL queue would overlap the 4 ms readback with compute (today an in-order queue
+ serialises them). The presenter costs ~22 ms per presented frame, so playback at 60 fps skips
+ frames at 1080p (the clock stays correct; only the newest request is rendered).
+ **Scratch frames** (the live preview after an edit) cost steps × the pure step time plus one
+ capture: frame 1249 of the default project (2499 steps, 4th order) measured **1.5 s** on the GPU
+ in the app; on the CPU 14 ms per 4th-order step (frame 150 in 4 s), so frames beyond ~200 are
+ skipped (`ScratchRunner.Budget` is 6 s, predicted from the stepping cost of the last request with
+ at least 50 steps; a request with no measurement yet always computes). Frames early in the run are proportionally cheaper (frame 0: 90 ms including
+ the capture and the UI round trip).
+- Known limits: probes are recorded (`SimulationRun.Traces`) but not drawn yet; export is not
+ wired; `OpenClApi` imports `"OpenCL"` (resolves to `OpenCL.dll` here, `libOpenCL.so` elsewhere).
+ The library is compiled with `<Optimize>true</Optimize>` in every configuration (2026-10-10): a
+ Debug build of it ran the CPU engine's stencil loop at 33 ms per full-HD step instead of 14, which
+ made the CPU preview unusable from the app. Flip it locally to step through engine code. The
+ conversions go through `TensorPrimitives` for the same reason.
+
## Architecture (Wave_Dude_2D)
```
@@ -182,22 +391,16 @@ Model classes (plain POCOs): SceneSettings, SimulationSettings, SourceSettings(+
- `WaveSimulator` swaps its two field arrays every sub-step, so `FieldData` must be re-read per frame;
`GpuWaveSimulator.FieldData` is a stable host array refreshed only by `PrepareFrame`.
-### Moving engine code into `WaveDude/` (net10.0, no `-windows`)
-
-Files with no Windows dependency, movable as-is: `WaveSimulator`, `GpuWaveSimulator`, `OpenClApi`,
-`GpuDeviceInfo`, `IWaveEngine`, `WaveEngineFactory`, `ProbeSampler`, `ProbeCollector`, `ProbeSeries`,
-`ProbeTrace`, `ProbeUpdate`, the `Probe*`/`Source*` enums, `SourceElement`, `SourceSettings`,
-`SceneSettings`, `SimulationSettings`, `ProbeSettings`, `MfVideoWriter` + `IMF*Native` (COM, Windows at
-runtime but compiles anywhere), `AviMjpegWriter`.
-Files that use `System.Drawing` (`Bitmap`/`Graphics`) and need either `net10.0-windows` or an
-abstraction first: `SceneData` (`FromImage`), `FrameRenderer` (`ToRgbBytes`/`ToBitmap`),
-`SimulationRunner`/`SimulationJob`/`SimulationResult` (carry `Bitmap`s), `ProbeGraphPainter`,
-`ProbeOverlay`, `AviFrameSink`, `ColorLut`, `ColorScheme`. Decision pending: target the library at
-`net10.0-windows` (simplest; WPF can use `System.Drawing.Common`) or split pixel buffers from GDI+
-(cleaner for a `WriteableBitmap` preview).
-Also pending for the move: `JavaScriptSerializer` → `System.Text.Json` keeping the snake_case keys so
-existing `configuration.json`/`settings.json` files load; namespace `_2D_wave_sim_V01` → `WaveDude`
-(the AppData folder name must stay, or be migrated).
+### What stayed in Wave_Dude_2D
+
+The engines, probes, colour schemes and renderer were **copied** into `WaveDude/` on 2026-10-09 (see
+"Architecture (WaveDude library)"); `Wave_Dude_2D/` is untouched, keeps its own copies and does not
+reference the library. Still only there: `SimulationRunner`/`SimulationJob`/`SimulationResult`
+(replaced by `RunSpec`/`SimulationRun`), the video sinks (`MfVideoWriter` + `IMF*Native`,
+`AviMjpegWriter`, `AviFrameSink`), the GDI+ painters (`ProbeGraphPainter`, `ProbeOverlay`), the glow
+overlay, the JSON project/settings persistence (`ProjectStore`, `ProjectConfig`, `AppSettings`,
+`JavaScriptSerializer`; the WPF app uses `.wdproj` XML instead). The library stays `net10.0` without
+`System.Drawing`: pixels are BGRA byte arrays (`ScenePixels`) and packed `int` BGRA32 buffers.
## The WinForms UI (reference implementation)
@@ -227,15 +430,17 @@ functional spec for the WPF UI.
## Known issues (open)
-- `WaveEngineFactory.Create`: the "first choice failed" branch is dead (`GpuWaveSimulator.TryCreate`
- never returns an engine together with a message).
+- `Wave_Dude_2D.WaveEngineFactory.Create`: the "first choice failed" branch is dead
+ (`GpuWaveSimulator.TryCreate` never returns an engine together with a message). Fixed in the
+ library's copy only.
- `SimulationSettings.FromConfig` per-key fallbacks differ from the constructor defaults
(steps 2500 vs 0, 4th-order false vs true, c 0.563 vs 1.0, decay 10 vs 0). **Not a bug**: the VB
docs (`SimulationSettings.vb:47-49, 92-119`) say old projects must keep their exact behaviour while new
projects take the Designer values via `StartNewProject`. The C# `<remarks>` now says so.
- Still from the VB audit, not done: no GPL headers in the C# (deliberately deferred; the C# tree is
temporary); `AssemblyCopyright` lacks the author's name; decompiler artefacts remain (`MessageBoxIcon`
- aliases, `Keys.Return`, `VBByRefStr ref string` on two OpenCL P/Invokes, `OpenClApi` not `static`,
+ aliases, `Keys.Return`, `VBByRefStr ref string` on two OpenCL P/Invokes and `OpenClApi` not `static`
+ (both fixed in the library's copy only),
nested `*EventHandler` delegates in `SimulationRunner`, `colCreatedOn2` declared in `Form1.Simulation.cs`
instead of the Designer); the csproj does not copy `ColorSchemeList/` to the output as the vbproj did.
- `btnRenameProject_Click` re-opens the project from disk, silently discarding unsaved edits.
@@ -246,7 +451,9 @@ functional spec for the WPF UI.
replace with `Program.Main` (`EnableVisualStyles`, `SetCompatibleTextRenderingDefault`) when convenient.
- Private `ref` parameters that are really `out` remain outside the engines (`TryPictureToCanvas`,
`TryParseInt`, `DampingProblem`, `PromptForCValue`, `ComputeRanges`, `RgbToHsv`, …).
-- WPF: theme choice not persisted; panes empty.
+- WPF: no progress bar for a run (status text only); the Simulation menu has no About/Help; probes
+ recorded but not drawn; export not rendered from the store yet; the preview skips frames at
+ 1080p (see the numbers in the library architecture section).
- WPF preview, frames vs. steps: the transport bar, scrubber and playback count **frames**
(0..`LastFrame`, one per `VisualizeEvery` steps), while sources, probes, the export range and the
Properties pane use **steps**; the readout shows both (`773 / 1249 step 1546`), which reads as
@@ -272,17 +479,18 @@ probes for `*.sln` (was `*.vbproj`, which never matched above the C# exe); NaN-s
## Roadmap
1. ~~Make it compile~~ · 2. ~~clean up / document~~ · 2b. ~~AVI fix, style pass, engine refactor~~
-3. **Extract the engine into `WaveDude/`** (see "Moving engine code" above), with the WinForms app
- referencing it so both UIs run the same code. Replace `JavaScriptSerializer`; decide the
- `System.Drawing` question; turn the two harnesses into real test projects while at it.
-4. **Make the engine loop `Task`-based**: `SimulationRunner` becomes an `async` driver
- (`Task.Run` loop, `CancellationToken`, `IProgress<T>`/channels instead of raw events on a worker
- thread), keeping the one-driver-at-a-time engine contract.
-5. **WPF UI** in `WaveDude.WPF`: fill the Project / Preview / Properties panes; preview as a
- `WriteableBitmap` fed from `FrameRenderer` pixel buffers; MVVM over the existing settings POCOs;
- persist the theme choice. Use `HelpForm.cs` as the functional spec.
- Timeline, agreed 2026-10-09 (the scrub bar, in/out range and transport keys are done; these
- stay inside the preview pane, below the pictures):
+3. ~~**Extract the engine into `WaveDude/`**~~ (done 2026-10-09 as a copy; the WinForms app stays
+ legacy and is not changed). Still open from this item: real test projects (the user chose to
+ keep the `dotnet run` harness for now).
+4. ~~**Make the engine loop `Task`-based**~~ (`SimulationRun`, 2026-10-09).
+5. **WPF UI** in `WaveDude.WPF`: the preview shows a live run and replays it from the frame store
+ (done 2026-10-09). Next, in this order of value: **export from the store** (video and stills,
+ rendered with the current display settings, the export range), the **probe signal lane** and
+ probe markers on the pictures, a progress bar (the theme choice is persisted already).
+ Store: a RAM-first frame store with a budget and background spill (see the numbers above),
+ so a run is compute-bound instead of disk-bound.
+ Timeline, agreed 2026-10-09 (the scrub bar, in/out range, transport keys and the available-frames
+ shading are done; these stay inside the preview pane, below the pictures):
- **Event tracks** under the bar, one row per source and probe on the same time axis: a source
draws a bar from its start to its end step (pulse envelope as a filled shape), a probe draws
its start step as a flag; clicking selects the item in the Project tree, dragging a bar's
diff --git a/WaveDude.WPF/App.xaml.cs b/WaveDude.WPF/App.xaml.cs
index cfa048a..850e3ae 100644
--- a/WaveDude.WPF/App.xaml.cs
+++ b/WaveDude.WPF/App.xaml.cs
@@ -11,6 +11,8 @@ using NLog.Config;
using NLog.Targets;
using WaveDude.WPF.Logging;
using WaveDude.WPF.Properties;
+using WaveDude.Runs;
+using WaveDude.WPF.Rendering;
using WaveDude.WPF.Theming;
namespace WaveDude.WPF;
@@ -196,6 +198,8 @@ public partial class App : Application
}
PrepareSettings();
+ FrameCache.Sweep();
+ ColorSchemeCatalog.Instance.Load();
ThemeController.Instance.Current = Settings.Default.Theme;
ThemeController.Instance.PropertyChanged += (_, args) =>
diff --git a/WaveDude.WPF/Commands/PreviewCommands.cs b/WaveDude.WPF/Commands/PreviewCommands.cs
index fe4bda5..4553536 100644
--- a/WaveDude.WPF/Commands/PreviewCommands.cs
+++ b/WaveDude.WPF/Commands/PreviewCommands.cs
@@ -6,7 +6,7 @@ namespace WaveDude.WPF.Commands;
/// Transport commands of the preview pane beyond the built-in <see cref="MediaCommands"/>.
/// Bound on the pane, so the keys work from any control inside it (the pane's handlers refuse
/// them while a text box has focus, so typing is never hijacked). Home and End are gestures of
-/// the commands; the letter and punctuation keys (, . I O X L) are <c>KeyBinding</c>s in the
+/// the commands; the letter and punctuation keys (, . I O X L F) are <c>KeyBinding</c>s in the
/// pane's XAML, because <see cref="KeyGesture"/> rejects unmodified letters. The in/out commands
/// take a frame number as parameter, or null for the frame shown.
/// </summary>
@@ -37,4 +37,7 @@ public static class PreviewCommands
/// <summary>Toggles looping between the in and out points.</summary>
public static readonly RoutedUICommand ToggleLoop = new("Loop", nameof(ToggleLoop), typeof(PreviewCommands));
+
+ /// <summary>Toggles following the newest frame of a run in progress.</summary>
+ public static readonly RoutedUICommand ToggleLive = new("Live", nameof(ToggleLive), typeof(PreviewCommands));
}
diff --git a/WaveDude.WPF/Commands/SimulationCommands.cs b/WaveDude.WPF/Commands/SimulationCommands.cs
new file mode 100644
index 0000000..0407744
--- /dev/null
+++ b/WaveDude.WPF/Commands/SimulationCommands.cs
@@ -0,0 +1,25 @@
+using System.Windows.Input;
+
+namespace WaveDude.WPF.Commands;
+
+/// <summary>
+/// Commands that control the simulation run, bound on the main window (handlers in
+/// <c>MainWindow.Simulation.cs</c>) and offered in the Simulation menu.
+/// </summary>
+public static class SimulationCommands
+{
+ /// <summary>Starts a run of the open project, replacing the previous run and its frames.</summary>
+ public static readonly RoutedUICommand Run = new("Run", nameof(Run), typeof(SimulationCommands),
+ [new KeyGesture(Key.F5)]);
+
+ /// <summary>Pauses the run, or resumes a paused one.</summary>
+ public static readonly RoutedUICommand TogglePause = new("Pause", nameof(TogglePause), typeof(SimulationCommands),
+ [new KeyGesture(Key.F6)]);
+
+ /// <summary>Makes sure the frames are coming: starts a run (keeping the preview's position) when there is none or it is stale; no gesture, the preview's Play issues it.</summary>
+ public static readonly RoutedUICommand EnsureRun = new("Run if needed", nameof(EnsureRun), typeof(SimulationCommands));
+
+ /// <summary>Stops the run; the frames computed so far stay in the preview. Shift+F5, or Escape (the usual "stop what you are doing" key, and reachable without a modifier).</summary>
+ public static readonly RoutedUICommand Stop = new("Stop", nameof(Stop), typeof(SimulationCommands),
+ [new KeyGesture(Key.F5, ModifierKeys.Shift), new KeyGesture(Key.Escape)]);
+}
diff --git a/WaveDude.WPF/Controls/MarkerThumb.cs b/WaveDude.WPF/Controls/MarkerThumb.cs
new file mode 100644
index 0000000..08a8fa6
--- /dev/null
+++ b/WaveDude.WPF/Controls/MarkerThumb.cs
@@ -0,0 +1,85 @@
+using System.Windows;
+using System.Windows.Controls.Primitives;
+
+namespace WaveDude.WPF.Controls;
+
+/// <summary>What a <see cref="MarkerThumb"/> stands for.</summary>
+public enum MarkerRole
+{
+ /// <summary>The position of a source (its centre for a composite source).</summary>
+ Source,
+ /// <summary>Point A of a probe (the point of a point probe, the start of a line probe).</summary>
+ ProbeA,
+ /// <summary>Point B of a line probe.</summary>
+ ProbeB,
+}
+
+/// <summary>
+/// One draggable handle of the <see cref="SceneOverlay"/>: a <see cref="Thumb"/> that knows which model
+/// object and which of its points it moves. Focusable, so the arrow keys can move it too; the overlay
+/// does the geometry and the model updates. UI thread.
+/// </summary>
+public sealed class MarkerThumb : Thumb
+{
+ /// <summary>Identifies the <see cref="IsSelectedMarker"/> property.</summary>
+ public static readonly DependencyProperty IsSelectedMarkerProperty = DependencyProperty.Register(
+ nameof(IsSelectedMarker), typeof(bool), typeof(MarkerThumb), new PropertyMetadata(false));
+
+ /// <summary>Identifies the <see cref="StrokeThickness"/> property.</summary>
+ public static readonly DependencyProperty StrokeThicknessProperty = DependencyProperty.Register(
+ nameof(StrokeThickness), typeof(double), typeof(MarkerThumb),
+ new FrameworkPropertyMetadata(1.5, FrameworkPropertyMetadataOptions.AffectsRender, (d, e) => d.SetValue(HaloThicknessKey, (double)e.NewValue + HaloWidth)));
+
+ private static readonly DependencyPropertyKey HaloThicknessKey = DependencyProperty.RegisterReadOnly(
+ nameof(HaloThickness), typeof(double), typeof(MarkerThumb), new FrameworkPropertyMetadata(1.5 + HaloWidth, FrameworkPropertyMetadataOptions.AffectsRender));
+
+ /// <summary>Identifies the <see cref="HaloThickness"/> property.</summary>
+ public static readonly DependencyProperty HaloThicknessProperty = HaloThicknessKey.DependencyProperty;
+
+ /// <summary>How far the dark halo sticks out on each side of a stroke, in pixels, so the glyph reads on any picture.</summary>
+ public const double HaloWidth = 2.0;
+
+ /// <param name="item">The source or probe.</param>
+ /// <param name="role">Which point of it.</param>
+ public MarkerThumb(object item, MarkerRole role)
+ {
+ Item = item;
+ Role = role;
+ Focusable = true;
+ }
+
+ /// <summary>The source or probe this handle moves.</summary>
+ public object Item { get; }
+
+ /// <summary>Which point of the item.</summary>
+ public MarkerRole Role { get; }
+
+ /// <summary>Whether the item is the one selected in the project; the style highlights it.</summary>
+ public bool IsSelectedMarker
+ {
+ get => (bool)GetValue(IsSelectedMarkerProperty);
+ set => SetValue(IsSelectedMarkerProperty, value);
+ }
+
+ /// <summary>Outline width of the glyph in pixels; the style thickens it on hover and focus.</summary>
+ public double StrokeThickness
+ {
+ get => (double)GetValue(StrokeThicknessProperty);
+ set => SetValue(StrokeThicknessProperty, value);
+ }
+
+ /// <summary>Width of the dark outline drawn under the glyph: <see cref="StrokeThickness"/> plus <see cref="HaloWidth"/> on each side.</summary>
+ public double HaloThickness => (double)GetValue(HaloThicknessProperty);
+
+ /// <summary>Model coordinate of the point when the current drag started (canvas pixels).</summary>
+ internal int DragStartX { get; set; }
+
+ /// <summary>Model coordinate of the point when the current drag started (canvas pixels).</summary>
+ internal int DragStartY { get; set; }
+
+ /// <summary>Mouse movement since the drag started, in canvas pixels (fractional, so slow drags add up).</summary>
+ internal double DragDeltaX { get; set; }
+
+ /// <summary>Mouse movement since the drag started, in canvas pixels.</summary>
+ internal double DragDeltaY { get; set; }
+}
diff --git a/WaveDude.WPF/Controls/PictureFrame.cs b/WaveDude.WPF/Controls/PictureFrame.cs
new file mode 100644
index 0000000..235cd28
--- /dev/null
+++ b/WaveDude.WPF/Controls/PictureFrame.cs
@@ -0,0 +1,123 @@
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Media;
+
+namespace WaveDude.WPF.Controls;
+
+/// <summary>
+/// Lays out a label and a picture so the label takes as little of the picture's room as possible:
+/// above the picture when the available space is taller than the picture's aspect ratio (spare room
+/// is above and below anyway), or rotated by 90° on its left when the space is wider (spare room is
+/// at the sides). The first child is the label, the second the picture (an <see cref="Image"/> with
+/// <see cref="Stretch.Uniform"/>, or a panel holding one under an overlay; its <see cref="Image.Source"/>
+/// gives the aspect ratio, 16:9 when there is none). UI thread, like every element.
+/// </summary>
+public sealed class PictureFrame : Panel
+{
+ /// <summary>Identifies the <see cref="Gap"/> property.</summary>
+ public static readonly DependencyProperty GapProperty = DependencyProperty.Register(
+ nameof(Gap), typeof(double), typeof(PictureFrame),
+ new FrameworkPropertyMetadata(4.0, FrameworkPropertyMetadataOptions.AffectsMeasure));
+
+ private static readonly DependencyPropertyKey IsLabelOnSideKey = DependencyProperty.RegisterReadOnly(
+ nameof(IsLabelOnSide), typeof(bool), typeof(PictureFrame), new PropertyMetadata(false));
+
+ /// <summary>Identifies the <see cref="IsLabelOnSide"/> property.</summary>
+ public static readonly DependencyProperty IsLabelOnSideProperty = IsLabelOnSideKey.DependencyProperty;
+
+ private static readonly Transform SideTransform = Freeze(new RotateTransform(90));
+
+ private const double DefaultAspect = 16.0 / 9.0;
+
+ /// <summary>Space between the label and the picture, in pixels.</summary>
+ public double Gap
+ {
+ get => (double)GetValue(GapProperty);
+ set => SetValue(GapProperty, value);
+ }
+
+ /// <summary>Whether the label currently sits rotated on the left instead of above.</summary>
+ public bool IsLabelOnSide
+ {
+ get => (bool)GetValue(IsLabelOnSideProperty);
+ private set => SetValue(IsLabelOnSideKey, value);
+ }
+
+ /// <inheritdoc/>
+ protected override Size MeasureOverride(Size availableSize)
+ {
+ if (Children.Count < 2)
+ {
+ Size desired = default;
+ foreach (UIElement child in Children)
+ {
+ child.Measure(availableSize);
+ desired = new Size(Math.Max(desired.Width, child.DesiredSize.Width), Math.Max(desired.Height, child.DesiredSize.Height));
+ }
+ return desired;
+ }
+ UIElement label = Children[0];
+ UIElement picture = Children[1];
+ bool side = !double.IsInfinity(availableSize.Width) && !double.IsInfinity(availableSize.Height) && availableSize.Height > 0
+ && availableSize.Width / availableSize.Height > AspectOf(picture);
+ if (side != IsLabelOnSide)
+ {
+ IsLabelOnSide = side;
+ }
+ if (label is FrameworkElement element && !ReferenceEquals(element.LayoutTransform, side ? SideTransform : Transform.Identity))
+ {
+ element.LayoutTransform = side ? SideTransform : Transform.Identity;
+ }
+ label.Measure(availableSize);
+ double gap = Gap;
+ Size rest = side
+ ? new Size(Math.Max(0, availableSize.Width - label.DesiredSize.Width - gap), availableSize.Height)
+ : new Size(availableSize.Width, Math.Max(0, availableSize.Height - label.DesiredSize.Height - gap));
+ picture.Measure(rest);
+ return side
+ ? new Size(label.DesiredSize.Width + gap + picture.DesiredSize.Width, Math.Max(label.DesiredSize.Height, picture.DesiredSize.Height))
+ : new Size(Math.Max(label.DesiredSize.Width, picture.DesiredSize.Width), label.DesiredSize.Height + gap + picture.DesiredSize.Height);
+ }
+
+ /// <inheritdoc/>
+ protected override Size ArrangeOverride(Size finalSize)
+ {
+ if (Children.Count < 2)
+ {
+ foreach (UIElement child in Children)
+ {
+ child.Arrange(new Rect(finalSize));
+ }
+ return finalSize;
+ }
+ UIElement label = Children[0];
+ UIElement picture = Children[1];
+ double gap = Gap;
+ if (IsLabelOnSide)
+ {
+ double w = Math.Min(label.DesiredSize.Width, finalSize.Width);
+ label.Arrange(new Rect(0, 0, w, finalSize.Height));
+ picture.Arrange(new Rect(w + gap, 0, Math.Max(0, finalSize.Width - w - gap), finalSize.Height));
+ }
+ else
+ {
+ double h = Math.Min(label.DesiredSize.Height, finalSize.Height);
+ label.Arrange(new Rect(0, 0, finalSize.Width, h));
+ picture.Arrange(new Rect(0, h + gap, finalSize.Width, Math.Max(0, finalSize.Height - h - gap)));
+ }
+ return finalSize;
+ }
+
+ /// <summary>Width over height of the picture's source, or 16:9 without one. The picture is an <see cref="Image"/>, or a panel whose first <see cref="Image"/> child is it (an overlay on top).</summary>
+ private static double AspectOf(UIElement picture)
+ {
+ Image? image = picture as Image ?? (picture as Panel)?.Children.OfType<Image>().FirstOrDefault();
+ return image is { Source: { Width: > 0, Height: > 0 } source } ? source.Width / source.Height : DefaultAspect;
+ }
+
+ private static Transform Freeze(Transform transform)
+ {
+ transform.Freeze();
+ return transform;
+ }
+}
diff --git a/WaveDude.WPF/Controls/SceneOverlay.cs b/WaveDude.WPF/Controls/SceneOverlay.cs
new file mode 100644
index 0000000..60e2392
--- /dev/null
+++ b/WaveDude.WPF/Controls/SceneOverlay.cs
@@ -0,0 +1,453 @@
+using System.Collections.Specialized;
+using System.ComponentModel;
+using System.Globalization;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Input;
+using System.Windows.Media;
+using WaveDude.Model;
+
+namespace WaveDude.WPF.Controls;
+
+/// <summary>
+/// The sources and probes of a <see cref="Project"/> drawn over a picture of the canvas, as draggable
+/// handles (<see cref="MarkerThumb"/>): a source's position, a point probe's point, a line probe's two
+/// ends with the line between them, plus the emitters of a composite source as dots and the item names
+/// as labels. Dragging a handle, or moving it with the arrow keys while it has keyboard focus, writes the
+/// new canvas coordinates to the model; grabbing or focusing a handle makes its item the
+/// <see cref="SelectedItem"/>. The overlay fills the same rectangle as the picture (an
+/// <see cref="Image"/> with <see cref="Stretch.Uniform"/>), so it maps canvas pixels to its own
+/// coordinates with the same uniform scale and centring. UI thread; listens to the model's change
+/// notifications.
+/// </summary>
+public sealed class SceneOverlay : Panel
+{
+ /// <summary>Identifies the <see cref="Project"/> property.</summary>
+ public static readonly DependencyProperty ProjectProperty = DependencyProperty.Register(
+ nameof(Project), typeof(Project), typeof(SceneOverlay), new PropertyMetadata(null, OnProjectChanged));
+
+ /// <summary>Identifies the <see cref="CanvasWidth"/> property.</summary>
+ public static readonly DependencyProperty CanvasWidthProperty = DependencyProperty.Register(
+ nameof(CanvasWidth), typeof(int), typeof(SceneOverlay), new FrameworkPropertyMetadata(1, FrameworkPropertyMetadataOptions.AffectsArrange | FrameworkPropertyMetadataOptions.AffectsRender));
+
+ /// <summary>Identifies the <see cref="CanvasHeight"/> property.</summary>
+ public static readonly DependencyProperty CanvasHeightProperty = DependencyProperty.Register(
+ nameof(CanvasHeight), typeof(int), typeof(SceneOverlay), new FrameworkPropertyMetadata(1, FrameworkPropertyMetadataOptions.AffectsArrange | FrameworkPropertyMetadataOptions.AffectsRender));
+
+ /// <summary>Identifies the <see cref="SelectedItem"/> property.</summary>
+ public static readonly DependencyProperty SelectedItemProperty = DependencyProperty.Register(
+ nameof(SelectedItem), typeof(object), typeof(SceneOverlay),
+ new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, (d, _) => ((SceneOverlay)d).UpdateSelection()));
+
+ /// <summary>Identifies the <see cref="SourceStyle"/> property.</summary>
+ public static readonly DependencyProperty SourceStyleProperty = DependencyProperty.Register(
+ nameof(SourceStyle), typeof(Style), typeof(SceneOverlay), new PropertyMetadata(null, (d, _) => ((SceneOverlay)d).Rebuild()));
+
+ /// <summary>Identifies the <see cref="ProbeStyle"/> property.</summary>
+ public static readonly DependencyProperty ProbeStyleProperty = DependencyProperty.Register(
+ nameof(ProbeStyle), typeof(Style), typeof(SceneOverlay), new PropertyMetadata(null, (d, _) => ((SceneOverlay)d).Rebuild()));
+
+ /// <summary>Identifies the <see cref="LineBrush"/> property.</summary>
+ public static readonly DependencyProperty LineBrushProperty = DependencyProperty.Register(
+ nameof(LineBrush), typeof(Brush), typeof(SceneOverlay), new FrameworkPropertyMetadata(Brushes.White, FrameworkPropertyMetadataOptions.AffectsRender));
+
+ /// <summary>Identifies the <see cref="LabelBrush"/> property.</summary>
+ public static readonly DependencyProperty LabelBrushProperty = DependencyProperty.Register(
+ nameof(LabelBrush), typeof(Brush), typeof(SceneOverlay), new FrameworkPropertyMetadata(Brushes.White, FrameworkPropertyMetadataOptions.AffectsRender));
+
+ /// <summary>Identifies the <see cref="AccentBrush"/> property.</summary>
+ public static readonly DependencyProperty AccentBrushProperty = DependencyProperty.Register(
+ nameof(AccentBrush), typeof(Brush), typeof(SceneOverlay), new FrameworkPropertyMetadata(Brushes.DodgerBlue, FrameworkPropertyMetadataOptions.AffectsRender));
+
+ /// <summary>Pixels a focused handle moves per arrow key, and with Shift.</summary>
+ private const int KeyStep = 1;
+ private const int KeyStepFast = 10;
+ private const double LabelOffset = 13.0;
+ private const double ElementDotRadius = 2.5;
+ private static readonly Brush HaloBrush = Freeze(new SolidColorBrush(Color.FromArgb(0xC0, 0, 0, 0)));
+ private static readonly Typeface LabelTypeface = new("Segoe UI");
+
+ private readonly HashSet<INotifyPropertyChanged> _subscribed = [];
+ private bool _regenerating;
+
+ public SceneOverlay()
+ {
+ Background = Brushes.Transparent;
+ IsHitTestVisible = true;
+ Focusable = false;
+ }
+
+ /// <summary>The project whose sources and probes are shown; null shows nothing.</summary>
+ public Project? Project
+ {
+ get => (Project?)GetValue(ProjectProperty);
+ set => SetValue(ProjectProperty, value);
+ }
+
+ /// <summary>Canvas width in pixels, the x range of the model coordinates.</summary>
+ public int CanvasWidth
+ {
+ get => (int)GetValue(CanvasWidthProperty);
+ set => SetValue(CanvasWidthProperty, value);
+ }
+
+ /// <summary>Canvas height in pixels.</summary>
+ public int CanvasHeight
+ {
+ get => (int)GetValue(CanvasHeightProperty);
+ set => SetValue(CanvasHeightProperty, value);
+ }
+
+ /// <summary>The source or probe selected in the project (highlighted); set when a handle is grabbed or focused.</summary>
+ public object? SelectedItem
+ {
+ get => GetValue(SelectedItemProperty);
+ set => SetValue(SelectedItemProperty, value);
+ }
+
+ /// <summary>Style of the source handles (a <see cref="MarkerThumb"/> style).</summary>
+ public Style? SourceStyle
+ {
+ get => (Style?)GetValue(SourceStyleProperty);
+ set => SetValue(SourceStyleProperty, value);
+ }
+
+ /// <summary>Style of the probe handles (a <see cref="MarkerThumb"/> style).</summary>
+ public Style? ProbeStyle
+ {
+ get => (Style?)GetValue(ProbeStyleProperty);
+ set => SetValue(ProbeStyleProperty, value);
+ }
+
+ /// <summary>Line of a line probe and the emitter dots of a composite source.</summary>
+ public Brush LineBrush
+ {
+ get => (Brush)GetValue(LineBrushProperty);
+ set => SetValue(LineBrushProperty, value);
+ }
+
+ /// <summary>The item names next to the handles.</summary>
+ public Brush LabelBrush
+ {
+ get => (Brush)GetValue(LabelBrushProperty);
+ set => SetValue(LabelBrushProperty, value);
+ }
+
+ /// <summary>Line and label of the selected item.</summary>
+ public Brush AccentBrush
+ {
+ get => (Brush)GetValue(AccentBrushProperty);
+ set => SetValue(AccentBrushProperty, value);
+ }
+
+ // ---------------------------------------------------------------- model wiring
+
+ private static void OnProjectChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ var overlay = (SceneOverlay)d;
+ if (e.OldValue is Project old)
+ {
+ old.Sources.CollectionChanged -= overlay.OnCollectionChanged;
+ old.Probes.CollectionChanged -= overlay.OnCollectionChanged;
+ }
+ if (e.NewValue is Project project)
+ {
+ project.Sources.CollectionChanged += overlay.OnCollectionChanged;
+ project.Probes.CollectionChanged += overlay.OnCollectionChanged;
+ }
+ overlay.Rebuild();
+ }
+
+ private void OnCollectionChanged(object? sender, NotifyCollectionChangedEventArgs e) => Rebuild();
+
+ /// <summary>Recreates the handles from the project's lists and re-subscribes to every item.</summary>
+ private void Rebuild()
+ {
+ foreach (INotifyPropertyChanged item in _subscribed)
+ {
+ item.PropertyChanged -= OnItemPropertyChanged;
+ }
+ _subscribed.Clear();
+ Children.Clear();
+ if (Project is not { } project)
+ {
+ InvalidateVisual();
+ return;
+ }
+ foreach (Source source in project.Sources)
+ {
+ Subscribe(source);
+ if (source.Array != null)
+ {
+ Subscribe(source.Array);
+ }
+ Regenerate(source);
+ AddThumb(source, MarkerRole.Source, SourceStyle, source.Name, "Source:" + source.Name);
+ }
+ foreach (Probe probe in project.Probes)
+ {
+ Subscribe(probe);
+ AddThumb(probe, MarkerRole.ProbeA, ProbeStyle, probe.Name, "Probe:" + probe.Name + ":A");
+ if (probe.Kind == ProbeKind.Line)
+ {
+ AddThumb(probe, MarkerRole.ProbeB, ProbeStyle, probe.Name + " B", "Probe:" + probe.Name + ":B");
+ }
+ }
+ UpdateSelection();
+ InvalidateVisual();
+ }
+
+ private void Subscribe(INotifyPropertyChanged item)
+ {
+ if (_subscribed.Add(item))
+ {
+ item.PropertyChanged += OnItemPropertyChanged;
+ }
+ }
+
+ private void AddThumb(object item, MarkerRole role, Style? style, string name, string automationId)
+ {
+ var thumb = new MarkerThumb(item, role) { Style = style };
+ thumb.ToolTip = TryFindResource("TipMarkerFormat") is string format ? string.Format(CultureInfo.CurrentUICulture, format, name) : name;
+ AutomationProperties.SetName(thumb, name);
+ AutomationProperties.SetAutomationId(thumb, automationId);
+ thumb.DragStarted += OnDragStarted;
+ thumb.DragDelta += OnDragDelta;
+ thumb.GotKeyboardFocus += (_, _) => SelectedItem = item;
+ UpdateOpacity(thumb);
+ Children.Add(thumb);
+ }
+
+ private void OnItemPropertyChanged(object? sender, PropertyChangedEventArgs e)
+ {
+ switch (sender)
+ {
+ case Probe when e.PropertyName == nameof(Probe.Kind):
+ case Source when e.PropertyName == nameof(Source.Array):
+ Rebuild();
+ return;
+ case Source source:
+ Regenerate(source);
+ break;
+ }
+ if (e.PropertyName is nameof(Source.Name) or nameof(Source.Enabled) or nameof(Probe.Active))
+ {
+ Rebuild();
+ return;
+ }
+ InvalidateArrange();
+ InvalidateVisual();
+ }
+
+ /// <summary>Keeps a composite source's emitter dots current while it is edited (they are only regenerated for a run otherwise).</summary>
+ private void Regenerate(Source source)
+ {
+ if (_regenerating || Project is not { } project || source.Array == null)
+ {
+ return;
+ }
+ _regenerating = true;
+ try
+ {
+ source.GenerateElements(project.Seed);
+ }
+ finally
+ {
+ _regenerating = false;
+ }
+ }
+
+ private void UpdateSelection()
+ {
+ object? selected = SelectedItem;
+ foreach (MarkerThumb thumb in Children)
+ {
+ thumb.IsSelectedMarker = ReferenceEquals(thumb.Item, selected);
+ }
+ InvalidateVisual();
+ }
+
+ private static void UpdateOpacity(MarkerThumb thumb) =>
+ thumb.Opacity = thumb.Item switch { Source { Enabled: false } => 0.45, Probe { Active: false } => 0.45, _ => 1.0 };
+
+ // ---------------------------------------------------------------- geometry
+
+ /// <summary>Pixels per canvas pixel: the picture's uniform scale inside this element.</summary>
+ private double Scale => Math.Min(ActualWidth / Math.Max(1, CanvasWidth), ActualHeight / Math.Max(1, CanvasHeight));
+
+ /// <summary>Where canvas pixel (0, 0) starts: the picture is centred in the element.</summary>
+ private Point Origin => new((ActualWidth - CanvasWidth * Scale) / 2, (ActualHeight - CanvasHeight * Scale) / 2);
+
+ /// <summary>The centre of canvas pixel (x, y) in this element's coordinates.</summary>
+ private Point ToView(int x, int y)
+ {
+ double scale = Scale;
+ Point origin = Origin;
+ return new Point(origin.X + (x + 0.5) * scale, origin.Y + (y + 0.5) * scale);
+ }
+
+ private static (int X, int Y) PointOf(MarkerThumb thumb) => (thumb.Item, thumb.Role) switch
+ {
+ (Source source, _) => (source.X, source.Y),
+ (Probe probe, MarkerRole.ProbeB) => (probe.BX, probe.BY),
+ (Probe probe, _) => (probe.AX, probe.AY),
+ _ => (0, 0),
+ };
+
+ private void SetPoint(MarkerThumb thumb, int x, int y)
+ {
+ x = Math.Clamp(x, 0, Math.Max(0, CanvasWidth - 1));
+ y = Math.Clamp(y, 0, Math.Max(0, CanvasHeight - 1));
+ switch (thumb.Item, thumb.Role)
+ {
+ case (Source source, _):
+ source.X = x;
+ source.Y = y;
+ break;
+ case (Probe probe, MarkerRole.ProbeB):
+ probe.BX = x;
+ probe.BY = y;
+ break;
+ case (Probe probe, _):
+ probe.AX = x;
+ probe.AY = y;
+ break;
+ }
+ }
+
+ /// <inheritdoc/>
+ protected override Size MeasureOverride(Size availableSize)
+ {
+ foreach (UIElement child in Children)
+ {
+ child.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
+ }
+ return new Size(double.IsInfinity(availableSize.Width) ? 0 : availableSize.Width, double.IsInfinity(availableSize.Height) ? 0 : availableSize.Height);
+ }
+
+ /// <inheritdoc/>
+ protected override Size ArrangeOverride(Size finalSize)
+ {
+ foreach (MarkerThumb thumb in Children)
+ {
+ (int x, int y) = PointOf(thumb);
+ Point centre = ToView(x, y);
+ Size size = thumb.DesiredSize;
+ thumb.Arrange(new Rect(centre.X - size.Width / 2, centre.Y - size.Height / 2, size.Width, size.Height));
+ }
+ return finalSize;
+ }
+
+ /// <inheritdoc/>
+ protected override void OnRender(DrawingContext dc)
+ {
+ base.OnRender(dc);
+ if (Project is not { } project || ActualWidth <= 0 || ActualHeight <= 0)
+ {
+ return;
+ }
+ object? selected = SelectedItem;
+ foreach (Probe probe in project.Probes)
+ {
+ if (probe.Kind != ProbeKind.Line)
+ {
+ continue;
+ }
+ bool isSelected = ReferenceEquals(probe, selected);
+ Point a = ToView(probe.AX, probe.AY);
+ Point b = ToView(probe.BX, probe.BY);
+ // a dark line under the dashed light one, so the line reads on any picture
+ dc.DrawLine(new Pen(HaloBrush, isSelected ? 3.5 : 3.0), a, b);
+ dc.DrawLine(new Pen(isSelected ? AccentBrush : LineBrush, isSelected ? 1.5 : 1.0) { DashStyle = DashStyles.Dash }, a, b);
+ }
+ foreach (Source source in project.Sources)
+ {
+ if (source.Array == null)
+ {
+ continue;
+ }
+ Brush dots = ReferenceEquals(source, selected) ? AccentBrush : LineBrush;
+ var halo = new Pen(HaloBrush, 1.5);
+ foreach (SourceElement element in source.Elements)
+ {
+ dc.DrawEllipse(dots, halo, ToView(element.X, element.Y), ElementDotRadius, ElementDotRadius);
+ }
+ }
+ foreach (MarkerThumb thumb in Children)
+ {
+ if (thumb.Role == MarkerRole.ProbeB)
+ {
+ continue;
+ }
+ (int x, int y) = PointOf(thumb);
+ Point centre = ToView(x, y);
+ string name = thumb.Item is Source source ? source.Name : ((Probe)thumb.Item).Name;
+ var label = new FormattedText(name, CultureInfo.CurrentUICulture, FlowDirection.LeftToRight, LabelTypeface, 11, thumb.IsSelectedMarker ? AccentBrush : LabelBrush, VisualTreeHelper.GetDpi(this).PixelsPerDip);
+ double lx = Math.Min(centre.X + LabelOffset, Math.Max(0, ActualWidth - label.Width));
+ double ly = Math.Clamp(centre.Y - label.Height / 2, 0, Math.Max(0, ActualHeight - label.Height));
+ var origin = new Point(lx, ly);
+ // the text's outline in dark first (a halo), then the text
+ dc.DrawGeometry(null, new Pen(HaloBrush, 3.0) { LineJoin = PenLineJoin.Round }, label.BuildGeometry(origin));
+ dc.DrawText(label, origin);
+ }
+ }
+
+ // ---------------------------------------------------------------- dragging and keys
+
+ private void OnDragStarted(object sender, DragStartedEventArgs e)
+ {
+ var thumb = (MarkerThumb)sender;
+ (thumb.DragStartX, thumb.DragStartY) = PointOf(thumb);
+ thumb.DragDeltaX = 0;
+ thumb.DragDeltaY = 0;
+ SelectedItem = thumb.Item;
+ thumb.Focus();
+ }
+
+ private void OnDragDelta(object sender, DragDeltaEventArgs e)
+ {
+ var thumb = (MarkerThumb)sender;
+ double scale = Scale;
+ if (scale <= 0)
+ {
+ return;
+ }
+ thumb.DragDeltaX += e.HorizontalChange / scale;
+ thumb.DragDeltaY += e.VerticalChange / scale;
+ SetPoint(thumb, thumb.DragStartX + (int)Math.Round(thumb.DragDeltaX), thumb.DragStartY + (int)Math.Round(thumb.DragDeltaY));
+ }
+
+ private static Brush Freeze(Brush brush)
+ {
+ brush.Freeze();
+ return brush;
+ }
+
+ /// <summary>The arrow keys move the focused handle by one canvas pixel, ten with Shift.</summary>
+ protected override void OnKeyDown(KeyEventArgs e)
+ {
+ base.OnKeyDown(e);
+ if (e.Handled || e.OriginalSource is not MarkerThumb thumb)
+ {
+ return;
+ }
+ int step = (Keyboard.Modifiers & ModifierKeys.Shift) != 0 ? KeyStepFast : KeyStep;
+ (int dx, int dy) = e.Key switch
+ {
+ Key.Left => (-step, 0),
+ Key.Right => (step, 0),
+ Key.Up => (0, -step),
+ Key.Down => (0, step),
+ _ => (0, 0),
+ };
+ if (dx == 0 && dy == 0)
+ {
+ return;
+ }
+ (int x, int y) = PointOf(thumb);
+ SetPoint(thumb, x + dx, y + dy);
+ e.Handled = true;
+ }
+}
diff --git a/WaveDude.WPF/Controls/TimelineBar.cs b/WaveDude.WPF/Controls/TimelineBar.cs
index 179e6bd..b657221 100644
--- a/WaveDude.WPF/Controls/TimelineBar.cs
+++ b/WaveDude.WPF/Controls/TimelineBar.cs
@@ -15,7 +15,8 @@ namespace WaveDude.WPF.Controls;
/// <see cref="SetRangeStartCommand"/> / <see cref="SetRangeEndCommand"/> (the range itself is
/// owned by the model, so the control never writes <see cref="RangeStart"/> or
/// <see cref="RangeEnd"/>). Keyboard: Left/Right one frame, PageUp/PageDown ten, Home/End to
-/// the in/out points, the wheel one frame. Drawn in <see cref="OnRender"/>; colours come from
+/// the in/out points, the wheel one frame. While a run is in progress <see cref="Available"/> shades the
+/// frames that exist and bounds the playhead. Drawn in <see cref="OnRender"/>; colours come from
/// the brush properties so a theme style can set them.
/// </summary>
public sealed class TimelineBar : FrameworkElement
@@ -82,6 +83,15 @@ public sealed class TimelineBar : FrameworkElement
public static readonly DependencyProperty AccentBrushProperty = DependencyProperty.Register(
nameof(AccentBrush), typeof(Brush), typeof(TimelineBar), new FrameworkPropertyMetadata(Brushes.DodgerBlue, FrameworkPropertyMetadataOptions.AffectsRender));
+ /// <summary>Identifies the <see cref="Available"/> property: frames computed so far.</summary>
+ public static readonly DependencyProperty AvailableProperty = DependencyProperty.Register(
+ nameof(Available), typeof(int), typeof(TimelineBar),
+ new FrameworkPropertyMetadata(0, FrameworkPropertyMetadataOptions.AffectsRender, (d, _) => d.CoerceValue(ValueProperty)));
+
+ /// <summary>Identifies the <see cref="AvailableBrush"/> property: shading of the available frames.</summary>
+ public static readonly DependencyProperty AvailableBrushProperty = DependencyProperty.Register(
+ nameof(AvailableBrush), typeof(Brush), typeof(TimelineBar), new FrameworkPropertyMetadata(Brushes.Transparent, FrameworkPropertyMetadataOptions.AffectsRender));
+
private enum DragMode { None, Scrub, RangeStart, RangeEnd }
private DragMode _drag;
@@ -172,6 +182,23 @@ public sealed class TimelineBar : FrameworkElement
set => SetValue(AccentBrushProperty, value);
}
+ /// <summary>
+ /// Number of frames that exist so far while a run fills the axis; 0 when every frame of the axis is
+ /// there (no run). The bar shades them; whether <see cref="Value"/> may go beyond is the owner's call.
+ /// </summary>
+ public int Available
+ {
+ get => (int)GetValue(AvailableProperty);
+ set => SetValue(AvailableProperty, value);
+ }
+
+ /// <summary>Shading of the available frames (a translucent fill works best).</summary>
+ public Brush AvailableBrush
+ {
+ get => (Brush)GetValue(AvailableBrushProperty);
+ set => SetValue(AvailableBrushProperty, value);
+ }
+
private static void OnMaximumChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) => d.CoerceValue(ValueProperty);
private static object CoerceValue(DependencyObject d, object value) => Math.Clamp((int)value, 0, ((TimelineBar)d).Maximum);
@@ -233,6 +260,13 @@ public sealed class TimelineBar : FrameworkElement
var bar = new Rect(0.5, BarTop + 0.5, w - 1.0, BarHeight - 1.0);
dc.DrawRectangle(Background, pen, bar);
+ // the frames a run has produced so far, as a band from the start
+ if (Available > 0 && Available <= Maximum)
+ {
+ double xa = Math.Round(XOf(Available - 1)) + 0.5;
+ dc.DrawRectangle(AvailableBrush, null, new Rect(bar.Left + 1, bar.Top + 1, Math.Max(0, xa - bar.Left - 1), bar.Height - 2));
+ }
+
// the in/out range: two brackets, plus a translucent band once it is narrower than the run
double x0 = Math.Round(XOf(RangeStart)) + 0.5;
double x1 = Math.Round(XOf(RangeEnd)) + 0.5;
diff --git a/WaveDude.WPF/Converters/NotNullConverter.cs b/WaveDude.WPF/Converters/NotNullConverter.cs
new file mode 100644
index 0000000..0d4824e
--- /dev/null
+++ b/WaveDude.WPF/Converters/NotNullConverter.cs
@@ -0,0 +1,15 @@
+using System.Globalization;
+using System.Windows.Data;
+
+namespace WaveDude.WPF.Converters;
+
+/// <summary>True when the bound value is not null; for enabling a control only while something exists (a run, a selection).</summary>
+public sealed class NotNullConverter : IValueConverter
+{
+ /// <inheritdoc/>
+ public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) => value != null;
+
+ /// <inheritdoc/>
+ public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) =>
+ throw new NotSupportedException();
+}
diff --git a/WaveDude.WPF/Converters/RunStatusConverter.cs b/WaveDude.WPF/Converters/RunStatusConverter.cs
new file mode 100644
index 0000000..6d62580
--- /dev/null
+++ b/WaveDude.WPF/Converters/RunStatusConverter.cs
@@ -0,0 +1,36 @@
+using System.Globalization;
+using System.Windows;
+using System.Windows.Data;
+using WaveDude.Runs;
+
+namespace WaveDude.WPF.Converters;
+
+/// <summary>
+/// The status bar's run text from (state, steps done, total steps, engine description), e.g.
+/// "Running: 1234 / 2500 steps, CPU (16 threads)", with <c>RunStatusStale</c> appended when a fifth value
+/// says the project was edited since. Empty while there is no run. The state's wording comes from the
+/// <c>RunState*</c> string resources and the layout from <c>RunStatusFormat</c>.
+/// </summary>
+public sealed class RunStatusConverter : IMultiValueConverter
+{
+ /// <inheritdoc/>
+ public object Convert(object[] values, Type targetType, object? parameter, CultureInfo culture)
+ {
+ if (values.Length < 4 || values[0] is not RunState state)
+ {
+ return "";
+ }
+ string stateText = Application.Current.TryFindResource("RunState" + state) as string ?? state.ToString();
+ string format = Application.Current.TryFindResource("RunStatusFormat") as string ?? "{0}: {1} / {2}, {3}";
+ string text = string.Format(culture, format, stateText, values[1], values[2], values[3]);
+ if (values.Length > 4 && values[4] is true)
+ {
+ text += Application.Current.TryFindResource("RunStatusStale") as string ?? " (edited since)";
+ }
+ return text;
+ }
+
+ /// <inheritdoc/>
+ public object[] ConvertBack(object value, Type[] targetTypes, object? parameter, CultureInfo culture) =>
+ throw new NotSupportedException();
+}
diff --git a/WaveDude.WPF/MainWindow.Live.cs b/WaveDude.WPF/MainWindow.Live.cs
new file mode 100644
index 0000000..e0dd843
--- /dev/null
+++ b/WaveDude.WPF/MainWindow.Live.cs
@@ -0,0 +1,264 @@
+using System.IO;
+using System.Windows;
+using System.Windows.Threading;
+using WaveDude.Model;
+using WaveDude.Runs;
+using WaveDude.WPF.Properties;
+using WaveDude.WPF.Rendering;
+
+namespace WaveDude.WPF;
+
+/// <summary>
+/// Keeps the preview current after edits: a <see cref="ProjectWatcher"/> notices every change, a
+/// simulation-affecting one marks the run stale (<see cref="IsRunStale"/>), asks the <see cref="ScratchRunner"/>
+/// for the frame the preview shows (debounced, newest wins) and, when <see cref="Settings.AutoRerun"/> is on,
+/// starts a stored re-run once the user has been idle for a moment; an edit during an automatic run stops
+/// that run at once, since its snapshot is obsolete. Scrubbing asks for scratch frames whenever the store
+/// cannot show the position: no run, a stale run, or a run that has not got there yet. The scratch runner
+/// has its own engine, so a stored run in progress does not hold it back.
+/// </summary>
+public partial class MainWindow
+{
+ /// <summary>How long after the last edit or scrub a scratch frame is requested.</summary>
+ private static readonly TimeSpan ScratchDelay = TimeSpan.FromMilliseconds(120);
+
+ /// <summary>How long the user must be idle after an edit before the stored run is redone.</summary>
+ private static readonly TimeSpan RerunDelay = TimeSpan.FromMilliseconds(1500);
+
+ /// <summary>Identifies the <see cref="IsRunStale"/> property.</summary>
+ public static readonly DependencyProperty IsRunStaleProperty = DependencyProperty.Register(
+ nameof(IsRunStale), typeof(bool), typeof(MainWindow), new PropertyMetadata(false));
+
+ /// <summary>Identifies the <see cref="ScratchFrame"/> property.</summary>
+ public static readonly DependencyProperty ScratchFrameProperty = DependencyProperty.Register(
+ nameof(ScratchFrame), typeof(ScratchResult), typeof(MainWindow), new PropertyMetadata(null));
+
+ /// <summary>Identifies the <see cref="PreviewPosition"/> property.</summary>
+ public static readonly DependencyProperty PreviewPositionProperty = DependencyProperty.Register(
+ nameof(PreviewPosition), typeof(int), typeof(MainWindow), new PropertyMetadata(0, (d, _) => ((MainWindow)d).OnPreviewPositionChanged()));
+
+ private ProjectWatcher? _watcher;
+ private ScratchRunner? _scratch;
+ private SimulationRun? _pausedForScratch;
+ private int _lastSkippedFrame = -1;
+ private DispatcherTimer? _scratchTimer;
+ private DispatcherTimer? _rerunTimer;
+ private (string Path, DateTime Written, ScenePixels Pixels)? _imageCache;
+
+ /// <summary>Whether the project was edited in a way that changes the simulation since the current run started.</summary>
+ public bool IsRunStale
+ {
+ get => (bool)GetValue(IsRunStaleProperty);
+ set => SetValue(IsRunStaleProperty, value);
+ }
+
+ /// <summary>The newest scratch frame (or skip notice) for the preview's position; null when none applies.</summary>
+ public ScratchResult? ScratchFrame
+ {
+ get => (ScratchResult?)GetValue(ScratchFrameProperty);
+ set => SetValue(ScratchFrameProperty, value);
+ }
+
+ /// <summary>The preview's frame index, bound from the pane so scratch requests follow it.</summary>
+ public int PreviewPosition
+ {
+ get => (int)GetValue(PreviewPositionProperty);
+ set => SetValue(PreviewPositionProperty, value);
+ }
+
+ /// <summary>A new project: watch it instead of the old one; nothing is stale and no scratch frame applies.</summary>
+ private void OnProjectReplaced(Project? project)
+ {
+ _watcher?.Dispose();
+ _watcher = null;
+ _imageCache = null;
+ IsRunStale = false;
+ ScratchFrame = null;
+ if (project != null)
+ {
+ _watcher = new ProjectWatcher(project);
+ _watcher.Changed += OnProjectChanged;
+ // warm up: the first scratch frame builds the engine (an OpenCL compile), better now than on the first click
+ ScheduleScratch();
+ }
+ }
+
+ private void OnProjectChanged(object? sender, ProjectChange change)
+ {
+ if (!change.AffectsSimulation)
+ {
+ return;
+ }
+ if (Run != null)
+ {
+ IsRunStale = true;
+ }
+ if (Run is { IsAutomatic: true, IsActive: true })
+ {
+ // its snapshot is already obsolete: stop it now, the quiet period starts a fresh one
+ Run.Stop();
+ }
+ ScheduleScratch();
+ ScheduleRerun();
+ }
+
+ /// <summary>Whether the store cannot show the preview's position: no run, a stale one, or one that has not reached it.</summary>
+ private bool NeedsScratch => Run == null || IsRunStale || Run.FrameCount <= PreviewPosition;
+
+ private void OnPreviewPositionChanged()
+ {
+ if (NeedsScratch)
+ {
+ ScheduleScratch();
+ }
+ }
+
+ /// <summary>After <see cref="ScratchDelay"/> of quiet, asks for the frame at the preview's position.</summary>
+ private void ScheduleScratch()
+ {
+ _scratchTimer ??= MakeTimer(ScratchDelay, RequestScratch);
+ _scratchTimer.Stop();
+ _scratchTimer.Start();
+ }
+
+ private void RequestScratch()
+ {
+ _scratchTimer!.Stop();
+ if (!NeedsScratch || Project.Simulation.Steps < 1)
+ {
+ return;
+ }
+ RunSpec? spec = TrySnapshotProject();
+ if (spec == null)
+ {
+ return;
+ }
+ if (_scratch == null)
+ {
+ _scratch = new ScratchRunner(SynchronizationContext.Current);
+ _scratch.Completed += OnScratchCompleted;
+ }
+ // the user's frame comes first: an automatic run in progress would otherwise take every core (CPU) or
+ // the card's time away from it; it continues once the frame is there
+ if (Run is { IsAutomatic: true, IsActive: true } run && !run.IsPauseRequested)
+ {
+ run.Pause();
+ _pausedForScratch = run;
+ }
+ _scratch.Request(spec, Math.Clamp(PreviewPosition, 0, Math.Max(0, spec.FrameCount - 1)));
+ }
+
+ private void OnScratchCompleted(object? sender, ScratchResult result)
+ {
+ if (_pausedForScratch is { } paused)
+ {
+ _pausedForScratch = null;
+ if (ReferenceEquals(paused, Run) && paused.IsActive)
+ {
+ paused.Resume();
+ }
+ }
+ if (result.Snapshot == null && result.Frame != _lastSkippedFrame)
+ {
+ // the status bar says why nothing appears; once per frame, so scrubbing does not flood it
+ _lastSkippedFrame = result.Frame;
+ Logger.Info("Preview of frame {Frame} skipped: it would take {Seconds:0} s to compute; wait for the run, or use the GPU", result.Frame, result.Estimate.TotalSeconds);
+ }
+ ScratchFrame = result;
+ }
+
+ /// <summary>After <see cref="RerunDelay"/> of quiet, redoes the stored run when the setting is on and the run is stale.</summary>
+ private void ScheduleRerun()
+ {
+ if (!Settings.Default.AutoRerun)
+ {
+ return;
+ }
+ _rerunTimer ??= MakeTimer(RerunDelay, AutoRerun);
+ _rerunTimer.Stop();
+ _rerunTimer.Start();
+ }
+
+ private void AutoRerun()
+ {
+ _rerunTimer!.Stop();
+ if (!Settings.Default.AutoRerun || !IsRunStale || Run?.IsActive == true)
+ {
+ return;
+ }
+ if (_scratch?.IsBusy == true)
+ {
+ // the frame the user is looking at comes first; the run would take the cores away from it
+ ScheduleRerun();
+ return;
+ }
+ try
+ {
+ StartRun(automatic: true);
+ }
+ catch (Exception ex) when (ex is RunSpecException or IOException or UnauthorizedAccessException or NotSupportedException)
+ {
+ // no message box for something the user did not ask for; the status bar shows the error
+ Logger.Error(ex, "The automatic re-run could not start: {Message}", ex.Message);
+ }
+ }
+
+ /// <summary>Called when a run ends: edits made meanwhile are still pending, so look again.</summary>
+ private void OnRunFinished()
+ {
+ if (IsRunStale)
+ {
+ ScheduleScratch();
+ ScheduleRerun();
+ }
+ }
+
+ /// <summary>The project as a run spec with the scene image decoded (cached by path and write time), or null when it cannot run (logged at Debug).</summary>
+ private RunSpec? TrySnapshotProject()
+ {
+ try
+ {
+ return RunSpec.Create(Project, LoadSceneImage(), Settings.Default.UseGpu);
+ }
+ catch (Exception ex) when (ex is RunSpecException or IOException or UnauthorizedAccessException or NotSupportedException)
+ {
+ Logger.Debug("No preview: {Message}", ex.Message);
+ return null;
+ }
+ }
+
+ /// <summary>The decoded scene image for an image scene, decoded once per file version; null for a blank canvas.</summary>
+ private ScenePixels? LoadSceneImage()
+ {
+ if (Project.Scene.Mode != SceneMode.Image)
+ {
+ return null;
+ }
+ string path = ResolveScenePath();
+ DateTime written = File.GetLastWriteTimeUtc(path);
+ if (_imageCache is { } cached && cached.Path == path && cached.Written == written)
+ {
+ return cached.Pixels;
+ }
+ ScenePixels pixels = SceneImageLoader.Load(path);
+ _imageCache = (path, written, pixels);
+ return pixels;
+ }
+
+ private DispatcherTimer MakeTimer(TimeSpan interval, Action tick)
+ {
+ var timer = new DispatcherTimer(DispatcherPriority.Background) { Interval = interval };
+ timer.Tick += (_, _) => tick();
+ return timer;
+ }
+
+ private void ShutdownScratch()
+ {
+ _scratchTimer?.Stop();
+ _rerunTimer?.Stop();
+ _scratch?.Dispose();
+ _scratch = null;
+ _watcher?.Dispose();
+ _watcher = null;
+ }
+}
diff --git a/WaveDude.WPF/MainWindow.Simulation.cs b/WaveDude.WPF/MainWindow.Simulation.cs
new file mode 100644
index 0000000..68f77ad
--- /dev/null
+++ b/WaveDude.WPF/MainWindow.Simulation.cs
@@ -0,0 +1,159 @@
+using System.IO;
+using System.Windows;
+using System.Windows.Input;
+using WaveDude.Model;
+using WaveDude.Runs;
+using WaveDude.WPF.Properties;
+using WaveDude.WPF.Rendering;
+
+namespace WaveDude.WPF;
+
+/// <summary>
+/// Handlers of <see cref="Commands.SimulationCommands"/>: the window owns the current
+/// <see cref="Run"/> and its frame store. A run snapshots the project when it starts; editing
+/// the project meanwhile is allowed and does not affect it. The store lives until the run is
+/// replaced, the project is replaced or the window closes.
+/// </summary>
+public partial class MainWindow
+{
+ /// <summary>Identifies the <see cref="Run"/> property.</summary>
+ public static readonly DependencyProperty RunProperty = DependencyProperty.Register(
+ nameof(Run), typeof(SimulationRun), typeof(MainWindow),
+ new PropertyMetadata(null, (_, _) => CommandManager.InvalidateRequerySuggested()));
+
+ /// <summary>The current run (active or finished, its frames in the preview), or null.</summary>
+ public SimulationRun? Run
+ {
+ get => (SimulationRun?)GetValue(RunProperty);
+ set => SetValue(RunProperty, value);
+ }
+
+ private void CanRun(object sender, CanExecuteRoutedEventArgs e) => e.CanExecute = Run?.IsActive != true;
+
+ private void OnRun(object sender, ExecutedRoutedEventArgs e)
+ {
+ try
+ {
+ StartRun();
+ }
+ catch (Exception ex) when (ex is RunSpecException or IOException or UnauthorizedAccessException or NotSupportedException)
+ {
+ Logger.Error(ex, "The run could not start: {Message}", ex.Message);
+ ShowError((string)FindResource("RunError"), ex);
+ }
+ }
+
+ /// <summary>Decodes the scene image, snapshots the project, checks the disk, creates the store and starts the worker.</summary>
+ /// <param name="automatic">Started after an edit rather than by the user: the preview keeps its position.</param>
+ private void StartRun(bool automatic = false)
+ {
+ RunSpec spec = RunSpec.Create(Project, LoadSceneImage(), Settings.Default.UseGpu);
+ FrameCache.CheckSpace(FrameStore.SizeOf(spec.Width, spec.Height, spec.Layers, spec.FrameCount));
+ DiscardRun();
+ FrameStore store = FrameStore.Create(FrameCache.NewPath(), spec.Width, spec.Height, spec.Layers, spec.FrameCount, spec.VisualizeEvery);
+ var run = new SimulationRun(spec, store, SynchronizationContext.Current, automatic);
+ run.PropertyChanged += (_, args) =>
+ {
+ if (args.PropertyName == nameof(SimulationRun.State))
+ {
+ CommandManager.InvalidateRequerySuggested();
+ }
+ };
+ run.Finished += (_, _) => OnRunFinished();
+ Logger.Info("{Kind} started: {Steps} steps, {Frames} frames of {Width}×{Height}; edits made from now on do not affect it",
+ automatic ? "Re-run" : "Run", spec.Steps, spec.FrameCount, spec.Width, spec.Height);
+ IsRunStale = false;
+ Run = run;
+ run.Start();
+ }
+
+ /// <summary>The scene image's full path: as given when rooted, otherwise relative to the project file.</summary>
+ /// <exception cref="RunSpecException">The path is relative and the project has not been saved.</exception>
+ private string ResolveScenePath()
+ {
+ string image = Project.Scene.Image;
+ if (image.Length == 0)
+ {
+ throw new RunSpecException((string)FindResource("RunErrorNoImage"));
+ }
+ if (Path.IsPathRooted(image))
+ {
+ return image;
+ }
+ string? folder = Filename != null ? Path.GetDirectoryName(Filename) : null;
+ if (folder == null)
+ {
+ throw new RunSpecException((string)FindResource("RunErrorUnsavedImagePath"));
+ }
+ return Path.GetFullPath(image, folder);
+ }
+
+ private void CanControlRun(object sender, CanExecuteRoutedEventArgs e) => e.CanExecute = Run?.IsActive == true;
+
+ /// <summary>Play pressed: a missing or stale run is started like an automatic one (position kept, not followed); errors go to the log and status bar.</summary>
+ private void OnEnsureRun(object sender, ExecutedRoutedEventArgs e)
+ {
+ if (Run?.IsActive == true || (Run != null && !IsRunStale))
+ {
+ return;
+ }
+ try
+ {
+ StartRun(automatic: true);
+ }
+ catch (Exception ex) when (ex is RunSpecException or IOException or UnauthorizedAccessException or NotSupportedException)
+ {
+ Logger.Error(ex, "The run could not start: {Message}", ex.Message);
+ }
+ }
+
+ private void OnTogglePause(object sender, ExecutedRoutedEventArgs e) => Run?.TogglePause();
+
+ private void OnStop(object sender, ExecutedRoutedEventArgs e) => Run?.Stop();
+
+ /// <summary>
+ /// Drops the current run: stops it and disposes its store (deleting the cache file) once the worker has
+ /// let go of it. Called before a new run, when the project is replaced and on closing.
+ /// </summary>
+ private void DiscardRun()
+ {
+ SimulationRun? old = Run;
+ // the run goes first: with it gone the preview shows the scratch frame; clearing the stale flag before
+ // would make it pick the old store for a moment (and wait on its file being deleted)
+ Run = null;
+ IsRunStale = false;
+ if (old == null)
+ {
+ return;
+ }
+ old.Stop();
+ // on the thread pool: unmapping a run's cache file is quick, but never the UI thread's wait
+ old.Completion.ContinueWith(_ =>
+ {
+ old.Store.Dispose();
+ old.Dispose();
+ }, TaskScheduler.Default);
+ }
+
+ /// <summary>Synchronous variant for closing: waits (briefly) for the worker so the file is closed before the process ends.</summary>
+ private void ShutdownRun()
+ {
+ SimulationRun? old = Run;
+ if (old == null)
+ {
+ return;
+ }
+ Run = null;
+ old.Stop();
+ if (!old.Completion.Wait(TimeSpan.FromSeconds(5)))
+ {
+ Logger.Warn("The run did not stop in time; its cache file is deleted by the system when the process ends");
+ }
+ // not awaited: the process exit closes the handles and deletes the file in any case
+ Task.Run(() =>
+ {
+ old.Store.Dispose();
+ old.Dispose();
+ });
+ }
+}
diff --git a/WaveDude.WPF/MainWindow.xaml b/WaveDude.WPF/MainWindow.xaml
index 45a4c22..a65ee81 100644
--- a/WaveDude.WPF/MainWindow.xaml
+++ b/WaveDude.WPF/MainWindow.xaml
@@ -7,6 +7,7 @@
xmlns:panes="clr-namespace:WaveDude.WPF.Panes"
xmlns:commands="clr-namespace:WaveDude.WPF.Commands"
xmlns:p="clr-namespace:WaveDude.WPF.Properties"
+ xmlns:runs="clr-namespace:WaveDude.Runs;assembly=WaveDude"
Icon="App.ico"
DataContext="{Binding RelativeSource={RelativeSource Self}}"
Width="{Binding Source={x:Static p:Settings.Default}, Path=MainWindow_Width, Mode=TwoWay}"
@@ -22,6 +23,7 @@
<Window.Resources>
<converters:EqualityConverter x:Key="Equality" />
<converters:TitleConverter x:Key="TitleConverter" />
+ <converters:RunStatusConverter x:Key="RunStatus" />
<RoutedUICommand x:Key="FileOpenRecent" />
<RoutedUICommand x:Key="ShowMessages" Text="Show messages" />
@@ -87,6 +89,12 @@
<CommandBinding Command="{StaticResource FileExit}" Executed="OnFileExit" />
<CommandBinding Command="{StaticResource ShowMessages}" Executed="OnShowMessages" />
+ <!-- the run; handlers in MainWindow.Simulation.cs -->
+ <CommandBinding Command="{x:Static commands:SimulationCommands.Run}" CanExecute="CanRun" Executed="OnRun" />
+ <CommandBinding Command="{x:Static commands:SimulationCommands.TogglePause}" CanExecute="CanControlRun" Executed="OnTogglePause" />
+ <CommandBinding Command="{x:Static commands:SimulationCommands.Stop}" CanExecute="CanControlRun" Executed="OnStop" />
+ <CommandBinding Command="{x:Static commands:SimulationCommands.EnsureRun}" Executed="OnEnsureRun" />
+
<!-- project structure; handlers in MainWindow.Project.cs -->
<CommandBinding Command="{x:Static commands:ProjectCommands.AddSource}" Executed="OnAddSource" />
<CommandBinding Command="{x:Static commands:ProjectCommands.AddProbe}" Executed="OnAddProbe" />
@@ -127,6 +135,31 @@
ItemsSource="{Binding Options, Source={x:Static theming:ThemeController.Instance}}"
ItemContainerStyle="{StaticResource ThemeMenuItemStyle}" />
</MenuItem>
+ <MenuItem Header="{DynamicResource MenuSimulation}">
+ <MenuItem Command="{x:Static commands:SimulationCommands.Run}" Header="{DynamicResource MenuSimulationRun}" InputGestureText="F5" />
+ <!-- one entry pauses and resumes; the header follows whether a pause is pending -->
+ <MenuItem Command="{x:Static commands:SimulationCommands.TogglePause}" InputGestureText="F6">
+ <MenuItem.Style>
+ <Style TargetType="{x:Type MenuItem}" BasedOn="{StaticResource {x:Type MenuItem}}">
+ <Setter Property="Header" Value="{DynamicResource MenuSimulationPause}" />
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding Run.State}" Value="{x:Static runs:RunState.Paused}">
+ <Setter Property="Header" Value="{DynamicResource MenuSimulationResume}" />
+ </DataTrigger>
+ </Style.Triggers>
+ </Style>
+ </MenuItem.Style>
+ </MenuItem>
+ <MenuItem Command="{x:Static commands:SimulationCommands.Stop}" Header="{DynamicResource MenuSimulationStop}" InputGestureText="Shift+F5" />
+ <Separator />
+ <!-- the engine is the application's choice, not the project's: it does not change the result -->
+ <MenuItem Header="{DynamicResource MenuSimulationUseGpu}" IsCheckable="True"
+ IsChecked="{Binding Source={x:Static p:Settings.Default}, Path=UseGpu, Mode=TwoWay}"
+ AutomationProperties.AutomationId="MenuUseGpu" />
+ <MenuItem Header="{DynamicResource MenuSimulationAutoRerun}" IsCheckable="True"
+ IsChecked="{Binding Source={x:Static p:Settings.Default}, Path=AutoRerun, Mode=TwoWay}"
+ AutomationProperties.AutomationId="MenuAutoRerun" />
+ </MenuItem>
<MenuItem Header="{DynamicResource MenuHelp}">
<MenuItem Header="{DynamicResource MenuHelpAbout}" />
</MenuItem>
@@ -137,6 +170,20 @@
<StatusBar.InputBindings>
<MouseBinding Gesture="LeftDoubleClick" Command="{StaticResource ShowMessages}" />
</StatusBar.InputBindings>
+ <!-- the run's progress on the right: state, steps, engine; empty while there is no run -->
+ <StatusBarItem DockPanel.Dock="Right" HorizontalAlignment="Right">
+ <TextBlock AutomationProperties.AutomationId="StatusRun">
+ <TextBlock.Text>
+ <MultiBinding Converter="{StaticResource RunStatus}">
+ <Binding Path="Run.State" />
+ <Binding Path="Run.StepsDone" />
+ <Binding Path="Run.TotalSteps" />
+ <Binding Path="Run.EngineDescription" />
+ <Binding Path="IsRunStale" />
+ </MultiBinding>
+ </TextBlock.Text>
+ </TextBlock>
+ </StatusBarItem>
<StatusBarItem>
<TextBlock x:Name="txtStatus" Text="{DynamicResource Ready}" />
</StatusBarItem>
@@ -156,7 +203,10 @@
</docking:DockHost.Items>
<docking:DockHost.DocumentContent>
<Border BorderThickness="1" BorderBrush="{DynamicResource ToolWindowBorder}">
- <panes:PreviewPane x:Name="previewPane" Project="{Binding Project}" />
+ <panes:PreviewPane x:Name="previewPane" Project="{Binding Project}" Run="{Binding Run}" SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
+ IsStale="{Binding IsRunStale}" ScratchFrame="{Binding ScratchFrame}"
+ Position="{Binding PreviewPosition, Mode=TwoWay}"
+ Orientation="{Binding Source={x:Static p:Settings.Default}, Path=PreviewOrientation, Mode=TwoWay}" />
</Border>
</docking:DockHost.DocumentContent>
</docking:DockHost>
diff --git a/WaveDude.WPF/MainWindow.xaml.cs b/WaveDude.WPF/MainWindow.xaml.cs
index f157c0f..2d483e3 100644
--- a/WaveDude.WPF/MainWindow.xaml.cs
+++ b/WaveDude.WPF/MainWindow.xaml.cs
@@ -2,6 +2,7 @@ using System.Collections.Specialized;
using System.Configuration;
using System.IO;
using System.Windows;
+using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Shell;
using Microsoft.Win32;
@@ -16,9 +17,9 @@ namespace WaveDude.WPF;
/// <summary>
/// Shell window: menu, status bar and the <see cref="DockHost"/> with the Project and
/// Properties panes around the preview. The window is its own data context: it owns the open
-/// <see cref="Project"/>, its <see cref="Filename"/> and the tree's <see cref="SelectedItem"/>.
-/// Window placement is bound two-way to <see cref="Settings"/> in the XAML; the pane
-/// arrangement is stored there on closing.
+/// <see cref="Project"/>, its <see cref="Filename"/>, the tree's <see cref="SelectedItem"/> and the
+/// current <see cref="Run"/> (see <c>MainWindow.Simulation.cs</c>). Window placement is bound two-way
+/// to <see cref="Settings"/> in the XAML; the pane arrangement is stored there on closing.
/// </summary>
public partial class MainWindow : Window
{
@@ -30,7 +31,7 @@ public partial class MainWindow : Window
/// <summary>Identifies the <see cref="Project"/> property.</summary>
public static readonly DependencyProperty ProjectProperty = DependencyProperty.Register(
- nameof(Project), typeof(Project), typeof(MainWindow));
+ nameof(Project), typeof(Project), typeof(MainWindow), new PropertyMetadata(null, (d, e) => ((MainWindow)d).OnProjectReplaced((Project?)e.NewValue)));
/// <summary>Identifies the <see cref="Filename"/> property.</summary>
public static readonly DependencyProperty FilenameProperty = DependencyProperty.Register(
@@ -40,14 +41,14 @@ public partial class MainWindow : Window
/// <summary>Identifies the <see cref="SelectedItem"/> property.</summary>
public static readonly DependencyProperty SelectedItemProperty = DependencyProperty.Register(
nameof(SelectedItem), typeof(object), typeof(MainWindow),
- new PropertyMetadata(null, (_, _) => CommandManager.InvalidateRequerySuggested()));
+ new PropertyMetadata(null, (d, e) => ((MainWindow)d).OnSelectedItemChanged(e.NewValue)));
public MainWindow()
{
Project = new Project();
InitializeComponent();
- if (!TryLoadLayout())
+ if (!TryLoadLayout() && !dockHost.LoadLayout(DefaultLayout()))
{
// Messages stays hidden until asked for (View > Panes, status bar double-click)
dockHost.Show(projectDock);
@@ -55,7 +56,12 @@ public partial class MainWindow : Window
}
SourceInitialized += (_, _) => ThemeController.Instance.ApplyTitleBar(this);
- Closing += (_, _) => Settings.Default.Layout = dockHost.SaveLayout();
+ Closing += (_, _) =>
+ {
+ Settings.Default.Layout = dockHost.SaveLayout();
+ ShutdownRun();
+ ShutdownScratch();
+ };
}
/// <summary>The open project. Never null: an empty project while nothing is loaded.</summary>
@@ -72,13 +78,23 @@ public partial class MainWindow : Window
set => SetValue(FilenameProperty, value);
}
- /// <summary>The model object selected in the project tree, or null.</summary>
+ /// <summary>The model object selected in the project tree (or on the preview's pictures), or null.</summary>
public object? SelectedItem
{
get => GetValue(SelectedItemProperty);
set => SetValue(SelectedItemProperty, value);
}
+ /// <summary>A selection made elsewhere (a marker on the preview) is mirrored in the tree, which then raises its own change with the same item.</summary>
+ private void OnSelectedItemChanged(object? item)
+ {
+ CommandManager.InvalidateRequerySuggested();
+ if (item != null && !ReferenceEquals(projectTree.SelectedItem, item))
+ {
+ projectTree.Select(item);
+ }
+ }
+
/// <summary>
/// Loads the project file at <paramref name="fileName"/> and makes it the open project.
/// Failures are logged and shown to the user; the previous project stays open then.
@@ -88,7 +104,9 @@ public partial class MainWindow : Window
try
{
fileName = Path.GetFullPath(fileName);
- Project = Project.Load(fileName);
+ Project loaded = Project.Load(fileName);
+ DiscardRun();
+ Project = loaded;
Filename = fileName;
Logger.Info("Opened '{Path}'", fileName);
RememberRecent(fileName);
@@ -144,6 +162,7 @@ public partial class MainWindow : Window
private void OnFileNew(object sender, ExecutedRoutedEventArgs e)
{
+ DiscardRun();
Project = new Project();
Filename = null;
projectTree.SelectRoot();
@@ -198,6 +217,7 @@ public partial class MainWindow : Window
private void OnFileClose(object sender, ExecutedRoutedEventArgs e)
{
+ DiscardRun();
Project = new Project();
Filename = null;
projectTree.SelectRoot();
@@ -248,6 +268,32 @@ public partial class MainWindow : Window
}
}
+ /// <summary>
+ /// The arrangement of a first start (agreed 2026-10-09): a left column of a quarter of the width with the
+ /// Project tree in its upper third and the Properties pane below it, the preview in the rest; Messages hidden.
+ /// </summary>
+ private DockLayout DefaultLayout() => new()
+ {
+ Root = new DockLayout.SplitLayout
+ {
+ Orientation = Orientation.Horizontal,
+ Children =
+ {
+ new DockLayout.SplitLayout
+ {
+ Orientation = Orientation.Vertical,
+ Length = 1,
+ Children =
+ {
+ new DockLayout.GroupLayout { Items = { projectDock.Id }, Active = projectDock.Id, Length = 1 },
+ new DockLayout.GroupLayout { Items = { propertiesDock.Id }, Active = propertiesDock.Id, Length = 2 },
+ },
+ },
+ new DockLayout.DocumentLayout { Length = 3 },
+ },
+ },
+ };
+
private bool TryLoadLayout()
{
DockLayout? layout = Settings.Default.Layout;
diff --git a/WaveDude.WPF/Panes/PreviewPane.xaml b/WaveDude.WPF/Panes/PreviewPane.xaml
index b2ddd66..957dca0 100644
--- a/WaveDude.WPF/Panes/PreviewPane.xaml
+++ b/WaveDude.WPF/Panes/PreviewPane.xaml
@@ -11,6 +11,7 @@
<converters:EnumBooleanConverter x:Key="EnumBoolean" />
<converters:DoubleTextConverter x:Key="DoubleText" />
<converters:FrameToStepConverter x:Key="FrameToStep" />
+ <converters:NotNullConverter x:Key="NotNull" />
<StreamGeometry x:Key="PlayGeometry">M0,0 L9,5 L0,10 Z</StreamGeometry>
<StreamGeometry x:Key="PauseGeometry">M0,0 L3,0 L3,10 L0,10 Z M6,0 L9,0 L9,10 L6,10 Z</StreamGeometry>
@@ -22,6 +23,9 @@
<StreamGeometry x:Key="SetOutGeometry">M11,0 L7,0 L7,2 L9,2 L9,8 L7,8 L7,10 L11,10 Z M5,2 L0,5 L5,8 Z</StreamGeometry>
<StreamGeometry x:Key="ClearRangeGeometry">M0,1.5 L1.5,0 L5,3.5 L8.5,0 L10,1.5 L6.5,5 L10,8.5 L8.5,10 L5,6.5 L1.5,10 L0,8.5 L3.5,5 Z</StreamGeometry>
<StreamGeometry x:Key="LoopGeometry">M5,1 A4,4 0 1 1 1,5 L3,5 A2,2 0 1 0 5,3 Z M5,0 L8,2 L5,4 Z</StreamGeometry>
+ <!-- "live": a dot inside a ring (even-odd fill makes the ring hollow) -->
+ <StreamGeometry x:Key="LiveGeometry">M0.5,5 A4.5,4.5 0 1 1 9.5,5 A4.5,4.5 0 1 1 0.5,5 Z M1.5,5 A3.5,3.5 0 1 0 8.5,5 A3.5,3.5 0 1 0 1.5,5 Z M3.5,5 A1.5,1.5 0 1 1 6.5,5 A1.5,1.5 0 1 1 3.5,5 Z</StreamGeometry>
+ <BooleanToVisibilityConverter x:Key="BoolToVisibility" />
<!-- filled-glyph transport button; Content is the geometry. A tab stop: keyboard focus shows as an accent border -->
<Style x:Key="TransportButton" TargetType="{x:Type Button}">
@@ -90,6 +94,65 @@
</Setter>
</Style>
+ <!-- the handles of the sources and probes on the pictures: a ring for a source, a square for a probe
+ point, each with four crosshair ticks outside it and a gap around the exact pixel; every stroke is
+ drawn twice, a dark halo first, so the glyph reads on any picture. The selected item's handle and
+ the focused handle show the accent. Glyphs are 20 x 20 with the point at (10, 10) -->
+ <StreamGeometry x:Key="SourceGlyph">M4,10 A6,6 0 1 1 16,10 A6,6 0 1 1 4,10 M10,0 L10,2.5 M10,17.5 L10,20 M0,10 L2.5,10 M17.5,10 L20,10</StreamGeometry>
+ <StreamGeometry x:Key="ProbeGlyph">M4.5,4.5 L15.5,4.5 L15.5,15.5 L4.5,15.5 Z M10,0 L10,2.5 M10,17.5 L10,20 M0,10 L2.5,10 M17.5,10 L20,10</StreamGeometry>
+ <Style x:Key="MarkerBase" TargetType="{x:Type controls:MarkerThumb}">
+ <Setter Property="Width" Value="20" />
+ <Setter Property="Height" Value="20" />
+ <Setter Property="Cursor" Value="SizeAll" />
+ <Setter Property="FocusVisualStyle" Value="{x:Null}" />
+ <Setter Property="Foreground" Value="White" />
+ <Setter Property="Background" Value="#60000000" />
+ <Setter Property="BorderBrush" Value="White" />
+ <Setter Property="StrokeThickness" Value="1.5" />
+ <Style.Triggers>
+ <Trigger Property="IsSelectedMarker" Value="True">
+ <Setter Property="BorderBrush" Value="{DynamicResource Accent}" />
+ <Setter Property="Foreground" Value="{DynamicResource Accent}" />
+ </Trigger>
+ <Trigger Property="IsKeyboardFocused" Value="True">
+ <Setter Property="Background" Value="{DynamicResource DropPreviewFill}" />
+ <Setter Property="StrokeThickness" Value="2.5" />
+ </Trigger>
+ <Trigger Property="IsMouseOver" Value="True">
+ <Setter Property="StrokeThickness" Value="2.5" />
+ </Trigger>
+ </Style.Triggers>
+ </Style>
+ <Style x:Key="SourceMarker" TargetType="{x:Type controls:MarkerThumb}" BasedOn="{StaticResource MarkerBase}">
+ <Setter Property="Template">
+ <Setter.Value>
+ <ControlTemplate TargetType="{x:Type controls:MarkerThumb}">
+ <Grid Background="Transparent">
+ <Ellipse Width="12" Height="12" Fill="{TemplateBinding Background}" />
+ <Path Data="{StaticResource SourceGlyph}" Stroke="Black" StrokeThickness="{TemplateBinding HaloThickness}" StrokeStartLineCap="Round" StrokeEndLineCap="Round" Opacity="0.75" />
+ <Path Data="{StaticResource SourceGlyph}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding StrokeThickness}" StrokeStartLineCap="Round" StrokeEndLineCap="Round" />
+ <Ellipse Width="5" Height="5" Fill="Black" Opacity="0.75" />
+ <Ellipse Width="3" Height="3" Fill="{TemplateBinding Foreground}" />
+ </Grid>
+ </ControlTemplate>
+ </Setter.Value>
+ </Setter>
+ </Style>
+ <Style x:Key="ProbeMarker" TargetType="{x:Type controls:MarkerThumb}" BasedOn="{StaticResource MarkerBase}">
+ <Setter Property="Template">
+ <Setter.Value>
+ <ControlTemplate TargetType="{x:Type controls:MarkerThumb}">
+ <Grid Background="Transparent">
+ <Rectangle Width="11" Height="11" Fill="{TemplateBinding Background}" />
+ <Path Data="{StaticResource ProbeGlyph}" Stroke="Black" StrokeThickness="{TemplateBinding HaloThickness}" StrokeLineJoin="Round" StrokeStartLineCap="Round" StrokeEndLineCap="Round" Opacity="0.75" />
+ <Path Data="{StaticResource ProbeGlyph}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding StrokeThickness}" StrokeLineJoin="Round" StrokeStartLineCap="Round" StrokeEndLineCap="Round" />
+ <Rectangle Width="5" Height="5" Fill="Black" Opacity="0.75" />
+ <Rectangle Width="3" Height="3" Fill="{TemplateBinding Foreground}" />
+ </Grid>
+ </ControlTemplate>
+ </Setter.Value>
+ </Setter>
+ </Style>
<!-- the time axis: theme colours for the custom-drawn bar -->
<Style TargetType="{x:Type controls:TimelineBar}">
<Setter Property="Background" Value="{DynamicResource ScrollBarBackground}" />
@@ -97,7 +160,14 @@
<Setter Property="TickBrush" Value="{DynamicResource ControlBorder}" />
<Setter Property="LabelBrush" Value="{DynamicResource GrayText}" />
<Setter Property="AccentBrush" Value="{DynamicResource Accent}" />
+ <Setter Property="AvailableBrush" Value="{DynamicResource DropPreviewFill}" />
<Setter Property="Margin" Value="4,2" />
+ <Style.Triggers>
+ <!-- the project was edited since the run: its frames are shaded grey instead of accent -->
+ <DataTrigger Binding="{Binding IsStale, ElementName=pane}" Value="True">
+ <Setter Property="AvailableBrush" Value="#50808080" />
+ </DataTrigger>
+ </Style.Triggers>
</Style>
</UserControl.Resources>
@@ -114,6 +184,7 @@
<CommandBinding Command="{x:Static commands:PreviewCommands.SetOutPoint}" CanExecute="CanEditRange" Executed="OnSetOutPoint" />
<CommandBinding Command="{x:Static commands:PreviewCommands.ClearRange}" CanExecute="CanClearRange" Executed="OnClearRange" />
<CommandBinding Command="{x:Static commands:PreviewCommands.ToggleLoop}" CanExecute="CanTransport" Executed="OnToggleLoop" />
+ <CommandBinding Command="{x:Static commands:PreviewCommands.ToggleLive}" CanExecute="CanToggleLive" Executed="OnToggleLive" />
</UserControl.CommandBindings>
<!-- plain letters are not valid KeyGestures on a command, so these live here; CanTransport keeps them out of text boxes -->
<UserControl.InputBindings>
@@ -124,11 +195,12 @@
<KeyBinding Key="O" Command="{x:Static commands:PreviewCommands.SetOutPoint}" />
<KeyBinding Key="X" Command="{x:Static commands:PreviewCommands.ClearRange}" />
<KeyBinding Key="L" Command="{x:Static commands:PreviewCommands.ToggleLoop}" />
+ <KeyBinding Key="F" Command="{x:Static commands:PreviewCommands.ToggleLive}" />
</UserControl.InputBindings>
<DockPanel>
- <!-- transport bar: play, pause, frame steps, in/out/clear, loop, frame and step readout, speed,
+ <!-- transport bar: play, pause, frame steps, in/out/clear, loop, live, frame and step readout, speed,
split. Tab order (TabIndex) is left to right; the DockPanel declares the right-docked items
first, so it cannot be the declaration order. The timeline is the row above (declared after
this one, since both dock to the bottom) and follows in the tab order. -->
@@ -160,12 +232,16 @@
<ToggleButton DockPanel.Dock="Left" TabIndex="8" Style="{StaticResource TransportToggle}" Content="{StaticResource LoopGeometry}"
IsChecked="{Binding IsLooping, ElementName=pane}" ToolTip="{DynamicResource TipPreviewLoop}"
AutomationProperties.Name="{DynamicResource TipPreviewLoop}" AutomationProperties.AutomationId="PreviewLoop" />
+ <ToggleButton DockPanel.Dock="Left" TabIndex="9" Style="{StaticResource TransportToggle}" Content="{StaticResource LiveGeometry}"
+ IsChecked="{Binding IsLive, ElementName=pane}" ToolTip="{DynamicResource TipPreviewLive}"
+ IsEnabled="{Binding Run.IsActive, ElementName=pane, FallbackValue=False}"
+ AutomationProperties.Name="{DynamicResource TipPreviewLive}" AutomationProperties.AutomationId="PreviewLive" />
<Rectangle DockPanel.Dock="Left" Width="1" Margin="4,2" Fill="{DynamicResource ToolWindowBorder}" />
<!-- right-docked items: the first declared is the rightmost -->
<!-- one tab stop, the checked radio (IsTabStop follows IsChecked); the arrow keys move to the
neighbour and check it, in code, since WPF's directional navigation skips non-tab-stops -->
- <StackPanel x:Name="splitGroup" DockPanel.Dock="Right" Orientation="Horizontal" KeyboardNavigation.TabIndex="10"
+ <StackPanel x:Name="splitGroup" DockPanel.Dock="Right" Orientation="Horizontal" KeyboardNavigation.TabIndex="11"
KeyDown="OnSplitGroupKeyDown">
<RadioButton Style="{StaticResource TransportToggle}" Content="{StaticResource SideBySideGeometry}" GroupName="Split"
ToolTip="{DynamicResource TipPreviewSideBySide}"
@@ -179,7 +255,7 @@
IsTabStop="{Binding IsChecked, RelativeSource={RelativeSource Self}, Mode=OneWay}" />
</StackPanel>
<Rectangle DockPanel.Dock="Right" Width="1" Margin="4,2" Fill="{DynamicResource ToolWindowBorder}" />
- <ComboBox x:Name="speedBox" DockPanel.Dock="Right" TabIndex="9" Width="64" IsEditable="True" ItemsSource="{x:Static local:PreviewPane.SpeedPresets}"
+ <ComboBox x:Name="speedBox" DockPanel.Dock="Right" TabIndex="10" Width="64" IsEditable="True" ItemsSource="{x:Static local:PreviewPane.SpeedPresets}"
Text="{Binding Speed, ElementName=pane, Mode=TwoWay, Converter={StaticResource DoubleText}}" ToolTip="{DynamicResource TipPreviewSpeed}"
AutomationProperties.Name="{DynamicResource LabelPreviewSpeed}" AutomationProperties.AutomationId="PreviewSpeed"
PreviewKeyDown="OnSpeedBoxPreviewKeyDown" />
@@ -212,7 +288,8 @@
<!-- the time axis, full width above the transport bar -->
<controls:TimelineBar x:Name="timeline" DockPanel.Dock="Bottom"
- Maximum="{Binding LastFrame, ElementName=pane}" Value="{Binding Position, ElementName=pane}"
+ Maximum="{Binding PlannedLastFrame, ElementName=pane}" Available="{Binding Available, ElementName=pane}"
+ Value="{Binding Position, ElementName=pane}"
RangeStart="{Binding InPoint, ElementName=pane}" RangeEnd="{Binding OutPoint, ElementName=pane}"
SetRangeStartCommand="{x:Static commands:PreviewCommands.SetInPoint}"
SetRangeEndCommand="{x:Static commands:PreviewCommands.SetOutPoint}"
@@ -235,10 +312,21 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type HeaderedContentControl}">
- <DockPanel>
- <TextBlock DockPanel.Dock="Top" Style="{StaticResource FormSection}" Margin="0,0,0,4" Text="{TemplateBinding Header}" />
- <Image Source="{TemplateBinding Content}" Stretch="Uniform" AutomationProperties.AutomationId="{TemplateBinding Tag}" />
- </DockPanel>
+ <!-- the label goes above the picture, or rotated to its left when the cell is wider than the picture -->
+ <controls:PictureFrame>
+ <TextBlock Style="{StaticResource FormSection}" Text="{TemplateBinding Header}" />
+ <!-- the picture with the source/probe handles over it; both fill the same rectangle -->
+ <Grid>
+ <Image Source="{TemplateBinding Content}" Stretch="Uniform" AutomationProperties.AutomationId="{TemplateBinding Tag}" />
+ <!-- styled here, not implicitly: WPF applies implicit styles inside a template only to Controls, and the overlay is a Panel -->
+ <controls:SceneOverlay SourceStyle="{StaticResource SourceMarker}" ProbeStyle="{StaticResource ProbeMarker}"
+ LineBrush="White" LabelBrush="White" AccentBrush="{DynamicResource Accent}"
+ Project="{Binding Project, RelativeSource={RelativeSource AncestorType={x:Type local:PreviewPane}}}"
+ CanvasWidth="{Binding CanvasWidth, RelativeSource={RelativeSource AncestorType={x:Type local:PreviewPane}}}"
+ CanvasHeight="{Binding CanvasHeight, RelativeSource={RelativeSource AncestorType={x:Type local:PreviewPane}}}"
+ SelectedItem="{Binding SelectedItem, RelativeSource={RelativeSource AncestorType={x:Type local:PreviewPane}}, Mode=TwoWay}" />
+ </Grid>
+ </controls:PictureFrame>
</ControlTemplate>
</Setter.Value>
</Setter>
@@ -303,12 +391,14 @@
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<HeaderedContentControl Style="{StaticResource PictureCell}" Header="{DynamicResource SectionField}"
- Content="{Binding FieldImage, ElementName=pane}" Tag="PreviewFieldImage" />
+ Content="{Binding FieldImage, ElementName=pane}" Tag="PreviewFieldImage"
+ Visibility="{Binding FieldSettings.Preview, ElementName=pane, Converter={StaticResource BoolToVisibility}, FallbackValue=Visible}" />
<GridSplitter Style="{StaticResource PictureSplitter}" ToolTip="{DynamicResource TipPreviewSplitter}"
AutomationProperties.Name="{DynamicResource TipPreviewSplitter}" AutomationProperties.AutomationId="PreviewSplitter"
MouseDoubleClick="OnSplitterMouseDoubleClick" KeyDown="OnSplitterKeyDown" />
<HeaderedContentControl Style="{StaticResource SecondPictureCell}" Header="{DynamicResource SectionIntensity}"
- Content="{Binding IntensityImage, ElementName=pane}" Tag="PreviewIntensityImage" />
+ Content="{Binding IntensityImage, ElementName=pane}" Tag="PreviewIntensityImage"
+ Visibility="{Binding IntensitySettings.Preview, ElementName=pane, Converter={StaticResource BoolToVisibility}, FallbackValue=Visible}" />
</Grid>
</DockPanel>
diff --git a/WaveDude.WPF/Panes/PreviewPane.xaml.cs b/WaveDude.WPF/Panes/PreviewPane.xaml.cs
index 568a2ed..cbd0906 100644
--- a/WaveDude.WPF/Panes/PreviewPane.xaml.cs
+++ b/WaveDude.WPF/Panes/PreviewPane.xaml.cs
@@ -1,3 +1,4 @@
+using System.ComponentModel;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
@@ -8,27 +9,34 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Threading;
using WaveDude.Model;
+using WaveDude.Runs;
using WaveDude.WPF.Commands;
using WaveDude.WPF.Converters;
+using WaveDude.WPF.Rendering;
namespace WaveDude.WPF.Panes;
/// <summary>
/// The document in the centre: the field and the intensity picture, side by side or stacked,
/// with a transport bar to scrub, play and pause through the frames of a run at a chosen
-/// speed. Dummy stage: the pictures are fixed placeholders and playing only advances
-/// <see cref="Position"/>; the render pipeline that will feed <see cref="FieldImage"/> and
-/// <see cref="IntensityImage"/> per frame does not exist yet. <see cref="FrameCount"/> follows
-/// the project's step count and visualisation interval through a binding, and so do the
-/// <see cref="InPoint"/>/<see cref="OutPoint"/> of the export range (<c>Display.ExportFrom/To</c>,
-/// in steps; the <see cref="PreviewCommands"/> write them). Playback runs between the two,
-/// looping when <see cref="IsLooping"/>.
+/// speed. The frames come from the <see cref="Run"/>'s <see cref="FrameStore"/> through a
+/// <see cref="FramePresenter"/>, which colours the frame at <see cref="Position"/> with the
+/// project's display settings (<see cref="FieldSettings"/>, <see cref="IntensitySettings"/>:
+/// colour scheme, brightness, black level; changing them re-colours the frame shown). Without a
+/// run the pictures are placeholders. <see cref="FrameCount"/> follows the project's step count
+/// and visualisation interval through a binding, and so do the <see cref="InPoint"/>/
+/// <see cref="OutPoint"/> of the export range (<c>Display.ExportFrom/To</c>, in steps; the
+/// <see cref="PreviewCommands"/> write them). Playback runs between the two, looping when
+/// <see cref="IsLooping"/>.
/// </summary>
/// <remarks>
-/// Playback runs on a <see cref="DispatcherTimer"/> on the UI thread: a speed of 1 advances
-/// <see cref="BaseFrameRate"/> frames per second of wall-clock time, measured with a stopwatch
-/// so that a slow tick does not slow the clock. Playing at the last frame restarts at 0.
-/// Play, Pause and Space (toggle) are the built-in <see cref="MediaCommands"/>.
+/// While a run is in progress the axis spans the planned frames (<see cref="PlannedLastFrame"/>)
+/// and <see cref="LastFrame"/> is the last frame that exists so far; <see cref="IsLive"/> keeps
+/// <see cref="Position"/> on that newest frame until the user scrubs, steps or plays, and the
+/// Live button (or F) re-attaches. Playback runs on a <see cref="DispatcherTimer"/> on the UI
+/// thread: a speed of 1 advances <see cref="Fps"/> (the project's video frame rate) frames per
+/// second of wall-clock time, measured with a stopwatch so that a slow tick does not slow the
+/// clock. Play, Pause and Space (toggle) are the built-in <see cref="MediaCommands"/>.
/// Keyboard: every transport control is a tab stop (play, pause, scrubber, speed, split, and
/// the splitter between the pictures). The split radios are one stop that lands on the checked
/// one; Left/Right there check the other. Arrows move the splitter; Enter (or a double-click)
@@ -39,8 +47,6 @@ namespace WaveDude.WPF.Panes;
/// </remarks>
public partial class PreviewPane : UserControl
{
- /// <summary>Frames per second that a playback <see cref="Speed"/> of 1 corresponds to; a placeholder until the pipeline defines the frame clock.</summary>
- public const double BaseFrameRate = 30.0;
/// <summary>Smallest accepted <see cref="Speed"/>.</summary>
public const double MinSpeed = 0.01;
@@ -51,13 +57,17 @@ public partial class PreviewPane : UserControl
/// <summary>Speed factors offered in the drop-down; any other value can be typed.</summary>
public static IReadOnlyList<double> SpeedPresets { get; } = [0.25, 0.5, 1.0, 1.5, 2.0, 4.0];
- private static readonly BitmapSource PlaceholderField = CreatePlaceholder(intensity: false);
- private static readonly BitmapSource PlaceholderIntensity = CreatePlaceholder(intensity: true);
+ /// <summary>The picture shown while there is no run: black, in the canvas's size so the overlay and the aspect ratio are right.</summary>
+ private BitmapSource _blackFrame = BlackFrame(16, 9);
/// <summary>Identifies the <see cref="Project"/> property.</summary>
public static readonly DependencyProperty ProjectProperty = DependencyProperty.Register(
nameof(Project), typeof(Project), typeof(PreviewPane));
+ /// <summary>Identifies the <see cref="Run"/> property.</summary>
+ public static readonly DependencyProperty RunProperty = DependencyProperty.Register(
+ nameof(Run), typeof(SimulationRun), typeof(PreviewPane), new PropertyMetadata(null, OnRunChanged));
+
/// <summary>Identifies the <see cref="FrameCount"/> property.</summary>
public static readonly DependencyProperty FrameCountProperty = DependencyProperty.Register(
nameof(FrameCount), typeof(int), typeof(PreviewPane),
@@ -69,20 +79,41 @@ public partial class PreviewPane : UserControl
/// <summary>Identifies the <see cref="LastFrame"/> property.</summary>
public static readonly DependencyProperty LastFrameProperty = LastFrameKey.DependencyProperty;
+ private static readonly DependencyPropertyKey PlannedLastFrameKey = DependencyProperty.RegisterReadOnly(
+ nameof(PlannedLastFrame), typeof(int), typeof(PreviewPane), new PropertyMetadata(0));
+
+ /// <summary>Identifies the <see cref="PlannedLastFrame"/> property.</summary>
+ public static readonly DependencyProperty PlannedLastFrameProperty = PlannedLastFrameKey.DependencyProperty;
+
+ private static readonly DependencyPropertyKey AvailableKey = DependencyProperty.RegisterReadOnly(
+ nameof(Available), typeof(int), typeof(PreviewPane), new PropertyMetadata(0));
+
+ /// <summary>Identifies the <see cref="Available"/> property.</summary>
+ public static readonly DependencyProperty AvailableProperty = AvailableKey.DependencyProperty;
+
/// <summary>Identifies the <see cref="Position"/> property.</summary>
public static readonly DependencyProperty PositionProperty = DependencyProperty.Register(
nameof(Position), typeof(int), typeof(PreviewPane),
- new FrameworkPropertyMetadata(0, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, null, CoercePosition));
+ new FrameworkPropertyMetadata(0, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnPositionChanged, CoercePosition));
/// <summary>Identifies the <see cref="IsPlaying"/> property.</summary>
public static readonly DependencyProperty IsPlayingProperty = DependencyProperty.Register(
nameof(IsPlaying), typeof(bool), typeof(PreviewPane), new PropertyMetadata(false, OnIsPlayingChanged));
+ /// <summary>Identifies the <see cref="IsLive"/> property.</summary>
+ public static readonly DependencyProperty IsLiveProperty = DependencyProperty.Register(
+ nameof(IsLive), typeof(bool), typeof(PreviewPane),
+ new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnIsLiveChanged));
+
/// <summary>Identifies the <see cref="Speed"/> property.</summary>
public static readonly DependencyProperty SpeedProperty = DependencyProperty.Register(
nameof(Speed), typeof(double), typeof(PreviewPane),
new FrameworkPropertyMetadata(1.0, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, null, CoerceSpeed));
+ /// <summary>Identifies the <see cref="Fps"/> property.</summary>
+ public static readonly DependencyProperty FpsProperty = DependencyProperty.Register(
+ nameof(Fps), typeof(int), typeof(PreviewPane), new PropertyMetadata(Video.DefaultFps, null, (_, value) => Math.Max(1, (int)value)));
+
/// <summary>Identifies the <see cref="InPoint"/> property.</summary>
public static readonly DependencyProperty InPointProperty = DependencyProperty.Register(
nameof(InPoint), typeof(int), typeof(PreviewPane), new PropertyMetadata(0));
@@ -102,21 +133,69 @@ public partial class PreviewPane : UserControl
/// <summary>Identifies the <see cref="FieldImage"/> property.</summary>
public static readonly DependencyProperty FieldImageProperty = DependencyProperty.Register(
- nameof(FieldImage), typeof(ImageSource), typeof(PreviewPane), new PropertyMetadata(PlaceholderField));
+ nameof(FieldImage), typeof(ImageSource), typeof(PreviewPane));
/// <summary>Identifies the <see cref="IntensityImage"/> property.</summary>
public static readonly DependencyProperty IntensityImageProperty = DependencyProperty.Register(
- nameof(IntensityImage), typeof(ImageSource), typeof(PreviewPane), new PropertyMetadata(PlaceholderIntensity));
+ nameof(IntensityImage), typeof(ImageSource), typeof(PreviewPane));
+
+ /// <summary>Identifies the <see cref="SelectedItem"/> property.</summary>
+ public static readonly DependencyProperty SelectedItemProperty = DependencyProperty.Register(
+ nameof(SelectedItem), typeof(object), typeof(PreviewPane), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
+
+ /// <summary>Identifies the <see cref="IsStale"/> property.</summary>
+ public static readonly DependencyProperty IsStaleProperty = DependencyProperty.Register(
+ nameof(IsStale), typeof(bool), typeof(PreviewPane), new PropertyMetadata(false, (d, _) => ((PreviewPane)d).UpdateSource()));
+
+ /// <summary>Identifies the <see cref="ScratchFrame"/> property.</summary>
+ public static readonly DependencyProperty ScratchFrameProperty = DependencyProperty.Register(
+ nameof(ScratchFrame), typeof(ScratchResult), typeof(PreviewPane), new PropertyMetadata(null, (d, _) => ((PreviewPane)d).UpdateSource()));
+
+ private static readonly DependencyPropertyKey CanvasWidthKey = DependencyProperty.RegisterReadOnly(
+ nameof(CanvasWidth), typeof(int), typeof(PreviewPane), new PropertyMetadata(1));
+
+ /// <summary>Identifies the <see cref="CanvasWidth"/> property.</summary>
+ public static readonly DependencyProperty CanvasWidthProperty = CanvasWidthKey.DependencyProperty;
+
+ private static readonly DependencyPropertyKey CanvasHeightKey = DependencyProperty.RegisterReadOnly(
+ nameof(CanvasHeight), typeof(int), typeof(PreviewPane), new PropertyMetadata(1));
+
+ /// <summary>Identifies the <see cref="CanvasHeight"/> property.</summary>
+ public static readonly DependencyProperty CanvasHeightProperty = CanvasHeightKey.DependencyProperty;
+
+ /// <summary>The project's canvas width, bound privately; the canvas size follows the run while one exists.</summary>
+ private static readonly DependencyProperty SceneWidthProperty = DependencyProperty.Register(
+ "SceneWidth", typeof(int), typeof(PreviewPane), new PropertyMetadata(Scene.DefaultWidth, (d, _) => ((PreviewPane)d).UpdateCanvas()));
+
+ /// <summary>The project's canvas height, bound privately.</summary>
+ private static readonly DependencyProperty SceneHeightProperty = DependencyProperty.Register(
+ "SceneHeight", typeof(int), typeof(PreviewPane), new PropertyMetadata(Scene.DefaultHeight, (d, _) => ((PreviewPane)d).UpdateCanvas()));
+
+ /// <summary>Identifies the <see cref="FieldSettings"/> property.</summary>
+ public static readonly DependencyProperty FieldSettingsProperty = DependencyProperty.Register(
+ nameof(FieldSettings), typeof(DisplayLayer), typeof(PreviewPane), new PropertyMetadata(null, (d, e) => ((PreviewPane)d).OnLayerSettingsChanged(FrameLayer.Field, e)));
+
+ /// <summary>Identifies the <see cref="IntensitySettings"/> property.</summary>
+ public static readonly DependencyProperty IntensitySettingsProperty = DependencyProperty.Register(
+ nameof(IntensitySettings), typeof(DisplayLayer), typeof(PreviewPane), new PropertyMetadata(null, (d, e) => ((PreviewPane)d).OnLayerSettingsChanged(FrameLayer.Intensity, e)));
private readonly DispatcherTimer _timer;
private readonly Stopwatch _clock = new();
+ private readonly FramePresenter _presenter;
/// <summary>Fractional frame advance carried from one tick to the next, so slow speeds still move.</summary>
private double _carry;
+ /// <summary>Set while the pane itself moves <see cref="Position"/> to the newest frame, so that move does not end <see cref="IsLive"/>.</summary>
+ private bool _following;
+
+ /// <summary>The scratch frame currently wrapped as the presenter's source, to reuse the wrapper.</summary>
+ private SnapshotFrameSource? _scratchSource;
+
public PreviewPane()
{
InitializeComponent();
+ _presenter = new FramePresenter(Dispatcher);
// frames = ceil(steps / visualize every); re-evaluated whenever the project or its settings change
SetBinding(FrameCountProperty, new MultiBinding
@@ -129,10 +208,18 @@ public partial class PreviewPane : UserControl
},
});
- // in/out points in frames from the model's steps; "end" makes an ExportTo of 0 the last frame
+ // in/out points in frames from the model's steps; "end" makes an ExportTo of 0 the last planned frame
SetBinding(InPointProperty, RangeBinding(nameof(Display.ExportFrom), null));
SetBinding(OutPointProperty, RangeBinding(nameof(Display.ExportTo), "end"));
+ // the frame clock and the colouring of the two pictures follow the project's display settings
+ SetBinding(FpsProperty, new Binding($"{nameof(Project)}.{nameof(Model.Project.Display)}.{nameof(Display.Video)}.{nameof(Video.Fps)}") { Source = this, Mode = BindingMode.OneWay });
+ SetBinding(FieldSettingsProperty, new Binding($"{nameof(Project)}.{nameof(Model.Project.Display)}.{nameof(Display.Field)}") { Source = this, Mode = BindingMode.OneWay });
+ SetBinding(IntensitySettingsProperty, new Binding($"{nameof(Project)}.{nameof(Model.Project.Display)}.{nameof(Display.Intensity)}") { Source = this, Mode = BindingMode.OneWay });
+ SetBinding(SceneWidthProperty, new Binding($"{nameof(Project)}.{nameof(Model.Project.Scene)}.{nameof(Scene.Width)}") { Source = this, Mode = BindingMode.OneWay });
+ SetBinding(SceneHeightProperty, new Binding($"{nameof(Project)}.{nameof(Model.Project.Scene)}.{nameof(Scene.Height)}") { Source = this, Mode = BindingMode.OneWay });
+ UpdateCanvas();
+
_timer = new DispatcherTimer(DispatcherPriority.Render) { Interval = TimeSpan.FromSeconds(1.0 / 60.0) };
_timer.Tick += OnTick;
Unloaded += (_, _) => IsPlaying = false;
@@ -147,7 +234,7 @@ public partial class PreviewPane : UserControl
{
new Binding($"{nameof(Project)}.{nameof(Model.Project.Display)}.{stepProperty}") { Source = this },
new Binding($"{nameof(Project)}.{nameof(Model.Project.Simulation)}.{nameof(Simulation.VisualizeEvery)}") { Source = this },
- new Binding(nameof(LastFrame)) { Source = this },
+ new Binding(nameof(PlannedLastFrame)) { Source = this },
},
};
@@ -158,20 +245,41 @@ public partial class PreviewPane : UserControl
set => SetValue(ProjectProperty, value);
}
- /// <summary>Number of frames in the run, at least 1. Bound to the project's steps and visualisation interval.</summary>
+ /// <summary>The run whose frames are shown (in progress or finished); null shows the placeholders.</summary>
+ public SimulationRun? Run
+ {
+ get => (SimulationRun?)GetValue(RunProperty);
+ set => SetValue(RunProperty, value);
+ }
+
+ /// <summary>Number of frames the project's settings would produce, at least 1. Bound to the steps and visualisation interval.</summary>
public int FrameCount
{
get => (int)GetValue(FrameCountProperty);
set => SetValue(FrameCountProperty, value);
}
- /// <summary>Index of the last frame, <see cref="FrameCount"/> - 1; the scrubber's maximum.</summary>
+ /// <summary>Index of the last frame that can be shown: the newest frame of the run, or <see cref="PlannedLastFrame"/> without a run.</summary>
public int LastFrame
{
get => (int)GetValue(LastFrameProperty);
private set => SetValue(LastFrameKey, value);
}
+ /// <summary>Index of the last frame of the whole run (the run's own count while one exists, else the project's); the timeline's axis.</summary>
+ public int PlannedLastFrame
+ {
+ get => (int)GetValue(PlannedLastFrameProperty);
+ private set => SetValue(PlannedLastFrameKey, value);
+ }
+
+ /// <summary>Frames of the run computed so far; 0 without a run.</summary>
+ public int Available
+ {
+ get => (int)GetValue(AvailableProperty);
+ private set => SetValue(AvailableKey, value);
+ }
+
/// <summary>Frame shown, 0 to <see cref="LastFrame"/>. Moved by the scrubber and by playback.</summary>
public int Position
{
@@ -186,13 +294,27 @@ public partial class PreviewPane : UserControl
set => SetValue(IsPlayingProperty, value);
}
- /// <summary>Playback speed factor, <see cref="MinSpeed"/> to <see cref="MaxSpeed"/>; 1 is <see cref="BaseFrameRate"/> frames per second.</summary>
+ /// <summary>Whether <see cref="Position"/> follows the newest frame of a run in progress. Only while a run is active; scrubbing, stepping, playing or the run's end turns it off.</summary>
+ public bool IsLive
+ {
+ get => (bool)GetValue(IsLiveProperty);
+ set => SetValue(IsLiveProperty, value);
+ }
+
+ /// <summary>Playback speed factor, <see cref="MinSpeed"/> to <see cref="MaxSpeed"/>; 1 is <see cref="Fps"/> frames per second.</summary>
public double Speed
{
get => (double)GetValue(SpeedProperty);
set => SetValue(SpeedProperty, value);
}
+ /// <summary>Frames per second at a <see cref="Speed"/> of 1: the project's video frame rate, so speed 1 plays as the export would.</summary>
+ public int Fps
+ {
+ get => (int)GetValue(FpsProperty);
+ set => SetValue(FpsProperty, value);
+ }
+
/// <summary>First frame of the export/loop range; 0 while no in point is set. Follows the model.</summary>
public int InPoint
{
@@ -200,7 +322,7 @@ public partial class PreviewPane : UserControl
private set => SetValue(InPointProperty, value);
}
- /// <summary>Last frame of the export/loop range; <see cref="LastFrame"/> while no out point is set. Follows the model.</summary>
+ /// <summary>Last frame of the export/loop range; <see cref="PlannedLastFrame"/> while no out point is set. Follows the model.</summary>
public int OutPoint
{
get => (int)GetValue(OutPointProperty);
@@ -221,42 +343,297 @@ public partial class PreviewPane : UserControl
set => SetValue(OrientationProperty, value);
}
- /// <summary>Picture of the field at <see cref="Position"/>; a placeholder until the render pipeline sets it.</summary>
+ /// <summary>Picture of the field at <see cref="Position"/>; the presenter's bitmap, or a black frame without a run.</summary>
public ImageSource? FieldImage
{
get => (ImageSource?)GetValue(FieldImageProperty);
set => SetValue(FieldImageProperty, value);
}
- /// <summary>Picture of the intensity at <see cref="Position"/>; a placeholder until the render pipeline sets it.</summary>
+ /// <summary>Picture of the intensity at <see cref="Position"/>; the presenter's bitmap, or a black frame without a run (or without an intensity plane).</summary>
public ImageSource? IntensityImage
{
get => (ImageSource?)GetValue(IntensityImageProperty);
set => SetValue(IntensityImageProperty, value);
}
- private static void OnFrameCountChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ /// <summary>The source or probe selected in the project: highlighted on the pictures, set by grabbing or focusing a marker. Bound to the main window.</summary>
+ public object? SelectedItem
+ {
+ get => GetValue(SelectedItemProperty);
+ set => SetValue(SelectedItemProperty, value);
+ }
+
+ /// <summary>Whether the project was edited since the run started, so the stored frames no longer show it; the available-frames shading goes grey.</summary>
+ public bool IsStale
+ {
+ get => (bool)GetValue(IsStaleProperty);
+ set => SetValue(IsStaleProperty, value);
+ }
+
+ /// <summary>
+ /// A frame computed for the project as it is now (after an edit, without a run); shown instead of the
+ /// stored frame while its frame index is <see cref="Position"/> and the store has nothing newer. Null for none.
+ /// </summary>
+ public ScratchResult? ScratchFrame
+ {
+ get => (ScratchResult?)GetValue(ScratchFrameProperty);
+ set => SetValue(ScratchFrameProperty, value);
+ }
+
+ /// <summary>Width in pixels of the canvas the pictures show: the run's while one exists, else the project's blank canvas size.</summary>
+ public int CanvasWidth
+ {
+ get => (int)GetValue(CanvasWidthProperty);
+ private set => SetValue(CanvasWidthKey, value);
+ }
+
+ /// <summary>Height in pixels of the canvas the pictures show.</summary>
+ public int CanvasHeight
+ {
+ get => (int)GetValue(CanvasHeightProperty);
+ private set => SetValue(CanvasHeightKey, value);
+ }
+
+ /// <summary>The project's display settings of the field picture (scheme, brightness, black level, whether shown). Bound.</summary>
+ public DisplayLayer? FieldSettings
+ {
+ get => (DisplayLayer?)GetValue(FieldSettingsProperty);
+ set => SetValue(FieldSettingsProperty, value);
+ }
+
+ /// <summary>The project's display settings of the intensity picture. Bound.</summary>
+ public DisplayLayer? IntensitySettings
+ {
+ get => (DisplayLayer?)GetValue(IntensitySettingsProperty);
+ set => SetValue(IntensitySettingsProperty, value);
+ }
+
+ // ---------------------------------------------------------------- the run and its frames
+
+ private static void OnRunChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var pane = (PreviewPane)d;
- pane.LastFrame = (int)e.NewValue - 1;
- pane.CoerceValue(PositionProperty);
+ if (e.OldValue is SimulationRun old)
+ {
+ old.PropertyChanged -= pane.OnRunPropertyChanged;
+ }
+ var run = (SimulationRun?)e.NewValue;
+ if (run != null)
+ {
+ run.PropertyChanged += pane.OnRunPropertyChanged;
+ }
+ if (run is { IsAutomatic: true, IsFinished: false })
+ {
+ // a re-run after an edit: the position stays where the user is (the axis stays the planned run, so
+ // nothing coerces it), the scratch frame stays on screen until the store has that frame, and the
+ // run is not followed whatever the Live button said
+ pane.UpdateFrames();
+ pane.IsLive = false;
+ }
+ else if (run == null)
+ {
+ // the run was discarded (replaced, or the project closed): keep the position for whatever comes next
+ pane.UpdateFrames();
+ pane.IsLive = false;
+ }
+ else
+ {
+ // a run the user started: from the beginning, following it; playback (if any) stops
+ pane.IsPlaying = false;
+ pane.UpdateFrames();
+ pane.Position = 0;
+ // a run handed over before Start is still "Created": follow everything that has not ended
+ pane.IsLive = !run.IsFinished;
+ }
+ pane.UpdateSource();
+ }
+
+ private void OnRunPropertyChanged(object? sender, PropertyChangedEventArgs e)
+ {
+ switch (e.PropertyName)
+ {
+ case nameof(SimulationRun.FrameCount):
+ UpdateFrames();
+ if (IsLive)
+ {
+ _following = true;
+ Position = NewestFrame;
+ _following = false;
+ }
+ UpdateSource();
+ break;
+ case nameof(SimulationRun.State):
+ UpdateFrames();
+ UpdateSource();
+ if (Run?.IsFinished == true)
+ {
+ IsLive = false; // nothing left to follow
+ }
+ CommandManager.InvalidateRequerySuggested();
+ break;
+ }
+ }
+
+ /// <summary>
+ /// Decides what the pictures show. A picture changes only when a frame for <see cref="Position"/> itself is
+ /// there: the scratch frame computed for it (preferred while the run is stale, missing, or not that far
+ /// yet), else the run's stored frame. When neither exists (a run in progress that has not reached the
+ /// position, after the previous run's frames were discarded) the last picture simply stays; the frames are
+ /// never replayed from the start and never replaced by black or by some other frame. Also re-derives the
+ /// canvas size (the frame's, the run's, or the project's blank canvas; a scene image's size is only known
+ /// once it has run).
+ /// </summary>
+ private void UpdateSource()
+ {
+ SimulationRun? run = Run;
+ ScratchResult? scratch = ScratchFrame;
+ bool useScratch = scratch is { Snapshot: not null } && scratch.Frame == Position
+ && (run == null || IsStale || run.FrameCount <= Position);
+ if (useScratch)
+ {
+ if (_scratchSource == null || !ReferenceEquals(_scratchSource.Snapshot, scratch!.Snapshot))
+ {
+ _scratchSource = new SnapshotFrameSource(scratch!.Snapshot!);
+ }
+ _presenter.Source = _scratchSource;
+ UpdateCanvas(_scratchSource);
+ _presenter.Show(0);
+ }
+ else if (run != null && run.FrameCount > Position)
+ {
+ _presenter.Source = run.Store;
+ UpdateCanvas(run.Store);
+ _presenter.Show(Position);
+ }
+ else if (run == null && _presenter.Source != null)
+ {
+ // nothing at all any more (project closed or replaced)
+ _presenter.Source = null;
+ UpdateCanvas(null);
+ }
+ else
+ {
+ // nothing for this position yet: keep what is shown
+ UpdateCanvas(_presenter.Source);
+ }
+ }
+
+ private void UpdateCanvas(IFrameSource? source)
+ {
+ int width = Math.Max(1, source?.Width ?? Run?.Spec.Width ?? (int)GetValue(SceneWidthProperty));
+ int height = Math.Max(1, source?.Height ?? Run?.Spec.Height ?? (int)GetValue(SceneHeightProperty));
+ CanvasWidth = width;
+ CanvasHeight = height;
+ if (_blackFrame.PixelWidth != width || _blackFrame.PixelHeight != height)
+ {
+ _blackFrame = BlackFrame(width, height);
+ }
+ FieldImage = _presenter.FieldBitmap ?? _blackFrame;
+ IntensityImage = _presenter.IntensityBitmap ?? _blackFrame;
+ }
+
+ /// <summary>The canvas follows the project's size while nothing is shown.</summary>
+ private void UpdateCanvas() => UpdateSource();
+
+ /// <summary>A black picture of the given size, frozen; what the pane shows before any run.</summary>
+ private static BitmapSource BlackFrame(int width, int height)
+ {
+ var bitmap = new WriteableBitmap(width, height, 96, 96, PixelFormats.Bgr32, null);
+ bitmap.Freeze();
+ return bitmap;
+ }
+
+ /// <summary>
+ /// Re-derives the axis, the reachable last frame and the available count from the run (or the project
+ /// without one). For an automatic re-run the reachable end is always the planned run, filling or
+ /// cancelled by the next edit, so the user's position is never pulled back; only a run the user started
+ /// (and follows, or stopped) bounds the position by the frames that exist.
+ /// </summary>
+ private void UpdateFrames()
+ {
+ SimulationRun? run = Run;
+ PlannedLastFrame = (run?.Spec.FrameCount ?? FrameCount) - 1;
+ Available = run?.FrameCount ?? 0;
+ LastFrame = run == null || run.IsAutomatic ? PlannedLastFrame : Math.Max(0, run.FrameCount - 1);
+ CoerceValue(PositionProperty);
CommandManager.InvalidateRequerySuggested();
}
+ /// <summary>The newest frame that exists: the run's last written frame, or the project's last frame without a run.</summary>
+ private int NewestFrame => Run != null ? Math.Max(0, Run.FrameCount - 1) : PlannedLastFrame;
+
+ private static void OnFrameCountChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) => ((PreviewPane)d).UpdateFrames();
+
private static object CoercePosition(DependencyObject d, object value) =>
Math.Clamp((int)value, 0, ((PreviewPane)d).LastFrame);
+ private static void OnPositionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ var pane = (PreviewPane)d;
+ if (!pane._following)
+ {
+ pane.IsLive = false;
+ }
+ pane.UpdateSource();
+ }
+
+ private static void OnIsLiveChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ var pane = (PreviewPane)d;
+ if ((bool)e.NewValue)
+ {
+ pane.IsPlaying = false;
+ pane._following = true;
+ pane.Position = pane.NewestFrame;
+ pane._following = false;
+ }
+ }
+
+ /// <summary>Re-wires the model's change notification for one layer's display settings and applies them.</summary>
+ private void OnLayerSettingsChanged(FrameLayer layer, DependencyPropertyChangedEventArgs e)
+ {
+ PropertyChangedEventHandler handler = layer == FrameLayer.Field ? OnFieldSettingsPropertyChanged : OnIntensitySettingsPropertyChanged;
+ if (e.OldValue is DisplayLayer old)
+ {
+ old.PropertyChanged -= handler;
+ }
+ if (e.NewValue is DisplayLayer settings)
+ {
+ settings.PropertyChanged += handler;
+ }
+ ApplyLayer(layer);
+ }
+
+ private void OnFieldSettingsPropertyChanged(object? sender, PropertyChangedEventArgs e) => ApplyLayer(FrameLayer.Field);
+
+ private void OnIntensitySettingsPropertyChanged(object? sender, PropertyChangedEventArgs e) => ApplyLayer(FrameLayer.Intensity);
+
+ /// <summary>Hands a layer's palette, brightness and visibility to the presenter, which redraws the frame shown.</summary>
+ private void ApplyLayer(FrameLayer layer)
+ {
+ DisplayLayer? settings = layer == FrameLayer.Field ? FieldSettings : IntensitySettings;
+ int[]? lut = settings == null ? null : ColorSchemeCatalog.Instance.LutFor(settings.ColorScheme, settings.BlackLevel);
+ _presenter.SetLayer(layer, lut, (float)(settings?.Brightness ?? DisplayLayer.DefaultBrightness), settings?.Preview ?? true);
+ }
+
+ // ---------------------------------------------------------------- playback
+
private static object CoerceSpeed(DependencyObject d, object value)
{
double speed = (double)value;
return double.IsNaN(speed) ? 1.0 : Math.Clamp(speed, MinSpeed, MaxSpeed);
}
+ /// <summary>The last frame playback can reach: the out point, or the newest frame while the run has not got there yet.</summary>
+ private int PlayEnd => Math.Min(OutPoint, NewestFrame);
+
private static void OnIsPlayingChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var pane = (PreviewPane)d;
if ((bool)e.NewValue)
{
+ pane.IsLive = false;
if (pane.Position >= pane.OutPoint)
{
pane.Position = pane.InPoint; // play the range again from its start
@@ -264,6 +641,8 @@ public partial class PreviewPane : UserControl
pane._carry = 0.0;
pane._clock.Restart();
pane._timer.Start();
+ // playing means showing the simulation: the window starts a run when there is none or it is stale
+ SimulationCommands.EnsureRun.Execute(null, pane);
}
else
{
@@ -299,7 +678,7 @@ public partial class PreviewPane : UserControl
{
double seconds = _clock.Elapsed.TotalSeconds;
_clock.Restart();
- _carry += seconds * BaseFrameRate * Speed;
+ _carry += seconds * Fps * Speed;
int frames = (int)Math.Floor(_carry);
if (frames == 0)
{
@@ -307,11 +686,19 @@ public partial class PreviewPane : UserControl
}
_carry -= frames;
int next = Position + frames;
- int end = OutPoint;
+ int end = PlayEnd;
if (next < end)
{
Position = next;
}
+ else if (Run is { IsActive: true } && end < OutPoint)
+ {
+ // the run has not got this far yet: hold at its newest frame and wait, without accumulating a jump
+ _following = true;
+ Position = Math.Max(Position, end);
+ _following = false;
+ _carry = 0.0;
+ }
else if (IsLooping && end > InPoint)
{
Position = InPoint + (next - end) % (end - InPoint);
@@ -347,13 +734,13 @@ public partial class PreviewPane : UserControl
private void OnGoToStart(object sender, ExecutedRoutedEventArgs e) => Position = InPoint;
- private void OnGoToEnd(object sender, ExecutedRoutedEventArgs e) => Position = OutPoint;
+ private void OnGoToEnd(object sender, ExecutedRoutedEventArgs e) => Position = PlayEnd;
private void CanEditRange(object sender, CanExecuteRoutedEventArgs e) =>
- e.CanExecute = Project != null && LastFrame > 0 && e.OriginalSource is not TextBoxBase;
+ e.CanExecute = Project != null && PlannedLastFrame > 0 && e.OriginalSource is not TextBoxBase;
/// <summary>The frame a range command was given, or the frame shown.</summary>
- private int FrameOf(ExecutedRoutedEventArgs e) => e.Parameter is int frame ? Math.Clamp(frame, 0, LastFrame) : Position;
+ private int FrameOf(ExecutedRoutedEventArgs e) => e.Parameter is int frame ? Math.Clamp(frame, 0, PlannedLastFrame) : Position;
/// <summary>
/// Sets the in point, in steps, on the model. An in point past the out point clears the out
@@ -378,7 +765,7 @@ public partial class PreviewPane : UserControl
{
Display display = Project!.Display;
int frame = FrameOf(e);
- int step = frame >= LastFrame ? 0 : frame * Project.Simulation.VisualizeEvery;
+ int step = frame >= PlannedLastFrame ? 0 : frame * Project.Simulation.VisualizeEvery;
if (step != 0 && display.ExportFrom >= step)
{
display.ExportFrom = 0;
@@ -397,6 +784,27 @@ public partial class PreviewPane : UserControl
private void OnToggleLoop(object sender, ExecutedRoutedEventArgs e) => IsLooping = !IsLooping;
+ private void CanToggleLive(object sender, CanExecuteRoutedEventArgs e) =>
+ e.CanExecute = Run?.IsActive == true && e.OriginalSource is not TextBoxBase;
+
+ private void OnToggleLive(object sender, ExecutedRoutedEventArgs e) => IsLive = !IsLive;
+
+ /// <summary>
+ /// The pane's shortcut letters are its own even when their command cannot run right now (Live after the
+ /// run ended, a range key with nothing to clear): left unhandled, WPF would treat the letter as a menu
+ /// mnemonic, open the File menu and activate the window. Text boxes keep their keys.
+ /// </summary>
+ protected override void OnKeyDown(KeyEventArgs e)
+ {
+ base.OnKeyDown(e);
+ if (!e.Handled && e.OriginalSource is not TextBoxBase
+ && e.Key is Key.I or Key.O or Key.X or Key.L or Key.F or Key.OemComma or Key.OemPeriod or Key.Space
+ && Keyboard.Modifiers == ModifierKeys.None)
+ {
+ e.Handled = true;
+ }
+ }
+
/// <summary>Space inside the speed text box is neither a digit nor the play/pause toggle: swallowed.</summary>
private void OnSpeedBoxPreviewKeyDown(object sender, KeyEventArgs e)
{
@@ -456,45 +864,4 @@ public partial class PreviewPane : UserControl
next.Focus();
e.Handled = true;
}
-
- /// <summary>
- /// A 16:9 stand-in picture: decaying ripples from a source near the top-left corner in the
- /// field's red/blue look, or the same source's glow in the intensity's blue look. Frozen so
- /// it can serve as a dependency property default.
- /// </summary>
- private static BitmapSource CreatePlaceholder(bool intensity)
- {
- const int width = 480;
- const int height = 270;
- const double sourceX = 36.0;
- const double sourceY = 36.0;
- var bitmap = new WriteableBitmap(width, height, 96, 96, PixelFormats.Bgr32, null);
- var pixels = new int[width * height];
- for (int y = 0; y < height; y++)
- {
- for (int x = 0; x < width; x++)
- {
- double dx = x - sourceX;
- double dy = y - sourceY;
- double r = Math.Sqrt(dx * dx + dy * dy);
- int pixel;
- if (intensity)
- {
- double v = Math.Exp(-r / 150.0);
- pixel = (16 << 16) | ((int)(150 * v) << 8) | (int)(255 * v);
- }
- else
- {
- double v = Math.Sin(r * 0.7) * Math.Exp(-r / 200.0);
- int red = v > 0 ? (int)(255 * v) : 0;
- int blue = v < 0 ? (int)(-255 * v) : 0;
- pixel = (red << 16) | blue;
- }
- pixels[y * width + x] = pixel;
- }
- }
- bitmap.WritePixels(new Int32Rect(0, 0, width, height), pixels, width * 4, 0);
- bitmap.Freeze();
- return bitmap;
- }
}
diff --git a/WaveDude.WPF/Properties/PublishProfiles/SingleFile.pubxml b/WaveDude.WPF/Properties/PublishProfiles/SingleFile.pubxml
new file mode 100644
index 0000000..87b89a5
--- /dev/null
+++ b/WaveDude.WPF/Properties/PublishProfiles/SingleFile.pubxml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Single-file, framework-dependent publish for 64-bit Windows: one WaveDude.WPF.exe plus the ColorSchemeList
+ folder (copied by the csproj) in bin\Publish. The framework comes from the project.
+ dotnet publish WaveDude.WPF/WaveDude.WPF.csproj -p:PublishProfile=SingleFile -->
+<Project>
+ <PropertyGroup>
+ <Configuration>Release</Configuration>
+ <Platform>Any CPU</Platform>
+ <PublishProtocol>FileSystem</PublishProtocol>
+ <PublishDir>bin\Publish\</PublishDir>
+ <SelfContained>false</SelfContained>
+ <RuntimeIdentifier>win-x64</RuntimeIdentifier>
+ <PublishSingleFile>true</PublishSingleFile>
+ <IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
+ <PublishReadyToRun>false</PublishReadyToRun>
+ </PropertyGroup>
+</Project>
diff --git a/WaveDude.WPF/Properties/Settings.Designer.cs b/WaveDude.WPF/Properties/Settings.Designer.cs
index 1b19edf..2753763 100644
--- a/WaveDude.WPF/Properties/Settings.Designer.cs
+++ b/WaveDude.WPF/Properties/Settings.Designer.cs
@@ -128,5 +128,41 @@ namespace WaveDude.WPF.Properties {
this["RecentFiles"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("Vertical")]
+ public global::System.Windows.Controls.Orientation PreviewOrientation {
+ get {
+ return ((global::System.Windows.Controls.Orientation)(this["PreviewOrientation"]));
+ }
+ set {
+ this["PreviewOrientation"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("True")]
+ public bool AutoRerun {
+ get {
+ return ((bool)(this["AutoRerun"]));
+ }
+ set {
+ this["AutoRerun"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("True")]
+ public bool UseGpu {
+ get {
+ return ((bool)(this["UseGpu"]));
+ }
+ set {
+ this["UseGpu"] = value;
+ }
+ }
}
}
diff --git a/WaveDude.WPF/Properties/Settings.settings b/WaveDude.WPF/Properties/Settings.settings
index 3a6bb94..c339b3d 100644
--- a/WaveDude.WPF/Properties/Settings.settings
+++ b/WaveDude.WPF/Properties/Settings.settings
@@ -29,5 +29,14 @@
<Setting Name="RecentFiles" Type="System.Collections.Specialized.StringCollection" Scope="User">
<Value Profile="(Default)" />
</Setting>
+ <Setting Name="PreviewOrientation" Type="System.Windows.Controls.Orientation" Scope="User">
+ <Value Profile="(Default)">Vertical</Value>
+ </Setting>
+ <Setting Name="AutoRerun" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">True</Value>
+ </Setting>
+ <Setting Name="UseGpu" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">True</Value>
+ </Setting>
</Settings>
</SettingsFile>
diff --git a/WaveDude.WPF/Rendering/ColorSchemeCatalog.cs b/WaveDude.WPF/Rendering/ColorSchemeCatalog.cs
new file mode 100644
index 0000000..a7db683
--- /dev/null
+++ b/WaveDude.WPF/Rendering/ColorSchemeCatalog.cs
@@ -0,0 +1,82 @@
+using NLog;
+using WaveDude.Rendering;
+
+namespace WaveDude.WPF.Rendering;
+
+/// <summary>
+/// The colour schemes: the user's own from <see cref="ColorSchemeStore.UserFolder"/> first (a user scheme
+/// with a built-in name shadows it), then the ones built into the library, loaded once, and a cache of the
+/// palettes built from them for the display settings in use. UI thread only; the cached <c>int[]</c>
+/// palettes are immutable and may be handed to rendering threads.
+/// </summary>
+public sealed class ColorSchemeCatalog
+{
+ private static readonly ILogger Logger = LogManager.GetCurrentClassLogger();
+
+ /// <summary>The single catalog of the application.</summary>
+ public static ColorSchemeCatalog Instance { get; } = new();
+
+ private readonly Dictionary<(string Name, double BlackLevel), int[]?> _luts = new();
+ private readonly HashSet<string> _warned = new(StringComparer.OrdinalIgnoreCase);
+ private List<ColorScheme>? _schemes;
+
+ private ColorSchemeCatalog()
+ {
+ }
+
+ /// <summary>Reads the user's folder and the built-in resources; each unreadable one is logged as a warning. Called at start-up, or lazily on first use.</summary>
+ public void Load()
+ {
+ var errors = new List<string>();
+ List<ColorScheme> user = ColorSchemeStore.LoadFolder(ColorSchemeStore.UserFolder, errors);
+ List<ColorScheme> builtIn = ColorSchemeStore.LoadBuiltIn(errors);
+ _schemes = [.. user, .. builtIn];
+ foreach (string error in errors)
+ {
+ Logger.Warn("Colour scheme not loaded: {Error}", error);
+ }
+ Logger.Info("{BuiltIn} built-in colour schemes, {User} from '{Folder}'", builtIn.Count, user.Count, ColorSchemeStore.UserFolder);
+ _luts.Clear();
+ }
+
+ /// <summary>Every scheme that loaded, in file name order.</summary>
+ public IReadOnlyList<ColorScheme> Schemes
+ {
+ get
+ {
+ if (_schemes == null)
+ {
+ Load();
+ }
+ return _schemes!;
+ }
+ }
+
+ /// <summary>
+ /// The palette of the scheme called <paramref name="name"/> with the given black level, cached; null
+ /// (greyscale) when no such scheme exists, which is logged once per name.
+ /// </summary>
+ public int[]? LutFor(string name, double blackLevel)
+ {
+ (string, double) key = (name, blackLevel);
+ if (_luts.TryGetValue(key, out int[]? lut))
+ {
+ return lut;
+ }
+ ColorScheme? scheme = ColorSchemeStore.Find(Schemes, name);
+ if (scheme == null)
+ {
+ if (_warned.Add(name))
+ {
+ Logger.Warn("Colour scheme '{Name}' not found; showing greyscale", name);
+ }
+ lut = null;
+ }
+ else
+ {
+ lut = ColorLut.Build(scheme, blackLevel: blackLevel).Argb;
+ }
+ _luts[key] = lut;
+ return lut;
+ }
+}
diff --git a/WaveDude.WPF/Rendering/FramePresenter.cs b/WaveDude.WPF/Rendering/FramePresenter.cs
new file mode 100644
index 0000000..8ef6b60
--- /dev/null
+++ b/WaveDude.WPF/Rendering/FramePresenter.cs
@@ -0,0 +1,205 @@
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Threading;
+using NLog;
+using WaveDude.Rendering;
+using WaveDude.Runs;
+
+namespace WaveDude.WPF.Rendering;
+
+/// <summary>
+/// Turns frames of an <see cref="IFrameSource"/> (a run's store, or a single scratch frame) into the preview's
+/// two <see cref="WriteableBitmap"/>s. A UI-thread object: <see cref="Source"/>, <see cref="SetLayer"/> and
+/// <see cref="Show"/> are called there; the colouring
+/// runs on the thread pool, one job at a time, and only the newest request is honoured (a scrub that outruns
+/// the renderer skips frames rather than queueing them). The bitmaps are written on the UI thread.
+/// </summary>
+public sealed class FramePresenter
+{
+ private static readonly ILogger Logger = LogManager.GetCurrentClassLogger();
+
+ /// <summary>Every this many presented frames the average cost is logged at Debug level.</summary>
+ private const int RenderLogInterval = 100;
+
+ private readonly Dispatcher _dispatcher;
+ private readonly LayerSettings[] _settings = [new(), new()];
+ private IFrameSource? _source;
+ private Job? _job;
+ private int _wanted;
+ private int _version;
+ private int _busy;
+ private int _renderedFrame = -1;
+ private Job? _renderedJob;
+ private readonly Stopwatch _renderClock = new();
+ private int _renderCount;
+
+ /// <param name="dispatcher">The UI thread's dispatcher, where the bitmaps live.</param>
+ public FramePresenter(Dispatcher dispatcher) => _dispatcher = dispatcher;
+
+ /// <summary>Colour and visibility of one layer, as last set through <see cref="SetLayer"/>.</summary>
+ private sealed record LayerSettings
+ {
+ public int[]? Lut { get; init; }
+ public float Brightness { get; init; } = 1f;
+ public bool Enabled { get; init; } = true;
+ }
+
+ /// <summary>An immutable snapshot of everything one render needs, replaced wholesale on every change.</summary>
+ private sealed class Job(IFrameSource source, WriteableBitmap? field, WriteableBitmap? intensity, LayerSettings[] settings)
+ {
+ public IFrameSource Source { get; } = source;
+ public WriteableBitmap?[] Bitmaps { get; } = [field, intensity];
+ public LayerSettings[] Settings { get; } = settings;
+ public Half[] Values { get; } = new Half[source.Width * source.Height];
+ public int[] Pixels { get; } = new int[source.Width * source.Height];
+ }
+
+ /// <summary>
+ /// The frames to show; null shows nothing. The bitmaps (<see cref="FieldBitmap"/>, <see cref="IntensityBitmap"/>)
+ /// are kept across sources of the same size and planes, so switching between a run's store and a scratch
+ /// frame does not swap images; a new size creates new ones.
+ /// </summary>
+ public IFrameSource? Source
+ {
+ get => _source;
+ set
+ {
+ if (ReferenceEquals(_source, value))
+ {
+ return;
+ }
+ bool sameShape = _source != null && value != null && _source.Width == value.Width && _source.Height == value.Height
+ && _source.Has(FrameLayer.Intensity) == value.Has(FrameLayer.Intensity);
+ Logger.Trace("Presenter source: {Source} (same shape {Same})", value?.GetType().Name ?? "none", sameShape);
+ _source = value;
+ if (!sameShape)
+ {
+ FieldBitmap = value != null && value.Has(FrameLayer.Field) ? NewBitmap(value) : null;
+ IntensityBitmap = value != null && value.Has(FrameLayer.Intensity) ? NewBitmap(value) : null;
+ }
+ Rebuild();
+ }
+ }
+
+ /// <summary>The field picture of the current store, or null.</summary>
+ public WriteableBitmap? FieldBitmap { get; private set; }
+
+ /// <summary>The intensity picture of the current store, or null (no store, or no intensity plane).</summary>
+ public WriteableBitmap? IntensityBitmap { get; private set; }
+
+ /// <summary>Sets how a layer is coloured and whether it is rendered at all; the shown frame is redrawn.</summary>
+ /// <param name="layer">The plane.</param>
+ /// <param name="lut">Palette, or null for greyscale.</param>
+ /// <param name="brightness">Gain before the palette lookup.</param>
+ /// <param name="enabled">False leaves the bitmap untouched (the picture is hidden anyway).</param>
+ public void SetLayer(FrameLayer layer, int[]? lut, float brightness, bool enabled)
+ {
+ _settings[(int)layer] = new LayerSettings { Lut = lut, Brightness = brightness, Enabled = enabled };
+ Rebuild();
+ }
+
+ /// <summary>Requests frame <paramref name="frame"/> (clamped to the frames available); coalesced with pending requests.</summary>
+ public void Show(int frame)
+ {
+ Volatile.Write(ref _wanted, frame);
+ Kick();
+ }
+
+ private static WriteableBitmap NewBitmap(IFrameSource source) => new(source.Width, source.Height, 96, 96, PixelFormats.Bgr32, null);
+
+ private void Rebuild()
+ {
+ _job = _source == null ? null : new Job(_source, FieldBitmap, IntensityBitmap, [.. _settings]);
+ Kick();
+ }
+
+ /// <summary>Marks a change and starts the render loop unless one is running (it re-checks the version before it ends).</summary>
+ private void Kick()
+ {
+ Interlocked.Increment(ref _version);
+ if (Interlocked.CompareExchange(ref _busy, 1, 0) == 0)
+ {
+ Task.Run(RenderLoop);
+ }
+ }
+
+ private void RenderLoop()
+ {
+ try
+ {
+ while (true)
+ {
+ int version = Volatile.Read(ref _version);
+ Job? job = Volatile.Read(ref _job);
+ int frame = Volatile.Read(ref _wanted);
+ if (job != null)
+ {
+ RenderOne(job, frame);
+ }
+ Volatile.Write(ref _busy, 0);
+ if (Volatile.Read(ref _version) == version || Interlocked.CompareExchange(ref _busy, 1, 0) != 0)
+ {
+ return;
+ }
+ }
+ }
+ catch (Exception ex) when (ex is TaskCanceledException or OperationCanceledException)
+ {
+ // the dispatcher is shutting down; nothing left to show
+ Volatile.Write(ref _busy, 0);
+ }
+ catch (Exception ex)
+ {
+ Volatile.Write(ref _busy, 0);
+ Logger.Error(ex, "Preview rendering failed");
+ }
+ }
+
+ private void RenderOne(Job job, int frame)
+ {
+ int count = job.Source.Count;
+ if (count == 0)
+ {
+ return;
+ }
+ frame = Math.Clamp(frame, 0, count - 1);
+ if (frame == _renderedFrame && ReferenceEquals(job, _renderedJob))
+ {
+ return;
+ }
+ int width = job.Source.Width;
+ int height = job.Source.Height;
+ Logger.Trace("Presenter render: frame {Frame} of {Source} (job {Job})", frame, job.Source.GetType().Name, job.GetHashCode());
+ _renderClock.Start();
+ foreach (FrameLayer layer in new[] { FrameLayer.Field, FrameLayer.Intensity })
+ {
+ LayerSettings settings = job.Settings[(int)layer];
+ WriteableBitmap? bitmap = job.Bitmaps[(int)layer];
+ if (!settings.Enabled || bitmap == null || !job.Source.Has(layer) || !job.Source.CopyLayer(frame, layer, job.Values))
+ {
+ continue;
+ }
+ if (layer == FrameLayer.Field)
+ {
+ FrameRenderer.RenderField(job.Values, width, height, settings.Lut, settings.Brightness, job.Pixels);
+ }
+ else
+ {
+ FrameRenderer.RenderIntensity(job.Values, width, height, settings.Lut, settings.Brightness, job.Pixels);
+ }
+ // the bitmap belongs to the UI thread; wait for the copy so the pixel buffer can be reused
+ _dispatcher.Invoke(() => bitmap.WritePixels(new Int32Rect(0, 0, width, height), job.Pixels, width * 4, 0), DispatcherPriority.Render);
+ }
+ _renderClock.Stop();
+ _renderedFrame = frame;
+ _renderedJob = job;
+ if (++_renderCount % RenderLogInterval == 0)
+ {
+ // the cost of one presented frame (copy, colouring, bitmap write), averaged; for judging the pipeline at full resolution
+ Logger.Debug("Preview: {Width}x{Height}, {Average:0.0} ms per frame over the last {Count}", width, height, _renderClock.Elapsed.TotalMilliseconds / RenderLogInterval, RenderLogInterval);
+ _renderClock.Reset();
+ }
+ }
+}
diff --git a/WaveDude.WPF/Rendering/SceneImageLoader.cs b/WaveDude.WPF/Rendering/SceneImageLoader.cs
new file mode 100644
index 0000000..648403e
--- /dev/null
+++ b/WaveDude.WPF/Rendering/SceneImageLoader.cs
@@ -0,0 +1,26 @@
+using System.IO;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using WaveDude.Runs;
+
+namespace WaveDude.WPF.Rendering;
+
+/// <summary>Decodes a scene image file into the BGRA bytes a run needs. UI thread (WPF imaging).</summary>
+public static class SceneImageLoader
+{
+ /// <summary>Reads <paramref name="path"/> with the WPF decoders and converts the first frame to 32-bit BGRA.</summary>
+ /// <exception cref="FileNotFoundException">The file does not exist.</exception>
+ /// <exception cref="NotSupportedException">The file is not an image WPF can decode.</exception>
+ public static ScenePixels Load(string path)
+ {
+ using FileStream stream = File.OpenRead(path);
+ BitmapDecoder decoder = BitmapDecoder.Create(stream, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.OnLoad);
+ var converted = new FormatConvertedBitmap(decoder.Frames[0], PixelFormats.Bgra32, null, 0);
+ int width = converted.PixelWidth;
+ int height = converted.PixelHeight;
+ int stride = width * 4;
+ var bgra = new byte[stride * height];
+ converted.CopyPixels(bgra, stride, 0);
+ return new ScenePixels(width, height, stride, bgra);
+ }
+}
diff --git a/WaveDude.WPF/Strings/Strings.EN.xaml b/WaveDude.WPF/Strings/Strings.EN.xaml
index 36b4002..46878fd 100644
--- a/WaveDude.WPF/Strings/Strings.EN.xaml
+++ b/WaveDude.WPF/Strings/Strings.EN.xaml
@@ -17,6 +17,13 @@
<s:String x:Key="MenuView">_View</s:String>
<s:String x:Key="MenuViewPanes">_Panes</s:String>
<s:String x:Key="MenuViewTheme">_Theme</s:String>
+ <s:String x:Key="MenuSimulation">_Simulation</s:String>
+ <s:String x:Key="MenuSimulationRun">_Run</s:String>
+ <s:String x:Key="MenuSimulationPause">_Pause</s:String>
+ <s:String x:Key="MenuSimulationResume">_Resume</s:String>
+ <s:String x:Key="MenuSimulationStop">S_top</s:String>
+ <s:String x:Key="MenuSimulationUseGpu">Use the _GPU (OpenCL)</s:String>
+ <s:String x:Key="MenuSimulationAutoRerun">Re-run _automatically after edits</s:String>
<s:String x:Key="MenuHelp">_Help</s:String>
<s:String x:Key="MenuHelpAbout">_About Wave Dude</s:String>
@@ -69,9 +76,25 @@
<s:String x:Key="TipPreviewSetOut">Set the out point at this frame (O)</s:String>
<s:String x:Key="TipPreviewClearRange">Clear the in/out range (X)</s:String>
<s:String x:Key="TipPreviewLoop">Loop playback between the in and out points (L)</s:String>
+ <s:String x:Key="TipPreviewLive">Follow the newest frame while the run is in progress (F)</s:String>
+ <s:String x:Key="TipMarkerFormat">{0}: drag to move; with keyboard focus the arrow keys move it by a pixel, ten with Shift</s:String>
<s:String x:Key="LabelPreviewStep">step</s:String>
<s:String x:Key="TipPreviewStep">Simulation step of the frame shown</s:String>
<s:String x:Key="TipPreviewSplitter">Drag or use the arrow keys to resize; double-click or Enter resets to half</s:String>
+
+ <!-- the run's line in the status bar: {0} state, {1} steps done, {2} total steps, {3} engine -->
+ <s:String x:Key="RunStatusFormat">{0}: {1} / {2} steps, {3}</s:String>
+ <s:String x:Key="RunStateCreated">Preparing</s:String>
+ <s:String x:Key="RunStateStarting">Starting</s:String>
+ <s:String x:Key="RunStateRunning">Running</s:String>
+ <s:String x:Key="RunStatePaused">Paused</s:String>
+ <s:String x:Key="RunStateCompleted">Completed</s:String>
+ <s:String x:Key="RunStateCancelled">Stopped</s:String>
+ <s:String x:Key="RunStateFailed">Failed</s:String>
+ <s:String x:Key="RunStatusStale">, edited since</s:String>
+ <s:String x:Key="RunError">The simulation could not start.</s:String>
+ <s:String x:Key="RunErrorNoImage">The scene uses an image, but no image file is set.</s:String>
+ <s:String x:Key="RunErrorUnsavedImagePath">Save the project first, so the scene image can be found relative to it.</s:String>
<s:String x:Key="Ready">Ready</s:String>
<s:String x:Key="NoSelection">No selection</s:String>
diff --git a/WaveDude.WPF/Views/SimulationView.xaml b/WaveDude.WPF/Views/SimulationView.xaml
index f5ad91f..e1a29b2 100644
--- a/WaveDude.WPF/Views/SimulationView.xaml
+++ b/WaveDude.WPF/Views/SimulationView.xaml
@@ -18,8 +18,6 @@
<TextBlock Style="{StaticResource FormSection}" Text="{DynamicResource SectionSolver}" />
<controls:FormPanel>
- <CheckBox controls:FormPanel.FullWidth="True" Content="{meta:Label model:Simulation.Gpu}"
- IsChecked="{Binding Gpu}" ToolTip="{meta:Hint model:Simulation.Gpu}" />
<CheckBox controls:FormPanel.FullWidth="True" Content="{meta:Label model:Simulation.FourthOrderLaplacian}"
IsChecked="{Binding FourthOrderLaplacian}" ToolTip="{meta:Hint model:Simulation.FourthOrderLaplacian}" />
diff --git a/WaveDude/Engine/Emitter.cs b/WaveDude/Engine/Emitter.cs
new file mode 100644
index 0000000..3750bcb
--- /dev/null
+++ b/WaveDude/Engine/Emitter.cs
@@ -0,0 +1,148 @@
+using WaveDude.Model;
+
+namespace WaveDude.Engine;
+
+/// <summary>
+/// One point emitter as the wave engines consume it: a resolved copy of a <see cref="Source"/> and one of
+/// its generated <see cref="SourceElement"/>s with all units already converted (phase in radians, amplitude
+/// 0..1). Built on the UI thread by <see cref="FromSource"/> / <see cref="FromProject"/>, handed to
+/// <see cref="WaveSimulator"/> / <see cref="GpuWaveSimulator"/> and read from the run's worker; immutable,
+/// so sharing it between threads is safe. The engines keep their own per-emitter off-width state and never
+/// write to it.
+/// </summary>
+/// <remarks>
+/// Determinism: <see cref="RngSeed"/> is drawn from the project seed, so a run reproduces from the project
+/// file alone; both engines advance that seed with the same xorshift32 generator when an emitter redraws
+/// its off-width, so the CPU and the GPU engine agree on the gap sequence too.
+/// </remarks>
+public sealed record Emitter
+{
+ /// <summary>Steps over which a detached emitter fades out linearly before it stops driving the field (see <see cref="DetachAfterStep"/>).</summary>
+ public const int DetachRampSteps = 30;
+
+ /// <summary>
+ /// Stream selector XOR-ed onto the name hash, so the gap seeds come from a different <see cref="Pcg32"/>
+ /// stream than the position/frequency jitter of <see cref="Source.CreateRandom"/>.
+ /// </summary>
+ private const ulong GapStream = 0x47415053UL;
+
+ /// <summary>X position in canvas pixels (0 = left edge). Emitters outside the canvas are dropped by the engines.</summary>
+ public required int X { get; init; }
+
+ /// <summary>Y position in canvas pixels (0 = top edge). Emitters outside the canvas are dropped by the engines.</summary>
+ public required int Y { get; init; }
+
+ /// <summary>
+ /// Frequency as a source level 1..255, the same scale as the brightness of image-based sources. The
+ /// engines map it to an angular frequency of <c>Level / 255 × 0.5 × SourceFrequencyScale</c> radians per step.
+ /// </summary>
+ public required int Level { get; init; }
+
+ /// <summary>Peak field amplitude 0..1 (the source's 0..100 % divided by 100).</summary>
+ public required double Amplitude { get; init; }
+
+ /// <summary>Phase offset in radians added to the sine argument (<c>sin(PhaseRadians + ω·t)</c>); positive values lead.</summary>
+ public required double PhaseRadians { get; init; }
+
+ /// <summary>Continuous or pulsed emission.</summary>
+ public required SourceMode Mode { get; init; }
+
+ /// <summary>Envelope shape of each burst; only used when <see cref="Mode"/> is <see cref="SourceMode.Pulsed"/>.</summary>
+ public required PulseShape PulseShape { get; init; }
+
+ /// <summary>Length of the "on" burst in cycles of this emitter's own frequency (pulsed mode only).</summary>
+ public required int OnWidthCycles { get; init; }
+
+ /// <summary>
+ /// Length of the "off" gap before each burst in cycles (pulsed mode only), as rolled once at generate time
+ /// (the element's jittered value). The engines start every emitter with this value and, for emitters with
+ /// <see cref="RandomizeOffWidthAmount"/> &gt; 0, redraw it per period from <see cref="OffWidthBase"/>.
+ /// </summary>
+ public required int OffWidthCycles { get; init; }
+
+ /// <summary>The source's un-jittered off-width in cycles: the centre of every per-period redraw.</summary>
+ public required int OffWidthBase { get; init; }
+
+ /// <summary>
+ /// Spread of the per-period off-width redraw (uniform in ±amount cycles around <see cref="OffWidthBase"/>);
+ /// 0 keeps <see cref="OffWidthCycles"/> for the whole run.
+ /// </summary>
+ public required int RandomizeOffWidthAmount { get; init; }
+
+ /// <summary>Step after which the emitter fades out over <see cref="DetachRampSteps"/> steps and then stops driving the field; -1 never.</summary>
+ public required int DetachAfterStep { get; init; }
+
+ /// <summary>Non-zero starting state of the emitter's xorshift32 generator for the off-width redraws.</summary>
+ public required uint RngSeed { get; init; }
+
+ /// <summary>
+ /// The emitters of one source: one per generated element, with the source's shared settings resolved
+ /// and a gap seed per element from the project seed and the source name. Returns an empty list for a
+ /// disabled source. UI thread; call <see cref="Source.GenerateElements"/> first when the settings may
+ /// have changed since the elements were generated.
+ /// </summary>
+ /// <param name="source">The source, with its <see cref="Source.Elements"/> generated.</param>
+ /// <param name="projectSeed">The project's <see cref="Project.Seed"/>.</param>
+ public static List<Emitter> FromSource(Source source, int projectSeed)
+ {
+ var emitters = new List<Emitter>();
+ if (!source.Enabled)
+ {
+ return emitters;
+ }
+ var rng = new Pcg32((ulong)(uint)projectSeed, Pcg32.StableHash(source.Name) ^ GapStream);
+ foreach (SourceElement element in source.Elements)
+ {
+ uint seed = rng.NextUInt32();
+ emitters.Add(new Emitter
+ {
+ X = element.X,
+ Y = element.Y,
+ Level = element.Level,
+ Amplitude = source.Amplitude / 100.0,
+ PhaseRadians = element.Phase * Math.PI / 180.0,
+ Mode = source.Mode,
+ PulseShape = source.PulseShape,
+ OnWidthCycles = source.PulseWidth,
+ OffWidthCycles = element.OffWidth,
+ OffWidthBase = source.OffWidth,
+ RandomizeOffWidthAmount = source.Array?.RandomOffWidth ?? 0,
+ DetachAfterStep = source.DetachAfter,
+ // xorshift32 never leaves state 0, so a zero seed would make the off-width constant
+ RngSeed = seed == 0 ? 1u : seed,
+ });
+ }
+ return emitters;
+ }
+
+ /// <summary>
+ /// The emitters of every enabled source of the project, or an empty list when the scene does not use
+ /// object sources (<see cref="Scene.ObjectSources"/>). UI thread; regenerates the elements first.
+ /// </summary>
+ public static List<Emitter> FromProject(Project project)
+ {
+ var emitters = new List<Emitter>();
+ if (!project.Scene.ObjectSources)
+ {
+ return emitters;
+ }
+ foreach (Source source in project.Sources)
+ {
+ source.GenerateElements(project.Seed);
+ emitters.AddRange(FromSource(source, project.Seed));
+ }
+ return emitters;
+ }
+
+ /// <summary>
+ /// One xorshift32 step, the generator both engines use for the per-period off-width redraw (OpenCL has no
+ /// built-in RNG, so the GPU kernel carries the same state per emitter). Never returns 0 for a non-zero input.
+ /// </summary>
+ public static uint Xorshift32(uint x)
+ {
+ x ^= x << 13;
+ x ^= x >> 17;
+ x ^= x << 5;
+ return x;
+ }
+}
diff --git a/WaveDude/Engine/EngineOptions.cs b/WaveDude/Engine/EngineOptions.cs
new file mode 100644
index 0000000..2412b78
--- /dev/null
+++ b/WaveDude/Engine/EngineOptions.cs
@@ -0,0 +1,34 @@
+using WaveDude.Model;
+
+namespace WaveDude.Engine;
+
+/// <summary>
+/// The physics settings a wave engine is created with, resolved from the model on the UI thread and read by
+/// the engine constructors on the run's worker. Units: frequencies in radians per step, time in steps.
+/// </summary>
+/// <param name="SourceFrequencyScale"><see cref="Simulation.SourceFrequencyScale"/>: frequency of a source = level / 255 × 0.5 × this value.</param>
+/// <param name="SourceAmplitude">Peak amplitude of the image (green-channel) sources, <see cref="Scene.ImageSourceScale"/>; object sources carry their own.</param>
+/// <param name="TrackIntensity">Whether to allocate and update the intensity buffers (it costs extra time in every step); when false <see cref="IWaveEngine.IntensityData"/> stays null.</param>
+/// <param name="FourthOrderLaplacian"><see cref="Simulation.FourthOrderLaplacian"/>: the 4th-order 5-point-per-axis stencil (with sub-stepping) instead of the 9-point one.</param>
+/// <param name="TimeDecay"><see cref="Simulation.TimeDecay"/>: intensity averaging time in units of <see cref="WaveSimulator.NominalDecayLevel"/>/level steps.</param>
+/// <param name="IntensityScale"><see cref="Simulation.IntensityScale"/>: multiplier applied to the intensity output.</param>
+public sealed record EngineOptions(
+ double SourceFrequencyScale,
+ double SourceAmplitude,
+ bool TrackIntensity,
+ bool FourthOrderLaplacian,
+ double TimeDecay,
+ double IntensityScale)
+{
+ /// <summary>The options of a project's simulation and scene settings.</summary>
+ /// <param name="simulation">Solver settings.</param>
+ /// <param name="scene">Supplies the image source amplitude.</param>
+ /// <param name="trackIntensity">Whether the run needs the intensity (an intensity preview, export or probe).</param>
+ public static EngineOptions From(Simulation simulation, Scene scene, bool trackIntensity) => new(
+ simulation.SourceFrequencyScale,
+ scene.ImageSourceScale,
+ trackIntensity,
+ simulation.FourthOrderLaplacian,
+ simulation.TimeDecay,
+ simulation.IntensityScale);
+}
diff --git a/WaveDude/Engine/FrameSnapshot.cs b/WaveDude/Engine/FrameSnapshot.cs
new file mode 100644
index 0000000..f9c7ebc
--- /dev/null
+++ b/WaveDude/Engine/FrameSnapshot.cs
@@ -0,0 +1,64 @@
+using System.Runtime.InteropServices;
+
+namespace WaveDude.Engine;
+
+/// <summary>
+/// A host-side copy of one frame in the frame store's format: the field and, optionally, the intensity as
+/// <see cref="Half"/> planes of <see cref="Width"/> × <see cref="Height"/> values, row-major, without the
+/// engine's padding. Filled by <see cref="IWaveEngine.CaptureFrame"/> and complete after
+/// <see cref="IWaveEngine.AwaitFrame"/>; the arrays live on the pinned object heap so the GPU can copy into
+/// them asynchronously. Reusable: a pool of two or three lets a run convert and store one frame while the
+/// engine computes the next. Not thread-safe; one owner at a time.
+/// </summary>
+public sealed class FrameSnapshot
+{
+ /// <param name="width">Canvas width in pixels.</param>
+ /// <param name="height">Canvas height in pixels.</param>
+ /// <param name="withIntensity">Whether to allocate the intensity plane.</param>
+ public FrameSnapshot(int width, int height, bool withIntensity)
+ {
+ Width = width;
+ Height = height;
+ Field = GC.AllocateArray<Half>(width * height, pinned: true);
+ Intensity = withIntensity ? GC.AllocateArray<Half>(width * height, pinned: true) : null;
+ }
+
+ /// <summary>Canvas width in pixels.</summary>
+ public int Width { get; }
+
+ /// <summary>Canvas height in pixels.</summary>
+ public int Height { get; }
+
+ /// <summary>The field plane; valid after <see cref="IWaveEngine.AwaitFrame"/>.</summary>
+ public Half[] Field { get; }
+
+ /// <summary>The intensity plane, or null when the snapshot was created without one.</summary>
+ public Half[]? Intensity { get; }
+
+ /// <summary>Whether the last capture filled <see cref="Intensity"/> (the engine may have been asked for the field only).</summary>
+ public bool HasIntensity { get; internal set; }
+
+ /// <summary>The frame index the owner captured into this snapshot; a tag for the pipeline, not used by the engines.</summary>
+ public int Frame { get; set; }
+
+ /// <summary>The simulation step the snapshot shows (0-based), set by the owner.</summary>
+ public int Step { get; set; }
+
+ /// <summary>OpenCL events of the reads in flight (GPU engine), released by <see cref="IWaveEngine.AwaitFrame"/>.</summary>
+ internal IntPtr[] Events { get; } = new IntPtr[2];
+
+ /// <summary>Number of valid entries in <see cref="Events"/>.</summary>
+ internal int EventCount { get; set; }
+
+ /// <summary>The CPU engine's staging: the planes as floats, copied at capture time and converted in <see cref="IWaveEngine.AwaitFrame"/> (on the awaiting thread, off the stepping thread).</summary>
+ internal float[]? FieldFloats { get; set; }
+
+ /// <summary>Intensity staging of the CPU engine; see <see cref="FieldFloats"/>.</summary>
+ internal float[]? IntensityFloats { get; set; }
+
+ /// <summary>Whether <see cref="FieldFloats"/> (and <see cref="IntensityFloats"/> when <see cref="HasIntensity"/>) hold a capture not yet converted.</summary>
+ internal bool PendingConversion { get; set; }
+
+ /// <summary>Address of a plane's first element, stable because the arrays are pinned.</summary>
+ internal static IntPtr AddressOf(Half[] plane) => Marshal.UnsafeAddrOfPinnedArrayElement(plane, 0);
+}
diff --git a/WaveDude/Engine/GpuDeviceInfo.cs b/WaveDude/Engine/GpuDeviceInfo.cs
new file mode 100644
index 0000000..842f418
--- /dev/null
+++ b/WaveDude/Engine/GpuDeviceInfo.cs
@@ -0,0 +1,106 @@
+namespace WaveDude.Engine;
+
+/// <summary>
+/// Describes one OpenCL GPU device and enumerates the available ones. Produced by <see cref="FindAll"/> and
+/// consumed by <see cref="GpuWaveSimulator"/>, which tries the devices in the returned order. The platform and
+/// device handles are driver-owned identifiers that need no release.
+/// </summary>
+public sealed class GpuDeviceInfo
+{
+ /// <summary>
+ /// Lists every GPU on every OpenCL platform, best candidate first: discrete devices before those sharing
+ /// host memory, then by descending <see cref="Score"/>. Platforms whose enumeration fails are skipped;
+ /// a failing platform query yields an empty list. Throws the usual P/Invoke exceptions
+ /// (<see cref="DllNotFoundException"/> etc.) when OpenCL.dll cannot be loaded.
+ /// </summary>
+ public static List<GpuDeviceInfo> FindAll()
+ {
+ var devices = new List<GpuDeviceInfo>();
+ uint platformCount = 0U;
+ if (OpenClApi.clGetPlatformIDs(0U, null, ref platformCount) != 0 || platformCount == 0U)
+ {
+ return devices;
+ }
+ IntPtr[] platforms = new IntPtr[platformCount];
+ uint platformsReturned = 0U;
+ if (OpenClApi.clGetPlatformIDs(platformCount, platforms, ref platformsReturned) != 0)
+ {
+ return devices;
+ }
+ foreach (IntPtr platform in platforms)
+ {
+ uint deviceCount = 0U;
+ if (OpenClApi.clGetDeviceIDs(platform, OpenClApi.DeviceTypeGpu, 0U, null, ref deviceCount) != 0 || deviceCount == 0U)
+ {
+ continue;
+ }
+ IntPtr[] deviceIds = new IntPtr[deviceCount];
+ uint devicesReturned = 0U;
+ if (OpenClApi.clGetDeviceIDs(platform, OpenClApi.DeviceTypeGpu, deviceCount, deviceIds, ref devicesReturned) != 0)
+ {
+ continue;
+ }
+ foreach (IntPtr deviceId in deviceIds)
+ {
+ devices.Add(GpuDeviceInfo.Describe(platform, deviceId));
+ }
+ }
+ devices.Sort((a, b) =>
+ {
+ // discrete GPUs first, then by score descending
+ if (a.Discrete != b.Discrete)
+ {
+ return a.Discrete ? -1 : 1;
+ }
+ return b.Score.CompareTo(a.Score);
+ });
+ return devices;
+ }
+
+ /// <summary>
+ /// Queries the device properties. Failed queries read as 0 or "", so an unnamed device is called "GPU" and a
+ /// device whose host-unified-memory flag cannot be read counts as discrete.
+ /// </summary>
+ private static GpuDeviceInfo Describe(IntPtr plat, IntPtr id)
+ {
+ string name = OpenClApi.DeviceString(id, OpenClApi.DeviceName);
+ double computeUnits = OpenClApi.DeviceNumber(id, OpenClApi.DeviceMaxComputeUnits);
+ double clockMhz = OpenClApi.DeviceNumber(id, OpenClApi.DeviceMaxClockFrequency);
+ return new GpuDeviceInfo
+ {
+ PlatformId = plat,
+ DeviceId = id,
+ Name = name.Length == 0 ? "GPU" : name,
+ Vendor = OpenClApi.DeviceString(id, OpenClApi.DeviceVendor),
+ Discrete = OpenClApi.DeviceNumber(id, OpenClApi.DeviceHostUnifiedMemory) == 0UL,
+ Score = computeUnits * Math.Max(1.0, clockMhz),
+ // Mask the sign bit so an odd 64-bit value cannot turn into a negative size.
+ GlobalMemory = (long)(OpenClApi.DeviceNumber(id, OpenClApi.DeviceGlobalMemSize) & 0x7FFFFFFFFFFFFFFFUL),
+ MaxAllocation = (long)(OpenClApi.DeviceNumber(id, OpenClApi.DeviceMaxMemAllocSize) & 0x7FFFFFFFFFFFFFFFUL),
+ };
+ }
+
+ /// <summary>OpenCL platform handle (cl_platform_id) the device belongs to.</summary>
+ public IntPtr PlatformId { get; private init; }
+
+ /// <summary>OpenCL device handle (cl_device_id).</summary>
+ public IntPtr DeviceId { get; private init; }
+
+ /// <summary>CL_DEVICE_NAME, or "GPU" when the query fails.</summary>
+ public string Name { get; private init; } = "";
+
+ /// <summary>CL_DEVICE_VENDOR, or "" when the query fails.</summary>
+ public string Vendor { get; private init; } = "";
+
+ /// <summary>True for a card with its own memory (the NVIDIA GeForce; CL_DEVICE_HOST_UNIFIED_MEMORY is 0), false for the graphics of the processor (Intel UHD).</summary>
+ public bool Discrete { get; private init; }
+
+ /// <summary>Compute units times clock (MHz, at least 1): a rough measure of the speed.</summary>
+ public double Score { get; private init; }
+
+ /// <summary>CL_DEVICE_GLOBAL_MEM_SIZE in bytes.</summary>
+ public long GlobalMemory { get; private init; }
+
+ /// <summary>CL_DEVICE_MAX_MEM_ALLOC_SIZE in bytes: the largest single buffer the device allows.</summary>
+ public long MaxAllocation { get; private init; }
+}
diff --git a/WaveDude/Engine/GpuWaveSimulator.cs b/WaveDude/Engine/GpuWaveSimulator.cs
new file mode 100644
index 0000000..b4a0895
--- /dev/null
+++ b/WaveDude/Engine/GpuWaveSimulator.cs
@@ -0,0 +1,1477 @@
+using System.Globalization;
+using System.Text;
+using WaveDude.Model;
+using WaveDude.Probes;
+
+namespace WaveDude.Engine;
+
+/// <summary>
+/// OpenCL implementation of <see cref="IWaveEngine"/>: the 2D wave equation on the graphics card, the same
+/// algorithm as <see cref="WaveSimulator"/> (padded grid with a border of one cell, 9-point or sub-stepped
+/// 4th-order Laplacian, soft source blending, two-stage intensity average), with the field, the scene maps,
+/// the source tables and the probe buffers all resident on the device. Units are those of the CPU engine
+/// (dx = dt = 1, c in cells per step, frequencies in radians per step, time in steps):
+/// <code>
+/// new u = u + (u - previous u) * d + laplacian * c^2 (3x3 kernel 0.066 / 0.184 / -1)
+/// sources: u = u * 0.9 + sin(frequency * t) * amplitude * 0.1
+/// intensity: two cascaded one-pole filters, I1 = I1 * alpha + u^2 * (1 - alpha), I2 = I2 * alpha + I1 * (1 - alpha),
+/// blended (IntensityBlend) into what is shown/exported: Iout = (I1 * (1 - blend) + I2 * blend) * scale
+/// </code>
+/// alpha is derived once per simulation - see the <see cref="WaveSimulator"/> class summary (why two stages
+/// and the blend, not a single, fixed-0.98 filter) and <see cref="Simulation.TimeDecay"/> (why
+/// alpha); scale is <see cref="Simulation.IntensityScale"/> (why it exists). The field, the previous
+/// field, c², d and the intensity stay in the memory of the graphics card; only when a frame is drawn
+/// (<see cref="PrepareFrame"/>) the field and/or intensity are copied back. The arrays have the same layout as
+/// those of the CPU engine, so the same renderer draws both.
+/// Created through <see cref="TryCreate"/> by <see cref="WaveEngineFactory"/> and driven by the run on
+/// its worker, which is the only thread that enqueues work and reads <see cref="FieldData"/> /
+/// <see cref="IntensityData"/>. Any single thread may drive the engine; it is not safe for concurrent use.
+/// </summary>
+/// <remarks>
+/// <para>
+/// Optionally (<c>use4thOrderLaplacian</c>), the <c>wave_step</c> kernel instead computes the Laplacian with a
+/// 4th order accurate, 5-point "cross" stencil wherever there is room for it, the same as
+/// <see cref="WaveSimulator"/>'s <c>UpdateField</c> on the CPU (see that class's summary for why). Which form to
+/// use is baked into the generated kernel source as a compile-time <c>#define</c>, not a runtime branch, so
+/// there is no extra cost when it is off.
+/// </para>
+/// <para>
+/// The 4th order stencil needs the same time sub-stepping as the CPU engine to stay stable, for the same
+/// reason (see <see cref="WaveSimulator"/>'s class summary): <see cref="AdvanceOneStep"/> launches
+/// <c>wave_step</c> <see cref="_subSteps"/> times instead of once when <see cref="_subSteps"/> &gt; 1, with c²
+/// scaled by a <c>c2Scale</c> kernel argument (1 / <see cref="_subSteps"/>²) and the d buffer pre-scaled (on
+/// the host, once, at <see cref="Build"/> time) to its 1 / <see cref="_subSteps"/>-th root, so
+/// <see cref="_subSteps"/> kernel launches move the field by exactly the same physical time and damping as
+/// one ordinary launch. The intensity buffer is only updated (via the kernel's <c>track</c> argument) on the
+/// last of the <see cref="_subSteps"/> launches, so its own exponential averaging still runs once per
+/// <see cref="AdvanceOneStep"/> call, matching the CPU engine and its own earlier calibration.
+/// <see cref="_subSteps"/> is 1 (<c>c2Scale</c> exactly 1.0f, an exact no-op multiply, and the d buffer
+/// unchanged) whenever the 3x3 kernel is used or this scene's highest c² does not need sub-stepping - see
+/// <see cref="WaveSimulator.ComputeSubSteps"/>.
+/// </para>
+/// <para>
+/// The field lives in two ping-pong buffers (<see cref="_field"/>) that take turns as "current field" and
+/// "previous field"; every kernel that reads the field exists twice (index 0/1) with the buffers bound in
+/// opposite order, so a step merely picks the kernel for <see cref="_current"/> instead of re-binding
+/// arguments. Kernel launches are asynchronous; uploads and read-backs are blocking. Every OpenCL handle
+/// created here is registered in <see cref="_scene"/> (the simulation program, kernels and buffers) or
+/// <see cref="_probes"/> (everything <see cref="SetProbes"/> creates) and released by <see cref="Dispose"/>,
+/// by the constructor when building fails, or — for the probe set — when probes are installed again. The
+/// managed arrays (<see cref="FieldData"/>, <see cref="IntensityData"/>) are plain host copies.
+/// </para>
+/// <para>
+/// Like <see cref="WaveSimulator"/>, portions of this engine are based on WaveSimulator2D by 0x23
+/// (https://github.com/0x23/WaveSimulator2D).
+/// </para>
+/// </remarks>
+public sealed class GpuWaveSimulator : IWaveEngine, IDisposable
+{
+ /// <summary>
+ /// Tries the GPUs one after the other, the best first (<see cref="GpuDeviceInfo.FindAll"/>), and returns
+ /// the first that works. Parameters are those of the <see cref="WaveSimulator"/> constructor.
+ /// </summary>
+ /// <param name="scene">Per-cell c² and damping maps plus the image (green-channel) sources.</param>
+ /// <param name="options">Frequency scale (level/255 × 0.5 × scale, radians per step), image source amplitude (object sources carry their own), intensity tracking (when off <see cref="IntensityData"/> stays null), stencil order (see the class summary), time decay (the retention is derived by <see cref="WaveSimulator.IntensityRetention"/>) and intensity scale.</param>
+ /// <param name="emitters">The emitters of the object sources, or null/empty for none; those outside the canvas are dropped.</param>
+ /// <param name="problems">Receives "" on success, otherwise why no device worked ("no GPU found …" or the
+ /// per-device failure messages joined by "; ").</param>
+ /// <returns>The engine, or null when no device could be used (see <paramref name="problems"/>).</returns>
+ /// <exception cref="DllNotFoundException">There is no OpenCL driver (OpenCL.dll cannot be loaded).</exception>
+ public static GpuWaveSimulator? TryCreate(SceneData scene, EngineOptions options, IReadOnlyList<Emitter>? emitters, out string problems)
+ {
+ problems = "";
+ List<GpuDeviceInfo> devices = GpuDeviceInfo.FindAll();
+ if (devices.Count == 0)
+ {
+ problems = "no GPU found through OpenCL" + ((IntPtr.Size == 4) ? " (this is a 32-bit process; run the 64-bit build)" : "");
+ return null;
+ }
+ var errors = new StringBuilder();
+ foreach (GpuDeviceInfo device in devices)
+ {
+ try
+ {
+ return new GpuWaveSimulator(device, scene, options, emitters);
+ }
+ catch (Exception ex)
+ {
+ if (errors.Length > 0)
+ {
+ errors.Append("; ");
+ }
+ errors.Append(device.Name).Append(": ").Append(ex.Message);
+ }
+ }
+ problems = errors.ToString();
+ return null;
+ }
+
+ /// <summary>
+ /// Records the scene geometry, rejects scenes whose per-cell buffer would exceed the device's maximum
+ /// allocation, keeps only the object sources inside the canvas and then runs <see cref="Build"/>; if that
+ /// throws, everything allocated so far is released before the exception propagates.
+ /// </summary>
+ /// <exception cref="InvalidOperationException">The scene is too large for the device, or the OpenCL program could not be built.</exception>
+ private GpuWaveSimulator(GpuDeviceInfo device, SceneData scene, EngineOptions options, IReadOnlyList<Emitter>? emitters)
+ {
+ Description = "GPU: " + device.Name + " (OpenCL)";
+ _device = device;
+ _width = scene.Width;
+ _height = scene.Height;
+ _stride = _width + 2;
+ _cells = _stride * (_height + 2);
+ _track = options.TrackIntensity;
+ _sourceCount = scene.SourceCount;
+ if (device.MaxAllocation > 0L && (long)_cells * 4L > device.MaxAllocation)
+ {
+ throw new InvalidOperationException("the scene is too large for this GPU");
+ }
+ _grid2D = new[] { new IntPtr(_width), new IntPtr(_height) };
+ _grid1D = new[] { new IntPtr(Math.Max(1, _sourceCount)) };
+ _hostField = new float[_cells];
+ _hostIntensity = _track ? new float[_cells] : null;
+ _timeDecay = options.TimeDecay;
+ try
+ {
+ Build(scene, options);
+ SetEmitters(emitters);
+ }
+ catch
+ {
+ ReleaseAll();
+ throw;
+ }
+ }
+
+ /// <inheritdoc/>
+ public void SetEmitters(IReadOnlyList<Emitter>? emitters)
+ {
+ // object sources: keep only the elements whose position is inside the canvas (a randomized composite
+ // element can fall outside), same filtering as the CPU engine (WaveSimulator)
+ var sourcesInScene = new List<Emitter>();
+ if (emitters != null)
+ {
+ foreach (Emitter source in emitters)
+ {
+ if (source.X >= 0 && source.X < _width && source.Y >= 0 && source.Y < _height)
+ {
+ sourcesInScene.Add(source);
+ }
+ }
+ }
+ // the tables and kernels of the previous emitters go; the program and the scene stay
+ Quietly(() => OpenClApi.clFinish(_queue));
+ _emitters.Release();
+ _objSourceCount = sourcesInScene.Count;
+ _objGrid1D = new[] { new IntPtr(Math.Max(1, _objSourceCount)) };
+ _objSources = sourcesInScene;
+ if (_objSourceCount > 0)
+ {
+ BuildObjectSourceKernels(sourcesInScene);
+ }
+ // the intensity's averaging time constant follows the lowest source level in use (image or object)
+ float intensityAlpha = WaveSimulator.IntensityRetention(_timeDecay, WaveSimulator.LowestSourceLevel(_levelUsed, sourcesInScene));
+ for (int k = 0; k <= 1; k++)
+ {
+ SetFloat(_stepKernel[k], 10U, intensityAlpha);
+ }
+ }
+
+ /// <inheritdoc/>
+ public void Reset()
+ {
+ OpenClApi.Check(OpenClApi.clFinish(_queue), "clFinish");
+ float[] zeros = new float[_cells];
+ foreach (IntPtr buffer in new[] { _field[0], _field[1], _intensityOutBuffer, _intensityBuffer, _intensityStage1Buffer })
+ {
+ if (buffer != IntPtr.Zero)
+ {
+ Upload(buffer, zeros, _track || buffer == _field[0] || buffer == _field[1] ? _cells : 1);
+ }
+ }
+ _current = 0;
+ _time = 0.0;
+ _sinceFinish = 0;
+ // the emitters' cycle state lives on the card: rebuild their tables from the seeds
+ SetEmitters(_objSources);
+ SetProbes(null);
+ }
+
+ /// <inheritdoc/>
+ public void CaptureFrame(FrameSnapshot snapshot, bool needIntensity)
+ {
+ if (snapshot.Width != _width || snapshot.Height != _height)
+ {
+ throw new ArgumentException("The snapshot does not match the engine's size.", nameof(snapshot));
+ }
+ if (snapshot.EventCount > 0)
+ {
+ throw new InvalidOperationException("The snapshot has a capture in flight; await it first.");
+ }
+ if (_stagingField == IntPtr.Zero)
+ {
+ // lazily: most engines never capture (the harness, the probes-only paths)
+ _stagingField = CreateBuffer((long)_width * _height * 2, _scene);
+ _stagingIntensity = _track ? CreateBuffer((long)_width * _height * 2, _scene) : IntPtr.Zero;
+ _toHalfKernel = CreateKernel(_scene, _scene.Program, "to_half");
+ SetInt(_toHalfKernel, 2U, _width);
+ SetInt(_toHalfKernel, 3U, _height);
+ SetInt(_toHalfKernel, 4U, _stride);
+ }
+ snapshot.EventCount = 0;
+ EnqueueCapture(_field[_current], _stagingField, snapshot.Field, snapshot);
+ snapshot.HasIntensity = needIntensity && _track && snapshot.Intensity != null;
+ if (snapshot.HasIntensity)
+ {
+ EnqueueCapture(_intensityOutBuffer, _stagingIntensity, snapshot.Intensity!, snapshot);
+ }
+ // the reads flush the queue once they run; nothing piles up behind them
+ _sinceFinish = 0;
+ }
+
+ /// <summary>Converts a padded float buffer to a half plane on the card and enqueues its non-blocking read into the pinned plane.</summary>
+ private void EnqueueCapture(IntPtr source, IntPtr staging, Half[] plane, FrameSnapshot snapshot)
+ {
+ SetMem(_toHalfKernel, 0U, source);
+ SetMem(_toHalfKernel, 1U, staging);
+ Enqueue(_toHalfKernel, _grid2D, "to_half");
+ OpenClApi.Check(OpenClApi.clEnqueueReadBufferPtr(_queue, staging, 0U, IntPtr.Zero, new IntPtr((long)plane.Length * 2), FrameSnapshot.AddressOf(plane), 0U, IntPtr.Zero, out IntPtr evt), "clEnqueueReadBuffer (capture)");
+ snapshot.Events[snapshot.EventCount++] = evt;
+ }
+
+ /// <inheritdoc/>
+ public void AwaitFrame(FrameSnapshot snapshot)
+ {
+ if (snapshot.EventCount == 0)
+ {
+ return;
+ }
+ int code = OpenClApi.clWaitForEvents((uint)snapshot.EventCount, snapshot.Events);
+ for (int i = 0; i < snapshot.EventCount; i++)
+ {
+ Quietly(() => OpenClApi.clReleaseEvent(snapshot.Events[i]));
+ snapshot.Events[i] = IntPtr.Zero;
+ }
+ snapshot.EventCount = 0;
+ OpenClApi.Check(code, "clWaitForEvents (capture)");
+ }
+
+ /// <summary>Blocking upload of the first <paramref name="count"/> floats of <paramref name="data"/> into a device buffer.</summary>
+ private void Upload(IntPtr buffer, float[] data, int count)
+ {
+ OpenClApi.Check(OpenClApi.clEnqueueWriteBufferFloat(_queue, buffer, 1U, IntPtr.Zero, new IntPtr((long)count * 4L), data, 0U, IntPtr.Zero, IntPtr.Zero), "clEnqueueWriteBuffer (reset)");
+ }
+
+ /// <summary>
+ /// Creates the context and queue, compiles <see cref="KernelSource"/>, uploads every buffer for the scene
+ /// and binds the kernel arguments. Mirrors the <see cref="WaveSimulator"/> constructor: c² and damping are
+ /// copied into the padded layout, the sub-step count and the per-sub-step damping / c² corrections are
+ /// derived for the 4th-order stencil, the sources are indexed, and the intensity averaging constant is set
+ /// from the lowest source level in use. When intensity is not tracked the three intensity buffers are
+ /// 1-float dummies so the kernel arguments are still valid. The kernel arguments that change per step
+ /// (time, per-sub-step track flag) are left to <see cref="AdvanceOneStep"/>.
+ /// </summary>
+ /// <param name="scene">Per-cell c² and damping maps plus the image sources.</param>
+ /// <param name="options">Frequency scale, image source amplitude, stencil order (compiles the program with <c>USE_4TH_ORDER</c> and sub-steps accordingly), time decay and intensity scale.</param>
+ /// <exception cref="InvalidOperationException">The OpenCL program could not be built (message includes the build log).</exception>
+ private void Build(SceneData scene, EngineOptions options)
+ {
+ double sourceFrequencyScale = options.SourceFrequencyScale;
+ float sourceAmplitude = (float)options.SourceAmplitude;
+ bool use4thOrderLaplacian = options.FourthOrderLaplacian;
+ double timeDecayFactor = options.TimeDecay;
+ float intensityScale = (float)options.IntensityScale;
+ int err = 0;
+ IntPtr[] contextProperties = { new IntPtr(OpenClApi.ContextPlatformProperty), _device.PlatformId, IntPtr.Zero };
+ IntPtr[] deviceIds = { _device.DeviceId };
+ _context = OpenClApi.clCreateContext(contextProperties, 1U, deviceIds, IntPtr.Zero, IntPtr.Zero, ref err);
+ OpenClApi.Check(err, "clCreateContext");
+ _queue = OpenClApi.clCreateCommandQueue(_context, _device.DeviceId, 0UL, ref err);
+ OpenClApi.Check(err, "clCreateCommandQueue");
+ _scene.Program = BuildProgram(KernelSource(use4thOrderLaplacian), "the program for the GPU");
+
+ // the scene, with a border of one cell like the CPU engine (padded layout)
+ float[] c2 = new float[_cells];
+ float[] damping = new float[_cells];
+ for (int y = 0; y < _height; y++)
+ {
+ Array.Copy(scene.C2, y * _width, c2, (y + 1) * _stride + 1, _width);
+ Array.Copy(scene.D, y * _width, damping, (y + 1) * _stride + 1, _width);
+ }
+ // see the class summary: sub-stepping keeps the 4th order stencil stable without changing the physical
+ // wave speed or damping - _subSteps stays 1 (no sub-stepping) unless the 4th order stencil is in use and
+ // this scene's highest c² actually needs it. The d buffer uploaded below is pre-scaled to match (its
+ // 1 / _subSteps-th root, or unchanged when _subSteps = 1), same as WaveSimulator's _dEffective on the CPU.
+ _subSteps = use4thOrderLaplacian ? WaveSimulator.ComputeSubSteps(WaveSimulator.MaxOf(c2)) : 1;
+ // 1 / _subSteps², or exactly 1f when _subSteps = 1 (a bit-for-bit no-op multiply in the kernel)
+ float c2Mult = 1f;
+ if (_subSteps > 1)
+ {
+ // Damping is applied once per sub-step, so take the sub-step root to keep the per-step decay unchanged.
+ double exponent = 1.0 / _subSteps;
+ for (int i = 0; i < damping.Length; i++)
+ {
+ damping[i] = (float)Math.Pow(damping[i], exponent);
+ }
+ // A sub-step is 1/subSteps long, so c²·dt² shrinks by 1/subSteps².
+ c2Mult = 1f / (_subSteps * _subSteps);
+ }
+ IntPtr c2Buffer = CreateBuffer(c2, _scene);
+ IntPtr dBuffer = CreateBuffer(damping, _scene);
+ float[] zeros = new float[_cells];
+ _field[0] = CreateBuffer(zeros, _scene);
+ _field[1] = CreateBuffer(zeros, _scene);
+ // Not tracked: the kernels still need valid buffer arguments, and they never touch them.
+ float[] intensityInit = _track ? zeros : new float[1];
+ // the two cascaded exponential-filter stages that make up the intensity - see the class summary and
+ // WaveSimulator._intensity / _intensityStage1 (CPU engine); used only inside wave_step, never read back -
+ // what is read back/probed is their blend, _intensityOutBuffer (WaveSimulator._intensityOut on the CPU)
+ IntPtr intensityBuffer = _intensityBuffer = CreateBuffer(intensityInit, _scene);
+ IntPtr intensityStage1Buffer = _intensityStage1Buffer = CreateBuffer(intensityInit, _scene);
+ _intensityOutBuffer = CreateBuffer(intensityInit, _scene);
+
+ // the level-to-frequency table (level 0-255 -> frequency), shared by the image sources and the object sources
+ float[] frequencies = new float[256];
+ for (int level = 0; level <= 255; level++)
+ {
+ frequencies[level] = (float)(level / 255.0 * 0.5 * sourceFrequencyScale);
+ }
+ _frequencyBuffer = CreateBuffer(frequencies, _scene);
+ // the image sources (from the green channel of the scene image)
+ int[] indices = new int[_sourceCount];
+ int[] levels = new int[_sourceCount];
+ for (int i = 0; i < _sourceCount; i++)
+ {
+ indices[i] = (scene.SourceY[i] + 1) * _stride + scene.SourceX[i] + 1;
+ levels[i] = scene.SourceLevel[i];
+ _levelUsed[scene.SourceLevel[i]] = true;
+ }
+ // the intensity's averaging time constant scales inversely with the frequency of the slowest active source
+ // (image or object; a level of 0 means "no source" and is excluded) - see WaveSimulator's identical
+ // computation (CPU engine) and Simulation.TimeDecay's comment for why. This exponential-average decay
+ // factor replaces the old fixed 0.98f in the kernel; SetEmitters re-derives it with the object sources.
+ float intensityAlpha = WaveSimulator.IntensityRetention(timeDecayFactor, WaveSimulator.LowestSourceLevel(_levelUsed, []));
+
+ // Kernel k reads field[k] and writes field[1 - k]; argument 4 (sources) / 11 (object sources) is the
+ // time and argument 8 of wave_step the track flag, both set per launch in AdvanceOneStep.
+ for (int k = 0; k <= 1; k++)
+ {
+ IntPtr step = _stepKernel[k] = CreateKernel(_scene, "wave_step");
+ SetMem(step, 0U, _field[k]);
+ SetMem(step, 1U, _field[1 - k]);
+ SetMem(step, 2U, c2Buffer);
+ SetMem(step, 3U, dBuffer);
+ SetMem(step, 4U, intensityBuffer);
+ SetInt(step, 5U, _width);
+ SetInt(step, 6U, _height);
+ SetInt(step, 7U, _stride);
+ SetInt(step, 8U, _track ? 1 : 0);
+ SetFloat(step, 9U, c2Mult);
+ SetFloat(step, 10U, intensityAlpha);
+ SetMem(step, 11U, intensityStage1Buffer);
+ SetMem(step, 12U, _intensityOutBuffer);
+ SetFloat(step, 13U, intensityScale);
+ }
+ if (_sourceCount > 0)
+ {
+ IntPtr indexBuffer = CreateBuffer(indices, _scene);
+ IntPtr levelBuffer = CreateBuffer(levels, _scene);
+ for (int k = 0; k <= 1; k++)
+ {
+ IntPtr kernel = _sourceKernel[k] = CreateKernel(_scene, "apply_sources");
+ SetMem(kernel, 0U, _field[k]);
+ SetMem(kernel, 1U, indexBuffer);
+ SetMem(kernel, 2U, levelBuffer);
+ SetMem(kernel, 3U, _frequencyBuffer);
+ SetFloat(kernel, 5U, sourceAmplitude);
+ SetInt(kernel, 6U, _sourceCount);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Object sources (Sources tab): the flat list of generated point-source elements that are within the
+ /// canvas, one entry per element. Uploads one table per <see cref="Emitter"/> property (see the
+ /// <c>apply_object_sources</c> kernel comment for the layout) and binds the two
+ /// <c>apply_object_sources</c> kernels, all registered in <see cref="_emitters"/> so <see cref="SetEmitters"/>
+ /// can replace them. The frequency table (<see cref="_frequencyBuffer"/>, indexed by level) is shared with the
+ /// image sources since both use the same level-to-frequency scale. The cycle anchors start at 0 and every
+ /// source gets a non-zero xorshift32 seed.
+ /// </summary>
+ private void BuildObjectSourceKernels(List<Emitter> objectSources)
+ {
+ int n = _objSourceCount;
+ int[] index = new int[n], level = new int[n], mode = new int[n], pulseShape = new int[n];
+ int[] onWidth = new int[n], offWidth = new int[n], detachStep = new int[n];
+ int[] offWidthBase = new int[n], randomizeOffWidthAmount = new int[n], rngState = new int[n];
+ float[] amplitude = new float[n], phase = new float[n], cycleAnchor = new float[n];
+ for (int i = 0; i < n; i++)
+ {
+ Emitter source = objectSources[i];
+ index[i] = (source.Y + 1) * _stride + source.X + 1;
+ level[i] = source.Level;
+ amplitude[i] = (float)source.Amplitude;
+ phase[i] = (float)source.PhaseRadians;
+ mode[i] = source.Mode == SourceMode.Pulsed ? 1 : 0;
+ pulseShape[i] = source.PulseShape == PulseShape.SmoothedSquare ? 1 : 0;
+ onWidth[i] = source.OnWidthCycles;
+ offWidth[i] = source.OffWidthCycles;
+ detachStep[i] = source.DetachAfterStep;
+ offWidthBase[i] = source.OffWidthBase;
+ randomizeOffWidthAmount[i] = source.RandomizeOffWidthAmount;
+ // the per-element seed drawn from the project seed (never 0, see Emitter.FromSource); the kernel
+ // reinterprets it as uint, only the bits matter
+ rngState[i] = (int)source.RngSeed;
+ }
+ // Buffer arguments by kernel argument index; 0 is the field (per kernel instance), 11 the time
+ // (per launch) and 12 the count (scalar), see the apply_object_sources signature.
+ IntPtr[] buffers = new IntPtr[17];
+ buffers[1] = CreateBuffer(index, _emitters);
+ buffers[2] = CreateBuffer(level, _emitters);
+ buffers[3] = CreateBuffer(amplitude, _emitters);
+ buffers[4] = CreateBuffer(phase, _emitters);
+ buffers[5] = CreateBuffer(mode, _emitters);
+ buffers[6] = CreateBuffer(pulseShape, _emitters);
+ buffers[7] = CreateBuffer(onWidth, _emitters);
+ // the off-width currently in effect for each element, in cycles; read-write on the GPU (see
+ // apply_object_sources) since an element with RandomizeOffWidthAmount > 0 redraws it there each time it
+ // completes a cycle
+ buffers[8] = CreateBuffer(offWidth, _emitters);
+ // "detach source": the step at which each element stops driving the field (releasing its hold on it), or -1 to never
+ buffers[9] = CreateBuffer(detachStep, _emitters);
+ buffers[10] = _frequencyBuffer;
+ // 13-16 were appended at the end rather than renumbering 0-12, so every SetMem/SetInt call (and the
+ // per-launch SetFloat for t at index 11 in AdvanceOneStep) kept its existing, already-correct index.
+ // Runtime state for off-width re-randomization (see Emitter.RandomizeOffWidthAmount): the
+ // un-randomized anchor each redraw is centered on, the per-element +/- spread (0 = never redraw), the
+ // cycle-clock value at which each element's current off+on cycle started, and a per-element xorshift32
+ // PRNG seed (kernel-side reinterpreted as uint - only the entropy bits matter, not signedness)
+ buffers[13] = CreateBuffer(offWidthBase, _emitters);
+ buffers[14] = CreateBuffer(randomizeOffWidthAmount, _emitters);
+ buffers[15] = CreateBuffer(cycleAnchor, _emitters);
+ buffers[16] = CreateBuffer(rngState, _emitters);
+ for (int k = 0; k <= 1; k++)
+ {
+ IntPtr kernel = _objSourceKernel[k] = CreateKernel(_emitters, _scene.Program, "apply_object_sources");
+ SetMem(kernel, 0U, _field[k]);
+ for (uint a = 1; a < buffers.Length; a++)
+ {
+ if (buffers[a] != IntPtr.Zero)
+ {
+ SetMem(kernel, a, buffers[a]);
+ }
+ }
+ SetInt(kernel, 12U, n);
+ }
+ }
+
+ /// <summary>
+ /// OpenCL source of the simulation program: <c>wave_step</c>, <c>apply_sources</c> and
+ /// <c>apply_object_sources</c>, each a GPU transcription of the corresponding <see cref="WaveSimulator"/>
+ /// routine. <paramref name="use4thOrderLaplacian"/> selects, at compile time (a <c>#define</c>, not a
+ /// runtime branch), which form of the Laplacian <c>wave_step</c> uses - see the class summary and
+ /// <see cref="WaveSimulator"/>'s <c>UpdateField</c>, whose CPU-side stencils and boundary logic this mirrors
+ /// exactly. <c>wave_step</c>'s <c>c2Scale</c> argument is the sub-stepping scale (see the class summary),
+ /// and its <c>intensityAlpha</c> argument is the intensity's exponential-average decay factor - both are
+ /// runtime kernel arguments rather than a <c>#define</c>, so they need no text formatting/locale handling
+ /// here. The only value spliced into the text is <see cref="Emitter.DetachRampSteps"/>, an integer,
+ /// which formats the same in every locale; floats are deliberately never spliced.
+ /// </summary>
+ private static string KernelSource(bool use4thOrderLaplacian)
+ {
+ StringBuilder source = new StringBuilder();
+ source.AppendLine("#define USE_4TH_ORDER " + (use4thOrderLaplacian ? "1" : "0"));
+ source.AppendLine();
+ // wave_step: one leapfrog sub-step, one work item per interior cell (x, y in 0..w-1 / 0..h-1).
+ // u current field, padded, stride floats per row; the cell is i = (y + 1) * stride + x + 1
+ // up previous field on entry, overwritten in place with the new value (leapfrog), same layout
+ // c2, d per-cell c² and per-sub-step damping, same layout
+ // lap 4th-order 5-point-per-axis stencil for cells at least two away from the border (needs
+ // USE_4TH_ORDER), otherwise the 9-point stencil (corners 0.066, edges 0.184, centre -1)
+ // nv = u + (u - up)·d + lap·c2·c2Scale, with c2Scale = 1/subSteps²
+ // inten1 / inten first and second stage exponential averages of nv², retention intensityAlpha
+ // intenOut (stage1 + stage2)/2 · intensityScale; the three are only touched when track != 0
+ source.AppendLine("__kernel void wave_step(__global const float* u, __global float* up, __global const float* c2,");
+ source.AppendLine(" __global const float* d, __global float* inten,");
+ source.AppendLine(" const int w, const int h, const int stride, const int track, const float c2Scale,");
+ source.AppendLine(" const float intensityAlpha, __global float* inten1, __global float* intenOut,");
+ source.AppendLine(" const float intensityScale)");
+ source.AppendLine("{");
+ source.AppendLine(" int x = get_global_id(0);");
+ source.AppendLine(" int y = get_global_id(1);");
+ source.AppendLine(" if (x >= w || y >= h) return;");
+ source.AppendLine(" int i = (y + 1) * stride + x + 1;");
+ source.AppendLine(" float uc = u[i];");
+ source.AppendLine(" float lap;");
+ source.AppendLine("#if USE_4TH_ORDER");
+ // the 4th order 5-point "cross" stencil (reaches 2 cells away along x and along y), only where the domain
+ // has that much room - the outermost ring (x = 0, x = w - 1, y = 0, y = h - 1) falls back to the 3x3
+ // kernel below, the same boundary rule as WaveSimulator.UpdateField on the CPU
+ source.AppendLine(" if (x >= 1 && x <= w - 2 && y >= 1 && y <= h - 2) {");
+ source.AppendLine(" lap = (-1.0f / 12.0f) * (u[i - 2] + u[i + 2] + u[i - 2 * stride] + u[i + 2 * stride])");
+ source.AppendLine(" + (4.0f / 3.0f) * (u[i - 1] + u[i + 1] + u[i - stride] + u[i + stride])");
+ source.AppendLine(" - 5.0f * uc;");
+ source.AppendLine(" } else {");
+ source.AppendLine(" lap = 0.066f * (u[i - stride - 1] + u[i - stride + 1] + u[i + stride - 1] + u[i + stride + 1])");
+ source.AppendLine(" + 0.184f * (u[i - 1] + u[i + 1] + u[i - stride] + u[i + stride]) - uc;");
+ source.AppendLine(" }");
+ source.AppendLine("#else");
+ source.AppendLine(" lap = 0.066f * (u[i - stride - 1] + u[i - stride + 1] + u[i + stride - 1] + u[i + stride + 1])");
+ source.AppendLine(" + 0.184f * (u[i - 1] + u[i + 1] + u[i - stride] + u[i + stride]) - uc;");
+ source.AppendLine("#endif");
+ source.AppendLine(" float nv = uc + (uc - up[i]) * d[i] + lap * c2[i] * c2Scale;");
+ source.AppendLine(" up[i] = nv;");
+ // two cascaded one-pole stages, blended (0.5f - see WaveSimulator.IntensityBlend, CPU engine) into what is
+ // read back/probed (intenOut) instead of using the full 2-stage cascade outright - see the class summary
+ source.AppendLine(" if (track != 0) {");
+ source.AppendLine(" float s1 = inten1[i] * intensityAlpha + nv * nv * (1.0f - intensityAlpha);");
+ source.AppendLine(" inten1[i] = s1;");
+ source.AppendLine(" float s2 = inten[i] * intensityAlpha + s1 * (1.0f - intensityAlpha);");
+ source.AppendLine(" inten[i] = s2;");
+ source.AppendLine(" intenOut[i] = (s1 * 0.5f + s2 * 0.5f) * intensityScale;");
+ source.AppendLine(" }");
+ source.AppendLine("}");
+ source.AppendLine();
+ // apply_sources: soft-blends the image sources into the field, one work item per source k < n.
+ // idx[k] padded cell index of the source; level[k] its green level (index into freq)
+ // freq 256 angular frequencies (radians per step); t the current step
+ // u[idx] = 0.9·u + 0.1·sin(freq[level]·t)·amp (same 0.9/0.1 blend as the CPU SourceOpacity)
+ source.AppendLine("__kernel void apply_sources(__global float* u, __global const int* idx, __global const int* level,");
+ source.AppendLine(" __global const float* freq, const float t, const float amp, const int n)");
+ source.AppendLine("{");
+ source.AppendLine(" int k = get_global_id(0);");
+ source.AppendLine(" if (k >= n) return;");
+ source.AppendLine(" int p = idx[k];");
+ source.AppendLine(" u[p] = u[p] * 0.9f + sin(freq[level[k]] * t) * amp * 0.1f;");
+ source.AppendLine("}");
+ source.AppendLine();
+ // xorshift32: OpenCL has no built-in RNG, so object sources that re-randomize their off-width (see
+ // Emitter.RandomizeOffWidthAmount) carry their own per-element state (rngState, seeded from the project
+ // seed, nonzero) through this. WaveSimulator.ComputePulsePosition runs the identical generator and draw
+ // (Emitter.Xorshift32), so both engines produce the same gap sequence from the same seed.
+ source.AppendLine("inline uint xorshift32(uint x)");
+ source.AppendLine("{");
+ source.AppendLine(" x ^= x << 13;");
+ source.AppendLine(" x ^= x >> 17;");
+ source.AppendLine(" x ^= x << 5;");
+ source.AppendLine(" return x;");
+ source.AppendLine("}");
+ source.AppendLine();
+ // apply_object_sources (Sources tab): soft-blends the object sources into the field, one element per
+ // work item k < n, same math as WaveSimulator.ApplySources/ComputePulsePosition/PulseEnvelope on the CPU.
+ // All per-source tables are indexed by k:
+ // idx, level, amp, phase cell index, frequency level (into freq), amplitude, phase (radians)
+ // mode 0 = continuous (envelope always 1), 1 = pulsed (Gaussian or smoothed-square
+ // envelope, "off" preceding "on" within each onWidth/offWidth cycle of the
+ // element's own frequency)
+ // pulseShape (0 Gaussian/1 smoothed square), onWidth (cycles)
+ // offWidth off-width in effect; read-write: for an element with
+ // offWidthRandomizeAmount[k] > 0 this kernel redraws it (uniformly within
+ // +/- offWidthRandomizeAmount of offWidthBase) every time that element
+ // completes a full off+on cycle, advancing its own cycleAnchor[k] to mark
+ // where the new cycle started
+ // detachStep step after which the source fades out linearly over
+ // Emitter.DetachRampSteps steps (-1 = never); work items past the
+ // fade return without writing
+ // offWidthBase ± offWidthRandomizeAmount range of a randomized off-width (amount <= 0 = fixed)
+ // cycleAnchor, rngState kernel-owned state for the randomized mode: start (cycles) of the
+ // current period and the xorshift32 state - so, unlike the other
+ // object-source buffers, offWidth/cycleAnchor/rngState are genuinely
+ // mutated by the GPU across steps
+ // The result is u[idx] = 0.9·u + 0.1·sin(phase + f·t)·amp·envelope·detachFade.
+ source.AppendLine("__kernel void apply_object_sources(__global float* u, __global const int* idx, __global const int* level,");
+ source.AppendLine(" __global const float* amp, __global const float* phase, __global const int* mode,");
+ source.AppendLine(" __global const int* pulseShape, __global const int* onWidth, __global int* offWidth,");
+ source.AppendLine(" __global const int* detachStep,");
+ source.AppendLine(" __global const float* freq, const float t, const int n,");
+ source.AppendLine(" __global const int* offWidthBase, __global const int* offWidthRandomizeAmount,");
+ source.AppendLine(" __global float* cycleAnchor, __global int* rngState)");
+ source.AppendLine("{");
+ source.AppendLine(" int k = get_global_id(0);");
+ source.AppendLine(" if (k >= n) return;");
+ // "detach source": once the run reaches the element's detach step, its drive is faded out linearly over the
+ // next DetachRampSteps steps (rather than cut instantly), then it stops driving the field entirely (not even
+ // writing towards 0) so it releases its hold and stops diffracting waves through that point - matching
+ // WaveSimulator.ApplySources exactly (Emitter.DetachRampSteps is the single shared constant, spliced
+ // into the kernel text).
+ source.AppendLine(" float detachFade = 1.0f;");
+ source.AppendLine(" if (detachStep[k] >= 0) {");
+ source.AppendLine(" float stepsSinceDetach = t - (float)detachStep[k];");
+ string ramp = Emitter.DetachRampSteps.ToString(CultureInfo.InvariantCulture);
+ source.AppendLine(" if (stepsSinceDetach >= " + ramp + ".0f) return;");
+ source.AppendLine(" if (stepsSinceDetach > 0.0f) detachFade = 1.0f - stepsSinceDetach / " + ramp + ".0f;");
+ source.AppendLine(" }");
+ source.AppendLine(" float f = freq[level[k]];");
+ source.AppendLine(" float envelope = 1.0f;");
+ source.AppendLine(" if (mode[k] != 0) {");
+ source.AppendLine(" int ow = offWidth[k];");
+ source.AppendLine(" int period = onWidth[k] + ow;");
+ source.AppendLine(" if (period > 0) {");
+ source.AppendLine(" float cycleClock = f * t / (2.0f * M_PI_F);");
+ source.AppendLine(" float pos;");
+ source.AppendLine(" int isFirstCycle;");
+ source.AppendLine(" if (offWidthRandomizeAmount[k] <= 0) {");
+ // shifted so t = 0 lands at pos = ow (the start of the "on" span), not pos = 0 (the start of an "off" span) -
+ // a single/non-randomized source starting silent for its off-width was never the intent (see
+ // WaveSimulator.ComputePulsePosition, kept in exact agreement with this kernel)
+ source.AppendLine(" float adjustedClock = cycleClock + (float)ow;");
+ source.AppendLine(" isFirstCycle = (floor(adjustedClock / (float)period) == 0.0f) ? 1 : 0;");
+ source.AppendLine(" pos = adjustedClock - period * floor(adjustedClock / (float)period);");
+ source.AppendLine(" } else {");
+ source.AppendLine(" pos = cycleClock - cycleAnchor[k];");
+ source.AppendLine(" int guard = 0;");
+ source.AppendLine(" while (pos >= (float)period && guard < 1000) {");
+ source.AppendLine(" cycleAnchor[k] += (float)period;");
+ source.AppendLine(" pos -= (float)period;");
+ source.AppendLine(" uint state = xorshift32((uint)rngState[k]);");
+ source.AppendLine(" rngState[k] = (int)state;");
+ source.AppendLine(" int amt = offWidthRandomizeAmount[k];");
+ source.AppendLine(" int span = 2 * amt + 1;");
+ source.AppendLine(" int r = (int)(state % (uint)span) - amt;");
+ source.AppendLine(" ow = offWidthBase[k] + r;");
+ source.AppendLine(" if (ow < 1) ow = 1;");
+ source.AppendLine(" offWidth[k] = ow;");
+ source.AppendLine(" period = onWidth[k] + ow;");
+ source.AppendLine(" guard++;");
+ source.AppendLine(" }");
+ source.AppendLine(" if (pos < 0.0f) pos = 0.0f;");
+ // the anchor only ever advances (above) once a cycle has actually completed, so it still reading its initial
+ // 0 means no cycle has completed yet - we are still in the element's very first (off-first) cycle
+ source.AppendLine(" isFirstCycle = (cycleAnchor[k] == 0.0f) ? 1 : 0;");
+ source.AppendLine(" }");
+ source.AppendLine(" if (pulseShape[k] == 0) {");
+ source.AppendLine(" if (pos < (float)ow) {");
+ source.AppendLine(" envelope = 0.0f;");
+ source.AppendLine(" } else {");
+ source.AppendLine(" float onPos = pos - (float)ow;");
+ source.AppendLine(" float center = onWidth[k] / 2.0f;");
+ source.AppendLine(" float sigma = max(onWidth[k] / 6.0f, 1.0e-6f);");
+ source.AppendLine(" float dd = (onPos - center) / sigma;");
+ source.AppendLine(" envelope = exp(-0.5f * dd * dd);");
+ source.AppendLine(" }");
+ source.AppendLine(" } else {");
+ source.AppendLine(" // a flat-topped pulse (envelope 1 while on, 0 while off) with a short, FIXED-width");
+ source.AppendLine(" // (in cycles) smoothed edge at the rise and the fall - fixed, so a long off span");
+ source.AppendLine(" // sits at (very close to) 0 for nearly all of it instead of lingering. The math is");
+ source.AppendLine(" // exactly the on-first formula, fed a coordinate shifted so the on span starts at 0.");
+ source.AppendLine(" float shifted = pos - (float)ow;");
+ // wrapping shifted forward by a full period makes it continue the falling tail of the on-span that JUST
+ // ended - correct from the second off-span onward, where that on-span really happened. The very first
+ // off-span (isFirstCycle) has no real preceding on-emission to continue from, so wrapping there would
+ // fabricate one: pos = 0 would land exactly on that phantom falling edge and start the run at envelope ~0.5
+ // instead of ~0, emitting a spurious one-cycle "blip" before the source actually goes quiet. Left un-wrapped
+ // (deeply negative) instead, dRise/dFall below correctly place it far from both edges, keeping the envelope
+ // at (very close to) 0 until the real rising edge - matching WaveSimulator.PulseEnvelope exactly.
+ source.AppendLine(" if (shifted < 0.0f && !isFirstCycle) shifted += (float)period;");
+ source.AppendLine(" float edgeWidth = 0.35f;");
+ source.AppendLine(" float dFall = shifted - (float)onWidth[k];");
+ source.AppendLine(" float dRise = shifted;");
+ source.AppendLine(" if (dRise > (float)period / 2.0f) dRise -= (float)period;");
+ source.AppendLine(" float rising = 0.5f + atan(dRise / edgeWidth) / M_PI_F;");
+ source.AppendLine(" float falling = 0.5f - atan(dFall / edgeWidth) / M_PI_F;");
+ source.AppendLine(" envelope = rising * falling;");
+ source.AppendLine(" }");
+ source.AppendLine(" }");
+ source.AppendLine(" }");
+ source.AppendLine(" float v = sin(phase[k] + f * t) * amp[k] * envelope * detachFade;");
+ source.AppendLine(" int p = idx[k];");
+ source.AppendLine(" u[p] = u[p] * 0.9f + v * 0.1f;");
+ source.AppendLine("}");
+ source.AppendLine();
+ // to_half: the interior of a padded float buffer as a tightly packed half plane (the frame store's
+ // format), so a frame crosses the bus at half the size and the host converts nothing. vstore_half is
+ // core OpenCL C; only half arithmetic would need cl_khr_fp16.
+ source.AppendLine("__kernel void to_half(__global const float* src, __global half* dst, const int w, const int h, const int stride)");
+ source.AppendLine("{");
+ source.AppendLine(" int x = get_global_id(0);");
+ source.AppendLine(" int y = get_global_id(1);");
+ source.AppendLine(" if (x >= w || y >= h) return;");
+ source.AppendLine(" vstore_half(src[(y + 1) * stride + x + 1], y * w + x, dst);");
+ source.AppendLine("}");
+ return source.ToString();
+ }
+
+ /// <summary>Compiles <paramref name="source"/> for <see cref="_device"/>; <paramref name="what"/> names the program in the error message.</summary>
+ /// <exception cref="InvalidOperationException">The build failed; the message carries the OpenCL error and the build log.</exception>
+ private IntPtr BuildProgram(string source, string what)
+ {
+ int err = 0;
+ IntPtr program = OpenClApi.clCreateProgramWithSource(_context, 1U, new[] { source }, null, ref err);
+ OpenClApi.Check(err, "clCreateProgramWithSource");
+ IntPtr[] deviceIds = { _device.DeviceId };
+ err = OpenClApi.clBuildProgram(program, 1U, deviceIds, "", IntPtr.Zero, IntPtr.Zero);
+ if (err != 0)
+ {
+ string buildLog = OpenClApi.BuildLog(program, _device.DeviceId);
+ OpenClApi.clReleaseProgram(program);
+ throw new InvalidOperationException(what + " could not be built (" + OpenClApi.ErrorName(err) + ")" + (buildLog.Length > 0 ? ": " + buildLog : ""));
+ }
+ return program;
+ }
+
+ /// <summary>Creates a read/write device buffer of <paramref name="bytes"/> bytes, registered in <paramref name="owner"/> for release.</summary>
+ private IntPtr CreateBuffer(long bytes, Resources owner)
+ {
+ int err = 0;
+ IntPtr buffer = OpenClApi.clCreateBuffer(_context, OpenClApi.MemReadWrite, new IntPtr(bytes), IntPtr.Zero, ref err);
+ OpenClApi.Check(err, "clCreateBuffer");
+ owner.Buffers.Add(buffer);
+ return buffer;
+ }
+
+ /// <summary>Creates a device buffer the size of <paramref name="data"/>, uploads it (blocking) and registers it in <paramref name="owner"/>.</summary>
+ private IntPtr CreateBuffer(float[] data, Resources owner)
+ {
+ IntPtr size = new IntPtr((long)data.Length * 4L);
+ IntPtr buffer = CreateBuffer(size.ToInt64(), owner);
+ OpenClApi.Check(OpenClApi.clEnqueueWriteBufferFloat(_queue, buffer, 1U, IntPtr.Zero, size, data, 0U, IntPtr.Zero, IntPtr.Zero), "clEnqueueWriteBuffer");
+ return buffer;
+ }
+
+ /// <summary>Int counterpart of <see cref="CreateBuffer(float[], Resources)"/>.</summary>
+ private IntPtr CreateBuffer(int[] data, Resources owner)
+ {
+ IntPtr size = new IntPtr((long)data.Length * 4L);
+ IntPtr buffer = CreateBuffer(size.ToInt64(), owner);
+ OpenClApi.Check(OpenClApi.clEnqueueWriteBufferInt(_queue, buffer, 1U, IntPtr.Zero, size, data, 0U, IntPtr.Zero, IntPtr.Zero), "clEnqueueWriteBuffer");
+ return buffer;
+ }
+
+ /// <summary>Creates the kernel <paramref name="name"/> from <paramref name="owner"/>'s program and registers it there for release.</summary>
+ private static IntPtr CreateKernel(Resources owner, string name) => CreateKernel(owner, owner.Program, name);
+
+ /// <summary>Creates the kernel <paramref name="name"/> from <paramref name="program"/> and registers it in <paramref name="owner"/> for release (which keeps the program alive only when it owns it).</summary>
+ private static IntPtr CreateKernel(Resources owner, IntPtr program, string name)
+ {
+ int err = 0;
+ IntPtr kernel = OpenClApi.clCreateKernel(program, name, ref err);
+ OpenClApi.Check(err, "clCreateKernel " + name);
+ owner.Kernels.Add(kernel);
+ return kernel;
+ }
+
+ /// <summary>Binds a device buffer to kernel argument <paramref name="index"/>.</summary>
+ private static void SetMem(IntPtr kernel, uint index, IntPtr value)
+ {
+ OpenClApi.Check(OpenClApi.clSetKernelArgMem(kernel, index, new IntPtr(IntPtr.Size), ref value), "clSetKernelArg");
+ }
+
+ /// <summary>Sets an <c>int</c> kernel argument.</summary>
+ private static void SetInt(IntPtr kernel, uint index, int value)
+ {
+ OpenClApi.Check(OpenClApi.clSetKernelArgInt(kernel, index, new IntPtr(4), ref value), "clSetKernelArg");
+ }
+
+ /// <summary>Sets a <c>float</c> kernel argument.</summary>
+ private static void SetFloat(IntPtr kernel, uint index, float value)
+ {
+ OpenClApi.Check(OpenClApi.clSetKernelArgFloat(kernel, index, new IntPtr(4), ref value), "clSetKernelArg");
+ }
+
+ /// <summary>Enqueues <paramref name="kernel"/> with the given global work size; <paramref name="what"/> names the launch in the error message.</summary>
+ private void Enqueue(IntPtr kernel, IntPtr[] globalSize, string what)
+ {
+ OpenClApi.Check(OpenClApi.clEnqueueNDRangeKernel(_queue, kernel, (uint)globalSize.Length, null, globalSize, null, 0U, IntPtr.Zero, IntPtr.Zero), "clEnqueueNDRangeKernel (" + what + ")");
+ }
+
+ /// <summary>Blocking device-to-host copy of <paramref name="target"/>.Length floats from <paramref name="buffer"/>; resets the clFinish counter since the read drains the queue.</summary>
+ private void ReadBack(IntPtr buffer, float[] target, string what)
+ {
+ OpenClApi.Check(OpenClApi.clEnqueueReadBufferFloat(_queue, buffer, 1U, IntPtr.Zero, new IntPtr((long)target.Length * 4L), target, 0U, IntPtr.Zero, IntPtr.Zero), "clEnqueueReadBuffer (" + what + ")");
+ _sinceFinish = 0;
+ }
+
+ /// <summary>Engine label for the UI/result: "GPU: &lt;device name&gt; (OpenCL)".</summary>
+ public string Description { get; }
+
+ /// <summary>Scene width in cells (canvas pixels), excluding the padding.</summary>
+ public int Width => _width;
+
+ /// <summary>Scene height in cells (canvas pixels), excluding the padding.</summary>
+ public int Height => _height;
+
+ /// <summary>Row pitch of the padded buffers: <see cref="Width"/> + 2.</summary>
+ public int Stride => _stride;
+
+ /// <summary>
+ /// Host copy of the field (padded layout). Unlike the CPU engine the array instance never changes, but
+ /// its contents are only as fresh as the last <see cref="PrepareFrame"/> with <c>needField</c>.
+ /// </summary>
+ public float[] FieldData => _hostField;
+
+ /// <summary>Host copy of the scaled intensity (padded layout) as of the last <see cref="PrepareFrame"/> with <c>needIntensity</c>; null when the engine was created without intensity tracking.</summary>
+ public float[]? IntensityData => _hostIntensity;
+
+ /// <summary>
+ /// Enqueues one simulation step (nothing is waited for): the source kernels bound to the current field
+ /// blend the sources in once, then <c>wave_step</c> runs <see cref="_subSteps"/> times, alternating
+ /// between the two kernel instances so each sub-step reads the newest buffer and overwrites the older one
+ /// (the leapfrog "previous" field). The track flag is set so only the last sub-step updates the intensity
+ /// (with a single sub-step the flag keeps the value bound in <see cref="Build"/>). Afterwards
+ /// <see cref="_current"/> points at the newest buffer and <see cref="_time"/> advances by one step.
+ /// Every <see cref="FinishInterval"/> steps the queue is drained with <c>clFinish</c>, so that the commands
+ /// do not pile up and errors show up in time.
+ /// </summary>
+ public void AdvanceOneStep()
+ {
+ int current = _current;
+ if (_sourceCount > 0)
+ {
+ SetFloat(_sourceKernel[current], 4U, (float)_time);
+ Enqueue(_sourceKernel[current], _grid1D, "sources");
+ }
+ if (_objSourceCount > 0)
+ {
+ SetFloat(_objSourceKernel[current], 11U, (float)_time);
+ Enqueue(_objSourceKernel[current], _objGrid1D, "object sources");
+ }
+ // _subSteps smaller launches (see the class summary); only the last one updates the intensity buffer, so
+ // its own exponential averaging still runs once per AdvanceOneStep call, not _subSteps times. On the
+ // single-launch path the "track" argument keeps the value bound once, at Build time.
+ for (int subStep = 1; subStep <= _subSteps; subStep++)
+ {
+ if (_subSteps > 1)
+ {
+ SetInt(_stepKernel[current], 8U, subStep == _subSteps && _track ? 1 : 0);
+ }
+ Enqueue(_stepKernel[current], _grid2D, "step");
+ current = 1 - current;
+ }
+ // the buffer that received the new values is now the current field
+ _current = current;
+ _time += 1.0;
+ // now and then wait for the card, so that the commands do not pile up and errors show up in time
+ if (++_sinceFinish >= FinishInterval)
+ {
+ _sinceFinish = 0;
+ OpenClApi.Check(OpenClApi.clFinish(_queue), "clFinish");
+ }
+ }
+
+ /// <summary>
+ /// Blocking device-to-host copies of the newest field into <see cref="FieldData"/> and/or of the intensity
+ /// into <see cref="IntensityData"/> (the latter only when tracked). Called by the runner before rendering,
+ /// and from the UI thread while paused.
+ /// </summary>
+ public void PrepareFrame(bool needField, bool needIntensity)
+ {
+ if (needField)
+ {
+ ReadBack(_field[_current], _hostField, "field");
+ }
+ if (needIntensity && _hostIntensity != null)
+ {
+ ReadBack(_intensityOutBuffer, _hostIntensity, "intensity");
+ }
+ }
+
+ /// <summary>
+ /// OpenCL source of the probe program (built lazily in <see cref="SetProbes"/>): <c>probe_sample</c> for
+ /// point probes, <c>profile_accumulate</c> and <c>profile_gather</c> for line probes. Together they are
+ /// the device side of <see cref="WaveSimulator.SampleProbes"/> / <see cref="WaveSimulator.ReadProbeProfiles"/>.
+ /// </summary>
+ private static string ProbeKernelSource()
+ {
+ StringBuilder source = new StringBuilder();
+ // probe_sample (point probes): the value of the pixel of every probe, into row "row" of the history;
+ // one work item per probe p < n (n = all probes, line probes included).
+ // u, inten newest field and the intensity output, padded layout
+ // pix pixel index lists of all point probes concatenated
+ // info 4 ints per probe: [start in pix, count, 1 = sample inten instead of u, 1 = divide by count];
+ // all 0 for line probes, which therefore write 0
+ // hist ProbeRows × n floats, row-major: hist[row * n + p] receives this step's value
+ source.AppendLine("__kernel void probe_sample(__global const float* u, __global const float* inten, __global const int* pix,");
+ source.AppendLine(" __global const int* info, __global float* hist, const int row, const int n)");
+ source.AppendLine("{");
+ source.AppendLine(" int p = get_global_id(0);");
+ source.AppendLine(" if (p >= n) return;");
+ source.AppendLine(" int start = info[p * 4];");
+ source.AppendLine(" int count = info[p * 4 + 1];");
+ source.AppendLine(" int useI = info[p * 4 + 2];");
+ source.AppendLine(" int mean = info[p * 4 + 3];");
+ source.AppendLine(" float s = 0.0f;");
+ source.AppendLine(" if (useI != 0) {");
+ source.AppendLine(" for (int k = 0; k < count; k++) s += inten[pix[start + k]];");
+ source.AppendLine(" } else {");
+ source.AppendLine(" for (int k = 0; k < count; k++) s += u[pix[start + k]];");
+ source.AppendLine(" }");
+ source.AppendLine(" if (mean != 0 && count > 0) s = s / (float)count;");
+ source.AppendLine(" hist[row * n + p] = s;");
+ source.AppendLine("}");
+ source.AppendLine();
+ // profile_accumulate (line probes): one work item per line-probe pixel k < n (all line probes flattened):
+ // ppix[k] padded cell index; pmode[k] 0 = field, 1 = intensity, 2 = intensity totals over the steps
+ // total[k] += inten[ppix[k]] for mode 2 only, and only once step >= pStartStep[k] when pStartFlag[k] is set
+ // pStartFlag/pStartStep are the probe's "start recording at step #" (0/1 and the step): before that step
+ // the total is left at zero, so intensity that arrived earlier is purged rather than baked into the total
+ // once recording starts
+ source.AppendLine("__kernel void profile_accumulate(__global const float* inten, __global const int* ppix,");
+ source.AppendLine(" __global const int* pmode, __global const int* pStartFlag, __global const int* pStartStep,");
+ source.AppendLine(" __global float* total, const int step, const int n)");
+ source.AppendLine("{");
+ source.AppendLine(" int k = get_global_id(0);");
+ source.AppendLine(" if (k >= n) return;");
+ source.AppendLine(" if (pmode[k] != 2) return;");
+ source.AppendLine(" if (pStartFlag[k] != 0 && step < pStartStep[k]) return;");
+ source.AppendLine(" total[k] += inten[ppix[k]];");
+ source.AppendLine("}");
+ source.AppendLine();
+ // profile_gather: one work item per line-probe pixel k < n; same ppix/pmode layout as above.
+ // outv[k] = total[k] (mode 2), inten[ppix[k]] (mode 1) or u[ppix[k]] (mode 0)
+ source.AppendLine("__kernel void profile_gather(__global const float* u, __global const float* inten, __global const int* ppix,");
+ source.AppendLine(" __global const int* pmode, __global const float* total, __global float* outv, const int n)");
+ source.AppendLine("{");
+ source.AppendLine(" int k = get_global_id(0);");
+ source.AppendLine(" if (k >= n) return;");
+ source.AppendLine(" int m = pmode[k];");
+ source.AppendLine(" float v;");
+ source.AppendLine(" if (m == 2) v = total[k];");
+ source.AppendLine(" else if (m == 1) v = inten[ppix[k]];");
+ source.AppendLine(" else v = u[ppix[k]];");
+ source.AppendLine(" outv[k] = v;");
+ source.AppendLine("}");
+ return source.ToString();
+ }
+
+ /// <summary>
+ /// Installs the probe layout, replacing any previously installed one (whose device resources are released
+ /// first): builds the probe program (<see cref="ProbeKernelSource"/>), then uploads the pixel tables and
+ /// creates the kernels for point probes (<see cref="SetUpSeriesProbes"/>) and line probes
+ /// (<see cref="SetUpProfileProbes"/>). A null or empty sampler just clears the probes.
+ /// </summary>
+ /// <exception cref="InvalidOperationException">The sampler needs intensity but this engine does not track it, or the probe program / buffers could not be created (inner exception has the OpenCL error).</exception>
+ public void SetProbes(ProbeSampler? sampler)
+ {
+ _probes.Release();
+ _probeSampler = null;
+ _probeValues.Clear();
+ _probeRow = 0;
+ _profileIntegrates = false;
+ if (sampler == null || sampler.Count == 0)
+ {
+ return;
+ }
+ if (sampler.NeedsIntensity && !_track)
+ {
+ throw new InvalidOperationException("the intensity is not tracked");
+ }
+ try
+ {
+ _probes.Program = BuildProgram(ProbeKernelSource(), "the probe program for the GPU");
+ if (sampler.HasSeries)
+ {
+ SetUpSeriesProbes(sampler);
+ }
+ if (sampler.HasProfiles)
+ {
+ SetUpProfileProbes(sampler);
+ }
+ _probeSampler = sampler;
+ }
+ catch (Exception ex)
+ {
+ _probes.Release();
+ throw new InvalidOperationException("the probes could not be set up on the GPU: " + ex.Message, ex);
+ }
+ }
+
+ /// <summary>
+ /// Packs the pixel lists of all point (non-profile) probes into one buffer, describes each probe in an info
+ /// table (point probes average their pixels, so a single-pixel probe yields that pixel's value like
+ /// <see cref="ProbeSampler.Compute"/>), allocates the <see cref="ProbeRows"/>-row history buffer and creates
+ /// the two <c>probe_sample</c> kernels.
+ /// </summary>
+ private void SetUpSeriesProbes(ProbeSampler sampler)
+ {
+ int count = sampler.Count;
+ int totalPixels = 0;
+ for (int i = 0; i < count; i++)
+ {
+ if (!sampler.IsProfile[i])
+ {
+ totalPixels += sampler.Pixels[i].Length;
+ }
+ }
+ int[] pixels = new int[Math.Max(totalPixels, 1)];
+ int[] info = new int[count * 4];
+ int offset = 0;
+ for (int i = 0; i < count; i++)
+ {
+ if (!sampler.IsProfile[i])
+ {
+ int[] probePixels = sampler.Pixels[i];
+ Array.Copy(probePixels, 0, pixels, offset, probePixels.Length);
+ info[i * 4] = offset;
+ info[i * 4 + 1] = probePixels.Length;
+ info[i * 4 + 2] = sampler.UseIntensity[i] ? 1 : 0;
+ info[i * 4 + 3] = 1;
+ offset += probePixels.Length;
+ }
+ }
+ IntPtr pixelBuffer = CreateBuffer(pixels, _probes);
+ IntPtr infoBuffer = CreateBuffer(info, _probes);
+ // Never uploaded: the kernel writes every row before ReadProbeHistory reads it.
+ _historyBuffer = CreateBuffer((long)ProbeRows * count * 4L, _probes);
+ for (int k = 0; k <= 1; k++)
+ {
+ IntPtr kernel = _probeKernel[k] = CreateKernel(_probes, "probe_sample");
+ SetMem(kernel, 0U, _field[k]);
+ SetMem(kernel, 1U, _intensityOutBuffer);
+ SetMem(kernel, 2U, pixelBuffer);
+ SetMem(kernel, 3U, infoBuffer);
+ SetMem(kernel, 4U, _historyBuffer);
+ SetInt(kernel, 5U, 0);
+ SetInt(kernel, 6U, count);
+ }
+ _probeGrid[0] = new IntPtr(count);
+ for (int i = 0; i < count; i++)
+ {
+ _probeValues.Add(new List<float>());
+ }
+ }
+
+ /// <summary>
+ /// Flattens the pixels of all line probes into per-pixel buffers (index, mode, start flag/step), records
+ /// where each probe starts in <see cref="_profileStart"/>, zero-initialises the totals and output buffers
+ /// and creates the two <c>profile_gather</c> kernels. The start-step buffers and the
+ /// <c>profile_accumulate</c> kernel are only created when at least one probe integrates.
+ /// </summary>
+ private void SetUpProfileProbes(ProbeSampler sampler)
+ {
+ int count = sampler.Count;
+ int totalPixels = 0;
+ for (int i = 0; i < count; i++)
+ {
+ if (sampler.IsProfile[i])
+ {
+ totalPixels += sampler.Pixels[i].Length;
+ }
+ }
+ int[] pixels = new int[totalPixels];
+ int[] modes = new int[totalPixels];
+ int[] startFlags = new int[totalPixels];
+ int[] startSteps = new int[totalPixels];
+ _profileStart = new int[count];
+ int offset = 0;
+ for (int i = 0; i < count; i++)
+ {
+ _profileStart[i] = offset;
+ if (!sampler.IsProfile[i])
+ {
+ continue;
+ }
+ int[] probePixels = sampler.Pixels[i];
+ int mode = sampler.Integrate[i] ? 2 : (sampler.UseIntensity[i] ? 1 : 0);
+ if (mode == 2)
+ {
+ _profileIntegrates = true;
+ }
+ int startFlag = sampler.UseStartAfterStep[i] ? 1 : 0;
+ int startStep = sampler.StartAfterStep[i];
+ for (int k = 0; k < probePixels.Length; k++)
+ {
+ pixels[offset + k] = probePixels[k];
+ modes[offset + k] = mode;
+ startFlags[offset + k] = startFlag;
+ startSteps[offset + k] = startStep;
+ }
+ offset += probePixels.Length;
+ }
+ _profileCount = totalPixels;
+ IntPtr pixelBuffer = CreateBuffer(pixels, _probes);
+ IntPtr modeBuffer = CreateBuffer(modes, _probes);
+ IntPtr totalBuffer = CreateBuffer(new float[totalPixels], _probes);
+ _profileOutBuffer = CreateBuffer(new float[totalPixels], _probes);
+ for (int k = 0; k <= 1; k++)
+ {
+ IntPtr kernel = _gatherKernel[k] = CreateKernel(_probes, "profile_gather");
+ SetMem(kernel, 0U, _field[k]);
+ SetMem(kernel, 1U, _intensityOutBuffer);
+ SetMem(kernel, 2U, pixelBuffer);
+ SetMem(kernel, 3U, modeBuffer);
+ SetMem(kernel, 4U, totalBuffer);
+ SetMem(kernel, 5U, _profileOutBuffer);
+ SetInt(kernel, 6U, totalPixels);
+ }
+ if (_profileIntegrates)
+ {
+ IntPtr kernel = _accumulateKernel = CreateKernel(_probes, "profile_accumulate");
+ SetMem(kernel, 0U, _intensityOutBuffer);
+ SetMem(kernel, 1U, pixelBuffer);
+ SetMem(kernel, 2U, modeBuffer);
+ // "start recording at step #" for the integrated line probes: one entry per pixel (same layout as the
+ // pixel/mode buffers), so profile_accumulate can skip a pixel's contribution before its probe's start step
+ SetMem(kernel, 3U, CreateBuffer(startFlags, _probes));
+ SetMem(kernel, 4U, CreateBuffer(startSteps, _probes));
+ SetMem(kernel, 5U, totalBuffer);
+ SetInt(kernel, 7U, totalPixels);
+ }
+ _profileGrid[0] = new IntPtr(totalPixels);
+ }
+
+ /// <summary>
+ /// Called by the runner after every step: enqueues <c>probe_sample</c> for the newest field into the next
+ /// history row (first draining the history to the host when all <see cref="ProbeRows"/> rows are full),
+ /// and <c>profile_accumulate</c> with the current step number when any line probe integrates. Nothing is
+ /// waited for.
+ /// </summary>
+ public void SampleProbes()
+ {
+ if (_probeSampler == null)
+ {
+ return;
+ }
+ if (_probeSampler.HasSeries)
+ {
+ if (_probeRow >= ProbeRows)
+ {
+ ReadProbeHistory();
+ }
+ SetInt(_probeKernel[_current], 5U, _probeRow);
+ Enqueue(_probeKernel[_current], _probeGrid, "probes");
+ _probeRow++;
+ }
+ // the intensity totals of the lines that are integrated: add the intensity of this step (unless it is before
+ // that probe's "start recording at step #", in which case the kernel leaves the total at zero)
+ if (_profileIntegrates)
+ {
+ SetInt(_accumulateKernel, 6U, (int)Math.Round(_time));
+ Enqueue(_accumulateKernel, _profileGrid, "totals");
+ }
+ }
+
+ /// <summary>
+ /// Blocking download of the <see cref="_probeRow"/> rows sampled so far from <see cref="_historyBuffer"/>,
+ /// appending each row's point-probe values to <see cref="_probeValues"/> (line-probe columns are skipped)
+ /// and rewinding the row counter. No-op when no row is pending.
+ /// </summary>
+ private void ReadProbeHistory()
+ {
+ if (_probeRow == 0 || _probeSampler == null)
+ {
+ return;
+ }
+ int count = _probeSampler.Count;
+ float[] history = new float[_probeRow * count];
+ ReadBack(_historyBuffer, history, "probes");
+ for (int row = 0; row < _probeRow; row++)
+ {
+ for (int p = 0; p < count; p++)
+ {
+ if (!_probeSampler.IsProfile[p])
+ {
+ _probeValues[p].Add(history[row * count + p]);
+ }
+ }
+ }
+ _probeRow = 0;
+ }
+
+ /// <summary>Drains the pending history rows from the device, then returns and clears the point-probe values collected since the previous call.</summary>
+ /// <returns>One array per probe, one value per step (empty for line probes); an empty outer array when no sampler is set.</returns>
+ public float[][] TakeProbeSamples()
+ {
+ if (_probeSampler == null)
+ {
+ return [];
+ }
+ int count = _probeSampler.Count;
+ float[][] samples = new float[count][];
+ if (_probeSampler.HasSeries)
+ {
+ ReadProbeHistory();
+ }
+ for (int i = 0; i < count; i++)
+ {
+ if (_probeSampler.IsProfile[i])
+ {
+ samples[i] = new float[0];
+ }
+ else
+ {
+ samples[i] = _probeValues[i].ToArray();
+ _probeValues[i].Clear();
+ }
+ }
+ return samples;
+ }
+
+ /// <summary>
+ /// Runs <c>profile_gather</c> on the newest field and reads the flat result back (blocking: this waits for
+ /// the card, so do not call it every step), then slices it per line probe; nothing is cleared.
+ /// </summary>
+ /// <returns>
+ /// One array per probe in pixel order along the line, holding the integrated intensity totals or the live
+ /// field/intensity values; null entries for point probes; an empty outer array when no sampler is set.
+ /// </returns>
+ public float[]?[] ReadProbeProfiles()
+ {
+ if (_probeSampler == null)
+ {
+ return [];
+ }
+ int count = _probeSampler.Count;
+ float[]?[] profiles = new float[count][];
+ if (!_probeSampler.HasProfiles)
+ {
+ return profiles;
+ }
+ Enqueue(_gatherKernel[_current], _profileGrid, "profiles");
+ float[] values = new float[_profileCount];
+ ReadBack(_profileOutBuffer, values, "profiles");
+ for (int i = 0; i < count; i++)
+ {
+ if (_probeSampler.IsProfile[i])
+ {
+ int length = _probeSampler.Pixels[i].Length;
+ float[] profile = new float[length];
+ Array.Copy(values, _profileStart[i], profile, 0, length);
+ profiles[i] = profile;
+ }
+ }
+ return profiles;
+ }
+
+ /// <summary>Releases every OpenCL handle; called by the runner when the run ends. Safe to call more than once.</summary>
+ public void Dispose()
+ {
+ ReleaseAll();
+ }
+
+ /// <summary>
+ /// Releases all device resources: drains the queue, then the probe set, the scene set, the queue and
+ /// finally the context. OpenCL failures are swallowed, so the method is also usable from the constructor
+ /// after a partial <see cref="Build"/>, and a second call finds nothing left to release.
+ /// </summary>
+ private void ReleaseAll()
+ {
+ if (_queue != IntPtr.Zero)
+ {
+ // if this fails the driver is gone or in trouble; release what can be released
+ Quietly(() => OpenClApi.clFinish(_queue));
+ }
+ _probes.Release();
+ _emitters.Release();
+ _scene.Release();
+ if (_queue != IntPtr.Zero)
+ {
+ Quietly(() => OpenClApi.clReleaseCommandQueue(_queue));
+ _queue = IntPtr.Zero;
+ }
+ if (_context != IntPtr.Zero)
+ {
+ Quietly(() => OpenClApi.clReleaseContext(_context));
+ _context = IntPtr.Zero;
+ }
+ }
+
+ /// <summary>Runs an OpenCL release call, ignoring any failure (nothing more can be done; the handle is gone either way).</summary>
+ private static void Quietly(Action release)
+ {
+ try
+ {
+ release();
+ }
+ catch
+ {
+ }
+ }
+
+ /// <summary>
+ /// A program with the kernels and buffers created from/for it, released together: the scene set lives as
+ /// long as the engine, the probe set is replaced by every <see cref="SetProbes"/> call.
+ /// </summary>
+ private sealed class Resources
+ {
+ /// <summary>The compiled program, or <see cref="IntPtr.Zero"/> when not (yet) built.</summary>
+ public IntPtr Program;
+
+ /// <summary>Kernels created from <see cref="Program"/>.</summary>
+ public readonly List<IntPtr> Kernels = [];
+
+ /// <summary>Device buffers bound to those kernels.</summary>
+ public readonly List<IntPtr> Buffers = [];
+
+ /// <summary>Releases kernels, buffers and the program (in that order) and forgets them; failures are ignored.</summary>
+ public void Release()
+ {
+ foreach (IntPtr kernel in Kernels)
+ {
+ Quietly(() => OpenClApi.clReleaseKernel(kernel));
+ }
+ Kernels.Clear();
+ foreach (IntPtr buffer in Buffers)
+ {
+ Quietly(() => OpenClApi.clReleaseMemObject(buffer));
+ }
+ Buffers.Clear();
+ if (Program != IntPtr.Zero)
+ {
+ Quietly(() => OpenClApi.clReleaseProgram(Program));
+ Program = IntPtr.Zero;
+ }
+ }
+ }
+
+ /// <summary>Steps enqueued between two <c>clFinish</c> calls in <see cref="AdvanceOneStep"/>.</summary>
+ private const int FinishInterval = 16;
+
+ /// <summary>Rows (steps) the probe history buffer holds before it must be read back to the host.</summary>
+ private const int ProbeRows = 2048;
+
+ /// <summary>The device the context lives on; needed again to build the probe program.</summary>
+ private readonly GpuDeviceInfo _device;
+
+ /// <summary>Scene width in cells (canvas pixels), without padding.</summary>
+ private readonly int _width;
+
+ /// <summary>Scene height in cells, without padding.</summary>
+ private readonly int _height;
+
+ /// <summary>Padded row pitch (<see cref="_width"/> + 2).</summary>
+ private readonly int _stride;
+
+ /// <summary>Number of floats in every padded per-cell buffer: <see cref="_stride"/> × (<see cref="_height"/> + 2).</summary>
+ private readonly int _cells;
+
+ /// <summary>Whether the intensity is tracked; when false the intensity buffers are 1-float dummies and <see cref="IntensityData"/> is null.</summary>
+ private readonly bool _track;
+
+ /// <summary>Number of image (green-channel) sources in the scene.</summary>
+ private readonly int _sourceCount;
+
+ /// <summary>Number of object sources that lie inside the canvas; set by <see cref="SetEmitters"/>.</summary>
+ private int _objSourceCount;
+
+ /// <summary>The emitters inside the canvas as last installed, so <see cref="Reset"/> can rebuild their on-card state.</summary>
+ private List<Emitter> _objSources = [];
+
+ /// <summary>Per level 0..255: whether an image source uses it (the object sources are added per <see cref="SetEmitters"/> call).</summary>
+ private readonly bool[] _levelUsed = new bool[256];
+
+ /// <summary><see cref="Simulation.TimeDecay"/>, kept so <see cref="SetEmitters"/> can re-derive the intensity retention.</summary>
+ private readonly double _timeDecay;
+
+ /// <summary>The level-to-frequency table (256 floats), shared by the image and the object sources.</summary>
+ private IntPtr _frequencyBuffer;
+
+ /// <summary>The two cascaded intensity stages (1-float dummies when not tracking), kept so <see cref="Reset"/> can zero them.</summary>
+ private IntPtr _intensityBuffer;
+ private IntPtr _intensityStage1Buffer;
+
+ /// <summary>Half planes the <c>to_half</c> kernel writes for <see cref="CaptureFrame"/>; created on first use.</summary>
+ private IntPtr _stagingField;
+ private IntPtr _stagingIntensity;
+ private IntPtr _toHalfKernel;
+
+ /// <summary>
+ /// Leapfrog sub-steps per simulation step - see the class summary; 1 (no sub-stepping) unless the 4th-order
+ /// stencil is on and this scene's highest c² needs it. Set once, in <see cref="Build"/>.
+ /// </summary>
+ private int _subSteps;
+
+ /// <summary>OpenCL context on the chosen device; released last in <see cref="ReleaseAll"/>.</summary>
+ private IntPtr _context;
+
+ /// <summary>In-order command queue; every launch and transfer goes through it.</summary>
+ private IntPtr _queue;
+
+ /// <summary>Simulation program (<c>wave_step</c>, <c>apply_sources</c>, <c>apply_object_sources</c>) with its kernels and scene buffers.</summary>
+ private readonly Resources _scene = new Resources();
+
+ /// <summary>
+ /// The probes: a second small program (<c>probe_sample</c>, <c>profile_accumulate</c>, <c>profile_gather</c>)
+ /// measures them on the card, with its kernels and buffers; empty until probes are set. Point probes: one
+ /// value per step; the values wait in <see cref="_historyBuffer"/> until the next
+ /// <see cref="TakeProbeSamples"/> (or until the buffer is full). Line probes: the pixels of all lines in one
+ /// list; the totals (integrated intensity) are kept on the card, the profiles are gathered into
+ /// <see cref="_profileOutBuffer"/> and copied back when they are asked for (<see cref="ReadProbeProfiles"/>).
+ /// </summary>
+ private readonly Resources _probes = new Resources();
+
+ /// <summary>The object sources' tables and the two <c>apply_object_sources</c> kernels (created from the scene program); replaced by every <see cref="SetEmitters"/> call.</summary>
+ private readonly Resources _emitters = new Resources();
+
+ /// <summary>The two ping-pong field buffers (padded, <see cref="_cells"/> floats each); the one at <see cref="_current"/> holds the newest field, the other the previous one.</summary>
+ private readonly IntPtr[] _field = new IntPtr[2];
+
+ /// <summary>
+ /// The blend of the two cascaded filter stages (the <c>inten1</c>/<c>inten</c> buffers, which live only
+ /// inside <c>wave_step</c>), scaled - see the class summary and <c>WaveSimulator._intensityOut</c> (CPU
+ /// engine). Padded; this is what is actually read back into <see cref="_hostIntensity"/> and sampled by the
+ /// probe kernels; a 1-float dummy when not tracking.
+ /// </summary>
+ private IntPtr _intensityOutBuffer;
+
+ /// <summary><c>wave_step</c> kernel per field index k: reads <see cref="_field"/>[k], writes <see cref="_field"/>[1 - k].</summary>
+ private readonly IntPtr[] _stepKernel = new IntPtr[2];
+
+ /// <summary><c>apply_sources</c> kernel per field index k, bound to <see cref="_field"/>[k]; unset when the scene has no image sources.</summary>
+ private readonly IntPtr[] _sourceKernel = new IntPtr[2];
+
+ /// <summary><c>apply_object_sources</c> kernel per field index k, bound to <see cref="_field"/>[k]; unset when there are no object sources.</summary>
+ private readonly IntPtr[] _objSourceKernel = new IntPtr[2];
+
+ /// <summary>Index (0/1) of the field buffer holding the newest field; flips after every sub-step.</summary>
+ private int _current;
+
+ /// <summary>Global work size of <c>wave_step</c>: <see cref="_width"/> × <see cref="_height"/> work items, one per interior cell.</summary>
+ private readonly IntPtr[] _grid2D;
+
+ /// <summary>Global work size of <c>apply_sources</c>: max(1, <see cref="_sourceCount"/>).</summary>
+ private readonly IntPtr[] _grid1D;
+
+ /// <summary>Global work size of <c>apply_object_sources</c>: max(1, <see cref="_objSourceCount"/>).</summary>
+ private IntPtr[] _objGrid1D = [new IntPtr(1)];
+
+ /// <summary>Host copy of the newest field, refreshed by <see cref="PrepareFrame"/>; exposed as <see cref="FieldData"/>.</summary>
+ private readonly float[] _hostField;
+
+ /// <summary>Host copy of <see cref="_intensityOutBuffer"/>, refreshed by <see cref="PrepareFrame"/>; null when not tracking.</summary>
+ private readonly float[]? _hostIntensity;
+
+ /// <summary>Elapsed time in steps; passed to the source kernels as the float argument <c>t</c>.</summary>
+ private double _time;
+
+ /// <summary>Steps enqueued since the queue was last drained; reset by every blocking read, which drains the queue anyway.</summary>
+ private int _sinceFinish;
+
+ /// <summary>Probe layout installed by <see cref="SetProbes"/>, or null when no probes are set.</summary>
+ private ProbeSampler? _probeSampler;
+
+ /// <summary><c>probe_sample</c> kernel per field index k, bound to <see cref="_field"/>[k]; unset without point probes.</summary>
+ private readonly IntPtr[] _probeKernel = new IntPtr[2];
+
+ /// <summary>Sample history, <see cref="ProbeRows"/> rows × probe count floats, row-major; row r holds the samples of the r-th step since the last read-back.</summary>
+ private IntPtr _historyBuffer;
+
+ /// <summary>Next row of <see cref="_historyBuffer"/> to write, i.e. the number of rows waiting to be read back.</summary>
+ private int _probeRow;
+
+ /// <summary>Global work size of <c>probe_sample</c>: one work item per probe.</summary>
+ private readonly IntPtr[] _probeGrid = new IntPtr[1];
+
+ /// <summary>Point-probe samples read back from the device and not yet taken by <see cref="TakeProbeSamples"/>, one list per probe (stays empty for line probes).</summary>
+ private readonly List<List<float>> _probeValues = [];
+
+ /// <summary><c>profile_gather</c> kernel per field index k, bound to <see cref="_field"/>[k]; unset without line probes.</summary>
+ private readonly IntPtr[] _gatherKernel = new IntPtr[2];
+
+ /// <summary><c>profile_accumulate</c> kernel; created only when some line probe integrates (<see cref="_profileIntegrates"/>).</summary>
+ private IntPtr _accumulateKernel;
+
+ /// <summary>Per line-probe pixel: value written by <c>profile_gather</c> and read back by <see cref="ReadProbeProfiles"/>.</summary>
+ private IntPtr _profileOutBuffer;
+
+ /// <summary>Total number of line-probe pixels (length of the profile buffers).</summary>
+ private int _profileCount;
+
+ /// <summary>Whether any line probe integrates the intensity, i.e. <c>profile_accumulate</c> must run every step.</summary>
+ private bool _profileIntegrates;
+
+ /// <summary>Per probe: offset of its first pixel in the profile buffers (only meaningful for line probes).</summary>
+ private int[] _profileStart = [];
+
+ /// <summary>Global work size of the profile kernels: one work item per line-probe pixel.</summary>
+ private readonly IntPtr[] _profileGrid = new IntPtr[1];
+}
diff --git a/WaveDude/Engine/IWaveEngine.cs b/WaveDude/Engine/IWaveEngine.cs
new file mode 100644
index 0000000..c72b061
--- /dev/null
+++ b/WaveDude/Engine/IWaveEngine.cs
@@ -0,0 +1,108 @@
+using WaveDude.Probes;
+
+namespace WaveDude.Engine;
+
+/// <summary>
+/// A wave-field solver (CPU <see cref="WaveSimulator"/> or OpenCL <see cref="GpuWaveSimulator"/>), created by
+/// <see cref="WaveEngineFactory"/> and driven by the run on its worker task. The field and intensity buffers
+/// are padded by one cell on each side, so row y of the scene starts at index (y + 1) * Stride + 1.
+/// Exactly one thread drives an engine at a time and nothing else reads it; the engines have no internal
+/// synchronisation and no thread affinity. Implementations that own native resources are <see cref="IDisposable"/>;
+/// the interface deliberately is not, the driver disposes through <c>(engine as IDisposable)?.Dispose()</c>.
+/// </summary>
+public interface IWaveEngine
+{
+ /// <summary>Where the simulation runs, for the status bar and result: for example "CPU (8 threads)" or "GPU: NVIDIA GeForce MX130 (OpenCL)".</summary>
+ string Description { get; }
+
+ /// <summary>Scene width in cells (= canvas pixels), without padding.</summary>
+ int Width { get; }
+
+ /// <summary>Scene height in cells (= canvas pixels), without padding.</summary>
+ int Height { get; }
+
+ /// <summary>Row pitch of <see cref="FieldData"/> and <see cref="IntensityData"/>: <see cref="Width"/> + 2. Pixel (x, y) is at (y + 1) * Stride + x + 1.</summary>
+ int Stride { get; }
+
+ /// <summary>
+ /// The field of the last completed step, <see cref="Stride"/> * (<see cref="Height"/> + 2) floats. Valid for
+ /// reading after <see cref="PrepareFrame"/>(true, ...); the CPU engine exposes its live buffer (a different
+ /// array instance after every sub-step, so re-read the property per frame), the GPU engine a host copy.
+ /// Do not change.
+ /// </summary>
+ float[] FieldData { get; }
+
+ /// <summary>
+ /// The averaged intensity, same layout as <see cref="FieldData"/>, valid after <see cref="PrepareFrame"/>(..., true);
+ /// null when intensity tracking was not requested. Do not change.
+ /// </summary>
+ float[]? IntensityData { get; }
+
+ /// <summary>One time step: apply the sources, update the field (internally several sub-steps with the 4th-order Laplacian), update the intensity.</summary>
+ void AdvanceOneStep();
+
+ /// <summary>
+ /// Makes the requested buffers reflect the current state so the renderer can read them: a no-op on the CPU;
+ /// on the GPU the data is copied from the graphics memory, so only ask for what is going to be drawn. Call
+ /// before touching <see cref="FieldData"/> / <see cref="IntensityData"/>.
+ /// </summary>
+ void PrepareFrame(bool needField, bool needIntensity);
+
+ /// <summary>
+ /// Copies the newest field (and the intensity when asked and tracked) into <paramref name="snapshot"/> as
+ /// <see cref="Half"/> planes without padding. The CPU engine converts synchronously; the GPU engine converts on
+ /// the card and enqueues the reads without waiting, so the driver can keep stepping while they land. The
+ /// snapshot must not be touched until <see cref="AwaitFrame"/> returned, and a capture must be awaited before
+ /// the engine is disposed.
+ /// </summary>
+ /// <param name="snapshot">A snapshot of this engine's size; its planes receive the data.</param>
+ /// <param name="needIntensity">Also copy the intensity (needs tracking and a snapshot with an intensity plane).</param>
+ void CaptureFrame(FrameSnapshot snapshot, bool needIntensity);
+
+ /// <summary>
+ /// Blocks until a <see cref="CaptureFrame"/> into <paramref name="snapshot"/> has completed. May be called
+ /// from a thread other than the driver's (a writer pipeline); a no-op for a snapshot not in flight.
+ /// </summary>
+ void AwaitFrame(FrameSnapshot snapshot);
+
+ /// <summary>
+ /// Back to step 0: the field, the previous field, the intensity averages, the emitters' cycle state and
+ /// the elapsed time are cleared; the scene, the emitters and the options stay. The probes are removed
+ /// (install them again when needed). Any capture in flight must have been awaited.
+ /// </summary>
+ void Reset();
+
+ /// <summary>
+ /// Replaces the object-source emitters, keeping the scene and the image sources; emitters outside the
+ /// canvas are dropped as at construction. Takes effect from the next step; the emitters' cycle state
+ /// starts fresh, so call it before <see cref="Reset"/> or at step 0. The intensity averaging constant
+ /// follows the new lowest source level.
+ /// </summary>
+ void SetEmitters(IReadOnlyList<Emitter>? emitters);
+
+ /// <summary>
+ /// Installs the probe definitions for this run (the GPU engine compiles its probe kernel here).
+ /// A null or empty sampler installs nothing.
+ /// </summary>
+ /// <exception cref="InvalidOperationException">A probe needs the intensity but it is not tracked, or the GPU probe kernel cannot be built.</exception>
+ void SetProbes(ProbeSampler? sampler);
+
+ /// <summary>
+ /// Measures the probes in the state after the last <see cref="AdvanceOneStep"/>: one value per step for every
+ /// point probe, and the running totals of the line probes that integrate the intensity.
+ /// </summary>
+ void SampleProbes();
+
+ /// <summary>
+ /// Returns and clears the values measured for the point probes since the last call, one array per probe (empty for line probes).
+ /// </summary>
+ /// <returns>Empty outer array when no probes are installed.</returns>
+ float[][] TakeProbeSamples();
+
+ /// <summary>
+ /// The values along the line of every line probe in the current state: the field, the intensity, or the
+ /// intensity totals of the steps so far. On the GPU this waits for the card, so do not call it every step.
+ /// </summary>
+ /// <returns>Null entries for point probes; empty outer array when no probes are installed.</returns>
+ float[]?[] ReadProbeProfiles();
+}
diff --git a/WaveDude/Engine/OpenClApi.cs b/WaveDude/Engine/OpenClApi.cs
new file mode 100644
index 0000000..596d3bb
--- /dev/null
+++ b/WaveDude/Engine/OpenClApi.cs
@@ -0,0 +1,348 @@
+using System.Globalization;
+using System.Runtime.InteropServices;
+using System.Text;
+
+namespace WaveDude.Engine;
+
+/// <summary>
+/// The part of the OpenCL 1.2 C interface that the GPU simulation needs, called directly from the ICD loader
+/// (OpenCL.dll on Windows, libOpenCL.so elsewhere; the import name "OpenCL" resolves to either) plus a few
+/// query helpers. OpenCL.dll is installed with the driver of the graphics card (NVIDIA, Intel and AMD all
+/// install it), so no extra package is needed. Names and parameters follow the C header
+/// (cl.h); <c>size_t</c> is an <see cref="IntPtr"/>, <c>cl_bitfield</c> a <c>ulong</c>, <c>cl_uint</c> a
+/// <c>uint</c> and <c>cl_bool</c> a <c>uint</c>. Used by <see cref="GpuDeviceInfo"/> and
+/// <see cref="GpuWaveSimulator"/>; every call returns an OpenCL error code (0 = CL_SUCCESS) that callers route
+/// through <see cref="Check"/>. Loading the DLL is deferred to the first call, so
+/// <see cref="DllNotFoundException"/> and friends surface there.
+/// </summary>
+internal static class OpenClApi
+{
+ // ---- platforms and devices
+
+ /// <summary>clGetPlatformIDs: with <paramref name="platforms"/> null only counts the platforms into <paramref name="numPlatforms"/>.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern int clGetPlatformIDs(uint numEntries, IntPtr[]? platforms, ref uint numPlatforms);
+
+ /// <summary>clGetDeviceIDs: lists the devices of a platform matching <paramref name="deviceType"/> (<see cref="DeviceTypeGpu"/>); with <paramref name="devices"/> null only counts them.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern int clGetDeviceIDs(IntPtr platform, ulong deviceType, uint numEntries, IntPtr[]? devices, ref uint numDevices);
+
+ /// <summary>clGetDeviceInfo: raw bytes of a device property; with <paramref name="paramValue"/> null only reports the size in <paramref name="sizeRet"/>. Wrapped by <see cref="DeviceInfoBytes"/>.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern int clGetDeviceInfo(IntPtr device, uint paramName, IntPtr paramSize, byte[]? paramValue, ref IntPtr sizeRet);
+
+ // ---- context, queue, program, kernels
+
+ /// <summary>clCreateContext: creates a context for the given devices; <paramref name="properties"/> is a zero-terminated key/value list (see <see cref="ContextPlatformProperty"/>). Release with <see cref="clReleaseContext"/>.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern IntPtr clCreateContext(IntPtr[] properties, uint numDevices, IntPtr[] devices, IntPtr notify, IntPtr userData, ref int errcode);
+
+ /// <summary>clCreateCommandQueue (OpenCL 1.x entry point): an in-order queue on one device. Release with <see cref="clReleaseCommandQueue"/>.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern IntPtr clCreateCommandQueue(IntPtr context, IntPtr device, ulong properties, ref int errcode);
+
+ /// <summary>clCreateProgramWithSource: a program from ANSI source strings (<paramref name="lengths"/> null = zero-terminated). Release with <see cref="clReleaseProgram"/>.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern IntPtr clCreateProgramWithSource(IntPtr context, uint count, [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPStr)] string[] strings, IntPtr[]? lengths, ref int errcode);
+
+ /// <summary>clBuildProgram: compiles the program for the given devices; <paramref name="options"/> is passed as an ANSI string. On failure see <see cref="BuildLog"/>.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern int clBuildProgram(IntPtr program, uint numDevices, IntPtr[] devices, string options, IntPtr notify, IntPtr userData);
+
+ /// <summary>clGetProgramBuildInfo: raw bytes of a build property such as <see cref="ProgramBuildLog"/>; with <paramref name="paramValue"/> null only reports the size.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern int clGetProgramBuildInfo(IntPtr program, IntPtr device, uint paramName, IntPtr paramSize, byte[]? paramValue, ref IntPtr sizeRet);
+
+ /// <summary>clCreateKernel: a kernel object for the named <c>__kernel</c> function of a built program. Release with <see cref="clReleaseKernel"/>.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern IntPtr clCreateKernel(IntPtr program, string kernelName, ref int errcode);
+
+ /// <summary>clSetKernelArg for a buffer argument (cl_mem handle; <paramref name="argSize"/> is the pointer size).</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, EntryPoint = "clSetKernelArg", ExactSpelling = true, SetLastError = true)]
+ internal static extern int clSetKernelArgMem(IntPtr kernel, uint argIndex, IntPtr argSize, ref IntPtr argValue);
+
+ /// <summary>clSetKernelArg for an <c>int</c> argument (<paramref name="argSize"/> = 4).</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, EntryPoint = "clSetKernelArg", ExactSpelling = true, SetLastError = true)]
+ internal static extern int clSetKernelArgInt(IntPtr kernel, uint argIndex, IntPtr argSize, ref int argValue);
+
+ /// <summary>clSetKernelArg for a <c>float</c> argument (<paramref name="argSize"/> = 4).</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, EntryPoint = "clSetKernelArg", ExactSpelling = true, SetLastError = true)]
+ internal static extern int clSetKernelArgFloat(IntPtr kernel, uint argIndex, IntPtr argSize, ref float argValue);
+
+ // ---- memory and execution
+
+ /// <summary>clCreateBuffer: a device buffer of <paramref name="size"/> bytes with the given CL_MEM flags (<see cref="MemReadWrite"/>). Release with <see cref="clReleaseMemObject"/>.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern IntPtr clCreateBuffer(IntPtr context, ulong flags, IntPtr size, IntPtr hostPtr, ref int errcode);
+
+ /// <summary>clEnqueueWriteBuffer from a float array; <paramref name="blocking"/> 1 waits for completion, <paramref name="offset"/>/<paramref name="size"/> are in bytes.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, EntryPoint = "clEnqueueWriteBuffer", ExactSpelling = true, SetLastError = true)]
+ internal static extern int clEnqueueWriteBufferFloat(IntPtr queue, IntPtr buffer, uint blocking, IntPtr offset, IntPtr size, float[] data, uint numEvents, IntPtr waitList, IntPtr evt);
+
+ /// <summary>clEnqueueWriteBuffer from an int array; <paramref name="blocking"/> 1 waits for completion, <paramref name="offset"/>/<paramref name="size"/> are in bytes.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, EntryPoint = "clEnqueueWriteBuffer", ExactSpelling = true, SetLastError = true)]
+ internal static extern int clEnqueueWriteBufferInt(IntPtr queue, IntPtr buffer, uint blocking, IntPtr offset, IntPtr size, int[] data, uint numEvents, IntPtr waitList, IntPtr evt);
+
+ /// <summary>clEnqueueReadBuffer into a float array; <paramref name="blocking"/> 1 waits for completion, <paramref name="offset"/>/<paramref name="size"/> are in bytes.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, EntryPoint = "clEnqueueReadBuffer", ExactSpelling = true, SetLastError = true)]
+ internal static extern int clEnqueueReadBufferFloat(IntPtr queue, IntPtr buffer, uint blocking, IntPtr offset, IntPtr size, float[] data, uint numEvents, IntPtr waitList, IntPtr evt);
+
+ /// <summary>clEnqueueReadBuffer into pinned memory at <paramref name="ptr"/>, non-blocking when <paramref name="blocking"/> is 0; <paramref name="evt"/> receives the event to wait for (release it with <see cref="clReleaseEvent"/>).</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, EntryPoint = "clEnqueueReadBuffer", ExactSpelling = true, SetLastError = true)]
+ internal static extern int clEnqueueReadBufferPtr(IntPtr queue, IntPtr buffer, uint blocking, IntPtr offset, IntPtr size, IntPtr ptr, uint numEvents, IntPtr waitList, out IntPtr evt);
+
+ /// <summary>clWaitForEvents: blocks until every event in <paramref name="events"/> has completed.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern int clWaitForEvents(uint numEvents, IntPtr[] events);
+
+ /// <summary>clReleaseEvent: drops a reference to an event returned by an enqueue call.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern int clReleaseEvent(IntPtr evt);
+
+ /// <summary>clEnqueueNDRangeKernel: launches the kernel over a <paramref name="workDim"/>-dimensional range; <paramref name="localSize"/> null lets the driver pick the work-group size.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern int clEnqueueNDRangeKernel(IntPtr queue, IntPtr kernel, uint workDim, IntPtr[]? globalOffset, IntPtr[] globalSize, IntPtr[]? localSize, uint numEvents, IntPtr waitList, IntPtr evt);
+
+ /// <summary>clFinish: blocks until every command queued so far has completed.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern int clFinish(IntPtr queue);
+
+ // ---- release
+
+ /// <summary>clReleaseMemObject: drops a reference to a buffer created by <see cref="clCreateBuffer"/>.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern int clReleaseMemObject(IntPtr memObj);
+
+ /// <summary>clReleaseKernel: drops a reference to a kernel created by <see cref="clCreateKernel"/>.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern int clReleaseKernel(IntPtr kernel);
+
+ /// <summary>clReleaseProgram: drops a reference to a program created by <see cref="clCreateProgramWithSource"/>.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern int clReleaseProgram(IntPtr program);
+
+ /// <summary>clReleaseCommandQueue: drops a reference to a queue created by <see cref="clCreateCommandQueue"/>.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern int clReleaseCommandQueue(IntPtr queue);
+
+ /// <summary>clReleaseContext: drops a reference to a context created by <see cref="clCreateContext"/>.</summary>
+ [DllImport("OpenCL", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
+ internal static extern int clReleaseContext(IntPtr context);
+
+ // ---- helpers
+
+ /// <summary>Throws if an OpenCL call did not return CL_SUCCESS.</summary>
+ /// <param name="code">Return value or errcode output of the OpenCL call.</param>
+ /// <param name="what">Name of the call, used in the exception message.</param>
+ /// <exception cref="InvalidOperationException"><paramref name="code"/> is not 0; the message includes <see cref="ErrorName"/>.</exception>
+ internal static void Check(int code, string what)
+ {
+ if (code != 0)
+ {
+ throw new InvalidOperationException(what + " failed: " + ErrorName(code));
+ }
+ }
+
+ /// <summary>Human-readable name of an OpenCL error code, e.g. "CL_INVALID_VALUE (-30)"; unknown codes give "error (code)".</summary>
+ internal static string ErrorName(int code)
+ {
+ string name;
+ switch (code)
+ {
+ case -1:
+ name = "CL_DEVICE_NOT_FOUND";
+ break;
+ case -2:
+ name = "CL_DEVICE_NOT_AVAILABLE";
+ break;
+ case -3:
+ name = "CL_COMPILER_NOT_AVAILABLE";
+ break;
+ case -4:
+ name = "CL_MEM_OBJECT_ALLOCATION_FAILURE (out of GPU memory)";
+ break;
+ case -5:
+ name = "CL_OUT_OF_RESOURCES";
+ break;
+ case -6:
+ name = "CL_OUT_OF_HOST_MEMORY";
+ break;
+ case -11:
+ name = "CL_BUILD_PROGRAM_FAILURE";
+ break;
+ case -30:
+ name = "CL_INVALID_VALUE";
+ break;
+ case -33:
+ name = "CL_INVALID_DEVICE";
+ break;
+ case -34:
+ name = "CL_INVALID_CONTEXT";
+ break;
+ case -36:
+ name = "CL_INVALID_COMMAND_QUEUE";
+ break;
+ case -38:
+ name = "CL_INVALID_MEM_OBJECT";
+ break;
+ case -45:
+ name = "CL_INVALID_PROGRAM_EXECUTABLE";
+ break;
+ case -46:
+ name = "CL_INVALID_KERNEL_NAME";
+ break;
+ case -48:
+ name = "CL_INVALID_KERNEL";
+ break;
+ case -49:
+ name = "CL_INVALID_ARG_INDEX";
+ break;
+ case -50:
+ name = "CL_INVALID_ARG_VALUE";
+ break;
+ case -51:
+ name = "CL_INVALID_ARG_SIZE";
+ break;
+ case -52:
+ name = "CL_INVALID_KERNEL_ARGS";
+ break;
+ case -54:
+ name = "CL_INVALID_WORK_GROUP_SIZE";
+ break;
+ case -55:
+ name = "CL_INVALID_WORK_ITEM_SIZE";
+ break;
+ case -61:
+ name = "CL_INVALID_BUFFER_SIZE";
+ break;
+ case -1001:
+ // Returned by the ICD loader when no vendor driver is registered.
+ name = "no OpenCL platform (CL_PLATFORM_NOT_FOUND_KHR)";
+ break;
+ default:
+ name = "error";
+ break;
+ }
+ return name + " (" + code.ToString(CultureInfo.InvariantCulture) + ")";
+ }
+
+ /// <summary>Raw bytes of a clGetDeviceInfo query (size probed first), or null if either call fails or the value is empty.</summary>
+ /// <param name="device">OpenCL device handle.</param>
+ /// <param name="paramName">A CL_DEVICE_* constant such as <see cref="DeviceName"/>.</param>
+ internal static byte[]? DeviceInfoBytes(IntPtr device, uint paramName)
+ {
+ IntPtr sizeRet = IntPtr.Zero;
+ if (clGetDeviceInfo(device, paramName, IntPtr.Zero, null, ref sizeRet) != 0)
+ {
+ return null;
+ }
+ int size = sizeRet.ToInt32();
+ if (size <= 0)
+ {
+ return null;
+ }
+ byte[] value = new byte[size];
+ IntPtr ignored = IntPtr.Zero;
+ if (clGetDeviceInfo(device, paramName, new IntPtr(size), value, ref ignored) != 0)
+ {
+ return null;
+ }
+ return value;
+ }
+
+ /// <summary>A string device property decoded as ASCII with the terminating NUL and padding trimmed; "" when the query fails.</summary>
+ internal static string DeviceString(IntPtr device, uint paramName)
+ {
+ byte[]? bytes = DeviceInfoBytes(device, paramName);
+ return bytes == null ? "" : Encoding.ASCII.GetString(bytes).Trim('\0', ' ');
+ }
+
+ /// <summary>
+ /// A numeric device property: 8-byte values (cl_ulong) are returned as is, 4-byte values (cl_uint, cl_bool)
+ /// are widened; 0 when the query fails or the value is shorter than 4 bytes.
+ /// </summary>
+ internal static ulong DeviceNumber(IntPtr device, uint paramName)
+ {
+ byte[]? bytes = DeviceInfoBytes(device, paramName);
+ if (bytes == null)
+ {
+ return 0UL;
+ }
+ if (bytes.Length >= 8)
+ {
+ return BitConverter.ToUInt64(bytes, 0);
+ }
+ if (bytes.Length >= 4)
+ {
+ return BitConverter.ToUInt32(bytes, 0);
+ }
+ return 0UL;
+ }
+
+ /// <summary>The compiler log for a program on a device (CL_PROGRAM_BUILD_LOG, trimmed); empty if unavailable or if the query throws.</summary>
+ internal static string BuildLog(IntPtr program, IntPtr device)
+ {
+ try
+ {
+ IntPtr sizeRet = IntPtr.Zero;
+ if (clGetProgramBuildInfo(program, device, ProgramBuildLog, IntPtr.Zero, null, ref sizeRet) != 0)
+ {
+ return "";
+ }
+ int size = sizeRet.ToInt32();
+ if (size <= 0)
+ {
+ return "";
+ }
+ byte[] log = new byte[size];
+ IntPtr ignored = IntPtr.Zero;
+ if (clGetProgramBuildInfo(program, device, ProgramBuildLog, new IntPtr(size), log, ref ignored) != 0)
+ {
+ return "";
+ }
+ return Encoding.ASCII.GetString(log).Trim('\0', ' ', '\r', '\n');
+ }
+ catch (Exception)
+ {
+ return "";
+ }
+ }
+
+ // ---- constants, spelled as in cl.h
+
+ /// <summary>CL_DEVICE_TYPE_GPU (1 &lt;&lt; 2).</summary>
+ internal const ulong DeviceTypeGpu = 4UL;
+
+ /// <summary>CL_MEM_READ_WRITE (1 &lt;&lt; 0) buffer flag.</summary>
+ internal const ulong MemReadWrite = 1UL;
+
+ /// <summary>CL_CONTEXT_PLATFORM (0x1084): property key for the platform in <see cref="clCreateContext"/>.</summary>
+ internal const int ContextPlatformProperty = 0x1084;
+
+ /// <summary>CL_PLATFORM_NAME (0x0902).</summary>
+ internal const uint PlatformNameInfo = 0x902U;
+
+ /// <summary>CL_DEVICE_MAX_COMPUTE_UNITS (0x1002), cl_uint.</summary>
+ internal const uint DeviceMaxComputeUnits = 0x1002U;
+
+ /// <summary>CL_DEVICE_MAX_CLOCK_FREQUENCY (0x100C), cl_uint in MHz.</summary>
+ internal const uint DeviceMaxClockFrequency = 0x100CU;
+
+ /// <summary>CL_DEVICE_MAX_MEM_ALLOC_SIZE (0x1010), cl_ulong bytes.</summary>
+ internal const uint DeviceMaxMemAllocSize = 0x1010U;
+
+ /// <summary>CL_DEVICE_GLOBAL_MEM_SIZE (0x101F), cl_ulong bytes.</summary>
+ internal const uint DeviceGlobalMemSize = 0x101FU;
+
+ /// <summary>CL_DEVICE_NAME (0x102B), string.</summary>
+ internal const uint DeviceName = 0x102BU;
+
+ /// <summary>CL_DEVICE_VENDOR (0x102C), string.</summary>
+ internal const uint DeviceVendor = 0x102CU;
+
+ /// <summary>CL_DEVICE_HOST_UNIFIED_MEMORY (0x1035), cl_bool: non-zero for devices sharing host memory (integrated GPUs).</summary>
+ internal const uint DeviceHostUnifiedMemory = 0x1035U;
+
+ /// <summary>CL_PROGRAM_BUILD_LOG (0x1183), string.</summary>
+ internal const uint ProgramBuildLog = 0x1183U;
+}
diff --git a/WaveDude/Engine/SceneData.cs b/WaveDude/Engine/SceneData.cs
new file mode 100644
index 0000000..653147b
--- /dev/null
+++ b/WaveDude/Engine/SceneData.cs
@@ -0,0 +1,178 @@
+namespace WaveDude.Engine;
+
+/// <summary>
+/// Per-pixel simulation input derived from a scene image: squared wave speed (<see cref="C2"/>,
+/// <c>(1 / refractive index)^2</c>; the time step is 1), damping factor (<see cref="D"/>, the factor on the
+/// velocity: 1 = no damping, 0 = the wave is stopped) and the positions / levels of image-defined sources
+/// (the value of the green channel sets the frequency).
+/// The rules are those of the Python classes <c>StaticImageScene</c>, <c>StaticRefractiveIndex</c> and
+/// <c>StaticDampening</c>: red channel = refractive index * 100 (clamped to 0.9..10), green = every pixel
+/// above 0 is a sinusoidal source whose level is the green value, blue = damping strength (0 = none,
+/// 255 = full; stored as <c>D = 1 - blue / 255</c>), damping edge = a border of the given thickness with
+/// damping factor <c>sqrt(i / thickness)</c> at i pixels from the edge.
+/// Created by the run on its worker from the decoded scene pixels (<see cref="FromBgra"/>) or
+/// <see cref="Empty"/> and then copied into the padded grids of <see cref="WaveSimulator"/> /
+/// <see cref="GpuWaveSimulator"/>. The arrays are row-major (<c>y * Width + x</c>) without padding and are
+/// not modified after construction, so any thread may read them.
+/// </summary>
+public sealed class SceneData
+{
+ private SceneData(int w, int h, float[] c2, float[] d, int[] srcX, int[] srcY, byte[] srcLevel)
+ {
+ Width = w;
+ Height = h;
+ C2 = c2;
+ D = d;
+ SourceX = srcX;
+ SourceY = srcY;
+ SourceLevel = srcLevel;
+ }
+
+ /// <summary>Number of image-defined source pixels (length of <see cref="SourceX"/>, <see cref="SourceY"/> and <see cref="SourceLevel"/>).</summary>
+ public int SourceCount => SourceX.Length;
+
+ /// <summary>
+ /// Decodes 32-bit BGRA pixels (byte order B, G, R, A per pixel, rows <paramref name="strideBytes"/> apart)
+ /// into per-pixel squared speed and damping factor and, when <paramref name="useSources"/> is set, collects
+ /// every pixel with green &gt; 0 as a source whose level is that green value, in row-major order. Finally
+ /// fades the damping in a border of <paramref name="dampingEdge"/> pixels (see <see cref="ApplyBorder"/>).
+ /// </summary>
+ /// <param name="bgra">Pixel bytes; at least <paramref name="height"/> rows of <paramref name="strideBytes"/>.</param>
+ /// <param name="width">Canvas width in pixels.</param>
+ /// <param name="height">Canvas height in pixels.</param>
+ /// <param name="strideBytes">Bytes per row (at least 4 × <paramref name="width"/>).</param>
+ /// <param name="useSources">Collect green pixels as sources; otherwise the source arrays are empty.</param>
+ /// <param name="dampingEdge">Thickness of the absorbing border in pixels; 0 or less for none.</param>
+ public static SceneData FromBgra(ReadOnlySpan<byte> bgra, int width, int height, int strideBytes, bool useSources, int dampingEdge)
+ {
+ float[] c2 = new float[width * height];
+ float[] d = new float[width * height];
+ var sourceX = new List<int>();
+ var sourceY = new List<int>();
+ var sourceLevel = new List<byte>();
+ for (int y = 0; y < height; y++)
+ {
+ ReadOnlySpan<byte> row = bgra.Slice(y * strideBytes, width * 4);
+ for (int x = 0; x < width; x++)
+ {
+ int offset = x * 4;
+ int blue = row[offset];
+ int green = row[offset + 1];
+ int red = row[offset + 2];
+ double refractiveIndex = Math.Clamp(red / 100.0, 0.9, 10.0);
+ double speed = 1.0 / refractiveIndex;
+ int index = y * width + x;
+ c2[index] = (float)(speed * speed);
+ d[index] = (float)(1.0 - blue / 255.0);
+ if (useSources && green > 0)
+ {
+ sourceX.Add(x);
+ sourceY.Add(y);
+ sourceLevel.Add((byte)green);
+ }
+ }
+ }
+ ApplyBorder(d, width, height, dampingEdge);
+ return new SceneData(width, height, c2, d, sourceX.ToArray(), sourceY.ToArray(), sourceLevel.ToArray());
+ }
+
+ /// <summary>
+ /// Creates a uniform, user defined <paramref name="w"/> x <paramref name="h"/> scene without sources: the
+ /// speed is derived from <paramref name="refractiveIndex"/> (clamped to 0.9..10) and the damping
+ /// factor is 1 (none) everywhere except in the <paramref name="dampingEdge"/> border.
+ /// </summary>
+ /// <param name="w">Canvas width in pixels.</param>
+ /// <param name="h">Canvas height in pixels.</param>
+ /// <param name="dampingEdge">Thickness of the absorbing border in pixels; 0 or less for none.</param>
+ /// <param name="refractiveIndex">Background refractive index (1.0 by default, the same rule as a scene image's red channel: index = red / 100).</param>
+ public static SceneData Empty(int w, int h, int dampingEdge, double refractiveIndex = 1.0)
+ {
+ float speed = (float)(1.0 / Math.Clamp(refractiveIndex, 0.9, 10.0));
+ float[] c2 = new float[w * h];
+ float[] d = new float[w * h];
+ Array.Fill(c2, speed * speed);
+ Array.Fill(d, 1f);
+ ApplyBorder(d, w, h, dampingEdge);
+ return new SceneData(w, h, c2, d, [], [], []);
+ }
+
+ /// <summary>
+ /// Counts the pixels with green &gt; 0, i.e. the number of sources <see cref="FromBgra"/> would collect.
+ /// Used on the UI thread before a run to warn when image sources are enabled but the image contains none.
+ /// </summary>
+ /// <param name="bgra">Pixel bytes as for <see cref="FromBgra"/>.</param>
+ /// <param name="width">Canvas width in pixels.</param>
+ /// <param name="height">Canvas height in pixels.</param>
+ /// <param name="strideBytes">Bytes per row.</param>
+ public static int CountSources(ReadOnlySpan<byte> bgra, int width, int height, int strideBytes)
+ {
+ int count = 0;
+ for (int y = 0; y < height; y++)
+ {
+ ReadOnlySpan<byte> row = bgra.Slice(y * strideBytes, width * 4);
+ for (int x = 0; x < width; x++)
+ {
+ if (row[x * 4 + 1] > 0)
+ {
+ count++;
+ }
+ }
+ }
+ return count;
+ }
+
+ /// <summary>
+ /// Damping edge, as in <c>StaticDampening</c>: overwrites the damping factor in a frame of
+ /// <paramref name="thickness"/> pixels (capped at half the smaller side) around the edge of the
+ /// <paramref name="w"/> x <paramref name="h"/> grid with <c>sqrt(i / thickness)</c>, where i is the
+ /// distance from the edge, so the outermost ring stops the wave completely and the factor rises to 1
+ /// inside. Does nothing for a thickness of 0 or less.
+ /// </summary>
+ /// <param name="d">Damping array, row-major, modified in place.</param>
+ /// <param name="w">Grid width in pixels.</param>
+ /// <param name="h">Grid height in pixels.</param>
+ /// <param name="thickness">Requested border thickness in pixels.</param>
+ internal static void ApplyBorder(float[] d, int w, int h, int thickness)
+ {
+ int border = Math.Min(thickness, Math.Min(w, h) / 2);
+ if (border <= 0)
+ {
+ return;
+ }
+ for (int i = 0; i < border; i++)
+ {
+ float factor = (float)Math.Sqrt((double)i / border);
+ for (int x = i; x <= w - 1 - i; x++)
+ {
+ d[i * w + x] = factor;
+ d[(h - 1 - i) * w + x] = factor;
+ }
+ for (int y = i; y <= h - 1 - i; y++)
+ {
+ d[y * w + i] = factor;
+ d[y * w + (w - 1 - i)] = factor;
+ }
+ }
+ }
+
+ /// <summary>Canvas width in pixels.</summary>
+ public int Width { get; }
+
+ /// <summary>Canvas height in pixels.</summary>
+ public int Height { get; }
+
+ /// <summary>Squared wave speed per pixel (<c>1 / n^2</c> for refractive index n, so 1 for n = 1), row-major.</summary>
+ public float[] C2 { get; }
+
+ /// <summary>Damping factor per pixel, 0..1 where 1 = no damping, row-major.</summary>
+ public float[] D { get; }
+
+ /// <summary>X canvas coordinate of each image-defined source pixel; parallel to <see cref="SourceY"/> and <see cref="SourceLevel"/>.</summary>
+ public int[] SourceX { get; }
+
+ /// <summary>Y canvas coordinate of each image-defined source pixel.</summary>
+ public int[] SourceY { get; }
+
+ /// <summary>Green channel value (1..255) of each image-defined source pixel; the engines treat it as the source's level.</summary>
+ public byte[] SourceLevel { get; }
+}
diff --git a/WaveDude/Engine/WaveEngineFactory.cs b/WaveDude/Engine/WaveEngineFactory.cs
new file mode 100644
index 0000000..a80e127
--- /dev/null
+++ b/WaveDude/Engine/WaveEngineFactory.cs
@@ -0,0 +1,59 @@
+namespace WaveDude.Engine;
+
+/// <summary>
+/// Picks the wave engine for a run: the GPU (OpenCL) engine when requested and available, otherwise the CPU engine.
+/// Called by the run on its worker once per run.
+/// </summary>
+public static class WaveEngineFactory
+{
+ /// <summary>
+ /// Creates the engine for <paramref name="scene"/>. With <paramref name="preferGpu"/> set it first tries
+ /// <see cref="GpuWaveSimulator.TryCreate"/>, translating the usual OpenCL loader failures (missing, wrong-bitness or
+ /// incomplete OpenCL.dll) into a readable reason; any failure falls back to the CPU <see cref="WaveSimulator"/>.
+ /// Never throws for GPU problems, but CPU engine construction may still throw (e.g. out of memory).
+ /// Object sources run on either engine, the same as the image sources.
+ /// </summary>
+ /// <param name="scene">Per-pixel speed, damping and image sources of the canvas; the engine copies it into its padded grid.</param>
+ /// <param name="options">The physics options passed to the engine (frequency scale, image source amplitude, intensity tracking, Laplacian order, time decay, intensity scale).</param>
+ /// <param name="preferGpu">Try the OpenCL engine first (an application setting, not a project property).</param>
+ /// <param name="emitters">The emitters of the object sources to drive in addition to the image sources; may be null.</param>
+ /// <param name="note">
+ /// Receives an empty string when the GPU was not requested or the GPU engine was created; "GPU not used: reason" when the GPU
+ /// was requested but could not be used (the loader message above, or the per-device errors from <c>TryCreate</c>).
+ /// </param>
+ /// <returns>A ready engine; the caller owns and must dispose it.</returns>
+ public static IWaveEngine Create(SceneData scene, EngineOptions options, bool preferGpu, IReadOnlyList<Emitter>? emitters, out string note)
+ {
+ note = "";
+ if (preferGpu)
+ {
+ string gpuMessage;
+ try
+ {
+ GpuWaveSimulator? gpu = GpuWaveSimulator.TryCreate(scene, options, emitters, out gpuMessage);
+ if (gpu != null)
+ {
+ return gpu;
+ }
+ }
+ catch (DllNotFoundException)
+ {
+ gpuMessage = "no OpenCL driver (OpenCL.dll) found; install the driver of the graphics card";
+ }
+ catch (BadImageFormatException)
+ {
+ gpuMessage = "the OpenCL driver does not match this 32/64-bit program";
+ }
+ catch (EntryPointNotFoundException)
+ {
+ gpuMessage = "the OpenCL driver is incomplete";
+ }
+ catch (Exception ex)
+ {
+ gpuMessage = ex.Message;
+ }
+ note = "GPU not used: " + gpuMessage;
+ }
+ return new WaveSimulator(scene, options, emitters);
+ }
+}
diff --git a/WaveDude/Engine/WaveSimulator.cs b/WaveDude/Engine/WaveSimulator.cs
new file mode 100644
index 0000000..18b5efd
--- /dev/null
+++ b/WaveDude/Engine/WaveSimulator.cs
@@ -0,0 +1,974 @@
+using System.Globalization;
+using System.Numerics.Tensors;
+using WaveDude.Model;
+using WaveDude.Probes;
+
+namespace WaveDude.Engine;
+
+/// <summary>
+/// CPU implementation of <see cref="IWaveEngine"/>: an explicit leapfrog finite-difference solver for the
+/// scalar 2D wave equation on a grid padded by one cell on each side, a port of the Python class
+/// WaveSimulator2D (which runs on the GPU with CuPy). Created by
+/// <see cref="WaveEngineFactory"/> on the run's worker, which is the only thread that advances it and reads
+/// <see cref="FieldData"/> / <see cref="IntensityData"/>. The engine has no thread affinity of its own: any
+/// single thread may drive it.
+/// </summary>
+/// <remarks>
+/// <para>
+/// Units: grid spacing and time step are both 1, so the wave speed c is in cells (canvas pixels) per step,
+/// the per-cell <c>c2</c> is c² = 1/n² for refractive index n, and <see cref="Time"/> counts steps. Source
+/// frequencies are angular frequencies in radians per step (<see cref="_levelFrequency"/>).
+/// </para>
+/// <para>
+/// The scheme: laplacian = 3x3 convolution with [[0.066, 0.184, 0.066], [0.184, -1, 0.184], [0.066, 0.184, 0.066]],
+/// new u = u + (u - previous u) * d + laplacian * c², with the field outside the domain fixed at 0. The sources
+/// are applied before each step as in update_scene / StaticImageScene.update_field:
+/// u = u * 0.9 + sin(frequency * t) * 0.1 (<see cref="ApplySources"/>). The field is then advanced by
+/// <see cref="_subSteps"/> leapfrog sub-steps (<see cref="UpdateField"/>), the last of which also updates the
+/// running intensity. The arrays have a border of one cell (which always stays 0) so that the step needs no edge
+/// tests. The rows are divided over all processor cores.
+/// </para>
+/// <para>
+/// The intensity is no longer a single exponential average of WaveVisualizer.update (I = I * 0.98 + u² * 0.02):
+/// a single-pole filter like that only rolls off at 6 dB/octave, so it never fully removes the ripple at the
+/// source's own oscillation frequency, just delays it - lengthening its time constant mostly adds trail without
+/// buying much extra ripple suppression. Instead the same one-pole filter (I = I * alpha + x * (1 - alpha)) is run
+/// twice in a row (<see cref="_intensityStage1"/>, then <see cref="_intensity"/>), a critically-damped 2-pole
+/// low-pass that rolls off at 12 dB/octave, so for the same responsiveness it suppresses the ripple far more
+/// without needing to know the local frequency at every pixel. Two full stages turned out to add more delay than
+/// wanted at low frequencies (a short pulse can come and go before the second stage has caught up, understating
+/// its peak) for not that much extra benefit over one, so what is actually shown/exported
+/// (<see cref="_intensityOut"/>) is a blend of the one-stage and two-stage outputs (<see cref="IntensityBlend"/>) -
+/// roughly the middle ground between the two (about 9, not 6 or 12, dB/octave), still well ahead of a single
+/// stage at rejecting the ripple but reacting closer to as fast. alpha (<see cref="_intensityAlpha"/>) is derived
+/// once per simulation so the time constant of each stage scales inversely with the frequency of the slowest
+/// active source, times the user's <see cref="Simulation.TimeDecay"/> - see that property's doc
+/// for why.
+/// </para>
+/// <para>
+/// Optionally (<see cref="Simulation.FourthOrderLaplacian"/>), the Laplacian is instead computed with a
+/// 4th order accurate, 5-point "cross" stencil (reaching 2 cells away along x and along y) wherever there is
+/// room for it - see <see cref="UpdateField"/>. This reduces numerical dispersion (short, under-resolved
+/// wavelengths otherwise travel slower than long ones - see the <see cref="Simulation.WaveSpeed"/> doc)
+/// at roughly twice the memory reads per step. The outermost ring of the domain still uses the original 3x3
+/// kernel, since it only has the usual one cell of border to read from, not the two the wider stencil needs.
+/// </para>
+/// <para>
+/// The 4th order stencil's coefficients (-1/12, 4/3, -5) reach much further from zero than the 3x3 kernel's
+/// (0.066, 0.184, -1) - about 7 times further at the highest spatial frequency the grid can represent - so the
+/// same c² that is safely stable with the 3x3 kernel can be wildly unstable with the 4th order one (the field
+/// blows up: everywhere saturates except at object edges, which is what an invalid/unstable Laplacian looks
+/// like). To stay stable without changing the physical wave speed, <see cref="AdvanceOneStep"/> instead takes
+/// <see cref="_subSteps"/> smaller time steps per call when the 4th order stencil is used: c² is scaled by
+/// 1 / _subSteps² (matching a time step _subSteps times smaller) and the damping factor d by its _subSteps-th
+/// root (so _subSteps applications of it compound back to the original d), so the net effect after _subSteps
+/// steps is exactly the same physical propagation and damping as one ordinary step - just spread over more,
+/// individually stable, time steps. _subSteps is computed once per scene from its highest c²
+/// (<see cref="ComputeSubSteps"/>) and is 1 (no sub-stepping, and a multiply by the exact literal 1.0F)
+/// whenever the 3x3 kernel is used or the scene's c² does not need it.
+/// </para>
+/// </remarks>
+public sealed class WaveSimulator : IWaveEngine, IDisposable
+{
+ /// <summary>
+ /// Copies the scene's c² and damping maps into the padded grid, derives the sub-step count (4th order
+ /// only, and only when the scene's highest c² needs it) and the matching per-sub-step damping and c²
+ /// corrections, indexes the image and object sources, and sets the intensity averaging constant from the
+ /// slowest source level in use.
+ /// </summary>
+ /// <param name="scene">Per-cell c² and damping maps plus the image (green-channel) sources; its arrays are copied.</param>
+ /// <param name="options">Frequency scale (see <see cref="_levelFrequency"/>), image source amplitude (1 = the value of the Python code; object sources carry their own), intensity tracking (when off <see cref="IntensityData"/> stays null), stencil order (see the class remarks), time decay (see <see cref="_intensityAlpha"/>) and intensity scale.</param>
+ /// <param name="emitters">The emitters of the object sources, or null/empty for none; those positioned outside the canvas are dropped.</param>
+ public WaveSimulator(SceneData scene, EngineOptions options, IReadOnlyList<Emitter>? emitters = null)
+ {
+ double sourceFrequencyScale = options.SourceFrequencyScale;
+ bool trackIntensity = options.TrackIntensity;
+ bool use4thOrderLaplacian = options.FourthOrderLaplacian;
+ _sourceAmplitude = options.SourceAmplitude;
+ _use4thOrderLaplacian = use4thOrderLaplacian;
+ _intensityScale = (float)options.IntensityScale;
+ _width = scene.Width;
+ _height = scene.Height;
+ _stride = _width + 2;
+ int cellCount = _stride * (_height + 2);
+ _u = new float[cellCount];
+ _uPrev = new float[cellCount];
+ _c2 = new float[cellCount];
+ float[] damping = new float[cellCount];
+ if (trackIntensity)
+ {
+ _intensity = new float[cellCount];
+ _intensityStage1 = new float[cellCount];
+ _intensityOut = new float[cellCount];
+ }
+ for (int y = 0; y < _height; y++)
+ {
+ Array.Copy(scene.C2, y * _width, _c2, (y + 1) * _stride + 1, _width);
+ Array.Copy(scene.D, y * _width, damping, (y + 1) * _stride + 1, _width);
+ }
+
+ // see the class remarks: sub-stepping keeps the 4th order stencil stable without changing the physical
+ // wave speed or damping - _subSteps stays 1 (no sub-stepping) unless the 4th order stencil is in use and
+ // this scene's highest c² actually needs it
+ _subSteps = use4thOrderLaplacian ? ComputeSubSteps(MaxOf(_c2)) : 1;
+ if (_subSteps > 1)
+ {
+ // Damping is applied once per sub-step, so take the sub-step root to keep the per-step decay unchanged
+ // (_subSteps applications of it compound back to the original d).
+ _damping = new float[cellCount];
+ double exponent = 1.0 / _subSteps;
+ for (int i = 0; i < cellCount; i++)
+ {
+ _damping[i] = (float)Math.Pow(damping[i], exponent);
+ }
+ // A sub-step is 1/subSteps long, so c²·dt² shrinks by 1/subSteps².
+ _c2Mult = 1f / (_subSteps * _subSteps);
+ }
+ else
+ {
+ _damping = damping;
+ _c2Mult = 1f;
+ }
+
+ int sourceCount = scene.SourceCount;
+ _sourceIndex = new int[sourceCount];
+ _sourceLevel = new byte[sourceCount];
+ for (int i = 0; i < sourceCount; i++)
+ {
+ _sourceIndex[i] = (scene.SourceY[i] + 1) * _stride + scene.SourceX[i] + 1;
+ _sourceLevel[i] = scene.SourceLevel[i];
+ _levelUsed[scene.SourceLevel[i]] = true;
+ }
+ for (int level = 0; level <= 255; level++)
+ {
+ _levelFrequency[level] = level / 255.0 * 0.5 * sourceFrequencyScale;
+ }
+
+ _timeDecay = options.TimeDecay;
+ SetEmitters(emitters);
+ }
+
+ /// <inheritdoc/>
+ public void SetEmitters(IReadOnlyList<Emitter>? emitters)
+ {
+ // object sources: keep only the elements whose position is inside the canvas (a randomized composite
+ // element can fall outside)
+ var insideSources = new List<Emitter>();
+ var insideIndices = new List<int>();
+ if (emitters != null)
+ {
+ foreach (Emitter source in emitters)
+ {
+ if (source.X >= 0 && source.X < _width && source.Y >= 0 && source.Y < _height)
+ {
+ insideSources.Add(source);
+ insideIndices.Add((source.Y + 1) * _stride + source.X + 1);
+ }
+ }
+ }
+ _objSources = insideSources.ToArray();
+ _objIndex = insideIndices.ToArray();
+ _objCycleAnchor = new double[_objSources.Length];
+ _objCurrentOffWidth = new int[_objSources.Length];
+ _objRngState = new uint[_objSources.Length];
+ ResetEmitterState();
+
+ // the intensity's averaging time constant scales inversely with the frequency of the slowest active
+ // source (image or object) - see TimeDecay's doc (Simulation) for why, and
+ // NominalDecayLevel's doc for the calibration this reproduces
+ _intensityAlpha = IntensityRetention(_timeDecay, LowestSourceLevel(_levelUsed, _objSources));
+ }
+
+ /// <summary>Every emitter back to its first cycle: the off-width rolled at generate time and the seed it started with.</summary>
+ private void ResetEmitterState()
+ {
+ for (int i = 0; i < _objSources.Length; i++)
+ {
+ // the very first cycle uses the off-width already rolled once at generate time; later cycles (for
+ // elements that opt into it) redraw from OffWidthBase - see ComputePulsePosition
+ _objCycleAnchor[i] = 0.0;
+ _objCurrentOffWidth[i] = _objSources[i].OffWidthCycles;
+ _objRngState[i] = _objSources[i].RngSeed;
+ }
+ }
+
+ /// <inheritdoc/>
+ public void Reset()
+ {
+ Array.Clear(_u);
+ Array.Clear(_uPrev);
+ if (_intensity != null)
+ {
+ Array.Clear(_intensity);
+ Array.Clear(_intensityStage1!);
+ Array.Clear(_intensityOut!);
+ }
+ ResetEmitterState();
+ _time = 0.0;
+ SetProbes(null);
+ }
+
+ /// <summary>
+ /// Copies the interior of the current buffers into the snapshot's float staging (a plain memory copy, so the
+ /// stepping thread loses little); <see cref="AwaitFrame"/> converts to <see cref="Half"/> on the thread that awaits.
+ /// </summary>
+ public void CaptureFrame(FrameSnapshot snapshot, bool needIntensity)
+ {
+ if (snapshot.Width != _width || snapshot.Height != _height)
+ {
+ throw new ArgumentException("The snapshot does not match the engine's size.", nameof(snapshot));
+ }
+ int cells = _width * _height;
+ snapshot.FieldFloats ??= new float[cells];
+ CopyInterior(_u, snapshot.FieldFloats);
+ snapshot.HasIntensity = needIntensity && _intensityOut != null && snapshot.Intensity != null;
+ if (snapshot.HasIntensity)
+ {
+ snapshot.IntensityFloats ??= new float[cells];
+ CopyInterior(_intensityOut!, snapshot.IntensityFloats);
+ }
+ snapshot.PendingConversion = true;
+ }
+
+ /// <summary>Converts the staged floats to the snapshot's <see cref="Half"/> planes; the work of the capture, done where it is awaited.</summary>
+ public void AwaitFrame(FrameSnapshot snapshot)
+ {
+ if (!snapshot.PendingConversion)
+ {
+ return;
+ }
+ snapshot.PendingConversion = false;
+ Convert(snapshot.FieldFloats!, snapshot.Field);
+ if (snapshot.HasIntensity)
+ {
+ Convert(snapshot.IntensityFloats!, snapshot.Intensity!);
+ }
+ }
+
+ /// <summary>The interior rows of a padded buffer into a tightly packed plane.</summary>
+ private void CopyInterior(float[] source, float[] target)
+ {
+ int width = _width;
+ int stride = _stride;
+ Parallel.For(0, _height, y => source.AsSpan((y + 1) * stride + 1, width).CopyTo(target.AsSpan(y * width, width)));
+ }
+
+ /// <summary>A packed float plane to <see cref="Half"/>, rows in parallel.</summary>
+ private void Convert(float[] source, Half[] target)
+ {
+ int width = _width;
+ Parallel.For(0, _height, y => TensorPrimitives.ConvertToHalf(source.AsSpan(y * width, width), target.AsSpan(y * width, width)));
+ }
+
+ /// <summary>Scene width in cells (canvas pixels), excluding the padding.</summary>
+ public int Width => _width;
+
+ /// <summary>Scene height in cells (canvas pixels), excluding the padding.</summary>
+ public int Height => _height;
+
+ /// <summary>Row pitch of the padded buffers: <see cref="Width"/> + 2. Pixel (x, y) is at (y + 1) * Stride + x + 1.</summary>
+ public int Stride => _stride;
+
+ /// <summary>
+ /// The current field u of the last completed step (padded layout). The array instance changes every sub-step
+ /// because the two field buffers are swapped, so callers must re-read this property per frame rather than
+ /// cache the array. Do not change.
+ /// </summary>
+ public float[] FieldData => _u;
+
+ /// <summary>Scaled running intensity (padded layout), or null when the engine was created without intensity tracking. Do not change.</summary>
+ public float[]? IntensityData => _intensityOut;
+
+ /// <summary>Engine label for the UI/result: "CPU (n threads)" with the logical processor count.</summary>
+ public string Description => "CPU (" + Environment.ProcessorCount.ToString(CultureInfo.InvariantCulture) + " threads)";
+
+ /// <summary>Elapsed simulation time in steps (one per <see cref="AdvanceOneStep"/>).</summary>
+ public double Time => _time;
+
+ /// <summary>No-op: the CPU buffers are always host-resident and up to date.</summary>
+ public void PrepareFrame(bool needField, bool needIntensity)
+ {
+ }
+
+ /// <summary>No-op: the engine owns only managed arrays.</summary>
+ public void Dispose()
+ {
+ }
+
+ /// <summary>
+ /// Advances the simulation by one step: blends the sources in once, runs <see cref="_subSteps"/> leapfrog
+ /// sub-steps (the intensity is updated on the last one only) and increments <see cref="Time"/>.
+ /// </summary>
+ public void AdvanceOneStep()
+ {
+ ApplySources();
+ for (int subStep = 1; subStep <= _subSteps; subStep++)
+ {
+ UpdateField(subStep == _subSteps);
+ }
+ _time += 1.0;
+ }
+
+ /// <summary>
+ /// Installs the probe layout (or clears it when <paramref name="sampler"/> is null or empty), discarding any
+ /// pending samples and integrated totals, and allocates the per-pixel totals for integrated line probes.
+ /// </summary>
+ /// <exception cref="InvalidOperationException">The sampler needs intensity but this engine does not track it.</exception>
+ public void SetProbes(ProbeSampler? sampler)
+ {
+ _probeValues.Clear();
+ _profileTotals = null;
+ if (sampler == null || sampler.Count == 0)
+ {
+ _sampler = null;
+ return;
+ }
+ if (sampler.NeedsIntensity && _intensityOut == null)
+ {
+ throw new InvalidOperationException("the intensity is not tracked");
+ }
+ _sampler = sampler;
+ _profileTotals = new double[sampler.Count][];
+ for (int i = 0; i < sampler.Count; i++)
+ {
+ _probeValues.Add(new List<float>());
+ if (sampler.Integrate[i])
+ {
+ _profileTotals[i] = new double[sampler.Pixels[i].Length];
+ }
+ }
+ }
+
+ /// <summary>
+ /// Called by the runner after every step: appends one field or intensity value per point probe, and adds
+ /// the current intensity to the per-pixel totals of integrated line probes (once <see cref="Time"/> has
+ /// reached their start step). Non-integrated line probes are read live by <see cref="ReadProbeProfiles"/>.
+ /// </summary>
+ public void SampleProbes()
+ {
+ if (_sampler == null)
+ {
+ return;
+ }
+ int step = (int)Math.Round(_time);
+ for (int p = 0; p < _sampler.Count; p++)
+ {
+ if (!_sampler.IsProfile[p])
+ {
+ float[]? data = _sampler.UseIntensity[p] ? _intensityOut : _u;
+ _probeValues[p].Add(_sampler.Compute(p, data));
+ }
+ else if (_sampler.Integrate[p] && _intensityOut != null && _profileTotals != null)
+ {
+ // before "start after step" the totals are simply never added to, so they stay at zero: any
+ // intensity that arrived earlier is purged rather than being baked into the total once recording starts
+ if (_sampler.UseStartAfterStep[p] && step < _sampler.StartAfterStep[p])
+ {
+ continue;
+ }
+ // the intensity that has passed every point of the line, added up over the steps
+ int[] pixels = _sampler.Pixels[p];
+ double[] totals = _profileTotals[p]!;
+ for (int k = 0; k < pixels.Length; k++)
+ {
+ totals[k] += _intensityOut[pixels[k]];
+ }
+ }
+ }
+ }
+
+ /// <summary>Returns and clears the point-probe values collected since the previous call.</summary>
+ /// <returns>One array per probe, one value per step (empty for line probes); an empty outer array when no sampler is set.</returns>
+ public float[][] TakeProbeSamples()
+ {
+ if (_sampler == null)
+ {
+ return [];
+ }
+ float[][] samples = new float[_sampler.Count][];
+ for (int p = 0; p < _sampler.Count; p++)
+ {
+ samples[p] = _probeValues[p].ToArray();
+ _probeValues[p].Clear();
+ }
+ return samples;
+ }
+
+ /// <summary>Reads the current values along every line probe; nothing is cleared.</summary>
+ /// <returns>
+ /// One array per probe in pixel order along the line, holding the integrated intensity totals or the live
+ /// field/intensity values; null entries for point probes; an empty outer array when no sampler is set.
+ /// </returns>
+ public float[]?[] ReadProbeProfiles()
+ {
+ if (_sampler == null)
+ {
+ return [];
+ }
+ float[]?[] profiles = new float[_sampler.Count][];
+ for (int p = 0; p < _sampler.Count; p++)
+ {
+ if (!_sampler.IsProfile[p])
+ {
+ continue;
+ }
+ int[] pixels = _sampler.Pixels[p];
+ float[] profile = new float[pixels.Length];
+ if (_sampler.Integrate[p] && _profileTotals?[p] is { } totals)
+ {
+ for (int k = 0; k < pixels.Length; k++)
+ {
+ profile[k] = (float)totals[k];
+ }
+ }
+ else if ((_sampler.UseIntensity[p] ? _intensityOut : _u) is { } data)
+ {
+ for (int k = 0; k < pixels.Length; k++)
+ {
+ profile[k] = data[pixels[k]];
+ }
+ }
+ profiles[p] = profile;
+ }
+ return profiles;
+ }
+
+ /// <summary>
+ /// Number of sub-steps per time step needed to keep the 4th-order stencil stable for the largest c² in the
+ /// scene: the smallest n with c²·λmax/n² ≤ <see cref="SubStepTargetLimit"/>, at least 1. Shared with
+ /// <see cref="GpuWaveSimulator"/>.
+ /// </summary>
+ internal static int ComputeSubSteps(float maxC2)
+ {
+ if (maxC2 <= 0f)
+ {
+ return 1;
+ }
+ double subSteps = Math.Ceiling(Math.Sqrt((double)maxC2 * FourthOrderLambdaMax / SubStepTargetLimit));
+ return Math.Max(1, (int)Math.Round(subSteps));
+ }
+
+ /// <summary>Largest value in <paramref name="values"/>, or 0 for an empty or all-negative array.</summary>
+ internal static float MaxOf(float[] values)
+ {
+ float max = 0f;
+ foreach (float value in values)
+ {
+ if (value > max)
+ {
+ max = value;
+ }
+ }
+ return max;
+ }
+
+ /// <summary>
+ /// The lowest (slowest) source level in use, image or object (a level of 0 means "no source" and is
+ /// excluded), or <see cref="NominalDecayLevel"/> when no source has a level above 0. Shared with
+ /// <see cref="GpuWaveSimulator"/>.
+ /// </summary>
+ /// <param name="levelUsed">Per level 0..255: whether an image source uses it.</param>
+ /// <param name="objectSources">Object sources to consider as well.</param>
+ internal static int LowestSourceLevel(bool[] levelUsed, IEnumerable<Emitter> objectSources)
+ {
+ int minActiveLevel = 0;
+ for (int level = 1; level <= 255; level++)
+ {
+ if (levelUsed[level])
+ {
+ minActiveLevel = level;
+ break;
+ }
+ }
+ foreach (Emitter source in objectSources)
+ {
+ if (source.Level > 0 && (minActiveLevel == 0 || source.Level < minActiveLevel))
+ {
+ minActiveLevel = source.Level;
+ }
+ }
+ return minActiveLevel == 0 ? NominalDecayLevel : minActiveLevel;
+ }
+
+ /// <summary>
+ /// Per-step retention factor of the intensity averages: exp(-1/tauSteps) with
+ /// tauSteps = <paramref name="timeDecayFactor"/>·<see cref="NominalDecayLevel"/>/<paramref name="lowestLevel"/>,
+ /// at least 1 step, so the time constant scales inversely with the slowest source's frequency and
+ /// <see cref="Simulation.TimeDecay"/> counts steps at a nominal source level of
+ /// <see cref="NominalDecayLevel"/>. Shared with <see cref="GpuWaveSimulator"/>.
+ /// </summary>
+ internal static float IntensityRetention(double timeDecayFactor, int lowestLevel)
+ {
+ double tauSteps = Math.Max(1.0, timeDecayFactor * NominalDecayLevel / lowestLevel);
+ return (float)Math.Exp(-1.0 / tauSteps);
+ }
+
+ /// <summary>
+ /// Soft-blends the current source values into the field (<c>u = 0.9·u + 0.1·value</c>, see
+ /// <see cref="SourceOpacity"/>): image sources driven by their level's frequency, then object sources
+ /// with their own phase, amplitude, pulse envelope and detach fade. Object sources that have been
+ /// detached for <see cref="Emitter.DetachRampSteps"/> steps or longer are skipped.
+ /// </summary>
+ private void ApplySources()
+ {
+ float[] u = _u;
+ if (_sourceIndex.Length > 0)
+ {
+ // sin(phase + frequency * t) * amplitude is the same for all sources with the same green value:
+ // one sine per level in use, not per source pixel
+ for (int level = 1; level <= 255; level++)
+ {
+ if (_levelUsed[level])
+ {
+ _levelValue[level] = (float)(Math.Sin(_levelFrequency[level] * _time) * _sourceAmplitude);
+ }
+ }
+ for (int i = 0; i < _sourceIndex.Length; i++)
+ {
+ int idx = _sourceIndex[i];
+ u[idx] = u[idx] * SourceOpacity + _levelValue[_sourceLevel[i]] * (1f - SourceOpacity);
+ }
+ }
+ for (int i = 0; i < _objSources.Length; i++)
+ {
+ Emitter source = _objSources[i];
+ // "detach source": once the run reaches the source's detach step, its drive is faded out linearly over
+ // the next DetachRampSteps steps (rather than cut instantly), then it stops driving the field entirely
+ // (not even towards 0) so it releases its hold and stops diffracting waves through that point. A hard
+ // cutoff would otherwise leave a small kink in the forcing right at the detach step, which can ring.
+ float detachFade = 1f;
+ if (source.DetachAfterStep >= 0)
+ {
+ double stepsSinceDetach = _time - source.DetachAfterStep;
+ if (stepsSinceDetach >= Emitter.DetachRampSteps)
+ {
+ continue;
+ }
+ if (stepsSinceDetach > 0.0)
+ {
+ detachFade = (float)(1.0 - stepsSinceDetach / Emitter.DetachRampSteps);
+ }
+ }
+ double freq = _levelFrequency[source.Level];
+ double envelope = 1.0;
+ if (source.Mode != SourceMode.Continuous)
+ {
+ double pulsePos = ComputePulsePosition(i, source, freq, out int offWidth, out bool isFirstCycle);
+ envelope = PulseEnvelope(source, pulsePos, offWidth, isFirstCycle);
+ }
+ float value = (float)(Math.Sin(source.PhaseRadians + freq * _time) * source.Amplitude * envelope) * detachFade;
+ int idx = _objIndex[i];
+ u[idx] = u[idx] * SourceOpacity + value * (1f - SourceOpacity);
+ }
+ }
+
+ /// <summary>
+ /// Returns the element's position within its current off+on cycle (0 = the very start of the "off" span, up
+ /// to but not including its current period, in cycles of the source frequency), and reports the off-width
+ /// in effect for that cycle via <paramref name="offWidth"/>. For most elements
+ /// (<see cref="Emitter.RandomizeOffWidthAmount"/> &lt;= 0) the off-width never changes, so this is a
+ /// pure, stateless function of <see cref="_time"/> - except that the cycle clock is shifted by the
+ /// off-width, so the run starts already at the beginning of the "on" span (pos = offWidth) instead of at the
+ /// start of an off span: a single/non-randomized source sitting silent for its off-width at the very start of
+ /// a run was never the intent, only ever a side effect of the cycle position formula happening to start at 0.
+ /// An element with RandomizeOffWidthAmount &gt; 0 (only ever a composite source with "Randomize off-width"
+ /// ticked) keeps the original start-in-off-state behavior instead, since there the elements are meant to
+ /// desynchronize from a common starting point rather than all begin already mid-pulse. For such an element
+ /// this also owns its runtime state (<see cref="_objCycleAnchor"/>, <see cref="_objCurrentOffWidth"/>): each
+ /// time <see cref="_time"/> has advanced far enough to complete the current cycle, it advances the element's
+ /// cycle anchor and redraws a fresh off-width (uniformly within ± RandomizeOffWidthAmount of
+ /// <see cref="Emitter.OffWidthBase"/>, at least 1, at most <see cref="CycleAdvanceGuard"/> cycles at a
+ /// time) before computing the position - so every source keeps its own, independently-drifting rhythm
+ /// instead of staying locked to whatever it rolled once at generate time.
+ /// <paramref name="isFirstCycle"/> reports whether pos falls within the element's very first off+on cycle
+ /// since the run began - see <see cref="PulseEnvelope"/> for why that matters for the SmoothedSquare shape.
+ /// </summary>
+ /// <param name="i">Index of the source in <see cref="_objSources"/> (selects its anchor/off-width slot).</param>
+ /// <param name="el">The source whose pulse timing is evaluated.</param>
+ /// <param name="freq">Angular frequency of the source in radians per step.</param>
+ /// <param name="offWidth">Receives the off-width (cycles) in effect for the current period.</param>
+ /// <param name="isFirstCycle">Receives whether the source is still in its first period.</param>
+ private double ComputePulsePosition(int i, Emitter el, double freq, out int offWidth, out bool isFirstCycle)
+ {
+ // cycles of the source's own frequency elapsed since t = 0 (not folding in the phase, so the on/off timing
+ // does not shift when only the phase of the wave itself is changed)
+ double cycleClock = freq * _time / (2.0 * Math.PI);
+ if (el.RandomizeOffWidthAmount <= 0)
+ {
+ offWidth = el.OffWidthCycles;
+ int period = el.OnWidthCycles + offWidth;
+ if (period <= 0)
+ {
+ isFirstCycle = true;
+ return 0.0;
+ }
+ // shifted so cycleClock = 0 lands at pos = offWidth (the start of the "on" span), not pos = 0 (the start
+ // of an "off" span) - see the summary above
+ double adjustedClock = cycleClock + offWidth;
+ isFirstCycle = Math.Floor(adjustedClock / period) == 0.0;
+ return adjustedClock - period * Math.Floor(adjustedClock / period); // 0 .. period
+ }
+ else
+ {
+ offWidth = _objCurrentOffWidth[i];
+ int dynPeriod = el.OnWidthCycles + offWidth;
+ if (dynPeriod <= 0)
+ {
+ isFirstCycle = true;
+ return 0.0;
+ }
+ double sinceAnchor = cycleClock - _objCycleAnchor[i];
+ int guard = 0;
+ while (sinceAnchor >= dynPeriod && guard < CycleAdvanceGuard)
+ {
+ _objCycleAnchor[i] += dynPeriod;
+ sinceAnchor -= dynPeriod;
+ // the same xorshift32 draw as the GPU kernel (apply_object_sources), so both engines produce
+ // the same gap sequence from the same seed
+ uint state = Emitter.Xorshift32(_objRngState[i]);
+ _objRngState[i] = state;
+ int amount = el.RandomizeOffWidthAmount;
+ offWidth = Math.Max(1, el.OffWidthBase + (int)(state % (uint)(2 * amount + 1)) - amount);
+ _objCurrentOffWidth[i] = offWidth;
+ dynPeriod = el.OnWidthCycles + offWidth;
+ guard++;
+ }
+ if (sinceAnchor < 0.0)
+ {
+ sinceAnchor = 0.0; // should not happen (_time only increases), guarded for safety
+ }
+ // the anchor only ever advances (above) once a cycle has actually completed, so it still reading its
+ // initial 0 means no cycle has completed yet - we are still in the element's very first (off-first) cycle
+ isFirstCycle = _objCycleAnchor[i] == 0.0;
+ return sinceAnchor;
+ }
+ }
+
+ /// <summary>
+ /// Amplitude envelope (0..1) of a pulsed source: the source is "off" for <paramref name="offWidth"/> cycles
+ /// of its own frequency, then "on" for <see cref="Emitter.OnWidthCycles"/> cycles, repeating (off
+ /// precedes on so that, at the start of a run, every source is silent for its own off-width before its first
+ /// pulse, rather than every source firing simultaneously at t = 0; a non-positive period yields 1). Within
+ /// the "on" span the amplitude is shaped by the pulse shape: Gaussian tapers smoothly to (about) 0 at both
+ /// ends of the "on" span (a bell centred in the on-window with σ = on-width/6), and SmoothedSquare rises and
+ /// falls quickly (an atan-smoothed square wave, avoiding a hard on/off step that would ring the field).
+ /// <paramref name="pos"/> and <paramref name="offWidth"/> come from <see cref="ComputePulsePosition"/>, as
+ /// does <paramref name="isFirstCycle"/> - see the SmoothedSquare branch for why that one matters.
+ /// </summary>
+ /// <param name="el">The source; supplies the pulse shape and on-width.</param>
+ /// <param name="pos">Position within the period in cycles, as returned by <see cref="ComputePulsePosition"/>.</param>
+ /// <param name="offWidth">Off-width (cycles) in effect for this period.</param>
+ /// <param name="isFirstCycle">Whether this is the first period (suppresses the tail wrapping of the smoothed square).</param>
+ private static double PulseEnvelope(Emitter el, double pos, int offWidth, bool isFirstCycle)
+ {
+ int onWidthCycles = el.OnWidthCycles;
+ int period = onWidthCycles + offWidth;
+ if (period <= 0)
+ {
+ return 1.0;
+ }
+ double onPos = pos - offWidth; // 0 .. onWidth, position within the "on" span
+ if (el.PulseShape == PulseShape.Gaussian)
+ {
+ if (onPos < 0.0)
+ {
+ return 0.0;
+ }
+ double center = onWidthCycles / 2.0;
+ double sigma = Math.Max(onWidthCycles / 6.0, 1E-06);
+ double z = (onPos - center) / sigma;
+ return Math.Exp(-0.5 * z * z);
+ }
+ // a flat-topped pulse (envelope 1 while "on", 0 while "off") with a short, FIXED-width (in cycles, not a
+ // fraction of the on/off span) smoothed edge at the rise and the fall, evaluated on a coordinate shifted
+ // so the "on" span starts at 0 (folding around the period).
+ if (onPos < 0.0 && !isFirstCycle)
+ {
+ // wrapping onPos forward by a full period makes it continue the falling tail of the on-span that
+ // JUST ended - correct from the second off-span onward, where that on-span really happened. A
+ // source's very first off-span (isFirstCycle) has no real preceding on-emission to continue from, so
+ // wrapping there would fabricate one: pos = 0 would land exactly on that phantom falling edge and
+ // start the run at envelope ~0.5 instead of ~0, emitting a spurious one-cycle "blip" before the
+ // source actually goes quiet. Left un-wrapped (deeply negative) instead, riseArg/fallArg below
+ // correctly place it far from both edges, so the envelope is (very close to) 0 until the real rising edge.
+ onPos += period;
+ }
+ const double EdgeWidth = 0.35;
+ double fallArg = onPos - onWidthCycles; // 0 at the falling edge, grows past it
+ double riseArg = onPos; // 0 at the rising edge
+ if (riseArg > period / 2.0)
+ {
+ riseArg -= period; // signed distance to the *nearest* rising edge
+ }
+ double rise = 0.5 + Math.Atan(riseArg / EdgeWidth) / Math.PI;
+ double fall = 0.5 - Math.Atan(fallArg / EdgeWidth) / Math.PI;
+ return rise * fall;
+ }
+
+ /// <summary>
+ /// One leapfrog sub-step over all interior cells, parallelised over row bands:
+ /// <c>next = u + (u - uPrev)·d + lap·c2·c2Mult</c>, where d is the per-cell damping (1 = lossless, applied
+ /// to the velocity term) and lap is the Laplacian: the 9-point stencil (corners <see cref="KernelCorner"/>,
+ /// edges <see cref="KernelEdge"/>, centre -1), or for cells at least two cells away from the border and
+ /// when enabled, the 4th-order 5-point-per-axis stencil (<see cref="FourthOrderFar"/>,
+ /// <see cref="FourthOrderNear"/>, <see cref="FourthOrderCenter"/>). Each cell reads only <see cref="_u"/>
+ /// and overwrites its own slot in <see cref="_uPrev"/>, so the bands do not race; afterwards the two
+ /// buffers are swapped. Border cells are never written and stay 0.
+ /// When tracking, the intensity is a cascade of two exponential moving averages of u² (retention
+ /// <see cref="_intensityAlpha"/>); the output mixes both stages (<see cref="IntensityBlend"/>) times
+ /// <see cref="_intensityScale"/>. The damping array is <see cref="_damping"/> (the scene's d itself when
+ /// <see cref="_subSteps"/> = 1, otherwise its 1/_subSteps-th root) and c² is scaled by
+ /// <see cref="_c2Mult"/> (1.0F, an exact no-op, when _subSteps = 1).
+ /// </summary>
+ /// <param name="updateIntensity">
+ /// Whether to update the intensity buffers in this sub-step: only on the last one, so that its own exponential
+ /// averaging still runs once per <see cref="AdvanceOneStep"/> call, from the field after all of its sub-steps,
+ /// matching its calibration (<see cref="_intensityAlpha"/>) regardless of how many sub-steps that call takes.
+ /// </param>
+ private void UpdateField(bool updateIntensity)
+ {
+ // Local copies for the parallel loop: the lambda should not touch fields.
+ float[] u = _u;
+ float[] uPrev = _uPrev;
+ float[] c2 = _c2;
+ float[] d = _damping;
+ float[]? intensity = _intensity;
+ float[]? stage1 = _intensityStage1;
+ float[]? intensityOut = _intensityOut;
+ bool track = intensity != null && stage1 != null && intensityOut != null && updateIntensity;
+ int stride = _stride;
+ int w = _width;
+ int h = _height;
+ bool use4th = _use4thOrderLaplacian;
+ float mult = _c2Mult;
+ float alpha = _intensityAlpha;
+ float scale = _intensityScale;
+ int bands = Math.Min(h, Environment.ProcessorCount * 4);
+
+ Parallel.For(0, bands, band =>
+ {
+ int rowStart = (int)((long)h * band / bands);
+ int rowEnd = (int)((long)h * (band + 1) / bands) - 1;
+ for (int y = rowStart; y <= rowEnd; y++)
+ {
+ int idx = (y + 1) * stride + 1;
+ // the 4th order stencil reaches 2 cells away, so it is only safe for domain rows/columns that
+ // have that much room before the (1 cell wide) border - the outermost ring of the domain (y = 0,
+ // y = h - 1, and, per column below, x = 0, x = w - 1) falls back to the original 3x3 kernel
+ bool rowAllows4th = use4th && y >= 1 && y <= h - 2;
+ for (int x = 0; x < w; x++)
+ {
+ float center = u[idx];
+ float laplacian;
+ if (rowAllows4th && x >= 1 && x <= w - 2)
+ {
+ laplacian = FourthOrderFar * (u[idx - 2] + u[idx + 2] + u[idx - 2 * stride] + u[idx + 2 * stride])
+ + FourthOrderNear * (u[idx - 1] + u[idx + 1] + u[idx - stride] + u[idx + stride])
+ + FourthOrderCenter * center;
+ }
+ else
+ {
+ laplacian = KernelCorner * (u[idx - stride - 1] + u[idx - stride + 1] + u[idx + stride - 1] + u[idx + stride + 1])
+ + KernelEdge * (u[idx - 1] + u[idx + 1] + u[idx - stride] + u[idx + stride])
+ - center;
+ }
+ // the new value replaces the previous one (each cell only reads its own previous value)
+ float next = center + (center - uPrev[idx]) * d[idx] + laplacian * c2[idx] * mult;
+ uPrev[idx] = next;
+ if (track)
+ {
+ // two cascaded one-pole stages (see the class remarks), blended with the 1-stage
+ // result (IntensityBlend) for the shown/exported intensity rather than using the full
+ // 2-stage cascade outright
+ float s1 = stage1![idx] * alpha + next * next * (1f - alpha);
+ stage1[idx] = s1;
+ float s2 = intensity![idx] * alpha + s1 * (1f - alpha);
+ intensity[idx] = s2;
+ intensityOut![idx] = (s1 * (1f - IntensityBlend) + s2 * IntensityBlend) * scale;
+ }
+ idx++;
+ }
+ }
+ });
+
+ // the array that received the new values is now the current field
+ _uPrev = u;
+ _u = uPrev;
+ }
+
+ /// <summary>Weight of the four diagonal neighbours in the 9-point Laplacian.</summary>
+ private const float KernelCorner = 0.066f;
+
+ /// <summary>Weight of the four edge neighbours in the 9-point Laplacian (4·corner + 4·edge = 1 balances the centre weight of -1).</summary>
+ private const float KernelEdge = 0.184f;
+
+ /// <summary>Fraction of the old field value kept when a source value is blended in (soft source injection).</summary>
+ private const float SourceOpacity = 0.9f;
+
+ /// <summary>
+ /// Nominal source level (of 255) that <see cref="Simulation.TimeDecay"/>'s steps count is
+ /// calibrated against - see that property's doc and <see cref="IntensityRetention"/>; also the level assumed
+ /// when no source has a level above 0 (<see cref="LowestSourceLevel"/>).
+ /// </summary>
+ internal const int NominalDecayLevel = 100;
+
+ /// <summary>
+ /// How much of the fully cascaded (2-stage, 12 dB/octave) intensity is blended into the shown/exported value
+ /// versus the 1-stage (6 dB/octave) intensity (0 = first stage only, 1 = second stage only) - see the class
+ /// remarks; 0.5 is the middle ground, about 9 dB/octave.
+ /// </summary>
+ private const float IntensityBlend = 0.5f;
+
+ // the 4th order "cross" stencil's coefficients: (-f(-2) + 16f(-1) - 30f(0) + 16f(+1) - f(+2)) / 12 per axis,
+ // the two axes' center terms combined into one (-60/12 = -5) since both apply to the same center pixel
+
+ /// <summary>4th-order stencil weight of the nearest neighbours (16 / 12).</summary>
+ private const float FourthOrderNear = 4.0f / 3.0f;
+
+ /// <summary>4th-order stencil weight of the second-nearest neighbours (-1 / 12).</summary>
+ private const float FourthOrderFar = -1.0f / 12.0f;
+
+ /// <summary>4th-order stencil centre weight (-60 / 12, the two axes' centre terms combined).</summary>
+ private const float FourthOrderCenter = -5f;
+
+ /// <summary>
+ /// The 4th order stencil's largest |eigenvalue| (at the grid's highest spatial frequency, kx = ky = π):
+ /// 2 * (-1/12 * cos(2k) + 4/3 * cos(k) - 5/2)|k=π per axis, summed over x and y = -32/3. Used by the
+ /// stability estimate in <see cref="ComputeSubSteps"/>.
+ /// </summary>
+ private const float FourthOrderLambdaMax = 32.0f / 3.0f;
+
+ /// <summary>
+ /// How far below the hard stability limit (c² * |λmax| &lt;= 4) sub-stepping aims to stay - chosen to give
+ /// roughly the same safety margin the 3x3 kernel already has in practice (its own c² * |λmax| is about 1.8
+ /// at the highest c² the app allows, i.e. about 2.2 times under the limit of 4).
+ /// </summary>
+ private const float SubStepTargetLimit = 2f;
+
+ /// <summary>Upper bound on the periods <see cref="ComputePulsePosition"/> advances at once (guards against a tiny period).</summary>
+ private const int CycleAdvanceGuard = 1000;
+
+ /// <summary>Scene width in cells.</summary>
+ private readonly int _width;
+
+ /// <summary>Scene height in cells.</summary>
+ private readonly int _height;
+
+ /// <summary>Padded row pitch (<see cref="_width"/> + 2).</summary>
+ private readonly int _stride;
+
+ /// <summary>Whether interior cells use the 4th-order stencil.</summary>
+ private readonly bool _use4thOrderLaplacian;
+
+ /// <summary>
+ /// Leapfrog sub-steps per simulation step (see the class remarks); 1 (no sub-stepping) unless the 4th-order
+ /// stencil is on and this scene's highest c² needs it.
+ /// </summary>
+ private readonly int _subSteps;
+
+ /// <summary>
+ /// Per-cell damping applied per sub-step (padded), 1 = lossless: the scene's map itself when
+ /// <see cref="_subSteps"/> = 1 (same array, so multiplying by it is bit-for-bit identical to before),
+ /// otherwise a separate array of it raised to the power 1/<see cref="_subSteps"/>.
+ /// </summary>
+ private readonly float[] _damping;
+
+ /// <summary>1/<see cref="_subSteps"/>², scaling c² for the shorter sub-step (or exactly 1.0F when _subSteps = 1, a bit-for-bit no-op multiply).</summary>
+ private readonly float _c2Mult;
+
+ /// <summary>
+ /// The intensity's exponential-average decay factor for this simulation (replaces the old fixed 0.98F) - see
+ /// <see cref="Simulation.TimeDecay"/>'s doc and <see cref="IntensityRetention"/>.
+ /// </summary>
+ private float _intensityAlpha;
+
+ /// <summary><see cref="Simulation.TimeDecay"/>, kept so <see cref="SetEmitters"/> can re-derive <see cref="_intensityAlpha"/>.</summary>
+ private readonly double _timeDecay;
+
+ /// <summary><see cref="Simulation.IntensityScale"/>, the multiplier on the intensity output - see that property's doc.</summary>
+ private readonly float _intensityScale;
+
+ /// <summary>Current field (padded); exchanged with <see cref="_uPrev"/> after every sub-step.</summary>
+ private float[] _u;
+
+ /// <summary>Previous field (padded); receives the new field during a sub-step and then becomes <see cref="_u"/>.</summary>
+ private float[] _uPrev;
+
+ /// <summary>Per-cell c² = 1/n² (padded; border cells 0).</summary>
+ private readonly float[] _c2;
+
+ /// <summary>
+ /// Second-stage running average of u² (padded): the 2-stage cascade's internal recursive state (12 dB/octave),
+ /// no longer what is shown/exported - see <see cref="_intensityOut"/> and the class remarks. Null when
+ /// intensity is not tracked.
+ /// </summary>
+ private readonly float[]? _intensity;
+
+ /// <summary>
+ /// The first of the two cascaded exponential-filter stages that make up the intensity (padded; see the class
+ /// remarks), or null when intensity is not tracked, same as <see cref="_intensity"/>.
+ /// </summary>
+ private readonly float[]? _intensityStage1;
+
+ /// <summary>
+ /// The blend of <see cref="_intensityStage1"/> and <see cref="_intensity"/> (<see cref="IntensityBlend"/>)
+ /// times <see cref="_intensityScale"/> that is actually shown/exported as <see cref="IntensityData"/>, or null
+ /// when not tracked.
+ /// </summary>
+ private readonly float[]? _intensityOut;
+
+ /// <summary>Padded cell index of every image source.</summary>
+ private readonly int[] _sourceIndex;
+
+ /// <summary>Green level (1..255) of every image source, indexing <see cref="_levelFrequency"/>.</summary>
+ private readonly byte[] _sourceLevel;
+
+ /// <summary>Angular frequency in radians per step for each level 0..255: level/255 × 0.5 × sourceFrequencyScale.</summary>
+ private readonly double[] _levelFrequency = new double[256];
+
+ /// <summary>Which levels have at least one image source; only those get a value computed per step.</summary>
+ private readonly bool[] _levelUsed = new bool[256];
+
+ /// <summary>
+ /// Scratch for <see cref="ApplySources"/>: the source value of each level in use for the current step,
+ /// computed once per level and shared by every image source of that level. Kept as a field so it is not
+ /// re-allocated every step; written and read only by the driving thread.
+ /// </summary>
+ private readonly float[] _levelValue = new float[256];
+
+ /// <summary>Peak amplitude of the image sources.</summary>
+ private readonly double _sourceAmplitude;
+
+ /// <summary>Object sources that lie inside the canvas.</summary>
+ private Emitter[] _objSources = [];
+
+ /// <summary>Padded cell index of every entry in <see cref="_objSources"/>.</summary>
+ private int[] _objIndex = [];
+
+ /// <summary>Per object source (parallel to <see cref="_objSources"/>): xorshift32 state for the off-width redraws, seeded from <see cref="Emitter.RngSeed"/>; used by the driving thread only.</summary>
+ private uint[] _objRngState = [];
+
+ /// <summary>
+ /// Per object source (parallel to <see cref="_objSources"/>): the cycle-clock value (in cycles of the
+ /// element's own frequency) at which its current off+on cycle started. Runtime state for pulsed sources
+ /// whose off-width is re-randomized at runtime (<see cref="Emitter.RandomizeOffWidthAmount"/>);
+ /// elements that never re-randomize (the common case) never touch it: their position within the cycle is
+ /// a pure function of <see cref="_time"/>, exactly as before.
+ /// </summary>
+ private double[] _objCycleAnchor = [];
+
+ /// <summary>Per object source (parallel to <see cref="_objSources"/>): off-width (cycles) in effect for its current period; see <see cref="_objCycleAnchor"/>.</summary>
+ private int[] _objCurrentOffWidth = [];
+
+ /// <summary>Elapsed time in steps.</summary>
+ private double _time;
+
+ /// <summary>Probe layout in use, or null when no probes are set.</summary>
+ private ProbeSampler? _sampler;
+
+ /// <summary>Point-probe samples gathered since the last <see cref="TakeProbeSamples"/>, one list per probe.</summary>
+ private readonly List<List<float>> _probeValues = [];
+
+ /// <summary>Running per-pixel intensity sums for integrated line probes (null entries for other probes); null without a sampler.</summary>
+ private double[]?[]? _profileTotals;
+}
diff --git a/WaveDude/Model/ProjectWatcher.cs b/WaveDude/Model/ProjectWatcher.cs
new file mode 100644
index 0000000..5f6092f
--- /dev/null
+++ b/WaveDude/Model/ProjectWatcher.cs
@@ -0,0 +1,134 @@
+using System.Collections.Specialized;
+using System.ComponentModel;
+
+namespace WaveDude.Model;
+
+/// <summary>What changed in a watched project: the object and the property, or a list when items were added or removed.</summary>
+/// <param name="Item">The object that changed (a <see cref="Scene"/>, <see cref="Source"/>, …) or the collection.</param>
+/// <param name="Property">The property name, or null for a collection change.</param>
+public sealed record ProjectChange(object Item, string? Property)
+{
+ /// <summary>
+ /// Whether the change alters what a simulation computes: the scene, the solver settings, the seed or a
+ /// source. Display settings, probes and the description do not.
+ /// </summary>
+ public bool AffectsSimulation => Item switch
+ {
+ Scene or Simulation or Source or SourceArray => true,
+ Project => Property is nameof(Project.Seed) or nameof(Project.Scene) or nameof(Project.Simulation) or nameof(Project.Sources),
+ NotifyCollectionChangedEventArgs => true,
+ _ => false,
+ };
+}
+
+/// <summary>
+/// Raises one event for any change anywhere in a <see cref="Project"/>: the nested settings objects, the
+/// source and probe lists and their items (re-subscribing when objects are replaced or items come and go).
+/// The model has no aggregate notification of its own; this is it. UI thread, like the model.
+/// </summary>
+public sealed class ProjectWatcher : IDisposable
+{
+ private readonly Project _project;
+ private readonly HashSet<INotifyPropertyChanged> _subscribed = [];
+ private readonly HashSet<INotifyCollectionChanged> _collections = [];
+
+ /// <param name="project">The project to watch for its lifetime (or until <see cref="Dispose"/>).</param>
+ public ProjectWatcher(Project project)
+ {
+ _project = project;
+ project.PropertyChanged += OnProjectPropertyChanged;
+ Resubscribe();
+ }
+
+ /// <summary>Something in the project changed.</summary>
+ public event EventHandler<ProjectChange>? Changed;
+
+ /// <summary>Stops watching.</summary>
+ public void Dispose()
+ {
+ _project.PropertyChanged -= OnProjectPropertyChanged;
+ Unsubscribe();
+ }
+
+ private void OnProjectPropertyChanged(object? sender, PropertyChangedEventArgs e)
+ {
+ if (e.PropertyName is nameof(Project.Scene) or nameof(Project.Simulation) or nameof(Project.Display) or nameof(Project.Sources) or nameof(Project.Probes))
+ {
+ Resubscribe();
+ }
+ Changed?.Invoke(this, new ProjectChange(_project, e.PropertyName));
+ }
+
+ private void OnItemPropertyChanged(object? sender, PropertyChangedEventArgs e)
+ {
+ if (sender is Source && e.PropertyName == nameof(Source.Array) || sender is Display && e.PropertyName is nameof(Display.Field) or nameof(Display.Intensity) or nameof(Display.Video))
+ {
+ Resubscribe();
+ }
+ if (sender != null)
+ {
+ Changed?.Invoke(this, new ProjectChange(sender, e.PropertyName));
+ }
+ }
+
+ private void OnCollectionChanged(object? sender, NotifyCollectionChangedEventArgs e)
+ {
+ Resubscribe();
+ Changed?.Invoke(this, new ProjectChange(e, null));
+ }
+
+ private void Resubscribe()
+ {
+ Unsubscribe();
+ Subscribe(_project.Scene);
+ Subscribe(_project.Simulation);
+ Subscribe(_project.Display);
+ Subscribe(_project.Display.Field);
+ Subscribe(_project.Display.Intensity);
+ Subscribe(_project.Display.Video);
+ SubscribeCollection(_project.Sources);
+ SubscribeCollection(_project.Probes);
+ foreach (Source source in _project.Sources)
+ {
+ Subscribe(source);
+ if (source.Array != null)
+ {
+ Subscribe(source.Array);
+ }
+ }
+ foreach (Probe probe in _project.Probes)
+ {
+ Subscribe(probe);
+ }
+ }
+
+ private void Subscribe(INotifyPropertyChanged item)
+ {
+ if (_subscribed.Add(item))
+ {
+ item.PropertyChanged += OnItemPropertyChanged;
+ }
+ }
+
+ private void SubscribeCollection(INotifyCollectionChanged collection)
+ {
+ if (_collections.Add(collection))
+ {
+ collection.CollectionChanged += OnCollectionChanged;
+ }
+ }
+
+ private void Unsubscribe()
+ {
+ foreach (INotifyPropertyChanged item in _subscribed)
+ {
+ item.PropertyChanged -= OnItemPropertyChanged;
+ }
+ _subscribed.Clear();
+ foreach (INotifyCollectionChanged collection in _collections)
+ {
+ collection.CollectionChanged -= OnCollectionChanged;
+ }
+ _collections.Clear();
+ }
+}
diff --git a/WaveDude/Model/Simulation.cs b/WaveDude/Model/Simulation.cs
index 19bf3ae..320eb38 100644
--- a/WaveDude/Model/Simulation.cs
+++ b/WaveDude/Model/Simulation.cs
@@ -26,7 +26,6 @@ public sealed class Simulation : ObservableObject
private int _steps = DefaultSteps;
private int _visualizeEvery = DefaultVisualizeEvery;
- private bool _gpu;
private bool _fourthOrderLaplacian = true;
private double _waveSpeed = DefaultWaveSpeed;
private double _timeDecay = DefaultTimeDecay;
@@ -56,18 +55,6 @@ public sealed class Simulation : ObservableObject
set => SetProperty(ref _visualizeEvery, value);
}
- /// <summary>Run on the OpenCL engine when a usable GPU is found; otherwise on the CPU.</summary>
- [XmlAttribute]
- [DefaultValue(false)]
- [Category("Solver")]
- [DisplayName("Use GPU")]
- [Description("Run on the OpenCL engine when a usable GPU is found; otherwise on the CPU.")]
- public bool Gpu
- {
- get => _gpu;
- set => SetProperty(ref _gpu, value);
- }
-
/// <summary>Use the 4th-order Laplacian stencil with sub-stepping instead of the 9-point one: more accurate, slower.</summary>
[XmlAttribute]
[DefaultValue(true)]
@@ -132,7 +119,7 @@ public sealed class Simulation : ObservableObject
[XmlIgnore]
[Browsable(false)]
public bool IsDefault =>
- Steps == DefaultSteps && VisualizeEvery == DefaultVisualizeEvery && !Gpu && FourthOrderLaplacian
+ Steps == DefaultSteps && VisualizeEvery == DefaultVisualizeEvery && FourthOrderLaplacian
&& WaveSpeed == DefaultWaveSpeed && TimeDecay == DefaultTimeDecay
&& SourceFrequencyScale == DefaultSourceFrequencyScale && IntensityScale == DefaultIntensityScale;
@@ -148,5 +135,5 @@ public sealed class Simulation : ObservableObject
}
/// <summary>Step count and engine, for display in a property grid.</summary>
- public override string ToString() => $"{Steps} steps, {(Gpu ? "GPU" : "CPU")}";
+ public override string ToString() => $"{Steps} steps";
}
diff --git a/WaveDude/Probes/ProbeCollector.cs b/WaveDude/Probes/ProbeCollector.cs
new file mode 100644
index 0000000..8e687b8
--- /dev/null
+++ b/WaveDude/Probes/ProbeCollector.cs
@@ -0,0 +1,157 @@
+using WaveDude.Engine;
+
+namespace WaveDude.Probes;
+
+/// <summary>
+/// Accumulates probe samples and line profiles from the engine into <see cref="ProbeTrace"/>s and hands
+/// incremental batches to the UI. Lives entirely on the run's worker: <see cref="Collect"/> /
+/// <see cref="CollectProfiles"/> are called after every visualised step and about every 50 ms;
+/// <see cref="TakeForUi"/> then packages what arrived since the previous batch into a <see cref="ProbeUpdate"/>,
+/// which the run raises as <c>ProbesUpdated</c> and the UI applies to its own traces. The UI thread never touches
+/// this object itself.
+/// </summary>
+public sealed class ProbeCollector
+{
+ /// <summary>Creates one empty <see cref="ProbeTrace"/> and one pending sample list per probe of <paramref name="sampler"/>.</summary>
+ public ProbeCollector(ProbeSampler sampler)
+ {
+ _pending = [];
+ _sampler = sampler;
+ Traces = new ProbeTrace[sampler.Count];
+ _totals = new double[sampler.Count];
+ _fresh = new bool[sampler.Count];
+ for (int i = 0; i < sampler.Count; i++)
+ {
+ Traces[i] = new ProbeTrace();
+ _pending.Add(new List<float>());
+ }
+ }
+
+ /// <summary>
+ /// Drains the engine's buffered point-probe samples (<see cref="IWaveEngine.TakeProbeSamples"/>, one value
+ /// per step since the previous call) into the series traces and the pending UI batch. For cumulative
+ /// probes (point + IntegratedIntensity) the per-step intensities are replaced in place by their running
+ /// sum, which stays at 0 for steps before the probe's start step. Does nothing when there are no point
+ /// probes.
+ /// </summary>
+ /// <param name="engine">Engine that buffered the samples since the previous call.</param>
+ /// <param name="stepsDone">Steps completed so far; recorded as <see cref="ProbeTrace.StepsSampled"/>.</param>
+ public void Collect(IWaveEngine engine, int stepsDone)
+ {
+ if (!_sampler.HasSeries)
+ {
+ return;
+ }
+ float[][] samples = engine.TakeProbeSamples();
+ // the number of steps already processed before this batch, so the absolute step of values[j] can be worked
+ // out below (one value per step, in order) - needed to purge a cumulative total from before "start after step"
+ int batchStartStep = _lastStepsDone;
+ for (int i = 0; i < _sampler.Count; i++)
+ {
+ if (_sampler.IsProfile[i] || i >= samples.Length)
+ {
+ continue;
+ }
+ float[] values = samples[i];
+ if (values.Length == 0)
+ {
+ continue;
+ }
+ if (_sampler.Cumulative[i])
+ {
+ bool useStartAfterStep = _sampler.UseStartAfterStep[i];
+ int startAfterStep = _sampler.StartAfterStep[i];
+ for (int j = 0; j < values.Length; j++)
+ {
+ // sample j belongs to step batchStartStep + j + 1 (one sample per step)
+ if (useStartAfterStep && batchStartStep + j + 1 < startAfterStep)
+ {
+ // before recording starts: keep the running total at zero, purging any intensity that
+ // arrived earlier, so the total does not jump the moment recording starts
+ _totals[i] = 0.0;
+ values[j] = 0f;
+ }
+ else
+ {
+ _totals[i] += values[j];
+ values[j] = (float)_totals[i];
+ }
+ }
+ }
+ Traces[i].Series.Add(values);
+ Traces[i].StepsSampled = stepsDone;
+ _pending[i].AddRange(values);
+ }
+ _lastStepsDone = stepsDone;
+ }
+
+ /// <summary>
+ /// Reads the current line-probe profiles from the engine (<see cref="IWaveEngine.ReadProbeProfiles"/>),
+ /// stores them in the traces and marks them as fresh for the next <see cref="TakeForUi"/>. Does nothing
+ /// when there are no line probes. The runner only calls this when a frame or UI batch actually needs the
+ /// profiles, since the GPU engine has to read them back from the device.
+ /// </summary>
+ /// <param name="engine">Engine holding the current profiles.</param>
+ /// <param name="stepsDone">Steps completed so far; recorded as <see cref="ProbeTrace.StepsSampled"/>.</param>
+ public void CollectProfiles(IWaveEngine engine, int stepsDone)
+ {
+ if (!_sampler.HasProfiles)
+ {
+ return;
+ }
+ float[]?[] profiles = engine.ReadProbeProfiles();
+ for (int i = 0; i < _sampler.Count; i++)
+ {
+ if (!_sampler.IsProfile[i] || i >= profiles.Length || profiles[i] is not { } profile)
+ {
+ continue;
+ }
+ Traces[i].SetProfile(profile, _sampler.Lengths[i]);
+ Traces[i].StepsSampled = stepsDone;
+ _fresh[i] = true;
+ }
+ _lastStepsDone = stepsDone;
+ }
+
+ /// <summary>
+ /// Drains the pending series samples and any freshly updated profiles into a <see cref="ProbeUpdate"/> for
+ /// the UI thread. Sample arrays are copied; profile arrays are handed over by reference, which is safe
+ /// because the engine allocates a new array on every read and nobody writes to it afterwards.
+ /// </summary>
+ /// <returns>A batch covering everything since the previous call; never null.</returns>
+ public ProbeUpdate TakeForUi()
+ {
+ int count = _sampler.Count;
+ float[][] samples = new float[count][];
+ float[]?[] profiles = new float[count][];
+ for (int i = 0; i < count; i++)
+ {
+ samples[i] = _pending[i].ToArray();
+ _pending[i].Clear();
+ if (_fresh[i])
+ {
+ profiles[i] = Traces[i].Profile;
+ _fresh[i] = false;
+ }
+ }
+ return new ProbeUpdate(samples, profiles, _sampler.Lengths, _lastStepsDone);
+ }
+
+ /// <summary>Worker-side trace per probe (index parallel to the sampler).</summary>
+ public ProbeTrace[] Traces { get; }
+
+ /// <summary>Per-probe pixel indices, flags and line lengths; immutable.</summary>
+ private readonly ProbeSampler _sampler;
+
+ /// <summary>Per probe: running sum for cumulative point probes, kept in double to limit drift; unused entries stay 0.</summary>
+ private readonly double[] _totals;
+
+ /// <summary>Per probe: series values collected since the last <see cref="TakeForUi"/>.</summary>
+ private readonly List<List<float>> _pending;
+
+ /// <summary>Per probe: true when a new profile arrived since the last <see cref="TakeForUi"/>.</summary>
+ private readonly bool[] _fresh;
+
+ /// <summary>Steps completed at the most recent collect call; numbers the samples of the next batch and is reported as <see cref="ProbeUpdate.StepsDone"/>.</summary>
+ private int _lastStepsDone;
+}
diff --git a/WaveDude/Probes/ProbeSampler.cs b/WaveDude/Probes/ProbeSampler.cs
new file mode 100644
index 0000000..69dd908
--- /dev/null
+++ b/WaveDude/Probes/ProbeSampler.cs
@@ -0,0 +1,201 @@
+using WaveDude.Engine;
+using WaveDude.Model;
+
+namespace WaveDude.Probes;
+
+/// <summary>
+/// What a simulation engine has to measure for the probes: precomputed per-probe pixel indices (into the
+/// padded field grid, see <see cref="IWaveEngine"/>) and what is read there, the field or the intensity.
+/// <list type="bullet">
+/// <item><description>Point probe: one pixel; the engine measures its value at every step (a series).</description></item>
+/// <item><description>Point, integrated: the same, but the values are added up over time (done by <see cref="ProbeCollector"/>).</description></item>
+/// <item><description>Line probe: the pixels on the line A-B; the engine gives the values along the line when asked (a profile).</description></item>
+/// <item><description>Line, integrated: the engine adds the intensity of every pixel of the line up over the steps.</description></item>
+/// </list>
+/// Built once per run by <see cref="Build"/> on the run's worker from the run's probe specs and canvas size,
+/// then handed to the engine (<see cref="IWaveEngine.SetProbes"/>) and to the <see cref="ProbeCollector"/>.
+/// All per-probe arrays are indexed by the probe's position in that list. Immutable after construction, so it
+/// may be read from any thread.
+/// </summary>
+public sealed class ProbeSampler
+{
+ /// <summary>Stores the per-probe arrays and derives the aggregate <see cref="NeedsIntensity"/>, <see cref="HasSeries"/> and <see cref="HasProfiles"/> flags.</summary>
+ private ProbeSampler(int[][] pixels, bool[] isProfile, bool[] useIntensity, bool[] cumulative, bool[] integrate, double[] lengths, bool[] useStartAfterStep, int[] startAfterStep)
+ {
+ Count = pixels.Length;
+ Pixels = pixels;
+ IsProfile = isProfile;
+ UseIntensity = useIntensity;
+ Cumulative = cumulative;
+ Integrate = integrate;
+ Lengths = lengths;
+ UseStartAfterStep = useStartAfterStep;
+ StartAfterStep = startAfterStep;
+ for (int i = 0; i < Count; i++)
+ {
+ if (useIntensity[i])
+ {
+ NeedsIntensity = true;
+ }
+ if (isProfile[i])
+ {
+ HasProfiles = true;
+ }
+ else
+ {
+ HasSeries = true;
+ }
+ }
+ }
+
+ /// <summary>
+ /// Builds the sampler for a canvas of <paramref name="w"/> x <paramref name="h"/> pixels. Probe positions
+ /// are clamped into the canvas; point probes get a single pixel index, line probes the Bresenham path from
+ /// A to B. The padded grid stride is <paramref name="w"/> + 2.
+ /// </summary>
+ /// <param name="probes">Run probe list; the per-probe arrays of the result use the same order.</param>
+ /// <param name="w">Canvas width in pixels.</param>
+ /// <param name="h">Canvas height in pixels.</param>
+ public static ProbeSampler Build(IReadOnlyList<ProbeSpec> probes, int w, int h)
+ {
+ int count = probes.Count;
+ int[][] pixels = new int[count][];
+ bool[] isProfile = new bool[count];
+ bool[] useIntensity = new bool[count];
+ bool[] cumulative = new bool[count];
+ bool[] integrate = new bool[count];
+ double[] lengths = new double[count];
+ bool[] useStartAfterStep = new bool[count];
+ int[] startAfterStep = new int[count];
+ int stride = w + 2;
+ for (int i = 0; i < count; i++)
+ {
+ ProbeSpec probe = probes[i];
+ int ax = Clamp(probe.AX, w - 1);
+ int ay = Clamp(probe.AY, h - 1);
+ bool isIntegrated = probe.Measurement == ProbeMeasurement.IntegratedIntensity;
+ if (probe.Kind == ProbeKind.Line)
+ {
+ int bx = Clamp(probe.BX, w - 1);
+ int by = Clamp(probe.BY, h - 1);
+ pixels[i] = LinePixels(ax, ay, bx, by, stride);
+ isProfile[i] = true;
+ integrate[i] = isIntegrated;
+ double dx = bx - ax;
+ double dy = by - ay;
+ lengths[i] = Math.Sqrt(dx * dx + dy * dy);
+ }
+ else
+ {
+ pixels[i] = new int[] { (ay + 1) * stride + ax + 1 };
+ cumulative[i] = isIntegrated;
+ }
+ // Intensity and IntegratedIntensity both read the intensity buffer.
+ useIntensity[i] = probe.Measurement != ProbeMeasurement.Amplitude;
+ useStartAfterStep[i] = probe.StartAfter > 0;
+ startAfterStep[i] = probe.StartAfter;
+ }
+ return new ProbeSampler(pixels, isProfile, useIntensity, cumulative, integrate, lengths, useStartAfterStep, startAfterStep);
+ }
+
+ /// <summary>Clamps <paramref name="value"/> into [0, <paramref name="maxValue"/>].</summary>
+ private static int Clamp(int value, int maxValue)
+ {
+ if (value < 0)
+ {
+ return 0;
+ }
+ if (value > maxValue)
+ {
+ return maxValue;
+ }
+ return value;
+ }
+
+ /// <summary>Bresenham walk from (x0, y0) to (x1, y1), both inclusive, returning padded-grid indices in walking order (A first).</summary>
+ /// <param name="x0">Start x in canvas pixels.</param>
+ /// <param name="y0">Start y in canvas pixels.</param>
+ /// <param name="x1">End x in canvas pixels.</param>
+ /// <param name="y1">End y in canvas pixels.</param>
+ /// <param name="stride">Row length of the padded grid (canvas width + 2).</param>
+ private static int[] LinePixels(int x0, int y0, int x1, int y1, int stride)
+ {
+ var indices = new List<int>();
+ int dx = Math.Abs(x1 - x0);
+ int dy = -Math.Abs(y1 - y0);
+ int stepX = (x0 < x1) ? 1 : -1;
+ int stepY = (y0 < y1) ? 1 : -1;
+ int err = dx + dy;
+ while (true)
+ {
+ indices.Add((y0 + 1) * stride + x0 + 1);
+ if (x0 == x1 && y0 == y1)
+ {
+ break;
+ }
+ int e2 = 2 * err;
+ if (e2 >= dy)
+ {
+ err += dy;
+ x0 += stepX;
+ }
+ if (e2 <= dx)
+ {
+ err += dx;
+ y0 += stepY;
+ }
+ }
+ return indices.ToArray();
+ }
+
+ /// <summary>
+ /// Reads the current value of a point probe from a padded-grid buffer. Used by the CPU engine
+ /// (<see cref="WaveSimulator.SampleProbes"/>) on the worker thread after every step.
+ /// </summary>
+ /// <param name="probeIndex">Index of a point probe.</param>
+ /// <param name="data">Padded field or intensity buffer, chosen by the caller according to <see cref="UseIntensity"/>.</param>
+ /// <returns>The value at the probe's first pixel, or 0 when <paramref name="data"/> is null.</returns>
+ public float Compute(int probeIndex, float[]? data) => data == null ? 0f : data[Pixels[probeIndex][0]];
+
+ /// <summary>Number of probes; the length of every per-probe array.</summary>
+ public int Count { get; }
+
+ /// <summary>Per probe: indices into the padded field/intensity buffer. A single entry for point probes, the whole A-to-B pixel path for line probes.</summary>
+ public int[][] Pixels { get; }
+
+ /// <summary>Per probe: true for line probes (which deliver a profile), false for point probes (which deliver a time series).</summary>
+ public bool[] IsProfile { get; }
+
+ /// <summary>Per probe: true when the measurement is Intensity or IntegratedIntensity, i.e. the intensity buffer is sampled instead of the field.</summary>
+ public bool[] UseIntensity { get; }
+
+ /// <summary>Per probe: point probe with IntegratedIntensity; <see cref="ProbeCollector.Collect"/> turns its per-step intensity samples into a running sum.</summary>
+ public bool[] Cumulative { get; }
+
+ /// <summary>Per probe: line probe with IntegratedIntensity; the engine accumulates per-pixel intensity totals over the steps.</summary>
+ public bool[] Integrate { get; }
+
+ /// <summary>Per probe: Euclidean length of the (clamped) probe line in canvas pixels; 0 for point probes.</summary>
+ public double[] Lengths { get; }
+
+ /// <summary>True when any probe samples the intensity; the runner then forces intensity tracking on in the engine.</summary>
+ public bool NeedsIntensity { get; }
+
+ /// <summary>True when at least one point probe exists.</summary>
+ public bool HasSeries { get; }
+
+ /// <summary>True when at least one line probe exists.</summary>
+ public bool HasProfiles { get; }
+
+ /// <summary>
+ /// Per probe: whether "start recording at step #" is on. Used to purge (never accumulate) the running
+ /// total of an integrated (cumulative) probe from before <see cref="StartAfterStep"/>, so the total shown
+ /// once recording starts is not inflated by intensity that arrived before it - see
+ /// <see cref="ProbeCollector.Collect"/>, <see cref="WaveSimulator.SampleProbes"/> and
+ /// <see cref="GpuWaveSimulator"/>'s <c>profile_accumulate</c> kernel.
+ /// </summary>
+ public bool[] UseStartAfterStep { get; }
+
+ /// <summary>Per probe: the step at which recording starts (the total before it is purged); only meaningful when <see cref="UseStartAfterStep"/> is set.</summary>
+ public int[] StartAfterStep { get; }
+}
diff --git a/WaveDude/Probes/ProbeSeries.cs b/WaveDude/Probes/ProbeSeries.cs
new file mode 100644
index 0000000..936b029
--- /dev/null
+++ b/WaveDude/Probes/ProbeSeries.cs
@@ -0,0 +1,51 @@
+namespace WaveDude.Probes;
+
+/// <summary>
+/// The measured values of one point probe: a growable buffer with one value per simulation step, in step
+/// order (value i belongs to step i + 1). Not thread-safe: each instance belongs to one
+/// <see cref="ProbeTrace"/> and is only touched by that trace's owning thread.
+/// </summary>
+public sealed class ProbeSeries
+{
+ /// <summary>Number of valid values; only the first <see cref="Count"/> entries of <see cref="Values"/> are meaningful.</summary>
+ public int Count => _count;
+
+ /// <summary>
+ /// Backing array, exposed without copying. Its length is the capacity, not the sample count, so read only
+ /// indices below <see cref="Count"/>. The reference changes whenever the buffer grows. Do not change.
+ /// </summary>
+ public float[] Values => _values;
+
+ /// <summary>Most recently added value, or NaN when the series is empty.</summary>
+ public float LastValue => _count == 0 ? float.NaN : _values[_count - 1];
+
+ /// <summary>Appends values in step order, at least doubling the backing array when it is full. Null or empty input is ignored.</summary>
+ public void Add(float[]? items)
+ {
+ if (items == null || items.Length == 0)
+ {
+ return;
+ }
+ int newCount = _count + items.Length;
+ if (newCount > _values.Length)
+ {
+ var grown = new float[Math.Max(newCount, _values.Length * 2)];
+ Array.Copy(_values, grown, _count);
+ _values = grown;
+ }
+ Array.Copy(items, 0, _values, _count, items.Length);
+ _count = newCount;
+ }
+
+ /// <summary>Discards all values but keeps the allocated storage.</summary>
+ public void Clear()
+ {
+ _count = 0;
+ }
+
+ /// <summary>Backing storage; starts at 1024 entries, grows by at least doubling and never shrinks.</summary>
+ private float[] _values = new float[1024];
+
+ /// <summary>Number of valid entries at the start of <see cref="_values"/>.</summary>
+ private int _count;
+}
diff --git a/WaveDude/Probes/ProbeSpec.cs b/WaveDude/Probes/ProbeSpec.cs
new file mode 100644
index 0000000..54688f0
--- /dev/null
+++ b/WaveDude/Probes/ProbeSpec.cs
@@ -0,0 +1,32 @@
+using WaveDude.Model;
+
+namespace WaveDude.Probes;
+
+/// <summary>
+/// What a run needs to know about one probe: an immutable copy of the measurement part of a
+/// <see cref="Probe"/> (the graph box and scaling stay in the model). Built on the UI thread by
+/// <see cref="From"/>, consumed by <see cref="ProbeSampler.Build"/> on the run's worker. Positions are in
+/// canvas pixels, <see cref="StartAfter"/> in steps.
+/// </summary>
+/// <param name="Name">The probe's name, for labelling its trace.</param>
+/// <param name="Kind">Point (A only) or line (A to B).</param>
+/// <param name="Measurement">Field amplitude, intensity or intensity integrated over the run.</param>
+/// <param name="AX">X of point A in canvas pixels.</param>
+/// <param name="AY">Y of point A in canvas pixels.</param>
+/// <param name="BX">X of point B in canvas pixels (line probes).</param>
+/// <param name="BY">Y of point B in canvas pixels (line probes).</param>
+/// <param name="StartAfter">Step from which an integrated probe records; 0 records from the first step.</param>
+public sealed record ProbeSpec(
+ string Name,
+ ProbeKind Kind,
+ ProbeMeasurement Measurement,
+ int AX,
+ int AY,
+ int BX,
+ int BY,
+ int StartAfter)
+{
+ /// <summary>The spec of a model probe.</summary>
+ public static ProbeSpec From(Probe probe) =>
+ new(probe.Name, probe.Kind, probe.Measurement, probe.AX, probe.AY, probe.BX, probe.BY, probe.StartAfter);
+}
diff --git a/WaveDude/Probes/ProbeTrace.cs b/WaveDude/Probes/ProbeTrace.cs
new file mode 100644
index 0000000..ab90463
--- /dev/null
+++ b/WaveDude/Probes/ProbeTrace.cs
@@ -0,0 +1,37 @@
+namespace WaveDude.Probes;
+
+/// <summary>
+/// Everything recorded for one probe during a run: the time series and, for line probes, the latest profile.
+/// Two independent sets exist per run: <see cref="ProbeCollector.Traces"/> is owned by the run's worker; the UI
+/// keeps its own copies, filled from <see cref="ProbeUpdate"/> batches on the UI thread. An instance is never
+/// shared between threads.
+/// </summary>
+public sealed class ProbeTrace
+{
+ /// <summary>Number of simulation steps completed when this trace was last updated; used to gate "start after step" line probes in the painter.</summary>
+ public int StepsSampled { get; set; }
+
+ /// <summary>Latest line-probe profile (one value per pixel along the line, A to B), or null until the first profile arrives and always for point probes.</summary>
+ public float[]? Profile => _profile;
+
+ /// <summary>Length of the probe line in canvas pixels (distance A to B); 0 for point probes. Used as the x-axis span of the profile graph.</summary>
+ public double ProfileLength => _profileLength;
+
+ /// <summary>Replaces the current profile. The array is kept by reference, not copied, so callers must not modify it afterwards.</summary>
+ /// <param name="values">Sampled values along the line, A to B.</param>
+ /// <param name="length">Line length in canvas pixels.</param>
+ public void SetProfile(float[] values, double length)
+ {
+ _profile = values;
+ _profileLength = length;
+ }
+
+ /// <summary>Latest profile array; null until <see cref="SetProfile"/> is first called.</summary>
+ private float[]? _profile;
+
+ /// <summary>Line length in canvas pixels belonging to <see cref="_profile"/>.</summary>
+ private double _profileLength;
+
+ /// <summary>Time series of a point probe, one value per sampled step; stays empty for line probes.</summary>
+ public ProbeSeries Series { get; } = new();
+}
diff --git a/WaveDude/Probes/ProbeUpdate.cs b/WaveDude/Probes/ProbeUpdate.cs
new file mode 100644
index 0000000..c21ca58
--- /dev/null
+++ b/WaveDude/Probes/ProbeUpdate.cs
@@ -0,0 +1,41 @@
+namespace WaveDude.Probes;
+
+/// <summary>
+/// One batch of probe results handed from the run's worker to the UI. Created by
+/// <see cref="ProbeCollector.TakeForUi"/> on the worker, raised through the run's <c>ProbesUpdated</c> event
+/// and applied to the UI's own <see cref="ProbeTrace"/>s on the UI thread. Never modified after construction,
+/// so no locking is needed.
+/// </summary>
+public sealed class ProbeUpdate
+{
+ /// <param name="samples">Per probe: series values since the previous batch (see <see cref="Samples"/>).</param>
+ /// <param name="profiles">Per probe: refreshed line profile or null (see <see cref="Profiles"/>).</param>
+ /// <param name="lengths">Per probe: line length in canvas pixels (see <see cref="Lengths"/>).</param>
+ /// <param name="stepsDone">Steps completed when the batch was taken.</param>
+ public ProbeUpdate(float[][] samples, float[]?[] profiles, double[] lengths, int stepsDone)
+ {
+ Samples = samples;
+ Profiles = profiles;
+ Lengths = lengths;
+ StepsDone = stepsDone;
+ }
+
+ /// <summary>
+ /// Per probe (index parallel to the run's probe list): the series values sampled since the previous batch,
+ /// in step order. Freshly allocated per batch; empty (never null) for line probes or when nothing new arrived.
+ /// </summary>
+ public float[][] Samples { get; }
+
+ /// <summary>
+ /// Per probe: the new line profile when it was refreshed since the previous batch, otherwise null. The array
+ /// is the very instance the worker's trace holds; it is never written to after the engine produced it, so
+ /// sharing it is safe.
+ /// </summary>
+ public float[]?[] Profiles { get; }
+
+ /// <summary>Per probe: line length in canvas pixels (0 for point probes). This is the <see cref="ProbeSampler.Lengths"/> array itself, shared read-only by all batches.</summary>
+ public double[] Lengths { get; }
+
+ /// <summary>Simulation steps completed when the batch was taken; becomes <see cref="ProbeTrace.StepsSampled"/> on the UI side.</summary>
+ public int StepsDone { get; }
+}
diff --git a/WaveDude/Rendering/ColorLut.cs b/WaveDude/Rendering/ColorLut.cs
new file mode 100644
index 0000000..b986b8a
--- /dev/null
+++ b/WaveDude/Rendering/ColorLut.cs
@@ -0,0 +1,125 @@
+namespace WaveDude.Rendering;
+
+/// <summary>
+/// An immutable palette of <see cref="Size"/> opaque ARGB entries built from a
+/// <see cref="ColorScheme"/> by <see cref="Build"/> plus the display options of the Python
+/// function <c>get_colormap_lut</c> (invert, black level, make symmetric), and the static
+/// value-to-index mappings used when colouring frames, which convert field and intensity
+/// values to table indices exactly like <c>WaveVisualizer.render_field</c> /
+/// <c>render_intensity</c>. Built on the UI thread when the display settings change; the
+/// <see cref="Argb"/> array is then read from <see cref="FrameRenderer"/>'s parallel loops without
+/// locking (it is never modified after construction).
+/// </summary>
+/// <remarks>
+/// The options belong to how a scheme is used (field or intensity), not to the scheme itself, so
+/// they are not saved in the scheme file; they live in <see cref="Model.DisplayLayer"/>.
+/// </remarks>
+public sealed class ColorLut
+{
+ private ColorLut(int[] argb) => Argb = argb;
+
+ /// <summary>
+ /// The palette as packed opaque ARGB ints (<c>0xFFRRGGBB</c>, the memory order of BGRA32 pixels),
+ /// indices 0..<see cref="Size"/>-1. Returns the internal array, not a copy; callers must not modify it.
+ /// </summary>
+ public int[] Argb { get; }
+
+ /// <summary>Returns entry <paramref name="index"/> (0..<see cref="Size"/>-1) as a colour.</summary>
+ public Rgb ColorAt(int index) => Rgb.FromArgb(Argb[index]);
+
+ /// <summary>
+ /// Builds a palette from the <see cref="Size"/> entries of <paramref name="scheme"/>.
+ /// Transformations are applied in the same order as in Python: <paramref name="reverse"/>
+ /// (new, optional; entry i is read from entry <c>Size-1-i</c>), <paramref name="invert"/>
+ /// (each channel becomes <c>1 - channel</c>), <paramref name="makeSymmetric"/> (entry i is
+ /// read from entry <c>2 * min(i, Size-1-i)</c>, so the palette runs from entry 0 at both
+ /// ends up to entry 254 in the middle), then <paramref name="blackLevel"/> maps every
+ /// channel linearly as <c>c * (1 - b) + b</c>, so 0 becomes <paramref name="blackLevel"/>
+ /// and 1 stays 1. Values are limited to 0..1 and converted to 8 bit by truncation, like
+ /// the Python code. Alpha is always 255.
+ /// </summary>
+ /// <param name="scheme">Source colours; must have at least <see cref="Size"/> entries.</param>
+ /// <param name="invert">Replaces every colour by its complement (1 - colour), like the Python option.</param>
+ /// <param name="blackLevel">Lifts (positive) or lowers (negative) the darkest level; 0 = unchanged.</param>
+ /// <param name="makeSymmetric">Squeezes the whole scheme into each half and mirrors it around the centre.</param>
+ /// <param name="reverse">Reverses the order of the scheme (like matplotlib's <c>_r</c> maps).</param>
+ public static ColorLut Build(ColorScheme scheme, bool invert = false, double blackLevel = 0.0, bool makeSymmetric = false, bool reverse = false)
+ {
+ double[,] rgb = new double[Size, 3];
+ for (int i = 0; i < Size; i++)
+ {
+ Rgb entry = scheme.GetEntry(reverse ? (Size - 1 - i) : i);
+ rgb[i, 0] = entry.R / 255.0;
+ rgb[i, 1] = entry.G / 255.0;
+ rgb[i, 2] = entry.B / 255.0;
+ }
+ if (invert)
+ {
+ for (int i = 0; i < Size; i++)
+ {
+ for (int channel = 0; channel < 3; channel++)
+ {
+ rgb[i, channel] = 1.0 - rgb[i, channel];
+ }
+ }
+ }
+ int[] argb = new int[Size];
+ for (int i = 0; i < Size; i++)
+ {
+ // Python: entries 0..127 = src[0::2] and entries 127..254 = the same list mirrored,
+ // which is entry i = src[2 * min(i, 254 - i)]
+ int sourceIndex = makeSymmetric ? 2 * Math.Min(i, Size - 1 - i) : i;
+ int[] components = new int[3];
+ for (int channel = 0; channel < 3; channel++)
+ {
+ double level = Math.Clamp(rgb[sourceIndex, channel] * (1.0 - blackLevel) + blackLevel, 0.0, 1.0);
+ components[channel] = Math.Min(255, (int)(level * 255.0));
+ }
+ argb[i] = new Rgb((byte)components[0], (byte)components[1], (byte)components[2]).ToArgb();
+ }
+ return new ColorLut(argb);
+ }
+
+ /// <summary>
+ /// Maps a signed field sample to a palette index, like <c>render_field</c>:
+ /// <c>clip(value * brightness, -1, 1) * 127 + 127</c>, so the result is 0..254 and a zero
+ /// field gives index 127 (the centre colour). NaN gives 127. Called per pixel from
+ /// <see cref="FrameRenderer.RenderField"/> on worker threads.
+ /// </summary>
+ /// <param name="value">Raw field amplitude from the engine.</param>
+ /// <param name="brightness">Gain applied before clamping.</param>
+ public static int FieldIndex(float value, float brightness)
+ {
+ float scaled = value * brightness;
+ if (float.IsNaN(scaled))
+ {
+ return 127;
+ }
+ return (int)(Math.Clamp(scaled, -1f, 1f) * 127f + 127f);
+ }
+
+ /// <summary>
+ /// Maps a non-negative intensity to a palette index 0..254, like <c>render_intensity</c>:
+ /// <c>clip(intensity ^ exponent * brightness, 0, 1) * 254</c>. NaN or non-positive
+ /// intensity gives 0. <see cref="FrameRenderer.RenderIntensity"/> inlines the square-root case.
+ /// </summary>
+ /// <param name="intensity">Accumulated intensity from the engine.</param>
+ /// <param name="brightness">Gain applied after compression.</param>
+ /// <param name="exponent">Compression exponent; 0.5 (square root) is the Python default.</param>
+ public static int IntensityIndex(float intensity, float brightness, float exponent = 0.5f)
+ {
+ if (float.IsNaN(intensity) || intensity <= 0f)
+ {
+ return 0;
+ }
+ double scaled = Math.Pow(intensity, exponent) * brightness;
+ if (double.IsNaN(scaled) || scaled < 0.0)
+ {
+ return 0;
+ }
+ return (int)(Math.Min(scaled, 1.0) * 254.0);
+ }
+
+ /// <summary>Number of entries in a palette: <see cref="ColorScheme.EntryCount"/> (255).</summary>
+ public const int Size = ColorScheme.EntryCount;
+}
diff --git a/WaveDude/Rendering/ColorScheme.cs b/WaveDude/Rendering/ColorScheme.cs
new file mode 100644
index 0000000..cdf2be1
--- /dev/null
+++ b/WaveDude/Rendering/ColorScheme.cs
@@ -0,0 +1,260 @@
+using System.Globalization;
+
+namespace WaveDude.Rendering;
+
+/// <summary>
+/// A color scheme: a lookup table of exactly <see cref="EntryCount"/> (255) RGB colors, the same table
+/// size the Python simulator uses, optionally backed by <see cref="StopCount"/> editable gradient stops.
+/// A scheme can be used for the field view or for the intensity view.
+/// </summary>
+/// <remarks>
+/// Entry 0 is the start of the scale (field -1 / intensity 0), entry 254 the end (+1 / max), entry 127
+/// the centre of a field scheme. Schemes made in the stop editor also keep their anchor colors
+/// ("stops") so they can be edited again. The stops sit at fixed, equally spaced positions on the
+/// scale: stop 1 is the first entry, the last stop is the last entry and, with an odd number of stops,
+/// the middle stop is exactly the centre entry 127 (the zero-field color); with 9 stops that is
+/// Color 5. All other entries are interpolated linearly in RGB between neighbouring stops. Imported
+/// schemes (matplotlib, seaborn, Python tables) have no stops and are used as they are.
+/// Instances are created by <see cref="ColorSchemeStore.Load"/> and a scheme editor, live on the UI
+/// thread, and are turned into an <c>int[]</c> palette by <see cref="ColorLut.Build"/> before a frame is
+/// rendered; the rendering threads never touch them. The <see cref="Entries"/> and <see cref="Stops"/>
+/// getters return defensive copies, so the only way to change the table is <see cref="SetStop"/>.
+/// </remarks>
+public class ColorScheme
+{
+ /// <summary>Display name; also the JSON "name" and the basis of the file name (see <see cref="ColorSchemeStore.SafeFileName"/>).</summary>
+ public string Name { get; set; }
+
+ /// <summary>Free-text provenance of the colors (JSON "origin"), e.g. the matplotlib map it was sampled from.</summary>
+ public string Origin { get; set; } = "";
+
+ /// <summary>Free-text grouping such as "sequential" or "custom" (JSON "category"); empty when unknown.</summary>
+ public string Category { get; set; } = "";
+
+ /// <summary>
+ /// What the scheme is meant for: <see cref="SchemeTypeField"/>, <see cref="SchemeTypeIntensity"/>
+ /// or "" when not specified. This is only a label saved in the file (it decides which list offers the
+ /// scheme); any scheme can technically be used for either.
+ /// </summary>
+ public string SchemeType { get; set; } = "";
+
+ /// <summary>Full path of the JSON file the scheme was loaded from or last saved to; "" for an unsaved or a built-in scheme.</summary>
+ public string FilePath { get; set; } = "";
+
+ /// <summary>Whether the scheme ships with the program (embedded in the library); such a scheme is not written back anywhere.</summary>
+ public bool IsBuiltIn { get; set; }
+
+ /// <summary>
+ /// Creates a table-only scheme (no stops) by resampling <paramref name="colors"/> to
+ /// <see cref="EntryCount"/> entries; the text properties start out empty.
+ /// </summary>
+ /// <param name="schemeName">Value for <see cref="Name"/>.</param>
+ /// <param name="colors">At least two colors, in scale order; copied, not kept.</param>
+ /// <exception cref="ArgumentException">Fewer than two colors.</exception>
+ public ColorScheme(string schemeName, IReadOnlyList<Rgb> colors)
+ {
+ Name = schemeName;
+ _entries = Resample(colors, EntryCount);
+ }
+
+ /// <summary>A fresh copy of the full <see cref="EntryCount"/>-entry table (allocates on every call; use <see cref="GetEntry"/> in loops).</summary>
+ public Rgb[] Entries => (Rgb[])_entries.Clone();
+
+ /// <summary>Returns table entry <paramref name="index"/> (0..254) without copying the table.</summary>
+ public Rgb GetEntry(int index) => _entries[index];
+
+ /// <summary>True when the scheme carries <see cref="StopCount"/> editable stops, i.e. <see cref="SetStop"/> may be called.</summary>
+ public bool HasStops => _stops != null;
+
+ /// <summary>A fresh copy of the <see cref="StopCount"/> stops, or null for a table-only scheme.</summary>
+ public Rgb[]? Stops => (Rgb[]?)_stops?.Clone();
+
+ /// <summary>Linearly interpolates between the table entries at a fractional position 0..254.</summary>
+ /// <param name="position">Position on the entry scale; clamped to the first/last entry outside 0..254.</param>
+ public Rgb SampleAt(double position)
+ {
+ if (position <= 0.0)
+ {
+ return _entries[0];
+ }
+ if (position >= EntryCount - 1)
+ {
+ return _entries[EntryCount - 1];
+ }
+ int index = (int)Math.Floor(position);
+ return Lerp(_entries[index], _entries[index + 1], position - index);
+ }
+
+ /// <summary>Returns <see cref="Name"/>, which is what scheme lists display.</summary>
+ public override string ToString() => Name;
+
+ /// <summary>
+ /// Creates a stop scheme from exactly <see cref="StopCount"/> stops, given in scale order (stop 1
+ /// first, the middle stop in the centre, the last stop last): the table is interpolated from them,
+ /// <see cref="Origin"/> says it was made in the editor and <see cref="Category"/> is "custom".
+ /// </summary>
+ /// <exception cref="ArgumentException"><paramref name="stops"/> is not <see cref="StopCount"/> long.</exception>
+ public static ColorScheme FromStops(string schemeName, IReadOnlyList<Rgb> stops)
+ {
+ var scheme = new ColorScheme(schemeName, InterpolateStops(stops));
+ scheme.AttachStops(stops);
+ scheme.Origin = StopCount.ToString(CultureInfo.InvariantCulture) + "-stop gradient made in the color scheme editor";
+ scheme.Category = "custom";
+ return scheme;
+ }
+
+ /// <summary>
+ /// Stores a copy of <paramref name="stops"/> as the editable stops without regenerating the
+ /// table. Used by <see cref="ColorSchemeStore.Load"/> when a file has both "colors" and "stops", so the
+ /// table may differ from the stops until the first <see cref="SetStop"/>.
+ /// </summary>
+ /// <exception cref="ArgumentException"><paramref name="stops"/> is not <see cref="StopCount"/> long.</exception>
+ internal void AttachStops(IReadOnlyList<Rgb> stops)
+ {
+ if (stops.Count != StopCount)
+ {
+ throw new ArgumentException("Exactly " + StopCount.ToString(CultureInfo.InvariantCulture) + " stops are required.");
+ }
+ _stops = [.. stops];
+ }
+
+ /// <summary>Replaces stop <paramref name="stopIndex"/> with <paramref name="value"/> and rebuilds the whole table from the stops.</summary>
+ /// <param name="stopIndex">0..<see cref="StopCount"/>-1.</param>
+ /// <param name="value">New stop color.</param>
+ /// <exception cref="InvalidOperationException">The scheme has no stops (<see cref="HasStops"/> is false).</exception>
+ /// <exception cref="ArgumentOutOfRangeException"><paramref name="stopIndex"/> is outside 0..<see cref="StopCount"/>-1.</exception>
+ public void SetStop(int stopIndex, Rgb value)
+ {
+ if (_stops == null)
+ {
+ throw new InvalidOperationException("This scheme has no editable stops. Use ToStopScheme first.");
+ }
+ if (stopIndex < 0 || stopIndex >= StopCount)
+ {
+ throw new ArgumentOutOfRangeException(nameof(stopIndex));
+ }
+ _stops[stopIndex] = value;
+ _entries = InterpolateStops(_stops);
+ }
+
+ /// <summary>
+ /// Makes an editable <see cref="StopCount"/>-stop scheme from any scheme by sampling it at the stop
+ /// positions (k/(StopCount-1) of the 0..254 range). This is lossy: the copy is a smooth
+ /// approximation of the original. The result keeps this <see cref="SchemeType"/>, gets an
+ /// <see cref="Origin"/> naming this scheme, <see cref="Category"/> "custom" and no file path.
+ /// </summary>
+ public ColorScheme ToStopScheme(string newName)
+ {
+ var stops = new Rgb[StopCount];
+ for (int i = 0; i < StopCount; i++)
+ {
+ stops[i] = SampleAt((i * (EntryCount - 1)) / (double)(StopCount - 1));
+ }
+ ColorScheme scheme = FromStops(newName, stops);
+ scheme.Origin = StopCount.ToString(CultureInfo.InvariantCulture) + "-stop copy of scheme '" + Name + "'";
+ scheme.SchemeType = SchemeType;
+ return scheme;
+ }
+
+ /// <summary>
+ /// Deep copy with a new name: table, stops (if any), <see cref="Origin"/>, <see cref="Category"/> and
+ /// <see cref="SchemeType"/> are copied; <see cref="FilePath"/> is not (the copy is "unsaved").
+ /// </summary>
+ public ColorScheme Clone(string newName)
+ {
+ var scheme = new ColorScheme(newName, _entries)
+ {
+ Origin = Origin,
+ Category = Category,
+ SchemeType = SchemeType,
+ };
+ if (_stops != null)
+ {
+ scheme.AttachStops(_stops);
+ }
+ return scheme;
+ }
+
+ /// <summary>
+ /// Builds the <see cref="EntryCount"/> entries from the <see cref="StopCount"/> stops at fixed, equally
+ /// spaced positions (linear in RGB); stop k lands on entry k*(EntryCount-1)/(StopCount-1).
+ /// </summary>
+ /// <exception cref="ArgumentException"><paramref name="stops"/> is not <see cref="StopCount"/> long.</exception>
+ public static Rgb[] InterpolateStops(IReadOnlyList<Rgb> stops)
+ {
+ if (stops.Count != StopCount)
+ {
+ throw new ArgumentException("Exactly " + StopCount.ToString(CultureInfo.InvariantCulture) + " stops are required.");
+ }
+ var entries = new Rgb[EntryCount];
+ for (int i = 0; i < EntryCount; i++)
+ {
+ // position on the stop scale: 0.0 (first stop) to StopCount - 1 (last stop);
+ // with 9 stops entry 127 is exactly 4.0, the middle stop.
+ // The last entry must stay in the last segment (StopCount - 2).
+ double position = (i * (StopCount - 1)) / (double)(EntryCount - 1);
+ int segment = Math.Min((int)Math.Floor(position), StopCount - 2);
+ entries[i] = Lerp(stops[segment], stops[segment + 1], position - segment);
+ }
+ return entries;
+ }
+
+ /// <summary>
+ /// Resamples an arbitrary-length color list to exactly <paramref name="count"/> entries by linear RGB
+ /// interpolation (a plain copy when the lengths already match).
+ /// </summary>
+ /// <param name="source">At least two colors.</param>
+ /// <param name="count">Number of entries wanted; must be at least 2.</param>
+ /// <exception cref="ArgumentException"><paramref name="source"/> has fewer than two colors.</exception>
+ public static Rgb[] Resample(IReadOnlyList<Rgb> source, int count)
+ {
+ if (source.Count < 2)
+ {
+ throw new ArgumentException("A color scheme needs at least 2 colors.");
+ }
+ var result = new Rgb[count];
+ if (source.Count == count)
+ {
+ for (int i = 0; i < count; i++)
+ {
+ result[i] = source[i];
+ }
+ return result;
+ }
+ for (int i = 0; i < count; i++)
+ {
+ double position = (double)(i * (source.Count - 1)) / (count - 1);
+ int index = (int)Math.Floor(position);
+ result[i] = index >= source.Count - 1 ? source[^1] : Lerp(source[index], source[index + 1], position - index);
+ }
+ return result;
+ }
+
+ /// <summary>Per-channel linear blend of two colors; <paramref name="t"/> = 0 gives <paramref name="a"/>, 1 gives <paramref name="b"/>.</summary>
+ private static Rgb Lerp(Rgb a, Rgb b, double t) =>
+ Rgb.Clamped(LerpChannel(a.R, b.R, t), LerpChannel(a.G, b.G, t), LerpChannel(a.B, b.B, t));
+
+ /// <summary>Blends one 0..255 channel, rounding halves away from zero.</summary>
+ private static int LerpChannel(int a, int b, double t) => (int)Math.Round(a + (b - a) * t, MidpointRounding.AwayFromZero);
+
+ /// <summary>Number of entries in the color table (indices 0..254).</summary>
+ public const int EntryCount = 255;
+
+ /// <summary>
+ /// Number of fixed anchor colors in the stop editor: 9 (upgraded from 5 to 7 to 9 over time). Odd on
+ /// purpose, so the middle stop is exactly the centre entry 127; see the class remarks.
+ /// </summary>
+ public const int StopCount = 9;
+
+ /// <summary>The <see cref="EntryCount"/> table entries; replaced wholesale by <see cref="SetStop"/>.</summary>
+ private Rgb[] _entries;
+
+ /// <summary>The <see cref="StopCount"/> editable stops, or null for a table-only scheme.</summary>
+ private Rgb[]? _stops;
+
+ /// <summary><see cref="SchemeType"/> value for schemes that color the signed field (-1..+1).</summary>
+ public const string SchemeTypeField = "field";
+
+ /// <summary><see cref="SchemeType"/> value for schemes that color the accumulated intensity (0..max).</summary>
+ public const string SchemeTypeIntensity = "intensity";
+}
diff --git a/WaveDude/Rendering/ColorSchemeStore.cs b/WaveDude/Rendering/ColorSchemeStore.cs
new file mode 100644
index 0000000..7da1638
--- /dev/null
+++ b/WaveDude/Rendering/ColorSchemeStore.cs
@@ -0,0 +1,336 @@
+using System.Globalization;
+using System.Reflection;
+using System.Text;
+using System.Text.Json;
+
+namespace WaveDude.Rendering;
+
+/// <summary>
+/// Reads and writes <see cref="ColorScheme"/> objects as JSON files (one file per scheme, e.g. in the
+/// scheme folder).
+/// </summary>
+/// <remarks>
+/// File format, the same as the files exported from Python (e.g. in its <c>color_schemes</c> folder): an
+/// object with "name", "origin", optional "category" and "scheme_type" ("field" or "intensity"),
+/// "bits_per_channel" (always 8), "entry_count" (<see cref="ColorScheme.EntryCount"/>) and a "colors"
+/// list of <c>[r,g,b]</c> triplets, plus, only for schemes made in the stop editor, a "stops" list of
+/// <see cref="ColorScheme.StopCount"/> triplets. Reading uses <see cref="JsonDocument"/>; writing emits
+/// the text by hand so the file stays human-readable and byte-identical to the shipped files. The shipped
+/// schemes are embedded in this assembly (<see cref="LoadBuiltIn"/>; the repository's <c>ColorSchemeList</c>
+/// folder is their source); the user's own schemes live in <see cref="UserFolder"/>. Called only from the
+/// UI thread (start-up and a scheme editor).
+/// </remarks>
+public static class ColorSchemeStore
+{
+ /// <summary>Prefix of the embedded scheme resources (see the csproj's <c>LogicalName</c>).</summary>
+ private const string ResourcePrefix = "ColorSchemes/";
+
+ /// <summary>The user's own scheme folder, <c>%LOCALAPPDATA%\WaveDude\ColorSchemes</c>; created on first use by <see cref="Save"/>, may not exist.</summary>
+ public static string UserFolder { get; } =
+ Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "WaveDude", "ColorSchemes");
+
+ /// <summary>
+ /// The schemes shipped with the program, read from this assembly's resources in name order. A resource that
+ /// does not parse is reported in <paramref name="errors"/> (a build problem, not a user one) and skipped.
+ /// </summary>
+ /// <param name="errors">Receives one line per unreadable resource; may be null to discard them.</param>
+ public static List<ColorScheme> LoadBuiltIn(List<string>? errors)
+ {
+ var schemes = new List<ColorScheme>();
+ Assembly assembly = typeof(ColorSchemeStore).Assembly;
+ var names = assembly.GetManifestResourceNames().Where(n => n.StartsWith(ResourcePrefix, StringComparison.Ordinal)).ToList();
+ names.Sort(StringComparer.OrdinalIgnoreCase);
+ foreach (string name in names)
+ {
+ try
+ {
+ using Stream stream = assembly.GetManifestResourceStream(name) ?? throw new InvalidDataException("The resource stream is missing.");
+ using var reader = new StreamReader(stream, Encoding.UTF8);
+ ColorScheme scheme = Parse(reader.ReadToEnd(), Path.GetFileNameWithoutExtension(name[ResourcePrefix.Length..]));
+ scheme.IsBuiltIn = true;
+ schemes.Add(scheme);
+ }
+ catch (Exception ex) when (ex is InvalidDataException or JsonException)
+ {
+ errors?.Add(name + ": " + ex.Message);
+ }
+ }
+ return schemes;
+ }
+
+ /// <summary>
+ /// Reads one scheme file. The table comes from "colors" (resampled to 255 entries) when that list has at
+ /// least two entries, otherwise it is interpolated from "stops"; a "stops" list is attached as editable
+ /// stops only if it has exactly <see cref="ColorScheme.StopCount"/> entries (otherwise it is ignored).
+ /// "name" falls back to the file name, "scheme_type" is normalised (see <see cref="NormalizeSchemeType"/>),
+ /// and <see cref="ColorScheme.FilePath"/> is set to <paramref name="filePath"/>.
+ /// </summary>
+ /// <param name="filePath">Full path of the JSON file.</param>
+ /// <exception cref="InvalidDataException">The file is not a JSON object, has no usable color list or contains malformed triplets.</exception>
+ /// <exception cref="JsonException">The file is not valid JSON.</exception>
+ public static ColorScheme Load(string filePath)
+ {
+ ColorScheme scheme = Parse(File.ReadAllText(filePath, Encoding.UTF8), Path.GetFileNameWithoutExtension(filePath));
+ scheme.FilePath = filePath;
+ return scheme;
+ }
+
+ /// <summary>Parses scheme JSON; <paramref name="fallbackName"/> stands in for a missing "name".</summary>
+ /// <exception cref="InvalidDataException">Not a JSON object, no usable color list or malformed triplets.</exception>
+ /// <exception cref="JsonException">Not valid JSON.</exception>
+ public static ColorScheme Parse(string json, string fallbackName)
+ {
+ using JsonDocument document = JsonDocument.Parse(json, new JsonDocumentOptions { AllowTrailingCommas = true, CommentHandling = JsonCommentHandling.Skip });
+ JsonElement root = document.RootElement;
+ if (root.ValueKind != JsonValueKind.Object)
+ {
+ throw new InvalidDataException("Not a color scheme file (a JSON object was expected).");
+ }
+ string schemeName = GetString(root, "name", fallbackName);
+ List<Rgb>? colors = root.TryGetProperty("colors", out JsonElement colorsNode) ? ParseColorList(colorsNode) : null;
+ List<Rgb>? stops = root.TryGetProperty("stops", out JsonElement stopsNode) ? ParseColorList(stopsNode) : null;
+ if (stops != null && stops.Count != ColorScheme.StopCount)
+ {
+ stops = null;
+ }
+ ColorScheme scheme;
+ if (colors != null && colors.Count >= 2)
+ {
+ scheme = new ColorScheme(schemeName, colors);
+ }
+ else if (stops != null)
+ {
+ scheme = ColorScheme.FromStops(schemeName, stops);
+ }
+ else
+ {
+ throw new InvalidDataException("The file contains no usable 'colors' list.");
+ }
+ if (stops != null)
+ {
+ scheme.AttachStops(stops);
+ }
+ scheme.Origin = GetString(root, "origin", scheme.Origin);
+ scheme.Category = GetString(root, "category", scheme.Category);
+ scheme.SchemeType = NormalizeSchemeType(GetString(root, "scheme_type", scheme.SchemeType));
+ return scheme;
+ }
+
+ /// <summary>
+ /// Loads every <c>*.json</c> file in <paramref name="folder"/>, in case-insensitive file name order.
+ /// Files that fail to load are skipped and reported as "file: message" lines in <paramref name="errors"/>.
+ /// </summary>
+ /// <param name="folder">Folder to scan; an empty or missing folder yields an empty list.</param>
+ /// <param name="errors">Receives one line per unreadable file; may be null to discard them.</param>
+ /// <returns>The schemes that loaded successfully.</returns>
+ public static List<ColorScheme> LoadFolder(string folder, List<string>? errors)
+ {
+ var schemes = new List<ColorScheme>();
+ if (string.IsNullOrEmpty(folder) || !Directory.Exists(folder))
+ {
+ return schemes;
+ }
+ var files = new List<string>(Directory.GetFiles(folder, "*.json"));
+ files.Sort(StringComparer.OrdinalIgnoreCase);
+ foreach (string file in files)
+ {
+ try
+ {
+ schemes.Add(Load(file));
+ }
+ catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidDataException or JsonException)
+ {
+ errors?.Add(Path.GetFileName(file) + ": " + ex.Message);
+ }
+ }
+ return schemes;
+ }
+
+ /// <summary>The scheme called <paramref name="name"/> (case-insensitive, so a file's "name" matches the model's stored name regardless of letter case), or null.</summary>
+ public static ColorScheme? Find(IEnumerable<ColorScheme> schemes, string name) =>
+ schemes.FirstOrDefault(scheme => string.Equals(scheme.Name, name, StringComparison.OrdinalIgnoreCase));
+
+ /// <summary>
+ /// Writes <paramref name="scheme"/> as a UTF-8 (no BOM) JSON file, eight color triplets per line, with
+ /// "category" / "scheme_type" omitted when empty and "stops" present only for stop schemes. Creates the
+ /// target directory, writes to <c>&lt;filePath&gt;.tmp</c> first and then replaces the target, and finally
+ /// sets <see cref="ColorScheme.FilePath"/> on the scheme.
+ /// </summary>
+ /// <param name="scheme">Scheme to write.</param>
+ /// <param name="filePath">Destination file path (usually from <see cref="PathFor"/>).</param>
+ public static void Save(ColorScheme scheme, string filePath)
+ {
+ var json = new StringBuilder();
+ json.AppendLine("{");
+ json.AppendLine(" \"name\": " + Quote(scheme.Name) + ",");
+ json.AppendLine(" \"origin\": " + Quote(scheme.Origin) + ",");
+ if (!string.IsNullOrEmpty(scheme.Category))
+ {
+ json.AppendLine(" \"category\": " + Quote(scheme.Category) + ",");
+ }
+ if (!string.IsNullOrEmpty(scheme.SchemeType))
+ {
+ json.AppendLine(" \"scheme_type\": " + Quote(scheme.SchemeType) + ",");
+ }
+ json.AppendLine(" \"bits_per_channel\": 8,");
+ json.AppendLine(" \"entry_count\": " + ColorScheme.EntryCount.ToString(CultureInfo.InvariantCulture) + ",");
+ if (scheme.Stops is { } stops)
+ {
+ json.AppendLine(" \"stops\": [" + string.Join(", ", stops) + "],");
+ }
+ Rgb[] entries = scheme.Entries;
+ json.AppendLine(" \"colors\": [");
+ for (int rowStart = 0; rowStart < entries.Length; rowStart += 8)
+ {
+ int rowEnd = Math.Min(rowStart + 7, entries.Length - 1);
+ json.Append(" ");
+ json.Append(string.Join(", ", entries[rowStart..(rowEnd + 1)]));
+ if (rowEnd < entries.Length - 1)
+ {
+ json.Append(',');
+ }
+ json.AppendLine();
+ }
+ json.AppendLine(" ]");
+ json.AppendLine("}");
+ string? directoryName = Path.GetDirectoryName(filePath);
+ if (!string.IsNullOrEmpty(directoryName))
+ {
+ Directory.CreateDirectory(directoryName);
+ }
+ // write to a temporary file first so a failed save never leaves a half-written scheme behind
+ string tempPath = filePath + ".tmp";
+ File.WriteAllText(tempPath, json.ToString(), new UTF8Encoding(false));
+ File.Move(tempPath, filePath, overwrite: true);
+ scheme.FilePath = filePath;
+ }
+
+ /// <summary>
+ /// Turns a scheme name into a file name (without extension): invalid file name characters become
+ /// '_', surrounding whitespace and trailing dots are removed.
+ /// </summary>
+ /// <returns>The sanitised name, or "color_scheme" when nothing usable is left.</returns>
+ public static string SafeFileName(string schemeName)
+ {
+ if (string.IsNullOrEmpty(schemeName))
+ {
+ return "color_scheme";
+ }
+ char[] invalidChars = Path.GetInvalidFileNameChars();
+ var safeName = new StringBuilder();
+ foreach (char c in schemeName.Trim())
+ {
+ safeName.Append(Array.IndexOf(invalidChars, c) >= 0 ? '_' : c);
+ }
+ string result = safeName.ToString().Trim().TrimEnd('.');
+ return result.Length == 0 ? "color_scheme" : result;
+ }
+
+ /// <summary>The file path a scheme named <paramref name="schemeName"/> is stored at in <paramref name="folder"/>: <see cref="SafeFileName"/> plus ".json".</summary>
+ public static string PathFor(string folder, string schemeName) => Path.Combine(folder, SafeFileName(schemeName) + ".json");
+
+ /// <summary>Maps a raw "scheme_type" value to <see cref="ColorScheme.SchemeTypeField"/> or <see cref="ColorScheme.SchemeTypeIntensity"/> (trimmed, case-insensitive); anything else becomes "".</summary>
+ private static string NormalizeSchemeType(string value)
+ {
+ string normalized = value.Trim().ToLowerInvariant();
+ return normalized is ColorScheme.SchemeTypeField or ColorScheme.SchemeTypeIntensity ? normalized : "";
+ }
+
+ /// <summary>
+ /// Reads <paramref name="key"/> from the JSON object as a string (numbers and booleans are converted with
+ /// the invariant culture), or <paramref name="fallback"/> when the key is missing or null.
+ /// </summary>
+ private static string GetString(JsonElement root, string key, string fallback)
+ {
+ if (!root.TryGetProperty(key, out JsonElement value))
+ {
+ return fallback;
+ }
+ return value.ValueKind switch
+ {
+ JsonValueKind.String => value.GetString() ?? fallback,
+ JsonValueKind.Number => value.GetDouble().ToString(CultureInfo.InvariantCulture),
+ JsonValueKind.True => "true",
+ JsonValueKind.False => "false",
+ _ => fallback,
+ };
+ }
+
+ /// <summary>
+ /// Converts a JSON list of <c>[r,g,b]</c> lists into colors. Each inner list needs at least three
+ /// numbers (extra values are ignored); non-integers are rounded and every channel is clamped to 0..255.
+ /// </summary>
+ /// <param name="node">The value of "colors" or "stops".</param>
+ /// <exception cref="InvalidDataException">The node or one of its items is not a list, a triplet is too short or a channel is not a number.</exception>
+ private static List<Rgb> ParseColorList(JsonElement node)
+ {
+ if (node.ValueKind != JsonValueKind.Array)
+ {
+ throw new InvalidDataException("Expected a list of [r,g,b] triplets.");
+ }
+ var colors = new List<Rgb>();
+ foreach (JsonElement item in node.EnumerateArray())
+ {
+ if (item.ValueKind != JsonValueKind.Array)
+ {
+ throw new InvalidDataException("Expected a list of [r,g,b] triplets.");
+ }
+ var values = new List<int>();
+ foreach (JsonElement channel in item.EnumerateArray())
+ {
+ if (channel.ValueKind != JsonValueKind.Number)
+ {
+ throw new InvalidDataException("A color channel must be a number.");
+ }
+ values.Add((int)Math.Round(channel.GetDouble(), MidpointRounding.AwayFromZero));
+ }
+ if (values.Count < 3)
+ {
+ throw new InvalidDataException("A color needs three values [r,g,b].");
+ }
+ colors.Add(Rgb.Clamped(values[0], values[1], values[2]));
+ }
+ return colors;
+ }
+
+ /// <summary>Returns <paramref name="text"/> as a double-quoted JSON string literal; escapes quotes, backslashes and control characters, leaves non-ASCII as UTF-8.</summary>
+ private static string Quote(string text)
+ {
+ var quoted = new StringBuilder();
+ quoted.Append('"');
+ foreach (char c in text)
+ {
+ switch (c)
+ {
+ case '"':
+ quoted.Append("\\\"");
+ break;
+ case '\\':
+ quoted.Append("\\\\");
+ break;
+ case '\t':
+ quoted.Append("\\t");
+ break;
+ case '\n':
+ quoted.Append("\\n");
+ break;
+ case '\r':
+ quoted.Append("\\r");
+ break;
+ default:
+ if (c < ' ')
+ {
+ quoted.Append("\\u").Append(((int)c).ToString("x4", CultureInfo.InvariantCulture));
+ }
+ else
+ {
+ quoted.Append(c);
+ }
+ break;
+ }
+ }
+ quoted.Append('"');
+ return quoted.ToString();
+ }
+
+}
diff --git a/WaveDude/Rendering/FrameRenderer.cs b/WaveDude/Rendering/FrameRenderer.cs
new file mode 100644
index 0000000..50cc401
--- /dev/null
+++ b/WaveDude/Rendering/FrameRenderer.cs
@@ -0,0 +1,73 @@
+using System.Numerics.Tensors;
+
+namespace WaveDude.Rendering;
+
+/// <summary>
+/// Static helpers that turn a stored frame (the field or the intensity of one simulation step, width × height
+/// values without padding) into packed BGRA32 pixels, like <c>WaveVisualizer.render_field</c> and
+/// <c>render_intensity</c> in the Python code: the value is converted to a table index (see
+/// <see cref="ColorLut"/>) and the index to a colour. Without a colour table (null) the index itself is used
+/// as grey level. Row loops run in parallel (each worker converts its row to floats with the vectorised
+/// <see cref="TensorPrimitives.ConvertToSingle"/> first), so the methods are CPU-bound but not thread-affine;
+/// the caller owns the buffers and must not touch them while a call is in progress.
+/// </summary>
+public static class FrameRenderer
+{
+ /// <summary>
+ /// Renders the wave field: every value is mapped by <see cref="ColorLut.FieldIndex"/>
+ /// (<c>clip(value · brightness, -1, 1) · 127 + 127</c>) and coloured.
+ /// </summary>
+ /// <param name="values">Field values, row-major, <paramref name="width"/> × <paramref name="height"/>.</param>
+ /// <param name="width">Frame width in pixels.</param>
+ /// <param name="height">Frame height in pixels.</param>
+ /// <param name="lut">ARGB palette indexed 0..254 (127 = zero field), or null for greyscale.</param>
+ /// <param name="brightness">Gain applied before the value is clamped to -1..1.</param>
+ /// <param name="pixels">Destination, at least <paramref name="width"/> × <paramref name="height"/> packed BGRA32 pixels, row-major.</param>
+ public static void RenderField(ReadOnlyMemory<Half> values, int width, int height, int[]? lut, float brightness, Memory<int> pixels)
+ {
+ Parallel.For(0, height, () => new float[width], (y, _, row) =>
+ {
+ TensorPrimitives.ConvertToSingle(values.Span.Slice(y * width, width), row);
+ Span<int> target = pixels.Span.Slice(y * width, width);
+ for (int x = 0; x < width; x++)
+ {
+ target[x] = Colorize(ColorLut.FieldIndex(row[x], brightness), lut);
+ }
+ return row;
+ }, _ => { });
+ }
+
+ /// <summary>
+ /// Renders the accumulated intensity: each value is mapped as <c>sqrt(value) · brightness</c> (exponent 0.5,
+ /// as in the Python code), clamped to 1, then scaled to palette index 0..254 (non-positive values map to 0).
+ /// </summary>
+ /// <param name="values">Intensity values, row-major, <paramref name="width"/> × <paramref name="height"/>.</param>
+ /// <param name="width">Frame width in pixels.</param>
+ /// <param name="height">Frame height in pixels.</param>
+ /// <param name="lut">ARGB palette indexed 0..254, or null for greyscale.</param>
+ /// <param name="brightness">Gain applied after the square-root compression.</param>
+ /// <param name="pixels">Destination, at least <paramref name="width"/> × <paramref name="height"/> packed BGRA32 pixels, row-major.</param>
+ public static void RenderIntensity(ReadOnlyMemory<Half> values, int width, int height, int[]? lut, float brightness, Memory<int> pixels)
+ {
+ Parallel.For(0, height, () => new float[width], (y, _, row) =>
+ {
+ TensorPrimitives.ConvertToSingle(values.Span.Slice(y * width, width), row);
+ Span<int> target = pixels.Span.Slice(y * width, width);
+ for (int x = 0; x < width; x++)
+ {
+ float value = row[x];
+ int index = 0;
+ if (value > 0f)
+ {
+ index = (int)(Math.Min(Math.Sqrt(value) * brightness, 1.0) * 254.0);
+ }
+ target[x] = Colorize(index, lut);
+ }
+ return row;
+ }, _ => { });
+ }
+
+ /// <summary>Looks up a palette index in <paramref name="lut"/>, or builds an opaque grey of that level when there is no LUT.</summary>
+ public static int Colorize(int index, int[]? lut) =>
+ lut != null ? lut[index] : unchecked((int)0xFF000000) | (index << 16) | (index << 8) | index;
+}
diff --git a/WaveDude/Rendering/Rgb.cs b/WaveDude/Rendering/Rgb.cs
new file mode 100644
index 0000000..40aeb22
--- /dev/null
+++ b/WaveDude/Rendering/Rgb.cs
@@ -0,0 +1,20 @@
+namespace WaveDude.Rendering;
+
+/// <summary>An opaque 8-bit RGB colour, the unit of a <see cref="ColorScheme"/>; a value type usable from any thread.</summary>
+/// <param name="R">Red 0..255.</param>
+/// <param name="G">Green 0..255.</param>
+/// <param name="B">Blue 0..255.</param>
+public readonly record struct Rgb(byte R, byte G, byte B)
+{
+ /// <summary>The colour packed as opaque ARGB (<c>0xFFRRGGBB</c>), which is also the in-memory byte order of a BGRA32 pixel.</summary>
+ public int ToArgb() => unchecked((int)0xFF000000) | (R << 16) | (G << 8) | B;
+
+ /// <summary>The colour of a packed ARGB value; the alpha byte is ignored.</summary>
+ public static Rgb FromArgb(int argb) => new((byte)(argb >> 16), (byte)(argb >> 8), (byte)argb);
+
+ /// <summary>Creates a colour from channel values clamped to 0..255.</summary>
+ public static Rgb Clamped(int r, int g, int b) => new((byte)Math.Clamp(r, 0, 255), (byte)Math.Clamp(g, 0, 255), (byte)Math.Clamp(b, 0, 255));
+
+ /// <summary><c>[r,g,b]</c>, the JSON triplet form of the scheme files.</summary>
+ public override string ToString() => $"[{R},{G},{B}]";
+}
diff --git a/WaveDude/Runs/FrameCache.cs b/WaveDude/Runs/FrameCache.cs
new file mode 100644
index 0000000..e9f0a03
--- /dev/null
+++ b/WaveDude/Runs/FrameCache.cs
@@ -0,0 +1,73 @@
+using NLog;
+
+namespace WaveDude.Runs;
+
+/// <summary>
+/// Where <see cref="FrameStore"/> files live: one per run under the user's local application data, named so
+/// that a leftover of a crashed process is recognisable. UI thread.
+/// </summary>
+public static class FrameCache
+{
+ private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
+ private static int _sequence;
+
+ /// <summary>File extension of a frame store.</summary>
+ public const string Extension = ".wdframes";
+
+ /// <summary><c>%LOCALAPPDATA%\WaveDude\cache</c>; created on first use.</summary>
+ public static string Directory { get; } =
+ Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "WaveDude", "cache");
+
+ /// <summary>A fresh file path for a run's store: <c>run-&lt;time&gt;-&lt;pid&gt;-&lt;n&gt;.wdframes</c> in <see cref="Directory"/>.</summary>
+ public static string NewPath()
+ {
+ System.IO.Directory.CreateDirectory(Directory);
+ int n = Interlocked.Increment(ref _sequence);
+ return Path.Combine(Directory, $"run-{DateTime.Now:yyyyMMdd-HHmmss}-{Environment.ProcessId}-{n}{Extension}");
+ }
+
+ /// <summary>
+ /// Checks that the cache drive has room for a store of <paramref name="bytes"/> bytes (plus a small margin).
+ /// </summary>
+ /// <exception cref="RunSpecException">Not enough free space; the message states the size needed.</exception>
+ public static void CheckSpace(long bytes)
+ {
+ System.IO.Directory.CreateDirectory(Directory);
+ var drive = new DriveInfo(Path.GetPathRoot(Directory) ?? Directory);
+ long needed = bytes + (64L << 20);
+ if (drive.AvailableFreeSpace < needed)
+ {
+ throw new RunSpecException(
+ $"The run needs {bytes / (1024.0 * 1024 * 1024):0.#} GB of frame cache on {drive.Name}, but only {drive.AvailableFreeSpace / (1024.0 * 1024 * 1024):0.#} GB is free. "
+ + "Reduce the canvas, the steps or raise 'Visualize every', or turn the intensity preview off.");
+ }
+ }
+
+ /// <summary>
+ /// Deletes leftover stores that no running process holds open (a live store is opened without sharing,
+ /// so deleting it fails and it is skipped). Call once at start-up.
+ /// </summary>
+ public static void Sweep()
+ {
+ if (!System.IO.Directory.Exists(Directory))
+ {
+ return;
+ }
+ foreach (string file in System.IO.Directory.GetFiles(Directory, "*" + Extension))
+ {
+ try
+ {
+ File.Delete(file);
+ Logger.Debug("Deleted leftover frame cache {0}", file);
+ }
+ catch (IOException)
+ {
+ // in use by another instance
+ }
+ catch (UnauthorizedAccessException)
+ {
+ // in use by another instance
+ }
+ }
+ }
+}
diff --git a/WaveDude/Runs/FrameLayer.cs b/WaveDude/Runs/FrameLayer.cs
new file mode 100644
index 0000000..092ce4d
--- /dev/null
+++ b/WaveDude/Runs/FrameLayer.cs
@@ -0,0 +1,22 @@
+namespace WaveDude.Runs;
+
+/// <summary>One plane of a stored frame.</summary>
+public enum FrameLayer
+{
+ /// <summary>The wave field, signed amplitude.</summary>
+ Field,
+ /// <summary>The averaged intensity, non-negative.</summary>
+ Intensity,
+}
+
+/// <summary>The set of planes a <see cref="FrameStore"/> holds per frame.</summary>
+[Flags]
+public enum FrameLayers
+{
+ /// <summary>No plane.</summary>
+ None = 0,
+ /// <summary><see cref="FrameLayer.Field"/>.</summary>
+ Field = 1,
+ /// <summary><see cref="FrameLayer.Intensity"/>.</summary>
+ Intensity = 2,
+}
diff --git a/WaveDude/Runs/FrameStore.cs b/WaveDude/Runs/FrameStore.cs
new file mode 100644
index 0000000..398486e
--- /dev/null
+++ b/WaveDude/Runs/FrameStore.cs
@@ -0,0 +1,327 @@
+using System.Numerics.Tensors;
+using System.Runtime.InteropServices;
+using Microsoft.Win32.SafeHandles;
+
+namespace WaveDude.Runs;
+
+/// <summary>
+/// The frames of one run: a file holding, per frame, one <see cref="Half"/> plane per layer
+/// (<see cref="Layers"/>), <see cref="Width"/> × <see cref="Height"/> values row-major with the engine's
+/// padding stripped. The file is pre-sized for <see cref="Capacity"/> frames and marked temporary, so the
+/// operating system's cache keeps recent frames in memory and spills the rest to disk; it is deleted when
+/// the store is disposed (or the process ends, <see cref="FileOptions.DeleteOnClose"/>).
+/// </summary>
+/// <remarks>
+/// Threads: the run's worker is the only writer (<see cref="Write(int, ReadOnlySpan{Half}, ReadOnlySpan{Half})"/>, frames in order); any thread may read
+/// frames below <see cref="Count"/>, which is published after the frame's bytes. Reads and writes are
+/// positional (<see cref="RandomAccess"/>) and run concurrently; <see cref="Dispose"/> waits for them.
+/// Access goes through the cache manager rather than a memory mapping on purpose: touching 16 MB of fresh
+/// mapped pages per frame cost more than the frame's conversion, on both the writer and the reader side,
+/// and unmapping flushed the whole file to disk before its deletion.
+/// Layout: a <see cref="HeaderSize"/>-byte header ("WDFS", version, width, height, layers, visualize-every,
+/// capacity), then <see cref="Capacity"/> × <see cref="FrameBytes"/>; within a frame the planes follow the
+/// order of <see cref="FrameLayer"/>, only those present.
+/// </remarks>
+public sealed class FrameStore : IFrameSource, IDisposable
+{
+ /// <summary>Size of the file header in bytes.</summary>
+ public const int HeaderSize = 64;
+
+ private const uint Magic = 0x53464457; // "WDFS" as little-endian bytes
+ private const int Version = 1;
+
+ private readonly ReaderWriterLockSlim _lifetime = new();
+ private readonly FileStream _file;
+ private readonly SafeFileHandle _handle;
+ private readonly Half[] _staging;
+ private Half[]? _staging2;
+ private int _count;
+ private bool _disposed;
+
+ private FrameStore(string path, int width, int height, FrameLayers layers, int capacity, int visualizeEvery)
+ {
+ ArgumentOutOfRangeException.ThrowIfLessThan(width, 1);
+ ArgumentOutOfRangeException.ThrowIfLessThan(height, 1);
+ ArgumentOutOfRangeException.ThrowIfLessThan(capacity, 1);
+ ArgumentOutOfRangeException.ThrowIfLessThan(visualizeEvery, 1);
+ if (layers == FrameLayers.None)
+ {
+ throw new ArgumentException("A store needs at least one layer.", nameof(layers));
+ }
+ Path = path;
+ Width = width;
+ Height = height;
+ Layers = layers;
+ Capacity = capacity;
+ VisualizeEvery = visualizeEvery;
+ LayerCount = (Has(FrameLayer.Field) ? 1 : 0) + (Has(FrameLayer.Intensity) ? 1 : 0);
+ _staging = new Half[width * height];
+ _file = new FileStream(path, FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None, 1, FileOptions.DeleteOnClose);
+ try
+ {
+ // a temporary file: the cache manager keeps its pages in memory while it can instead of writing
+ // them out eagerly; the data is read back from the cache and the file is deleted in the end
+ try
+ {
+ File.SetAttributes(path, FileAttributes.Temporary | FileAttributes.NotContentIndexed);
+ }
+ catch (IOException)
+ {
+ // a hint only
+ }
+ catch (UnauthorizedAccessException)
+ {
+ // a hint only
+ }
+ _file.SetLength(TotalBytes);
+ _handle = _file.SafeFileHandle;
+ Span<byte> header = stackalloc byte[HeaderSize];
+ BitConverter.TryWriteBytes(header, Magic);
+ BitConverter.TryWriteBytes(header[4..], Version);
+ BitConverter.TryWriteBytes(header[8..], width);
+ BitConverter.TryWriteBytes(header[12..], height);
+ BitConverter.TryWriteBytes(header[16..], (int)layers);
+ BitConverter.TryWriteBytes(header[20..], visualizeEvery);
+ BitConverter.TryWriteBytes(header[24..], capacity);
+ RandomAccess.Write(_handle, header, 0);
+ }
+ catch
+ {
+ _file.Dispose();
+ throw;
+ }
+ }
+
+ /// <summary>Creates the file at <paramref name="path"/> (which must not exist) sized for the whole run.</summary>
+ /// <param name="path">File path, normally from <see cref="FrameCache.NewPath"/>.</param>
+ /// <param name="width">Frame width in pixels.</param>
+ /// <param name="height">Frame height in pixels.</param>
+ /// <param name="layers">The planes every frame holds; at least one.</param>
+ /// <param name="capacity">Number of frames the run produces (<see cref="RunSpec.FrameCount"/>).</param>
+ /// <param name="visualizeEvery">Steps per frame, kept for <see cref="StepOf"/>.</param>
+ /// <exception cref="IOException">The file cannot be created or sized (for instance no disk space).</exception>
+ public static FrameStore Create(string path, int width, int height, FrameLayers layers, int capacity, int visualizeEvery) =>
+ new(path, width, height, layers, capacity, visualizeEvery);
+
+ /// <summary>Bytes the file of a store with these dimensions takes, for <see cref="FrameCache.CheckSpace"/>.</summary>
+ public static long SizeOf(int width, int height, FrameLayers layers, int capacity)
+ {
+ int layerCount = ((layers & FrameLayers.Field) != 0 ? 1 : 0) + ((layers & FrameLayers.Intensity) != 0 ? 1 : 0);
+ return HeaderSize + (long)capacity * layerCount * width * height * 2;
+ }
+
+ /// <summary>Full path of the backing file.</summary>
+ public string Path { get; }
+
+ /// <summary>Frame width in pixels.</summary>
+ public int Width { get; }
+
+ /// <summary>Frame height in pixels.</summary>
+ public int Height { get; }
+
+ /// <summary>The planes every frame holds.</summary>
+ public FrameLayers Layers { get; }
+
+ /// <summary>Number of planes per frame.</summary>
+ public int LayerCount { get; }
+
+ /// <summary>Number of frames the file has room for.</summary>
+ public int Capacity { get; }
+
+ /// <summary>Steps per frame: frame k shows the state after step k × this.</summary>
+ public int VisualizeEvery { get; }
+
+ /// <summary>Frames written so far; frames 0..Count-1 may be read from any thread.</summary>
+ public int Count => Volatile.Read(ref _count);
+
+ /// <summary>Bytes of one plane: <see cref="Width"/> × <see cref="Height"/> × 2.</summary>
+ public long PlaneBytes => (long)Width * Height * 2;
+
+ /// <summary>Bytes of one frame: <see cref="PlaneBytes"/> × <see cref="LayerCount"/>.</summary>
+ public long FrameBytes => PlaneBytes * LayerCount;
+
+ /// <summary>Size of the whole file.</summary>
+ public long TotalBytes => HeaderSize + Capacity * FrameBytes;
+
+ /// <summary>Whether frames hold the given plane.</summary>
+ public bool Has(FrameLayer layer) => (Layers & (FrameLayers)(1 << (int)layer)) != 0;
+
+ /// <summary>The 0-based simulation step frame <paramref name="frame"/> shows.</summary>
+ public int StepOf(int frame) => frame * VisualizeEvery;
+
+ /// <summary>Raised on the writer's thread after <see cref="Count"/> advanced, with the new count.</summary>
+ public event Action<int>? FrameWritten;
+
+ /// <summary>
+ /// Stores the next frame from the engine's padded buffers (row y starts at <c>(y + 1) × stride + 1</c>),
+ /// converting to <see cref="Half"/> in parallel over the rows first. Writer thread only; frames must arrive
+ /// in order. The run itself uses the <see cref="Half"/> overload with the engine's own captures.
+ /// </summary>
+ /// <param name="frame">Index of the frame; must equal <see cref="Count"/>.</param>
+ /// <param name="field">Padded field buffer, <c>stride × (Height + 2)</c> floats.</param>
+ /// <param name="intensity">Padded intensity buffer, or null when the store has no intensity plane.</param>
+ /// <param name="stride">Row pitch of the padded buffers (<see cref="Width"/> + 2).</param>
+ /// <exception cref="ArgumentOutOfRangeException"><paramref name="frame"/> is not the next frame or beyond <see cref="Capacity"/>.</exception>
+ /// <exception cref="ArgumentNullException">The store has an intensity plane but <paramref name="intensity"/> is null.</exception>
+ /// <exception cref="ObjectDisposedException">The store is disposed.</exception>
+ public void Write(int frame, float[] field, float[]? intensity, int stride)
+ {
+ int width = Width;
+ Half[] fieldPlane = _staging;
+ Parallel.For(0, Height, y => TensorPrimitives.ConvertToHalf(field.AsSpan((y + 1) * stride + 1, width), fieldPlane.AsSpan(y * width, width)));
+ Half[]? intensityPlane = null;
+ if (Has(FrameLayer.Intensity))
+ {
+ ArgumentNullException.ThrowIfNull(intensity);
+ intensityPlane = _staging2 ??= new Half[Width * Height];
+ Parallel.For(0, Height, y => TensorPrimitives.ConvertToHalf(intensity.AsSpan((y + 1) * stride + 1, width), intensityPlane.AsSpan(y * width, width)));
+ }
+ Write(frame, fieldPlane, intensityPlane);
+ }
+
+ /// <summary>
+ /// Stores the next frame from <see cref="Half"/> planes in the store's own layout (what
+ /// <see cref="Engine.IWaveEngine.CaptureFrame"/> produces), one positional write per plane. Any thread, but
+ /// only one writer at a time; frames must arrive in order.
+ /// </summary>
+ /// <param name="frame">Index of the frame; must equal <see cref="Count"/>.</param>
+ /// <param name="field">Field plane, <see cref="Width"/> × <see cref="Height"/> values.</param>
+ /// <param name="intensity">Intensity plane, or null when the store has no intensity plane.</param>
+ /// <exception cref="ArgumentOutOfRangeException"><paramref name="frame"/> is not the next frame or beyond <see cref="Capacity"/>, or a plane is too short.</exception>
+ /// <exception cref="ArgumentNullException">The store has an intensity plane but <paramref name="intensity"/> is null.</exception>
+ /// <exception cref="ObjectDisposedException">The store is disposed.</exception>
+ public void Write(int frame, ReadOnlySpan<Half> field, ReadOnlySpan<Half> intensity)
+ {
+ int length = Width * Height;
+ _lifetime.EnterReadLock();
+ try
+ {
+ ObjectDisposedException.ThrowIf(_disposed, this);
+ if (frame != _count || frame >= Capacity)
+ {
+ throw new ArgumentOutOfRangeException(nameof(frame), frame, "Frames must be written in order and within the capacity.");
+ }
+ if (Has(FrameLayer.Field))
+ {
+ if (field.Length < length)
+ {
+ throw new ArgumentOutOfRangeException(nameof(field), "The field plane is too short.");
+ }
+ RandomAccess.Write(_handle, MemoryMarshal.AsBytes(field[..length]), PlaneOffset(frame, FrameLayer.Field));
+ }
+ if (Has(FrameLayer.Intensity))
+ {
+ if (intensity.Length < length)
+ {
+ throw new ArgumentNullException(nameof(intensity), "The store has an intensity plane; the intensity is missing or too short.");
+ }
+ RandomAccess.Write(_handle, MemoryMarshal.AsBytes(intensity[..length]), PlaneOffset(frame, FrameLayer.Intensity));
+ }
+ Volatile.Write(ref _count, frame + 1);
+ }
+ finally
+ {
+ _lifetime.ExitReadLock();
+ }
+ FrameWritten?.Invoke(frame + 1);
+ }
+
+ /// <summary>Stores a captured frame (<see cref="Engine.IWaveEngine.CaptureFrame"/>, awaited); the snapshot's size must match.</summary>
+ /// <exception cref="ArgumentException">The snapshot has another size.</exception>
+ public void Write(int frame, Engine.FrameSnapshot snapshot)
+ {
+ if (snapshot.Width != Width || snapshot.Height != Height)
+ {
+ throw new ArgumentException("The snapshot does not match the store's size.", nameof(snapshot));
+ }
+ Write(frame, snapshot.Field, snapshot.HasIntensity ? snapshot.Intensity : null);
+ }
+
+ /// <summary>
+ /// Reads one plane of a stored frame into <paramref name="destination"/> (at least <see cref="Width"/> ×
+ /// <see cref="Height"/> values). Safe against a concurrent <see cref="Dispose"/>; returns false instead of
+ /// reading when the store is already disposed.
+ /// </summary>
+ /// <param name="frame">Frame index below <see cref="Count"/>.</param>
+ /// <param name="layer">A plane the store holds.</param>
+ /// <param name="destination">Receives the values row-major.</param>
+ /// <exception cref="ArgumentOutOfRangeException">The frame is not written yet, the plane is not stored, or the destination is too small.</exception>
+ public bool CopyLayer(int frame, FrameLayer layer, Span<Half> destination)
+ {
+ int length = Width * Height;
+ if (destination.Length < length)
+ {
+ throw new ArgumentOutOfRangeException(nameof(destination), "The destination is smaller than a plane.");
+ }
+ _lifetime.EnterReadLock();
+ try
+ {
+ if (_disposed)
+ {
+ return false;
+ }
+ if (frame < 0 || frame >= Count)
+ {
+ throw new ArgumentOutOfRangeException(nameof(frame), frame, "The frame is not written yet.");
+ }
+ if (!Has(layer))
+ {
+ throw new ArgumentOutOfRangeException(nameof(layer), layer, "The store has no such plane.");
+ }
+ Span<byte> bytes = MemoryMarshal.AsBytes(destination[..length]);
+ long offset = PlaneOffset(frame, layer);
+ while (bytes.Length > 0)
+ {
+ int read = RandomAccess.Read(_handle, bytes, offset);
+ if (read <= 0)
+ {
+ throw new IOException("The frame store file ended early.");
+ }
+ bytes = bytes[read..];
+ offset += read;
+ }
+ return true;
+ }
+ catch (ObjectDisposedException)
+ {
+ // disposed while reading: the frame is gone with the run
+ return false;
+ }
+ finally
+ {
+ _lifetime.ExitReadLock();
+ }
+ }
+
+ /// <summary>
+ /// Closes the file, which deletes it. Marks the store disposed under the lock (so no new read or write
+ /// starts) but closes the file outside it: deleting a 10 GB file can take a second, and a reader must not
+ /// wait for that. A read or write in flight ends with <see cref="ObjectDisposedException"/>, which
+ /// <see cref="CopyLayer"/> turns into false.
+ /// </summary>
+ public void Dispose()
+ {
+ _lifetime.EnterWriteLock();
+ try
+ {
+ if (_disposed)
+ {
+ return;
+ }
+ _disposed = true;
+ }
+ finally
+ {
+ _lifetime.ExitWriteLock();
+ }
+ _file.Dispose();
+ }
+
+ /// <summary>Byte offset of a plane; planes follow the <see cref="FrameLayer"/> order, only those present.</summary>
+ private long PlaneOffset(int frame, FrameLayer layer)
+ {
+ int planeIndex = layer == FrameLayer.Intensity && Has(FrameLayer.Field) ? 1 : 0;
+ return HeaderSize + frame * FrameBytes + planeIndex * PlaneBytes;
+ }
+
+}
diff --git a/WaveDude/Runs/IFrameSource.cs b/WaveDude/Runs/IFrameSource.cs
new file mode 100644
index 0000000..9c10107
--- /dev/null
+++ b/WaveDude/Runs/IFrameSource.cs
@@ -0,0 +1,56 @@
+using WaveDude.Engine;
+
+namespace WaveDude.Runs;
+
+/// <summary>
+/// Something a frame can be read from for display: the <see cref="FrameStore"/> of a run, or a single
+/// captured <see cref="FrameSnapshot"/>. Readers call <see cref="CopyLayer"/> from any thread.
+/// </summary>
+public interface IFrameSource
+{
+ /// <summary>Frame width in pixels.</summary>
+ int Width { get; }
+
+ /// <summary>Frame height in pixels.</summary>
+ int Height { get; }
+
+ /// <summary>Frames available: indices 0..Count-1 may be read.</summary>
+ int Count { get; }
+
+ /// <summary>Whether the frames hold the given plane.</summary>
+ bool Has(FrameLayer layer);
+
+ /// <summary>Reads one plane of a frame into <paramref name="destination"/>; false when the source is gone.</summary>
+ bool CopyLayer(int frame, FrameLayer layer, Span<Half> destination);
+}
+
+/// <summary>A single captured frame as a one-frame <see cref="IFrameSource"/>; every frame index reads the same snapshot.</summary>
+public sealed class SnapshotFrameSource(FrameSnapshot snapshot) : IFrameSource
+{
+ /// <summary>The snapshot read.</summary>
+ public FrameSnapshot Snapshot { get; } = snapshot;
+
+ /// <inheritdoc/>
+ public int Width => Snapshot.Width;
+
+ /// <inheritdoc/>
+ public int Height => Snapshot.Height;
+
+ /// <inheritdoc/>
+ public int Count => 1;
+
+ /// <inheritdoc/>
+ public bool Has(FrameLayer layer) => layer == FrameLayer.Field || Snapshot.HasIntensity;
+
+ /// <inheritdoc/>
+ public bool CopyLayer(int frame, FrameLayer layer, Span<Half> destination)
+ {
+ Half[]? plane = layer == FrameLayer.Field ? Snapshot.Field : Snapshot.HasIntensity ? Snapshot.Intensity : null;
+ if (plane == null)
+ {
+ return false;
+ }
+ plane.AsSpan().CopyTo(destination);
+ return true;
+ }
+}
diff --git a/WaveDude/Runs/RunSpec.cs b/WaveDude/Runs/RunSpec.cs
new file mode 100644
index 0000000..b3ef240
--- /dev/null
+++ b/WaveDude/Runs/RunSpec.cs
@@ -0,0 +1,147 @@
+using System.Collections.Immutable;
+using NLog;
+using WaveDude.Engine;
+using WaveDude.Model;
+using WaveDude.Probes;
+
+namespace WaveDude.Runs;
+
+/// <summary>A project cannot be run as it stands; the message is meant for the user.</summary>
+public sealed class RunSpecException(string message) : Exception(message);
+
+/// <summary>
+/// Everything a run needs, snapshotted from the <see cref="Project"/> on the UI thread by <see cref="Create"/>
+/// so the worker never touches the (UI-thread-only) model and later edits do not affect a run in progress.
+/// Immutable; shared read-only by the worker and the UI.
+/// </summary>
+/// <remarks>
+/// Frames and steps: the run records a frame after every <see cref="VisualizeEvery"/>-th step, starting with
+/// the first, so frame k shows the state after 0-based step k × <see cref="VisualizeEvery"/> (the step index
+/// the preview readout prints) and the run yields <see cref="FrameCount"/> frames in total.
+/// </remarks>
+public sealed class RunSpec
+{
+ private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
+
+ private RunSpec(Project project, ScenePixels? image, int width, int height, bool trackIntensity, bool preferGpu)
+ {
+ Seed = project.Seed;
+ Steps = project.Simulation.Steps;
+ VisualizeEvery = Math.Max(1, project.Simulation.VisualizeEvery);
+ PreferGpu = preferGpu;
+ Engine = EngineOptions.From(project.Simulation, project.Scene, trackIntensity);
+ Image = image;
+ Width = width;
+ Height = height;
+ DampingEdge = project.Scene.DampingEdge;
+ RefractiveIndex = project.Scene.RefractiveIndex;
+ ImageSources = image != null && project.Scene.ImageSources;
+ Emitters = [.. Emitter.FromProject(project)];
+ Probes = [.. project.Probes.Where(probe => probe.Active).Select(ProbeSpec.From)];
+ }
+
+ /// <summary>The project's random seed, for the record (the emitters already carry their derived seeds).</summary>
+ public int Seed { get; }
+
+ /// <summary>Number of simulation steps to run.</summary>
+ public int Steps { get; }
+
+ /// <summary>A frame is recorded every this many steps (at least 1).</summary>
+ public int VisualizeEvery { get; }
+
+ /// <summary>Number of frames the run produces: ⌈<see cref="Steps"/> / <see cref="VisualizeEvery"/>⌉.</summary>
+ public int FrameCount => (Steps + VisualizeEvery - 1) / VisualizeEvery;
+
+ /// <summary>Try the OpenCL engine first; an application setting, not part of the project.</summary>
+ public bool PreferGpu { get; }
+
+ /// <summary>The physics options the engine is created with.</summary>
+ public EngineOptions Engine { get; }
+
+ /// <summary>Whether the engine tracks the intensity, i.e. the frame store has an intensity plane.</summary>
+ public bool TrackIntensity => Engine.TrackIntensity;
+
+ /// <summary>The planes every frame of the store holds.</summary>
+ public FrameLayers Layers => FrameLayers.Field | (TrackIntensity ? FrameLayers.Intensity : FrameLayers.None);
+
+ /// <summary>The decoded scene image, or null for a blank canvas of <see cref="Width"/> × <see cref="Height"/>.</summary>
+ public ScenePixels? Image { get; }
+
+ /// <summary>Canvas width in pixels.</summary>
+ public int Width { get; }
+
+ /// <summary>Canvas height in pixels.</summary>
+ public int Height { get; }
+
+ /// <summary>Thickness of the absorbing border in pixels; 0 for none.</summary>
+ public int DampingEdge { get; }
+
+ /// <summary>Background refractive index of a blank canvas.</summary>
+ public double RefractiveIndex { get; }
+
+ /// <summary>Whether the green channel of the scene image emits.</summary>
+ public bool ImageSources { get; }
+
+ /// <summary>The emitters of the enabled object sources (empty when the scene does not use them).</summary>
+ public ImmutableArray<Emitter> Emitters { get; }
+
+ /// <summary>The active probes, in project order.</summary>
+ public ImmutableArray<ProbeSpec> Probes { get; }
+
+ /// <summary>
+ /// Snapshots <paramref name="project"/> for a run. Regenerates the source emitters first (the model only
+ /// does that on load, reseed and add, not on edits). UI thread.
+ /// </summary>
+ /// <param name="project">The project to run; not modified beyond the emitter regeneration.</param>
+ /// <param name="image">The decoded scene image when <see cref="Scene.Mode"/> is <see cref="SceneMode.Image"/>; ignored otherwise.</param>
+ /// <param name="preferGpu">Try the OpenCL engine first (the application's choice; the CPU is the fallback either way).</param>
+ /// <exception cref="RunSpecException">The project cannot run: no image for an image scene, or no steps.</exception>
+ public static RunSpec Create(Project project, ScenePixels? image, bool preferGpu = true)
+ {
+ project.Normalize();
+ if (project.Simulation.Steps < 1)
+ {
+ throw new RunSpecException("The simulation has no steps to run.");
+ }
+ int width;
+ int height;
+ if (project.Scene.Mode == SceneMode.Image)
+ {
+ if (image == null)
+ {
+ throw new RunSpecException("The scene uses an image, but no image is loaded.");
+ }
+ width = image.Width;
+ height = image.Height;
+ if (project.Scene.ImageSources && SceneData.CountSources(image.Bgra, width, height, image.StrideBytes) == 0)
+ {
+ Logger.Warn("Image sources are enabled, but the scene image has no green pixels.");
+ }
+ }
+ else
+ {
+ image = null;
+ width = project.Scene.Width;
+ height = project.Scene.Height;
+ }
+ bool trackIntensity = project.Display.Intensity.Preview || project.Display.Intensity.Export
+ || project.Probes.Any(probe => probe.Active && probe.Measurement != ProbeMeasurement.Amplitude);
+ return new RunSpec(project, image, width, height, trackIntensity, preferGpu);
+ }
+
+ /// <summary>
+ /// Whether an engine built for <paramref name="other"/> serves this spec too: the same canvas (size, image,
+ /// damping, refractive index, image sources), the same solver options and engine choice. The emitters may differ.
+ /// </summary>
+ public bool SameSceneAs(RunSpec other) =>
+ Width == other.Width && Height == other.Height && ReferenceEquals(Image, other.Image) && DampingEdge == other.DampingEdge
+ && RefractiveIndex == other.RefractiveIndex && ImageSources == other.ImageSources && Engine == other.Engine && PreferGpu == other.PreferGpu;
+
+ /// <summary>Whether the object sources are the same emitters, value for value.</summary>
+ public bool SameEmittersAs(RunSpec other) => Emitters.AsSpan().SequenceEqual(other.Emitters.AsSpan());
+
+ /// <summary>Builds the engine's scene input from the snapshot. Worker; allocates the per-pixel maps.</summary>
+ internal SceneData BuildScene() => Image is { } image
+ ? SceneData.FromBgra(image.Bgra, image.Width, image.Height, image.StrideBytes, ImageSources, DampingEdge)
+ : SceneData.Empty(Width, Height, DampingEdge, RefractiveIndex);
+}
diff --git a/WaveDude/Runs/RunState.cs b/WaveDude/Runs/RunState.cs
new file mode 100644
index 0000000..4f595ad
--- /dev/null
+++ b/WaveDude/Runs/RunState.cs
@@ -0,0 +1,20 @@
+namespace WaveDude.Runs;
+
+/// <summary>Where a <see cref="SimulationRun"/> is in its life.</summary>
+public enum RunState
+{
+ /// <summary>Constructed, <see cref="SimulationRun.Start"/> not called yet.</summary>
+ Created,
+ /// <summary>The worker is building the scene and the engine.</summary>
+ Starting,
+ /// <summary>Stepping.</summary>
+ Running,
+ /// <summary>Parked at the pause gate; <see cref="SimulationRun.Resume"/> continues.</summary>
+ Paused,
+ /// <summary>Finished all steps.</summary>
+ Completed,
+ /// <summary>Stopped by <see cref="SimulationRun.Stop"/> before the last step.</summary>
+ Cancelled,
+ /// <summary>Ended with an error (<see cref="SimulationRun.Error"/>).</summary>
+ Failed,
+}
diff --git a/WaveDude/Runs/ScenePixels.cs b/WaveDude/Runs/ScenePixels.cs
new file mode 100644
index 0000000..48ce3db
--- /dev/null
+++ b/WaveDude/Runs/ScenePixels.cs
@@ -0,0 +1,13 @@
+namespace WaveDude.Runs;
+
+/// <summary>
+/// A decoded scene image as 32-bit BGRA pixels, the UI-independent input of <see cref="RunSpec"/>: the
+/// application decodes the file (WPF with <c>BitmapDecoder</c>) and hands the bytes over; the run turns them
+/// into <see cref="Engine.SceneData"/> on its worker. Immutable; the array must not be modified after
+/// construction.
+/// </summary>
+/// <param name="Width">Image width in pixels (= canvas width).</param>
+/// <param name="Height">Image height in pixels (= canvas height).</param>
+/// <param name="StrideBytes">Bytes per row, at least 4 × <paramref name="Width"/>.</param>
+/// <param name="Bgra">Pixel bytes, B, G, R, A per pixel, <paramref name="Height"/> rows of <paramref name="StrideBytes"/>.</param>
+public sealed record ScenePixels(int Width, int Height, int StrideBytes, byte[] Bgra);
diff --git a/WaveDude/Runs/ScratchRunner.cs b/WaveDude/Runs/ScratchRunner.cs
new file mode 100644
index 0000000..ce156d6
--- /dev/null
+++ b/WaveDude/Runs/ScratchRunner.cs
@@ -0,0 +1,244 @@
+using System.Diagnostics;
+using NLog;
+using WaveDude.Engine;
+
+namespace WaveDude.Runs;
+
+/// <summary>The outcome of a scratch request: the frame, or why it was not computed.</summary>
+/// <param name="Spec">The snapshot of the project the frame was computed for.</param>
+/// <param name="Frame">The frame index requested.</param>
+/// <param name="Snapshot">The frame, or null when it was skipped; owned by the runner and valid until the next outcome.</param>
+/// <param name="Estimate">How long the runner expected (or took) to compute it.</param>
+public sealed record ScratchResult(RunSpec Spec, int Frame, FrameSnapshot? Snapshot, TimeSpan Estimate);
+
+/// <summary>
+/// Computes single frames of the current project state on demand, without a store: after an edit the
+/// preview asks for "frame k of the project as it is now", and the runner steps an engine from zero to that
+/// frame and captures it. The engine is kept between requests (a GPU engine takes a few hundred
+/// milliseconds to build) and only reset, or given new emitters when just the sources changed; it is rebuilt
+/// when the scene or the solver options change. Only the newest request is served: a request arriving
+/// while one is computing abandons it. A request whose predicted cost (steps × the measured cost per step)
+/// exceeds <see cref="Budget"/> is skipped and reported, so a slow engine does not stall the UI.
+/// </summary>
+/// <remarks>
+/// Threads: <see cref="Request"/> may be called from any thread; the work runs on one long-running task;
+/// <see cref="Completed"/> is raised through the <see cref="SynchronizationContext"/> given to the constructor
+/// (null: on the worker). The engine must not be shared with a stored run; the application does not request
+/// scratch frames while a run is active.
+/// </remarks>
+public sealed class ScratchRunner : IDisposable
+{
+ private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
+
+ /// <summary>How often the worker checks for a newer request, in steps.</summary>
+ private const int CheckInterval = 16;
+
+ /// <summary>Fewer steps than this say nothing reliable about the cost per step.</summary>
+ private const int MinStepsToMeasure = 50;
+
+ private readonly SynchronizationContext? _context;
+ private readonly SemaphoreSlim _signal = new(0);
+ private readonly CancellationTokenSource _cancel = new();
+ private readonly object _sync = new();
+ private readonly Task _worker;
+ private (RunSpec Spec, int Frame)? _request;
+ private IWaveEngine? _engine;
+ private RunSpec? _engineSpec;
+ private FrameSnapshot?[] _snapshots = new FrameSnapshot?[2];
+ private int _nextSnapshot;
+ private double _msPerStep = double.NaN;
+ private int _busy;
+
+ /// <param name="context">Where <see cref="Completed"/> is raised; null raises it on the worker.</param>
+ public ScratchRunner(SynchronizationContext? context)
+ {
+ _context = context;
+ _worker = Task.Factory.StartNew(Loop, TaskCreationOptions.LongRunning);
+ }
+
+ /// <summary>Longest predicted compute time a request may have before it is skipped.</summary>
+ public TimeSpan Budget { get; set; } = TimeSpan.FromSeconds(6);
+
+ /// <summary>Whether a request is being computed.</summary>
+ public bool IsBusy => Volatile.Read(ref _busy) != 0;
+
+ /// <summary>Cost of one step of the current engine as last measured, or NaN before the first compute.</summary>
+ public double MillisecondsPerStep => Volatile.Read(ref _msPerStep);
+
+ /// <summary>A request finished: with a frame, or skipped (<see cref="ScratchResult.Snapshot"/> null).</summary>
+ public event EventHandler<ScratchResult>? Completed;
+
+ /// <summary>Asks for frame <paramref name="frame"/> of <paramref name="spec"/>; replaces any request not yet started or in progress.</summary>
+ public void Request(RunSpec spec, int frame)
+ {
+ lock (_sync)
+ {
+ _request = (spec, frame);
+ }
+ _signal.Release();
+ }
+
+ /// <summary>Stops the worker and releases the engine.</summary>
+ public void Dispose()
+ {
+ _cancel.Cancel();
+ _signal.Release();
+ try
+ {
+ _worker.Wait(TimeSpan.FromSeconds(5));
+ }
+ catch (AggregateException)
+ {
+ // the worker was cancelled
+ }
+ (_engine as IDisposable)?.Dispose();
+ _engine = null;
+ _cancel.Dispose();
+ _signal.Dispose();
+ }
+
+ private (RunSpec Spec, int Frame)? TakeRequest()
+ {
+ lock (_sync)
+ {
+ (RunSpec, int)? request = _request;
+ _request = null;
+ return request;
+ }
+ }
+
+ private bool HasNewerRequest()
+ {
+ lock (_sync)
+ {
+ return _request != null;
+ }
+ }
+
+ private void Loop()
+ {
+ CancellationToken token = _cancel.Token;
+ while (!token.IsCancellationRequested)
+ {
+ try
+ {
+ _signal.Wait(token);
+ }
+ catch (OperationCanceledException)
+ {
+ return;
+ }
+ (RunSpec Spec, int Frame)? request = TakeRequest();
+ if (request == null)
+ {
+ continue;
+ }
+ Volatile.Write(ref _busy, 1);
+ try
+ {
+ Compute(request.Value.Spec, request.Value.Frame, token);
+ }
+ catch (OperationCanceledException)
+ {
+ return;
+ }
+ catch (Exception ex)
+ {
+ Logger.Error(ex, "Preview computation failed: {Message}", ex.Message);
+ (_engine as IDisposable)?.Dispose();
+ _engine = null;
+ _engineSpec = null;
+ }
+ finally
+ {
+ Volatile.Write(ref _busy, 0);
+ }
+ }
+ }
+
+ private void Compute(RunSpec spec, int frame, CancellationToken token)
+ {
+ int steps = frame * spec.VisualizeEvery + 1;
+ double msPerStep = Volatile.Read(ref _msPerStep);
+ var estimate = TimeSpan.FromMilliseconds(double.IsNaN(msPerStep) ? 0 : msPerStep * steps);
+ if (!double.IsNaN(msPerStep) && estimate > Budget)
+ {
+ Logger.Debug("Preview frame {Frame} skipped: {Steps} steps would take {Estimate:0.0} s", frame, steps, estimate.TotalSeconds);
+ Post(new ScratchResult(spec, frame, null, estimate));
+ return;
+ }
+ IWaveEngine engine = EngineFor(spec);
+ var clock = Stopwatch.StartNew();
+ for (int i = 0; i < steps; i++)
+ {
+ if (i % CheckInterval == 0 && (HasNewerRequest() || token.IsCancellationRequested))
+ {
+ return; // the loop picks up the newer request
+ }
+ engine.AdvanceOneStep();
+ }
+ TimeSpan stepping = clock.Elapsed;
+ FrameSnapshot snapshot = NextSnapshot(spec);
+ engine.CaptureFrame(snapshot, spec.TrackIntensity);
+ engine.AwaitFrame(snapshot);
+ snapshot.Frame = frame;
+ snapshot.Step = steps - 1;
+ clock.Stop();
+ // the stepping loop alone rules the next prediction (the capture is a fixed cost, and the GPU's first
+ // steps include its warm-up), and only when there were enough steps to measure
+ if (steps >= MinStepsToMeasure)
+ {
+ Volatile.Write(ref _msPerStep, stepping.TotalMilliseconds / steps);
+ }
+ Logger.Debug("Preview frame {Frame}: {Steps} steps in {Elapsed:0} ms on {Engine}", frame, steps, clock.Elapsed.TotalMilliseconds, engine.Description);
+ Post(new ScratchResult(spec, frame, snapshot, clock.Elapsed));
+ }
+
+ /// <summary>The kept engine, reset to step 0 and given the spec's emitters; rebuilt when the scene or the options differ.</summary>
+ private IWaveEngine EngineFor(RunSpec spec)
+ {
+ if (_engine != null && _engineSpec != null && _engineSpec.SameSceneAs(spec))
+ {
+ _engine.Reset();
+ if (!_engineSpec.SameEmittersAs(spec))
+ {
+ _engine.SetEmitters(spec.Emitters);
+ }
+ _engineSpec = spec;
+ return _engine;
+ }
+ (_engine as IDisposable)?.Dispose();
+ _engine = null;
+ var clock = Stopwatch.StartNew();
+ _engine = WaveEngineFactory.Create(spec.BuildScene(), spec.Engine, spec.PreferGpu, spec.Emitters, out string note);
+ _engineSpec = spec;
+ _msPerStep = double.NaN;
+ Logger.Debug("Preview engine: {Engine} in {Elapsed:0} ms{Note}", _engine.Description, clock.ElapsedMilliseconds, note.Length > 0 ? " (" + note + ")" : "");
+ return _engine;
+ }
+
+ /// <summary>A snapshot of the spec's size, alternating between two so the one handed out last stays valid while the next is computed.</summary>
+ private FrameSnapshot NextSnapshot(RunSpec spec)
+ {
+ int index = _nextSnapshot;
+ _nextSnapshot = (index + 1) % _snapshots.Length;
+ FrameSnapshot? snapshot = _snapshots[index];
+ if (snapshot == null || snapshot.Width != spec.Width || snapshot.Height != spec.Height || (spec.TrackIntensity && snapshot.Intensity == null))
+ {
+ snapshot = _snapshots[index] = new FrameSnapshot(spec.Width, spec.Height, spec.TrackIntensity);
+ }
+ return snapshot;
+ }
+
+ private void Post(ScratchResult result)
+ {
+ if (_context != null)
+ {
+ _context.Post(_ => Completed?.Invoke(this, result), null);
+ }
+ else
+ {
+ Completed?.Invoke(this, result);
+ }
+ }
+}
diff --git a/WaveDude/Runs/SimulationRun.cs b/WaveDude/Runs/SimulationRun.cs
new file mode 100644
index 0000000..86dd77f
--- /dev/null
+++ b/WaveDude/Runs/SimulationRun.cs
@@ -0,0 +1,459 @@
+using System.Collections.Concurrent;
+using System.ComponentModel;
+using System.Diagnostics;
+using System.Runtime.CompilerServices;
+using NLog;
+using WaveDude.Engine;
+using WaveDude.Probes;
+
+namespace WaveDude.Runs;
+
+/// <summary>
+/// Drives one engine over one <see cref="RunSpec"/> on a thread-pool task: every step advances the engine and
+/// samples the probes, every <see cref="RunSpec.VisualizeEvery"/>-th step is captured into a
+/// <see cref="FrameSnapshot"/> and written to the <see cref="FrameStore"/> by a second task, and probe batches
+/// and progress are handed to the UI at a bounded rate. The run is never paced: it goes as fast as the engine
+/// and the store allow, and the preview plays from the store at its own speed.
+/// </summary>
+/// <remarks>
+/// Threads: the worker owns the engine's stepping; it captures frames (on the GPU an asynchronous read into a
+/// pinned snapshot) and hands them to the writer task, which awaits the capture, writes the store and returns
+/// the snapshot to a small pool, so converting and storing one frame overlaps computing the next. Every public
+/// property and event is set or raised through the <see cref="SynchronizationContext"/> given to the constructor
+/// (the WPF dispatcher), so they can be bound directly; with a null context they run on the worker (for
+/// headless use). The <see cref="Store"/> stays the caller's to dispose, after <see cref="Completion"/> has
+/// completed.
+/// </remarks>
+public sealed class SimulationRun : INotifyPropertyChanged, IDisposable
+{
+ private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
+
+ /// <summary>Least interval between progress (<see cref="StepsDone"/>) posts.</summary>
+ private const long ProgressIntervalMs = 100;
+
+ /// <summary>Least interval between probe batches (<see cref="ProbesUpdated"/>).</summary>
+ private const long ProbeIntervalMs = 50;
+
+ /// <summary>Snapshots in circulation between the stepping task and the writer: one being captured, one or two being written.</summary>
+ private const int SnapshotPoolSize = 3;
+
+ private readonly SynchronizationContext? _context;
+ private readonly ManualResetEventSlim _gate = new(true);
+ private readonly CancellationTokenSource _cancel = new();
+ private readonly TaskCompletionSource _completion = new(TaskCreationOptions.RunContinuationsAsynchronously);
+ private int _latestFrameCount;
+ private int _frameCountPostQueued;
+ private RunState _state = RunState.Created;
+ private int _stepsDone;
+ private int _frameCount;
+ private string _engineDescription = "";
+ private string _engineNote = "";
+ private TimeSpan _elapsed;
+ private Exception? _error;
+
+ /// <summary>Prepares a run; nothing happens until <see cref="Start"/>.</summary>
+ /// <param name="spec">What to run.</param>
+ /// <param name="store">Where the frames go; created for <see cref="RunSpec.FrameCount"/> frames of the spec's size and layers.</param>
+ /// <param name="context">Where properties and events are published; null runs them on the worker.</param>
+ /// <param name="isAutomatic">Started by the application after an edit rather than by the user (<see cref="IsAutomatic"/>).</param>
+ /// <exception cref="ArgumentException">The store does not match the spec.</exception>
+ public SimulationRun(RunSpec spec, FrameStore store, SynchronizationContext? context, bool isAutomatic = false)
+ {
+ IsAutomatic = isAutomatic;
+ if (store.Width != spec.Width || store.Height != spec.Height || store.Layers != spec.Layers || store.Capacity < spec.FrameCount)
+ {
+ throw new ArgumentException("The frame store does not fit the run.", nameof(store));
+ }
+ Spec = spec;
+ Store = store;
+ _context = context;
+ Traces = new ProbeTrace[spec.Probes.Length];
+ for (int i = 0; i < Traces.Length; i++)
+ {
+ Traces[i] = new ProbeTrace();
+ }
+ }
+
+ /// <inheritdoc/>
+ public event PropertyChangedEventHandler? PropertyChanged;
+
+ /// <summary>A probe batch was applied to <see cref="Traces"/>; at most every 50 ms, plus a final one.</summary>
+ public event EventHandler<ProbeUpdate>? ProbesUpdated;
+
+ /// <summary>The run reached a final state; raised exactly once, after <see cref="State"/> changed.</summary>
+ public event EventHandler? Finished;
+
+ /// <summary>What is being run.</summary>
+ public RunSpec Spec { get; }
+
+ /// <summary>Where the frames are; readable from any thread up to <see cref="FrameStore.Count"/>.</summary>
+ public FrameStore Store { get; }
+
+ /// <summary>Whether the application started the run on its own (re-run after an edit); the preview then keeps its position instead of following.</summary>
+ public bool IsAutomatic { get; }
+
+ /// <summary>Current state; final states are Completed, Cancelled and Failed.</summary>
+ public RunState State
+ {
+ get => _state;
+ private set => Set(ref _state, value);
+ }
+
+ /// <summary>Whether the run has started and not yet ended.</summary>
+ public bool IsActive => State is RunState.Starting or RunState.Running or RunState.Paused;
+
+ /// <summary>Whether the run has reached a final state (Completed, Cancelled or Failed).</summary>
+ public bool IsFinished => State is RunState.Completed or RunState.Cancelled or RunState.Failed;
+
+ /// <summary>Steps completed, refreshed about ten times a second and exactly on pause and at the end.</summary>
+ public int StepsDone
+ {
+ get => _stepsDone;
+ private set => Set(ref _stepsDone, value);
+ }
+
+ /// <summary>Steps the run will do.</summary>
+ public int TotalSteps => Spec.Steps;
+
+ /// <summary>Frames written to the store so far (equals <see cref="FrameStore.Count"/> once the post has arrived).</summary>
+ public int FrameCount
+ {
+ get => _frameCount;
+ private set => Set(ref _frameCount, value);
+ }
+
+ /// <summary>The engine in use ("CPU (16 threads)", "GPU: … (OpenCL)"); empty until the engine exists.</summary>
+ public string EngineDescription
+ {
+ get => _engineDescription;
+ private set => Set(ref _engineDescription, value);
+ }
+
+ /// <summary>"GPU not used: …" when the GPU was asked for but the CPU engine runs; otherwise empty.</summary>
+ public string EngineNote
+ {
+ get => _engineNote;
+ private set => Set(ref _engineNote, value);
+ }
+
+ /// <summary>Wall time spent stepping, excluding pauses; final once the run ended.</summary>
+ public TimeSpan Elapsed
+ {
+ get => _elapsed;
+ private set => Set(ref _elapsed, value);
+ }
+
+ /// <summary>Why the run failed, when <see cref="State"/> is <see cref="RunState.Failed"/>.</summary>
+ public Exception? Error
+ {
+ get => _error;
+ private set => Set(ref _error, value);
+ }
+
+ /// <summary>The UI-side copy of every probe's recording, one per <see cref="RunSpec.Probes"/>, filled from the batches.</summary>
+ public ProbeTrace[] Traces { get; }
+
+ /// <summary>Completes (never faults) once the worker has disposed the engine and published the final state.</summary>
+ public Task Completion => _completion.Task;
+
+ /// <summary>Starts the worker. May be called once.</summary>
+ /// <exception cref="InvalidOperationException">Already started.</exception>
+ public void Start()
+ {
+ if (State != RunState.Created)
+ {
+ throw new InvalidOperationException("The run has already been started.");
+ }
+ State = RunState.Starting;
+ Task.Run(RunLoop);
+ }
+
+ /// <summary>Parks the worker before its next step; <see cref="State"/> becomes Paused when it gets there.</summary>
+ public void Pause() => _gate.Reset();
+
+ /// <summary>Lets a paused worker continue.</summary>
+ public void Resume() => _gate.Set();
+
+ /// <summary>Pauses a running run or resumes a paused one, judged by the request, not by the (lagging) <see cref="State"/>.</summary>
+ public void TogglePause()
+ {
+ if (_gate.IsSet)
+ {
+ Pause();
+ }
+ else
+ {
+ Resume();
+ }
+ }
+
+ /// <summary>Whether a pause has been requested (and not yet resumed).</summary>
+ public bool IsPauseRequested => !_gate.IsSet;
+
+ /// <summary>Ends the run before its last step; also wakes a paused worker. Harmless after the end.</summary>
+ public void Stop()
+ {
+ _cancel.Cancel();
+ _gate.Set();
+ }
+
+ /// <summary>Stops the run. The store is not disposed here.</summary>
+ public void Dispose()
+ {
+ Stop();
+ _cancel.Dispose();
+ _gate.Dispose();
+ }
+
+ /// <summary>The worker: a port of the legacy runner's loop without video sinks and bitmaps.</summary>
+ private void RunLoop()
+ {
+ var stopwatch = Stopwatch.StartNew();
+ IWaveEngine? engine = null;
+ RunState final = RunState.Completed;
+ Exception? error = null;
+ int stepsDone = 0;
+ try
+ {
+ CancellationToken token = _cancel.Token;
+ SceneData scene = Spec.BuildScene();
+ ProbeSampler? sampler = Spec.Probes.Length > 0 ? ProbeSampler.Build(Spec.Probes, scene.Width, scene.Height) : null;
+ ProbeCollector? collector = sampler != null ? new ProbeCollector(sampler) : null;
+ engine = WaveEngineFactory.Create(scene, Spec.Engine, Spec.PreferGpu, Spec.Emitters, out string note);
+ Logger.Info("Engine: {0}", engine.Description);
+ if (note.Length > 0)
+ {
+ Logger.Warn(note);
+ }
+ string description = engine.Description;
+ Post(() =>
+ {
+ EngineDescription = description;
+ EngineNote = note;
+ });
+ engine.SetProbes(sampler);
+ token.ThrowIfCancellationRequested();
+ Post(() => State = RunState.Running);
+
+ int every = Spec.VisualizeEvery;
+ bool trackIntensity = Spec.TrackIntensity;
+ int frame = 0;
+ long lastProgressMs = 0;
+ long lastProbeMs = 0;
+ // where the time goes, for the log: stepping the engine, issuing the frame captures, and (on the
+ // writer task) waiting for the captures and storing them
+ long computeTicks = 0;
+ long captureTicks = 0;
+ long storeTicks = 0;
+ long writerWaitTicks = 0;
+ var pool = new BlockingCollection<FrameSnapshot>();
+ for (int i = 0; i < SnapshotPoolSize; i++)
+ {
+ pool.Add(new FrameSnapshot(Store.Width, Store.Height, trackIntensity));
+ }
+ var pending = new BlockingCollection<FrameSnapshot>();
+ IWaveEngine captured = engine;
+ Task? writer = null;
+ _drainWriter = () =>
+ {
+ if (!pending.IsAddingCompleted)
+ {
+ pending.CompleteAdding();
+ }
+ writer?.Wait();
+ };
+ writer = Task.Run(() =>
+ {
+ foreach (FrameSnapshot snapshot in pending.GetConsumingEnumerable())
+ {
+ long w0 = Stopwatch.GetTimestamp();
+ captured.AwaitFrame(snapshot);
+ long w1 = Stopwatch.GetTimestamp();
+ Store.Write(snapshot.Frame, snapshot);
+ PublishFrameCount(snapshot.Frame + 1);
+ Interlocked.Add(ref writerWaitTicks, w1 - w0);
+ Interlocked.Add(ref storeTicks, Stopwatch.GetTimestamp() - w1);
+ pool.Add(snapshot);
+ }
+ });
+ for (int i = 0; i < Spec.Steps; i++)
+ {
+ if (!_gate.IsSet)
+ {
+ // paused: report the exact step count; the time of the pause does not count
+ stopwatch.Stop();
+ int done = stepsDone;
+ Post(() =>
+ {
+ StepsDone = done;
+ State = RunState.Paused;
+ });
+ _gate.Wait(token);
+ Post(() => State = RunState.Running);
+ stopwatch.Start();
+ }
+ token.ThrowIfCancellationRequested();
+ long t0 = Stopwatch.GetTimestamp();
+ engine.AdvanceOneStep();
+ if (sampler != null)
+ {
+ engine.SampleProbes();
+ }
+ stepsDone = i + 1;
+ long t1 = Stopwatch.GetTimestamp();
+ computeTicks += t1 - t0;
+ if (i % every == 0 && frame < Store.Capacity)
+ {
+ collector?.Collect(engine, stepsDone);
+ // a free snapshot (waiting here is the back pressure when the writer lags), captured
+ // without waiting for the copy; the writer awaits and stores it
+ FrameSnapshot snapshot = pool.Take(token);
+ snapshot.Frame = frame;
+ snapshot.Step = i;
+ engine.CaptureFrame(snapshot, trackIntensity);
+ pending.Add(snapshot);
+ frame++;
+ captureTicks += Stopwatch.GetTimestamp() - t1;
+ }
+ // the probe values go to the user interface about 20 times a second
+ if (collector != null && stopwatch.ElapsedMilliseconds - lastProbeMs >= ProbeIntervalMs)
+ {
+ lastProbeMs = stopwatch.ElapsedMilliseconds;
+ PublishProbes(engine, collector, stepsDone);
+ }
+ if (stopwatch.ElapsedMilliseconds - lastProgressMs >= ProgressIntervalMs)
+ {
+ lastProgressMs = stopwatch.ElapsedMilliseconds;
+ int done = stepsDone;
+ Post(() => StepsDone = done);
+ }
+ }
+ if (collector != null)
+ {
+ PublishProbes(engine, collector, stepsDone);
+ }
+ DrainWriter();
+ Logger.Debug("Run timing: {Compute:0.00} s stepping ({PerStep:0.00} ms/step), {Capture:0.00} s issuing captures; writer: {Wait:0.00} s waiting for frames, {Store:0.00} s storing ({PerFrame:0.0} ms/frame)",
+ computeTicks / (double)Stopwatch.Frequency, computeTicks * 1000.0 / Stopwatch.Frequency / Math.Max(1, stepsDone),
+ captureTicks / (double)Stopwatch.Frequency, writerWaitTicks / (double)Stopwatch.Frequency,
+ storeTicks / (double)Stopwatch.Frequency, storeTicks * 1000.0 / Stopwatch.Frequency / Math.Max(1, frame));
+ }
+ catch (OperationCanceledException)
+ {
+ final = RunState.Cancelled;
+ }
+ catch (OutOfMemoryException)
+ {
+ final = RunState.Failed;
+ error = new OutOfMemoryException("There is not enough memory for a simulation of this size. Use a smaller canvas.");
+ Logger.Error(error.Message);
+ }
+ catch (Exception ex)
+ {
+ final = RunState.Failed;
+ error = ex;
+ Logger.Error(ex, "The simulation failed: {0}", ex.Message);
+ }
+ finally
+ {
+ try
+ {
+ // captures still in flight must land before the engine goes (the writer stores them, cheaply)
+ DrainWriter();
+ (engine as IDisposable)?.Dispose();
+ }
+ catch (Exception ex)
+ {
+ Logger.Warn(ex, "The engine could not be released cleanly.");
+ }
+ }
+ stopwatch.Stop();
+ TimeSpan elapsed = stopwatch.Elapsed;
+ int finalSteps = stepsDone;
+ int finalFrames = Store.Count;
+ Post(() =>
+ {
+ StepsDone = finalSteps;
+ FrameCount = finalFrames;
+ Elapsed = elapsed;
+ Error = error;
+ State = final;
+ Logger.Info("Run {0}: {1} of {2} steps, {3} frames, {4:0.0} s", final, finalSteps, Spec.Steps, finalFrames, elapsed.TotalSeconds);
+ Finished?.Invoke(this, EventArgs.Empty);
+ });
+ _completion.TrySetResult();
+ }
+
+ /// <summary>Lets the writer finish the captures it holds; set by the loop once the writer exists.</summary>
+ private Action? _drainWriter;
+
+ private void DrainWriter()
+ {
+ Action? drain = _drainWriter;
+ _drainWriter = null;
+ drain?.Invoke();
+ }
+
+ /// <summary>Collects what the engine has, takes a batch and applies it to <see cref="Traces"/> on the UI context.</summary>
+ private void PublishProbes(IWaveEngine engine, ProbeCollector collector, int stepsDone)
+ {
+ collector.Collect(engine, stepsDone);
+ collector.CollectProfiles(engine, stepsDone);
+ ProbeUpdate update = collector.TakeForUi();
+ Post(() =>
+ {
+ for (int i = 0; i < Traces.Length && i < update.Samples.Length; i++)
+ {
+ Traces[i].Series.Add(update.Samples[i]);
+ if (update.Profiles[i] is { } profile)
+ {
+ Traces[i].SetProfile(profile, update.Lengths[i]);
+ }
+ Traces[i].StepsSampled = update.StepsDone;
+ }
+ ProbesUpdated?.Invoke(this, update);
+ });
+ }
+
+ /// <summary>Posts the frame count, coalescing: never more than one post in flight, the handler reads the newest value.</summary>
+ private void PublishFrameCount(int count)
+ {
+ Volatile.Write(ref _latestFrameCount, count);
+ if (Interlocked.CompareExchange(ref _frameCountPostQueued, 1, 0) == 0)
+ {
+ Post(() =>
+ {
+ Volatile.Write(ref _frameCountPostQueued, 0);
+ FrameCount = Volatile.Read(ref _latestFrameCount);
+ });
+ }
+ }
+
+ /// <summary>Runs <paramref name="action"/> on the UI context, or inline when there is none.</summary>
+ private void Post(Action action)
+ {
+ if (_context != null)
+ {
+ _context.Post(_ => action(), null);
+ }
+ else
+ {
+ action();
+ }
+ }
+
+ private void Set<T>(ref T field, T value, [CallerMemberName] string? name = null)
+ {
+ if (EqualityComparer<T>.Default.Equals(field, value))
+ {
+ return;
+ }
+ field = value;
+ PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
+ if (name == nameof(State))
+ {
+ PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(IsActive)));
+ PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(IsFinished)));
+ }
+ }
+}
diff --git a/WaveDude/WaveDude.csproj b/WaveDude/WaveDude.csproj
index 3b161a4..8ab5d74 100644
--- a/WaveDude/WaveDude.csproj
+++ b/WaveDude/WaveDude.csproj
@@ -6,10 +6,19 @@
<Nullable>enable</Nullable>
<!-- every public member needs a /// comment; CS1591 flags the ones that lack it -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
+ <!-- optimised in every configuration: the engines' stencil loops run five times slower unoptimised, which
+ makes the CPU engine unusable from a Debug build of the app; set to false locally to step through them -->
+ <Optimize>true</Optimize>
</PropertyGroup>
+ <!-- the shipped colour schemes are part of the binary; the repo's ColorSchemeList folder is their source -->
+ <ItemGroup>
+ <EmbeddedResource Include="..\ColorSchemeList\*.json" LogicalName="ColorSchemes/%(Filename)%(Extension)" />
+ </ItemGroup>
+
<ItemGroup>
<PackageReference Include="NLog" Version="6.2.1" />
+ <PackageReference Include="System.Numerics.Tensors" Version="10.0.12" />
</ItemGroup>
</Project>
diff --git a/Wave_Dude_Examples/Example10_frequency_shifted_sources/configuration.json b/Wave_Dude_Examples/Example10_frequency_shifted_sources/configuration.json
new file mode 100644
index 0000000..c3a994b
--- /dev/null
+++ b/Wave_Dude_Examples/Example10_frequency_shifted_sources/configuration.json
@@ -0,0 +1,231 @@
+{
+ "format_version": 1,
+ "project_name": "Example10_frequency_shifted_sources",
+ "created": "2026-10-01T17:59:00Z",
+ "modified": "2026-10-02T12:46:06Z",
+ "scene": {
+ "mode": "user_defined",
+ "image_file": "",
+ "user_width": 2500,
+ "user_height": 1500,
+ "damping_edge_enabled": true,
+ "damping_edge_size_px": 64,
+ "use_sources": false,
+ "image_source_scale": 1,
+ "use_object_sources": true,
+ "background_refractive_index": 1
+ },
+ "simulation": {
+ "steps": 10000,
+ "visualize_every": 1,
+ "export_field": false,
+ "export_intensity": false,
+ "preview_field": true,
+ "preview_intensity": true,
+ "field_color_scheme": "Yellow_purple",
+ "intensity_color_scheme": "Default_intensity",
+ "field_brightness": 50,
+ "intensity_brightness": 30,
+ "field_black_level": -0.05,
+ "intensity_black_level": 0,
+ "source_frequency_scale": 2,
+ "video_fps": 60,
+ "video_quality": 70,
+ "use_gpu": true,
+ "use_4th_order_laplacian": true,
+ "wave_speed_c": 1,
+ "time_decay_factor": 5,
+ "intensity_scale": 1
+ },
+ "probes": {
+ "count": 2,
+ "items": [
+ {
+ "active": true,
+ "place_on": "intensity",
+ "measurement": "intensity",
+ "probe_type": "point",
+ "ax": 2043,
+ "ay": 785,
+ "bx": 300,
+ "by": 100,
+ "box_size": "extra_large",
+ "box_x": 1702,
+ "box_y": 360,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ },
+ {
+ "active": true,
+ "place_on": "field",
+ "measurement": "amplitude",
+ "probe_type": "point",
+ "ax": 2040,
+ "ay": 785,
+ "bx": 300,
+ "by": 100,
+ "box_size": "extra_large",
+ "box_x": 1700,
+ "box_y": 360,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ }
+ ]
+ },
+ "object_sources": {
+ "count": 3,
+ "items": [
+ {
+ "name": "Source 1",
+ "main_type": "single",
+ "x": 1226,
+ "y": 640,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 150,
+ "amplitude": 100,
+ "phase_deg": 0,
+ "mode": "continuous",
+ "pulse_shape": "smoothed_square",
+ "pulse_width_cycles": 10,
+ "off_state_cycles": 5,
+ "array_size_x": 1,
+ "array_size_y": 1,
+ "spacing_x": 10,
+ "spacing_y": 10,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": 1226,
+ "y": 640,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "smoothed_square",
+ "on_width_cycles": 10,
+ "off_width_cycles": 5,
+ "off_width_base": 5,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ }
+ ]
+ },
+ {
+ "name": "Source 2",
+ "main_type": "single",
+ "x": 1224,
+ "y": 686,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 140,
+ "amplitude": 100,
+ "phase_deg": 180,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "pulse_width_cycles": 8,
+ "off_state_cycles": 4,
+ "array_size_x": 1,
+ "array_size_y": 1,
+ "spacing_x": 10,
+ "spacing_y": 10,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": 1224,
+ "y": 686,
+ "level": 140,
+ "amplitude": 1,
+ "phase_rad": 3.1415926535897931,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ }
+ ]
+ },
+ {
+ "name": "Source 1 copy",
+ "main_type": "single",
+ "x": 1225,
+ "y": 731,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 150,
+ "amplitude": 100,
+ "phase_deg": 0,
+ "mode": "continuous",
+ "pulse_shape": "smoothed_square",
+ "pulse_width_cycles": 10,
+ "off_state_cycles": 5,
+ "array_size_x": 1,
+ "array_size_y": 1,
+ "spacing_x": 10,
+ "spacing_y": 10,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": 1225,
+ "y": 731,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "smoothed_square",
+ "on_width_cycles": 10,
+ "off_width_cycles": 5,
+ "off_width_base": 5,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ }
+ ]
+ }
+ ]
+ },
+ "description": "Demonstrating spatial field intensity variations introduced by 3 sources that have a different oscillation frequency."
+}
diff --git a/Wave_Dude_Examples/Example11_Fluorescent_emitter/configuration.json b/Wave_Dude_Examples/Example11_Fluorescent_emitter/configuration.json
new file mode 100644
index 0000000..00cb07d
--- /dev/null
+++ b/Wave_Dude_Examples/Example11_Fluorescent_emitter/configuration.json
@@ -0,0 +1,12179 @@
+{
+ "format_version": 1,
+ "project_name": "Example11_Fluorescent_emitter",
+ "created": "2026-10-01T06:41:17Z",
+ "modified": "2026-10-02T13:15:17Z",
+ "scene": {
+ "mode": "user_defined",
+ "image_file": "",
+ "user_width": 1920,
+ "user_height": 1080,
+ "damping_edge_enabled": true,
+ "damping_edge_size_px": 64,
+ "use_sources": false,
+ "image_source_scale": 1,
+ "use_object_sources": true,
+ "background_refractive_index": 1
+ },
+ "simulation": {
+ "steps": 10000,
+ "visualize_every": 2,
+ "export_field": false,
+ "export_intensity": false,
+ "preview_field": true,
+ "preview_intensity": true,
+ "field_color_scheme": "Ice_and_fire",
+ "intensity_color_scheme": "Default_intensity",
+ "field_brightness": 60,
+ "intensity_brightness": 60,
+ "field_black_level": -0.05,
+ "intensity_black_level": 0,
+ "source_frequency_scale": 2,
+ "video_fps": 60,
+ "video_quality": 70,
+ "use_gpu": true,
+ "use_4th_order_laplacian": true,
+ "wave_speed_c": 1,
+ "time_decay_factor": 5,
+ "intensity_scale": 1
+ },
+ "probes": {
+ "count": 2,
+ "items": [
+ {
+ "active": false,
+ "place_on": "field",
+ "measurement": "amplitude",
+ "probe_type": "point",
+ "ax": 100,
+ "ay": 100,
+ "bx": 300,
+ "by": 100,
+ "box_size": "medium",
+ "box_x": 450,
+ "box_y": 20,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ },
+ {
+ "active": false,
+ "place_on": "field",
+ "measurement": "amplitude",
+ "probe_type": "point",
+ "ax": 100,
+ "ay": 100,
+ "bx": 300,
+ "by": 100,
+ "box_size": "medium",
+ "box_x": 450,
+ "box_y": 20,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ }
+ ]
+ },
+ "object_sources": {
+ "count": 1,
+ "items": [
+ {
+ "name": "fluorescent lattice",
+ "main_type": "composite",
+ "x": 100,
+ "y": 100,
+ "has_position": false,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 90,
+ "amplitude": 100,
+ "phase_deg": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "pulse_width_cycles": 8,
+ "off_state_cycles": 3000,
+ "array_size_x": 41,
+ "array_size_y": 21,
+ "spacing_x": 50,
+ "spacing_y": 50,
+ "composite_mode": "randomize",
+ "randomize_frequency": true,
+ "randomize_frequency_amount": 30,
+ "randomize_phase": true,
+ "randomize_phase_amount": 180,
+ "randomize_off_width": true,
+ "randomize_off_width_amount": 2999,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": -900,
+ "y": -400,
+ "level": 104,
+ "amplitude": 1,
+ "phase_rad": -2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4119,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": -400,
+ "level": 61,
+ "amplitude": 1,
+ "phase_rad": 2.2165681500327987,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5931,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": -400,
+ "level": 82,
+ "amplitude": 1,
+ "phase_rad": 0.767944870877505,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3361,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": -400,
+ "level": 69,
+ "amplitude": 1,
+ "phase_rad": 0.94247779607693793,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1730,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": -400,
+ "level": 87,
+ "amplitude": 1,
+ "phase_rad": 0.41887902047863906,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2917,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": -400,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": 0.66322511575784515,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 810,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": -400,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": -0.92502450355699462,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1803,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": -400,
+ "level": 74,
+ "amplitude": 1,
+ "phase_rad": -1.3439035240356341,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 923,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": -400,
+ "level": 105,
+ "amplitude": 1,
+ "phase_rad": 0.99483767363676789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4415,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": -400,
+ "level": 101,
+ "amplitude": 1,
+ "phase_rad": 2.4260076602721181,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3671,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": -400,
+ "level": 91,
+ "amplitude": 1,
+ "phase_rad": 1.2740903539558606,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2380,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": -400,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": -1.7976891295541593,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1795,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": -400,
+ "level": 96,
+ "amplitude": 1,
+ "phase_rad": 2.1467549799530254,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5053,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": -400,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": -0.41887902047863906,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 140,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": -400,
+ "level": 108,
+ "amplitude": 1,
+ "phase_rad": 1.7104226669544429,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2975,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": -400,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": 2.3038346126325151,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 430,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": -400,
+ "level": 90,
+ "amplitude": 1,
+ "phase_rad": -1.58824961931484,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4485,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": -400,
+ "level": 64,
+ "amplitude": 1,
+ "phase_rad": -0.767944870877505,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 561,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": -400,
+ "level": 102,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4996,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": -400,
+ "level": 92,
+ "amplitude": 1,
+ "phase_rad": -1.3264502315156903,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1158,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": -400,
+ "level": 75,
+ "amplitude": 1,
+ "phase_rad": 1.1170107212763709,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4428,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": -400,
+ "level": 117,
+ "amplitude": 1,
+ "phase_rad": 0.90757121103705141,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5688,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": -400,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": 1.9547687622336492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2114,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": -400,
+ "level": 71,
+ "amplitude": 1,
+ "phase_rad": 1.1170107212763709,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4596,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": -400,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": 3.1415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5523,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": -400,
+ "level": 76,
+ "amplitude": 1,
+ "phase_rad": -0.3490658503988659,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3090,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": -400,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": -2.6703537555513241,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4750,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": -400,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": -1.9373154697137056,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3818,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": -400,
+ "level": 112,
+ "amplitude": 1,
+ "phase_rad": -0.40142572795869574,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1940,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": -400,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": 2.7576202181510405,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4284,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": -400,
+ "level": 88,
+ "amplitude": 1,
+ "phase_rad": -2.7052603405912108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3308,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": -400,
+ "level": 99,
+ "amplitude": 1,
+ "phase_rad": 0.20943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4528,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": -400,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": 2.1467549799530254,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 754,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": -400,
+ "level": 93,
+ "amplitude": 1,
+ "phase_rad": 1.7104226669544429,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 341,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": -400,
+ "level": 103,
+ "amplitude": 1,
+ "phase_rad": -1.2042771838760873,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3432,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": -400,
+ "level": 119,
+ "amplitude": 1,
+ "phase_rad": 1.8151424220741028,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2286,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": -400,
+ "level": 70,
+ "amplitude": 1,
+ "phase_rad": -0.50614548307835561,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 340,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": -400,
+ "level": 79,
+ "amplitude": 1,
+ "phase_rad": 2.3561944901923448,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1279,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": -400,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": 0.55850536063818546,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2915,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": -400,
+ "level": 66,
+ "amplitude": 1,
+ "phase_rad": -2.6179938779914944,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1252,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": -400,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": 0.55850536063818546,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5225,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": -350,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": 1.3962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3631,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": -350,
+ "level": 73,
+ "amplitude": 1,
+ "phase_rad": 0.90757121103705141,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2787,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": -350,
+ "level": 70,
+ "amplitude": 1,
+ "phase_rad": 3.1066860685499069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3622,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": -350,
+ "level": 83,
+ "amplitude": 1,
+ "phase_rad": -2.4609142453120043,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1821,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": -350,
+ "level": 104,
+ "amplitude": 1,
+ "phase_rad": 2.8099800957108703,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5306,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": -350,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": 2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3898,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": -350,
+ "level": 117,
+ "amplitude": 1,
+ "phase_rad": -2.3212879051524582,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3108,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": -350,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": -2.2165681500327987,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1178,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": -350,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": -1.58824961931484,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5672,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": -350,
+ "level": 76,
+ "amplitude": 1,
+ "phase_rad": -1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4537,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": -350,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": 2.6703537555513241,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1102,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": -350,
+ "level": 71,
+ "amplitude": 1,
+ "phase_rad": -2.6354471705114375,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3524,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": -350,
+ "level": 118,
+ "amplitude": 1,
+ "phase_rad": 1.6755160819145565,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 862,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": -350,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": -3.1066860685499069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2570,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": -350,
+ "level": 87,
+ "amplitude": 1,
+ "phase_rad": 2.7052603405912108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4588,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": -350,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": 1.0471975511965976,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3861,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": -350,
+ "level": 96,
+ "amplitude": 1,
+ "phase_rad": -2.91469985083053,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1209,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": -350,
+ "level": 94,
+ "amplitude": 1,
+ "phase_rad": 1.1519173063162576,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2748,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": -350,
+ "level": 81,
+ "amplitude": 1,
+ "phase_rad": 3.0368728984701332,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3430,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": -350,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": 2.3736477827122884,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2374,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": -350,
+ "level": 91,
+ "amplitude": 1,
+ "phase_rad": 2.4958208303518914,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4851,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": -350,
+ "level": 111,
+ "amplitude": 1,
+ "phase_rad": -0.17453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1123,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": -350,
+ "level": 67,
+ "amplitude": 1,
+ "phase_rad": 0.31415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5184,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": -350,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": -2.5307274153917776,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 696,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": -350,
+ "level": 90,
+ "amplitude": 1,
+ "phase_rad": -2.9845130209103035,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 742,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": -350,
+ "level": 65,
+ "amplitude": 1,
+ "phase_rad": -1.8675022996339328,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1323,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": -350,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": -0.4537856055185257,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3489,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": -350,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": 1.0471975511965976,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 877,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": -350,
+ "level": 93,
+ "amplitude": 1,
+ "phase_rad": -0.890117918517108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1443,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": -350,
+ "level": 104,
+ "amplitude": 1,
+ "phase_rad": 2.0943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 599,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": -350,
+ "level": 60,
+ "amplitude": 1,
+ "phase_rad": 0.36651914291880922,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5341,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": -350,
+ "level": 105,
+ "amplitude": 1,
+ "phase_rad": -0.64577182323790194,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 659,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": -350,
+ "level": 97,
+ "amplitude": 1,
+ "phase_rad": 0.66322511575784515,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2736,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": -350,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": 1.8325957145940459,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 705,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": -350,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": -1.2391837689159739,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5640,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": -350,
+ "level": 65,
+ "amplitude": 1,
+ "phase_rad": -2.8099800957108703,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3940,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": -350,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": -1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4660,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": -350,
+ "level": 81,
+ "amplitude": 1,
+ "phase_rad": 3.0019663134302466,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2687,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": -350,
+ "level": 109,
+ "amplitude": 1,
+ "phase_rad": -1.780235837034216,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1378,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": -350,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": -1.3089969389957472,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 686,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": -350,
+ "level": 117,
+ "amplitude": 1,
+ "phase_rad": -0.66322511575784515,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4295,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": -300,
+ "level": 106,
+ "amplitude": 1,
+ "phase_rad": -1.3788101090755205,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3236,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": -300,
+ "level": 73,
+ "amplitude": 1,
+ "phase_rad": 1.6231562043547263,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3769,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": -300,
+ "level": 60,
+ "amplitude": 1,
+ "phase_rad": -0.19198621771937624,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3593,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": -300,
+ "level": 106,
+ "amplitude": 1,
+ "phase_rad": 2.2340214425527418,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3833,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": -300,
+ "level": 88,
+ "amplitude": 1,
+ "phase_rad": 0.13962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2178,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": -300,
+ "level": 72,
+ "amplitude": 1,
+ "phase_rad": -0.19198621771937624,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1832,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": -300,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": -0.68067840827778847,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3419,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": -300,
+ "level": 79,
+ "amplitude": 1,
+ "phase_rad": 1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3484,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": -300,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": 2.740166925631097,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1083,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": -300,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": 2.8797932657906435,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1878,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": -300,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": 0.82030474843733492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2373,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": -300,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": -3.0543261909900763,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 140,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": -300,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": 2.2689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1769,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": -300,
+ "level": 61,
+ "amplitude": 1,
+ "phase_rad": -1.1344640137963142,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4760,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": -300,
+ "level": 70,
+ "amplitude": 1,
+ "phase_rad": 0.54105206811824214,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 741,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": -300,
+ "level": 109,
+ "amplitude": 1,
+ "phase_rad": -0.94247779607693793,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4167,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": -300,
+ "level": 112,
+ "amplitude": 1,
+ "phase_rad": -0.27925268031909273,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4940,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": -300,
+ "level": 109,
+ "amplitude": 1,
+ "phase_rad": -0.87266462599716477,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 18,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": -300,
+ "level": 68,
+ "amplitude": 1,
+ "phase_rad": -0.36651914291880922,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3699,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": -300,
+ "level": 118,
+ "amplitude": 1,
+ "phase_rad": 1.780235837034216,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4944,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": -300,
+ "level": 87,
+ "amplitude": 1,
+ "phase_rad": -2.3038346126325151,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3075,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": -300,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": -0.48869219055841234,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1339,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": -300,
+ "level": 74,
+ "amplitude": 1,
+ "phase_rad": -2.7576202181510405,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3043,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": -300,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": 1.9198621771937625,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3657,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": -300,
+ "level": 60,
+ "amplitude": 1,
+ "phase_rad": 0.3490658503988659,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 426,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": -300,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": -2.2340214425527418,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 469,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": -300,
+ "level": 87,
+ "amplitude": 1,
+ "phase_rad": 0.83775804095727813,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3503,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": -300,
+ "level": 89,
+ "amplitude": 1,
+ "phase_rad": -3.07177948351002,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3005,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": -300,
+ "level": 89,
+ "amplitude": 1,
+ "phase_rad": 0.20943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1609,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": -300,
+ "level": 83,
+ "amplitude": 1,
+ "phase_rad": -1.53588974175501,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3446,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": -300,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": -0.36651914291880922,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 458,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": -300,
+ "level": 88,
+ "amplitude": 1,
+ "phase_rad": 0.50614548307835561,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1120,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": -300,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": 2.4783675378319479,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 982,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": -300,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": 0.41887902047863906,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1727,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": -300,
+ "level": 71,
+ "amplitude": 1,
+ "phase_rad": 0.17453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3907,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": -300,
+ "level": 73,
+ "amplitude": 1,
+ "phase_rad": 1.8849555921538761,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4844,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": -300,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": -0.82030474843733492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1774,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": -300,
+ "level": 92,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 902,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": -300,
+ "level": 74,
+ "amplitude": 1,
+ "phase_rad": 2.91469985083053,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 721,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": -300,
+ "level": 60,
+ "amplitude": 1,
+ "phase_rad": 1.8675022996339328,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5340,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": -300,
+ "level": 118,
+ "amplitude": 1,
+ "phase_rad": 2.2165681500327987,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4840,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": -250,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": 2.7227136331111539,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2179,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": -250,
+ "level": 92,
+ "amplitude": 1,
+ "phase_rad": 0.24434609527920617,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5848,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": -250,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": -0.034906585039886591,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1521,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": -250,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": 0.36651914291880922,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 406,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": -250,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": -1.2740903539558606,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2920,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": -250,
+ "level": 111,
+ "amplitude": 1,
+ "phase_rad": -1.4137166941154069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4407,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": -250,
+ "level": 88,
+ "amplitude": 1,
+ "phase_rad": -0.24434609527920617,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5316,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": -250,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": 2.3212879051524582,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5645,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": -250,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": -1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3712,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": -250,
+ "level": 64,
+ "amplitude": 1,
+ "phase_rad": -1.4486232791552935,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 575,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": -250,
+ "level": 76,
+ "amplitude": 1,
+ "phase_rad": 2.8099800957108703,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4290,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": -250,
+ "level": 89,
+ "amplitude": 1,
+ "phase_rad": -1.5533430342749537,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3564,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": -250,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": 1.1344640137963142,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1550,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": -250,
+ "level": 110,
+ "amplitude": 1,
+ "phase_rad": -2.8448866807507569,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5244,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": -250,
+ "level": 62,
+ "amplitude": 1,
+ "phase_rad": 0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5665,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": -250,
+ "level": 65,
+ "amplitude": 1,
+ "phase_rad": 2.7925268031909272,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3981,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": -250,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": -2.1293016874330819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3123,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": -250,
+ "level": 69,
+ "amplitude": 1,
+ "phase_rad": -0.034906585039886591,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2340,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": -250,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": 0.97738438111682469,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 387,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": -250,
+ "level": 85,
+ "amplitude": 1,
+ "phase_rad": 0.68067840827778847,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1857,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": -250,
+ "level": 81,
+ "amplitude": 1,
+ "phase_rad": 2.0071286397934789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1357,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": -250,
+ "level": 69,
+ "amplitude": 1,
+ "phase_rad": 0.890117918517108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3670,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": -250,
+ "level": 81,
+ "amplitude": 1,
+ "phase_rad": 1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 264,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": -250,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": 0.38397243543875248,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3572,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": -250,
+ "level": 89,
+ "amplitude": 1,
+ "phase_rad": 0.80285145591739149,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2478,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": -250,
+ "level": 60,
+ "amplitude": 1,
+ "phase_rad": -1.6580627893946132,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1468,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": -250,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": 2.1642082724729685,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1718,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": -250,
+ "level": 118,
+ "amplitude": 1,
+ "phase_rad": -0.41887902047863906,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 646,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": -250,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": -2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2706,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": -250,
+ "level": 79,
+ "amplitude": 1,
+ "phase_rad": 0.38397243543875248,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3602,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": -250,
+ "level": 92,
+ "amplitude": 1,
+ "phase_rad": 2.3038346126325151,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 439,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": -250,
+ "level": 117,
+ "amplitude": 1,
+ "phase_rad": -0.13962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1380,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": -250,
+ "level": 99,
+ "amplitude": 1,
+ "phase_rad": 2.4260076602721181,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5898,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": -250,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": 1.4486232791552935,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 776,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": -250,
+ "level": 97,
+ "amplitude": 1,
+ "phase_rad": 1.5184364492350666,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3600,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": -250,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": 1.1344640137963142,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5199,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": -250,
+ "level": 119,
+ "amplitude": 1,
+ "phase_rad": 2.5830872929516082,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2506,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": -250,
+ "level": 110,
+ "amplitude": 1,
+ "phase_rad": -0.47123889803846897,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4584,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": -250,
+ "level": 61,
+ "amplitude": 1,
+ "phase_rad": -0.62831853071795862,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2307,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": -250,
+ "level": 67,
+ "amplitude": 1,
+ "phase_rad": 0.52359877559829882,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3136,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": -250,
+ "level": 69,
+ "amplitude": 1,
+ "phase_rad": -2.9845130209103035,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1528,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": -200,
+ "level": 87,
+ "amplitude": 1,
+ "phase_rad": -0.85521133347722145,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4177,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": -200,
+ "level": 91,
+ "amplitude": 1,
+ "phase_rad": 0.17453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 909,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": -200,
+ "level": 71,
+ "amplitude": 1,
+ "phase_rad": -0.85521133347722145,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2112,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": -200,
+ "level": 75,
+ "amplitude": 1,
+ "phase_rad": 1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 680,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": -200,
+ "level": 69,
+ "amplitude": 1,
+ "phase_rad": -1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4155,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": -200,
+ "level": 90,
+ "amplitude": 1,
+ "phase_rad": 0.94247779607693793,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2633,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": -200,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": -0.95993108859688125,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3909,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": -200,
+ "level": 71,
+ "amplitude": 1,
+ "phase_rad": 1.3264502315156903,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2638,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": -200,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": 2.6878070480712677,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 453,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": -200,
+ "level": 111,
+ "amplitude": 1,
+ "phase_rad": 0.19198621771937624,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1813,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": -200,
+ "level": 88,
+ "amplitude": 1,
+ "phase_rad": -2.0594885173533086,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4214,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": -200,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": -2.0420352248333655,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2264,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": -200,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": -0.6108652381980153,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 913,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": -200,
+ "level": 103,
+ "amplitude": 1,
+ "phase_rad": 1.8500490071139892,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3268,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": -200,
+ "level": 64,
+ "amplitude": 1,
+ "phase_rad": 0.36651914291880922,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4571,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": -200,
+ "level": 99,
+ "amplitude": 1,
+ "phase_rad": 2.3038346126325151,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 395,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": -200,
+ "level": 102,
+ "amplitude": 1,
+ "phase_rad": 0.69813170079773179,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5593,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": -200,
+ "level": 65,
+ "amplitude": 1,
+ "phase_rad": 0.48869219055841234,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4077,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": -200,
+ "level": 96,
+ "amplitude": 1,
+ "phase_rad": -1.5009831567151233,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3920,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": -200,
+ "level": 75,
+ "amplitude": 1,
+ "phase_rad": -1.8151424220741028,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3608,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": -200,
+ "level": 64,
+ "amplitude": 1,
+ "phase_rad": -1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5009,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": -200,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": 1.902408884673819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2952,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": -200,
+ "level": 85,
+ "amplitude": 1,
+ "phase_rad": -1.3788101090755205,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 956,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": -200,
+ "level": 79,
+ "amplitude": 1,
+ "phase_rad": 0.64577182323790194,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1484,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": -200,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": 2.3212879051524582,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3326,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": -200,
+ "level": 66,
+ "amplitude": 1,
+ "phase_rad": -2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 911,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": -200,
+ "level": 101,
+ "amplitude": 1,
+ "phase_rad": 0.99483767363676789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 359,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": -200,
+ "level": 60,
+ "amplitude": 1,
+ "phase_rad": -2.1816615649929116,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5509,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": -200,
+ "level": 82,
+ "amplitude": 1,
+ "phase_rad": -0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3574,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": -200,
+ "level": 61,
+ "amplitude": 1,
+ "phase_rad": -1.43116998663535,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5491,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": -200,
+ "level": 104,
+ "amplitude": 1,
+ "phase_rad": 0.92502450355699462,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1140,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": -200,
+ "level": 93,
+ "amplitude": 1,
+ "phase_rad": 0.87266462599716477,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2736,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": -200,
+ "level": 103,
+ "amplitude": 1,
+ "phase_rad": -3.0543261909900763,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4541,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": -200,
+ "level": 76,
+ "amplitude": 1,
+ "phase_rad": -1.6406094968746698,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3502,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": -200,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": -0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 44,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": -200,
+ "level": 101,
+ "amplitude": 1,
+ "phase_rad": 1.8675022996339328,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4241,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": -200,
+ "level": 67,
+ "amplitude": 1,
+ "phase_rad": -0.017453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 863,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": -200,
+ "level": 90,
+ "amplitude": 1,
+ "phase_rad": 0.48869219055841234,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3327,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": -200,
+ "level": 93,
+ "amplitude": 1,
+ "phase_rad": -2.740166925631097,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1106,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": -200,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": 1.1344640137963142,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2547,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": -200,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": -0.69813170079773179,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 65,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": -150,
+ "level": 74,
+ "amplitude": 1,
+ "phase_rad": 0.57595865315812877,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5739,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": -150,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": 1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1382,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": -150,
+ "level": 65,
+ "amplitude": 1,
+ "phase_rad": -0.64577182323790194,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 607,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": -150,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": -0.57595865315812877,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2513,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": -150,
+ "level": 89,
+ "amplitude": 1,
+ "phase_rad": -2.4958208303518914,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4661,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": -150,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": 1.1693705988362009,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3478,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": -150,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": 2.5132741228718345,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4651,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": -150,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": -1.7453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 412,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": -150,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": -3.0892327760299634,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3435,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": -150,
+ "level": 76,
+ "amplitude": 1,
+ "phase_rad": 1.8500490071139892,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2017,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": -150,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": -0.80285145591739149,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5110,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": -150,
+ "level": 94,
+ "amplitude": 1,
+ "phase_rad": 1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4713,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": -150,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": 0.80285145591739149,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 365,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": -150,
+ "level": 89,
+ "amplitude": 1,
+ "phase_rad": -2.9845130209103035,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 596,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": -150,
+ "level": 62,
+ "amplitude": 1,
+ "phase_rad": -2.4783675378319479,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1026,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": -150,
+ "level": 68,
+ "amplitude": 1,
+ "phase_rad": -2.740166925631097,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5780,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": -150,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": -3.1066860685499069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5967,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": -150,
+ "level": 111,
+ "amplitude": 1,
+ "phase_rad": -3.1066860685499069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2943,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": -150,
+ "level": 74,
+ "amplitude": 1,
+ "phase_rad": -0.17453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2213,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": -150,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": -0.48869219055841234,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4363,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": -150,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": 2.0594885173533086,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3623,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": -150,
+ "level": 106,
+ "amplitude": 1,
+ "phase_rad": -2.7576202181510405,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 205,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": -150,
+ "level": 94,
+ "amplitude": 1,
+ "phase_rad": 2.5481807079117211,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2644,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": -150,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": 2.2689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 345,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": -150,
+ "level": 91,
+ "amplitude": 1,
+ "phase_rad": -0.55850536063818546,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5222,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": -150,
+ "level": 101,
+ "amplitude": 1,
+ "phase_rad": 1.4486232791552935,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 694,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": -150,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5659,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": -150,
+ "level": 97,
+ "amplitude": 1,
+ "phase_rad": 2.3038346126325151,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4724,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": -150,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": -0.069813170079773182,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2198,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": -150,
+ "level": 82,
+ "amplitude": 1,
+ "phase_rad": -1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1139,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": -150,
+ "level": 85,
+ "amplitude": 1,
+ "phase_rad": -2.1293016874330819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1236,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": -150,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": 2.0071286397934789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1204,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": -150,
+ "level": 90,
+ "amplitude": 1,
+ "phase_rad": -1.3962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 267,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": -150,
+ "level": 68,
+ "amplitude": 1,
+ "phase_rad": 0.43633231299858238,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 976,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": -150,
+ "level": 91,
+ "amplitude": 1,
+ "phase_rad": -0.52359877559829882,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 875,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": -150,
+ "level": 117,
+ "amplitude": 1,
+ "phase_rad": -1.0995574287564276,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3571,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": -150,
+ "level": 97,
+ "amplitude": 1,
+ "phase_rad": 0.38397243543875248,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4463,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": -150,
+ "level": 75,
+ "amplitude": 1,
+ "phase_rad": 3.0892327760299634,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5531,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": -150,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": -2.8448866807507569,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5772,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": -150,
+ "level": 109,
+ "amplitude": 1,
+ "phase_rad": -0.48869219055841234,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3449,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": -150,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": -1.8500490071139892,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3394,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": -100,
+ "level": 75,
+ "amplitude": 1,
+ "phase_rad": 0.47123889803846897,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4184,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": -100,
+ "level": 111,
+ "amplitude": 1,
+ "phase_rad": -1.9722220547535925,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3561,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": -100,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": -2.0071286397934789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2707,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": -100,
+ "level": 64,
+ "amplitude": 1,
+ "phase_rad": 1.6406094968746698,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5588,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": -100,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": -2.6005405854715509,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2689,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": -100,
+ "level": 99,
+ "amplitude": 1,
+ "phase_rad": -0.6108652381980153,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 971,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": -100,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": 1.5184364492350666,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4667,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": -100,
+ "level": 87,
+ "amplitude": 1,
+ "phase_rad": -2.1293016874330819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1035,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": -100,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": 0.31415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4620,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": -100,
+ "level": 74,
+ "amplitude": 1,
+ "phase_rad": 1.1344640137963142,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5124,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": -100,
+ "level": 88,
+ "amplitude": 1,
+ "phase_rad": -0.19198621771937624,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2176,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": -100,
+ "level": 96,
+ "amplitude": 1,
+ "phase_rad": -1.43116998663535,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5049,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": -100,
+ "level": 87,
+ "amplitude": 1,
+ "phase_rad": -2.6179938779914944,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 841,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": -100,
+ "level": 60,
+ "amplitude": 1,
+ "phase_rad": 2.8448866807507569,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2275,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": -100,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": -2.0071286397934789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1378,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": -100,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": -3.12413936106985,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5773,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": -100,
+ "level": 91,
+ "amplitude": 1,
+ "phase_rad": -2.0420352248333655,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 116,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": -100,
+ "level": 85,
+ "amplitude": 1,
+ "phase_rad": 2.4958208303518914,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2788,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": -100,
+ "level": 108,
+ "amplitude": 1,
+ "phase_rad": 1.9198621771937625,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2467,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": -100,
+ "level": 92,
+ "amplitude": 1,
+ "phase_rad": 0.41887902047863906,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3816,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": -100,
+ "level": 110,
+ "amplitude": 1,
+ "phase_rad": -0.43633231299858238,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3008,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": -100,
+ "level": 96,
+ "amplitude": 1,
+ "phase_rad": 0.64577182323790194,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1750,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": -100,
+ "level": 94,
+ "amplitude": 1,
+ "phase_rad": -1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4887,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": -100,
+ "level": 97,
+ "amplitude": 1,
+ "phase_rad": -1.9373154697137056,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1912,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": -100,
+ "level": 61,
+ "amplitude": 1,
+ "phase_rad": 1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4745,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": -100,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": -2.1816615649929116,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5887,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": -100,
+ "level": 117,
+ "amplitude": 1,
+ "phase_rad": -1.3089969389957472,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3278,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": -100,
+ "level": 109,
+ "amplitude": 1,
+ "phase_rad": 1.4137166941154069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3026,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": -100,
+ "level": 110,
+ "amplitude": 1,
+ "phase_rad": -2.7925268031909272,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3434,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": -100,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": 1.9547687622336492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2802,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": -100,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": 2.6703537555513241,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3109,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": -100,
+ "level": 90,
+ "amplitude": 1,
+ "phase_rad": -2.0245819323134224,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3114,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": -100,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": 1.2391837689159739,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3485,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": -100,
+ "level": 117,
+ "amplitude": 1,
+ "phase_rad": -0.48869219055841234,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4917,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": -100,
+ "level": 69,
+ "amplitude": 1,
+ "phase_rad": 2.5656340004316647,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5889,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": -100,
+ "level": 102,
+ "amplitude": 1,
+ "phase_rad": -0.68067840827778847,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 765,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": -100,
+ "level": 101,
+ "amplitude": 1,
+ "phase_rad": -0.69813170079773179,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3910,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": -100,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": 0.52359877559829882,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1644,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": -100,
+ "level": 65,
+ "amplitude": 1,
+ "phase_rad": -3.0543261909900763,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4239,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": -100,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": 1.6580627893946132,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3269,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": -100,
+ "level": 103,
+ "amplitude": 1,
+ "phase_rad": 1.0821041362364845,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2248,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": -50,
+ "level": 81,
+ "amplitude": 1,
+ "phase_rad": -2.0420352248333655,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1618,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": -50,
+ "level": 108,
+ "amplitude": 1,
+ "phase_rad": 0.10471975511965977,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3546,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": -50,
+ "level": 76,
+ "amplitude": 1,
+ "phase_rad": 0.13962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2744,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": -50,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": -3.12413936106985,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5229,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": -50,
+ "level": 104,
+ "amplitude": 1,
+ "phase_rad": 1.0122909661567112,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4905,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": -50,
+ "level": 91,
+ "amplitude": 1,
+ "phase_rad": -2.3038346126325151,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3990,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": -50,
+ "level": 87,
+ "amplitude": 1,
+ "phase_rad": -1.7453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2519,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": -50,
+ "level": 109,
+ "amplitude": 1,
+ "phase_rad": -3.1415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2049,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": -50,
+ "level": 74,
+ "amplitude": 1,
+ "phase_rad": -0.54105206811824214,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 977,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": -50,
+ "level": 109,
+ "amplitude": 1,
+ "phase_rad": 2.3911010752322315,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5602,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": -50,
+ "level": 62,
+ "amplitude": 1,
+ "phase_rad": -1.780235837034216,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4506,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": -50,
+ "level": 87,
+ "amplitude": 1,
+ "phase_rad": 1.8849555921538761,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4385,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": -50,
+ "level": 103,
+ "amplitude": 1,
+ "phase_rad": 2.5307274153917776,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5244,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": -50,
+ "level": 92,
+ "amplitude": 1,
+ "phase_rad": -0.6108652381980153,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5209,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": -50,
+ "level": 71,
+ "amplitude": 1,
+ "phase_rad": -2.9670597283903604,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3463,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": -50,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": -0.85521133347722145,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2132,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": -50,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": -0.15707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3767,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": -50,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": -1.4137166941154069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2680,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": -50,
+ "level": 118,
+ "amplitude": 1,
+ "phase_rad": 0.20943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1057,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": -50,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": 0.3490658503988659,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 620,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": -50,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": -0.26179938779914941,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3840,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": -50,
+ "level": 91,
+ "amplitude": 1,
+ "phase_rad": -0.85521133347722145,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4717,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": -50,
+ "level": 67,
+ "amplitude": 1,
+ "phase_rad": -1.3788101090755205,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5161,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": -50,
+ "level": 65,
+ "amplitude": 1,
+ "phase_rad": 1.9547687622336492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1404,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": -50,
+ "level": 108,
+ "amplitude": 1,
+ "phase_rad": 2.5656340004316647,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4933,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": -50,
+ "level": 93,
+ "amplitude": 1,
+ "phase_rad": 0.767944870877505,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5823,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": -50,
+ "level": 106,
+ "amplitude": 1,
+ "phase_rad": 2.1467549799530254,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 308,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": -50,
+ "level": 109,
+ "amplitude": 1,
+ "phase_rad": 2.6703537555513241,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2440,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": -50,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": -2.1642082724729685,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5666,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": -50,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": -0.069813170079773182,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1608,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": -50,
+ "level": 93,
+ "amplitude": 1,
+ "phase_rad": 1.780235837034216,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2065,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": -50,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": -2.4609142453120043,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5655,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": -50,
+ "level": 73,
+ "amplitude": 1,
+ "phase_rad": 1.0821041362364845,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3992,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": -50,
+ "level": 108,
+ "amplitude": 1,
+ "phase_rad": -1.3788101090755205,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 487,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": -50,
+ "level": 90,
+ "amplitude": 1,
+ "phase_rad": 1.902408884673819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3979,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": -50,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": -2.6005405854715509,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2196,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": -50,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": -0.6108652381980153,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5465,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": -50,
+ "level": 72,
+ "amplitude": 1,
+ "phase_rad": -2.1118483949131388,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4285,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": -50,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": 0.767944870877505,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3214,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": -50,
+ "level": 74,
+ "amplitude": 1,
+ "phase_rad": -1.780235837034216,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1248,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": -50,
+ "level": 111,
+ "amplitude": 1,
+ "phase_rad": 1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4752,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": 0,
+ "level": 96,
+ "amplitude": 1,
+ "phase_rad": 0.20943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 163,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": 0,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": -3.01941960595019,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4801,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": 0,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": -1.1170107212763709,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5703,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": 0,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": 2.9845130209103035,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3360,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": 0,
+ "level": 119,
+ "amplitude": 1,
+ "phase_rad": -1.1868238913561442,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 729,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": 0,
+ "level": 105,
+ "amplitude": 1,
+ "phase_rad": 2.6005405854715509,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 407,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": 0,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": 1.1344640137963142,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 521,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": 0,
+ "level": 81,
+ "amplitude": 1,
+ "phase_rad": -0.94247779607693793,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3721,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": 0,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": 1.3788101090755205,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2925,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": 0,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": 3.12413936106985,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2716,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": 0,
+ "level": 87,
+ "amplitude": 1,
+ "phase_rad": 2.8274333882308138,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2794,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": 0,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": 2.5307274153917776,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1623,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": 0,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": 0.034906585039886591,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 410,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": 0,
+ "level": 94,
+ "amplitude": 1,
+ "phase_rad": 1.53588974175501,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 479,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": 0,
+ "level": 118,
+ "amplitude": 1,
+ "phase_rad": 2.5132741228718345,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1142,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": 0,
+ "level": 69,
+ "amplitude": 1,
+ "phase_rad": -2.6354471705114375,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1852,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": 0,
+ "level": 85,
+ "amplitude": 1,
+ "phase_rad": -0.069813170079773182,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1836,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": 0,
+ "level": 68,
+ "amplitude": 1,
+ "phase_rad": -1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 818,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": 0,
+ "level": 103,
+ "amplitude": 1,
+ "phase_rad": -1.6755160819145565,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1095,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 0,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": -1.5184364492350666,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1809,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": 0,
+ "level": 79,
+ "amplitude": 1,
+ "phase_rad": -0.17453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1971,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": 0,
+ "level": 90,
+ "amplitude": 1,
+ "phase_rad": 2.1991148575128552,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 146,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": 0,
+ "level": 65,
+ "amplitude": 1,
+ "phase_rad": 1.1344640137963142,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2455,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": 0,
+ "level": 111,
+ "amplitude": 1,
+ "phase_rad": -2.4783675378319479,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2445,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": 0,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": -3.07177948351002,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5610,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 0,
+ "level": 60,
+ "amplitude": 1,
+ "phase_rad": -0.64577182323790194,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2696,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": 0,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": -0.15707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3822,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 0,
+ "level": 70,
+ "amplitude": 1,
+ "phase_rad": 3.1066860685499069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3029,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": 0,
+ "level": 68,
+ "amplitude": 1,
+ "phase_rad": -1.1519173063162576,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4114,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": 0,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": 0.52359877559829882,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4008,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": 0,
+ "level": 65,
+ "amplitude": 1,
+ "phase_rad": -1.7104226669544429,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1468,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": 0,
+ "level": 106,
+ "amplitude": 1,
+ "phase_rad": -1.5533430342749537,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1634,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": 0,
+ "level": 105,
+ "amplitude": 1,
+ "phase_rad": -0.24434609527920617,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 313,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": 0,
+ "level": 70,
+ "amplitude": 1,
+ "phase_rad": -2.7750735106709841,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2404,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": 0,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": 0.40142572795869574,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2296,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": 0,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": -2.2689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1505,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": 0,
+ "level": 72,
+ "amplitude": 1,
+ "phase_rad": 1.2566370614359173,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5028,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": 0,
+ "level": 104,
+ "amplitude": 1,
+ "phase_rad": 3.0019663134302466,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4702,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": 0,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": -2.3038346126325151,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2879,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": 0,
+ "level": 110,
+ "amplitude": 1,
+ "phase_rad": -0.94247779607693793,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3186,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": 0,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": 1.6755160819145565,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 584,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": 50,
+ "level": 105,
+ "amplitude": 1,
+ "phase_rad": 1.6580627893946132,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5268,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": 50,
+ "level": 69,
+ "amplitude": 1,
+ "phase_rad": -1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4557,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": 50,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": -1.53588974175501,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5607,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": 50,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": -1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2497,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": 50,
+ "level": 74,
+ "amplitude": 1,
+ "phase_rad": -1.3962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2577,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": 50,
+ "level": 67,
+ "amplitude": 1,
+ "phase_rad": -1.58824961931484,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1057,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": 50,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": -2.3387411976724013,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5313,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": 50,
+ "level": 110,
+ "amplitude": 1,
+ "phase_rad": -0.90757121103705141,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1512,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": 50,
+ "level": 88,
+ "amplitude": 1,
+ "phase_rad": -2.5132741228718345,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 716,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": 50,
+ "level": 108,
+ "amplitude": 1,
+ "phase_rad": 2.6878070480712677,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 667,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": 50,
+ "level": 91,
+ "amplitude": 1,
+ "phase_rad": 2.0594885173533086,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1769,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": 50,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": -2.1467549799530254,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4801,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": 50,
+ "level": 90,
+ "amplitude": 1,
+ "phase_rad": 1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5449,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": 50,
+ "level": 89,
+ "amplitude": 1,
+ "phase_rad": 0.24434609527920617,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2656,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": 50,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": -1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4279,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": 50,
+ "level": 82,
+ "amplitude": 1,
+ "phase_rad": -0.4537856055185257,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5125,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": 50,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": 1.2740903539558606,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 618,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": 50,
+ "level": 81,
+ "amplitude": 1,
+ "phase_rad": 2.5481807079117211,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3820,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": 50,
+ "level": 72,
+ "amplitude": 1,
+ "phase_rad": 2.5830872929516082,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2449,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 50,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": 1.2740903539558606,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 782,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": 50,
+ "level": 99,
+ "amplitude": 1,
+ "phase_rad": 2.3387411976724013,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1968,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": 50,
+ "level": 110,
+ "amplitude": 1,
+ "phase_rad": 2.3736477827122884,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2620,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": 50,
+ "level": 67,
+ "amplitude": 1,
+ "phase_rad": 2.7227136331111539,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 728,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": 50,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": 0.73303828583761843,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3076,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": 50,
+ "level": 76,
+ "amplitude": 1,
+ "phase_rad": 2.7925268031909272,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3538,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 50,
+ "level": 87,
+ "amplitude": 1,
+ "phase_rad": 2.6878070480712677,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 113,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": 50,
+ "level": 92,
+ "amplitude": 1,
+ "phase_rad": -2.5656340004316647,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4045,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 50,
+ "level": 76,
+ "amplitude": 1,
+ "phase_rad": 1.5184364492350666,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1358,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": 50,
+ "level": 60,
+ "amplitude": 1,
+ "phase_rad": -2.0943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5541,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": 50,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": -2.5656340004316647,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1483,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": 50,
+ "level": 83,
+ "amplitude": 1,
+ "phase_rad": 2.3911010752322315,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 202,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": 50,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": 2.2165681500327987,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4011,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": 50,
+ "level": 67,
+ "amplitude": 1,
+ "phase_rad": -2.6529004630313806,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2760,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": 50,
+ "level": 76,
+ "amplitude": 1,
+ "phase_rad": -1.605702911834783,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2971,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": 50,
+ "level": 104,
+ "amplitude": 1,
+ "phase_rad": -0.50614548307835561,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 504,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": 50,
+ "level": 96,
+ "amplitude": 1,
+ "phase_rad": -2.6005405854715509,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5761,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": 50,
+ "level": 62,
+ "amplitude": 1,
+ "phase_rad": 1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5906,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": 50,
+ "level": 83,
+ "amplitude": 1,
+ "phase_rad": -2.6005405854715509,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3653,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": 50,
+ "level": 87,
+ "amplitude": 1,
+ "phase_rad": -0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 766,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": 50,
+ "level": 66,
+ "amplitude": 1,
+ "phase_rad": 1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4258,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": 50,
+ "level": 91,
+ "amplitude": 1,
+ "phase_rad": -0.22689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5047,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": 100,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": -1.6580627893946132,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4434,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": 100,
+ "level": 89,
+ "amplitude": 1,
+ "phase_rad": -0.069813170079773182,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 555,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": 100,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": -1.0821041362364845,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5081,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": 100,
+ "level": 94,
+ "amplitude": 1,
+ "phase_rad": -1.5009831567151233,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5080,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": 100,
+ "level": 70,
+ "amplitude": 1,
+ "phase_rad": 0.20943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1928,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": 100,
+ "level": 68,
+ "amplitude": 1,
+ "phase_rad": -0.52359877559829882,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 476,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": 100,
+ "level": 118,
+ "amplitude": 1,
+ "phase_rad": 0.69813170079773179,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1937,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": 100,
+ "level": 76,
+ "amplitude": 1,
+ "phase_rad": -3.1415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4748,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": 100,
+ "level": 85,
+ "amplitude": 1,
+ "phase_rad": -1.1170107212763709,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2855,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": 100,
+ "level": 92,
+ "amplitude": 1,
+ "phase_rad": -3.07177948351002,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1588,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": 100,
+ "level": 105,
+ "amplitude": 1,
+ "phase_rad": 1.6580627893946132,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4699,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": 100,
+ "level": 99,
+ "amplitude": 1,
+ "phase_rad": 2.2689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1103,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": 100,
+ "level": 81,
+ "amplitude": 1,
+ "phase_rad": -2.4434609527920612,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3583,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": 100,
+ "level": 112,
+ "amplitude": 1,
+ "phase_rad": -2.3561944901923448,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2645,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": 100,
+ "level": 68,
+ "amplitude": 1,
+ "phase_rad": 2.0769418098732522,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4950,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": 100,
+ "level": 106,
+ "amplitude": 1,
+ "phase_rad": -1.3962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5059,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": 100,
+ "level": 109,
+ "amplitude": 1,
+ "phase_rad": 2.8972465583105871,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2384,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": 100,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": 0.31415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5111,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": 100,
+ "level": 91,
+ "amplitude": 1,
+ "phase_rad": 0.69813170079773179,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1408,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 100,
+ "level": 117,
+ "amplitude": 1,
+ "phase_rad": -2.8099800957108703,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1008,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": 100,
+ "level": 97,
+ "amplitude": 1,
+ "phase_rad": -0.75049157835756164,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1890,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": 100,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": 1.9373154697137056,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2991,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": 100,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": 0.15707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4039,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": 100,
+ "level": 68,
+ "amplitude": 1,
+ "phase_rad": 1.8675022996339328,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1842,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": 100,
+ "level": 89,
+ "amplitude": 1,
+ "phase_rad": -2.5481807079117211,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2912,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 100,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": -2.3561944901923448,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1031,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": 100,
+ "level": 118,
+ "amplitude": 1,
+ "phase_rad": 1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 269,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 100,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": 1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 324,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": 100,
+ "level": 112,
+ "amplitude": 1,
+ "phase_rad": -2.3911010752322315,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1284,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": 100,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": -2.3038346126325151,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1485,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": 100,
+ "level": 117,
+ "amplitude": 1,
+ "phase_rad": -0.64577182323790194,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 340,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": 100,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": -1.5707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4473,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": 100,
+ "level": 67,
+ "amplitude": 1,
+ "phase_rad": 0.3490658503988659,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 133,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": 100,
+ "level": 79,
+ "amplitude": 1,
+ "phase_rad": 1.2566370614359173,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4513,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": 100,
+ "level": 70,
+ "amplitude": 1,
+ "phase_rad": 1.064650843716541,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 970,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": 100,
+ "level": 65,
+ "amplitude": 1,
+ "phase_rad": -2.2165681500327987,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2724,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": 100,
+ "level": 82,
+ "amplitude": 1,
+ "phase_rad": 0.85521133347722145,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2917,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": 100,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": 3.0368728984701332,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2351,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": 100,
+ "level": 67,
+ "amplitude": 1,
+ "phase_rad": 3.0543261909900763,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3874,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": 100,
+ "level": 75,
+ "amplitude": 1,
+ "phase_rad": 1.3613568165555767,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4133,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": 100,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": -2.3212879051524582,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2338,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": 150,
+ "level": 85,
+ "amplitude": 1,
+ "phase_rad": -1.9547687622336492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2402,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": 150,
+ "level": 75,
+ "amplitude": 1,
+ "phase_rad": -2.8099800957108703,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5067,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": 150,
+ "level": 105,
+ "amplitude": 1,
+ "phase_rad": 1.605702911834783,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3419,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": 150,
+ "level": 69,
+ "amplitude": 1,
+ "phase_rad": 0.87266462599716477,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5784,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": 150,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": -0.24434609527920617,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 396,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": 150,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": 1.7453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5827,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": 150,
+ "level": 106,
+ "amplitude": 1,
+ "phase_rad": 0.40142572795869574,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2993,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": 150,
+ "level": 106,
+ "amplitude": 1,
+ "phase_rad": 2.4260076602721181,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2495,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": 150,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": -1.2217304763960306,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1601,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": 150,
+ "level": 66,
+ "amplitude": 1,
+ "phase_rad": 2.3038346126325151,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5042,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": 150,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": -2.8797932657906435,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3398,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": 150,
+ "level": 82,
+ "amplitude": 1,
+ "phase_rad": 1.53588974175501,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2882,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": 150,
+ "level": 106,
+ "amplitude": 1,
+ "phase_rad": 2.1467549799530254,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 574,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": 150,
+ "level": 97,
+ "amplitude": 1,
+ "phase_rad": 0.80285145591739149,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5283,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": 150,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": 2.6005405854715509,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2050,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": 150,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": 2.0769418098732522,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3131,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": 150,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": -0.82030474843733492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5626,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": 150,
+ "level": 103,
+ "amplitude": 1,
+ "phase_rad": 0.15707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3405,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": 150,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": 1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1812,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 150,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": 0.54105206811824214,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4482,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": 150,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": 0.890117918517108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5346,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": 150,
+ "level": 104,
+ "amplitude": 1,
+ "phase_rad": 1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3586,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": 150,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": 2.7052603405912108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4308,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": 150,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": -2.3212879051524582,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5623,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": 150,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": -2.1991148575128552,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5627,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 150,
+ "level": 97,
+ "amplitude": 1,
+ "phase_rad": 2.1816615649929116,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5839,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": 150,
+ "level": 64,
+ "amplitude": 1,
+ "phase_rad": -1.6580627893946132,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2851,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 150,
+ "level": 105,
+ "amplitude": 1,
+ "phase_rad": 0.12217304763960309,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2977,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": 150,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": 0.73303828583761843,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3104,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": 150,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": -0.17453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 479,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": 150,
+ "level": 70,
+ "amplitude": 1,
+ "phase_rad": 1.7453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1526,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": 150,
+ "level": 81,
+ "amplitude": 1,
+ "phase_rad": -2.9496064358704168,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5921,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": 150,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": -1.9722220547535925,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 581,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": 150,
+ "level": 105,
+ "amplitude": 1,
+ "phase_rad": -2.9670597283903604,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5404,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": 150,
+ "level": 109,
+ "amplitude": 1,
+ "phase_rad": 3.1066860685499069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1427,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": 150,
+ "level": 60,
+ "amplitude": 1,
+ "phase_rad": 2.1467549799530254,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2246,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": 150,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": -1.43116998663535,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4917,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": 150,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": 2.5830872929516082,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2091,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": 150,
+ "level": 76,
+ "amplitude": 1,
+ "phase_rad": 2.0943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 720,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": 150,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": 2.0594885173533086,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1204,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": 150,
+ "level": 64,
+ "amplitude": 1,
+ "phase_rad": -0.62831853071795862,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2750,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": 200,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": -0.57595865315812877,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2124,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": 200,
+ "level": 101,
+ "amplitude": 1,
+ "phase_rad": 0.17453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 713,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": 200,
+ "level": 118,
+ "amplitude": 1,
+ "phase_rad": 0.80285145591739149,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3949,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": 200,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": -1.064650843716541,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1243,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": 200,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": 2.7750735106709841,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3155,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": 200,
+ "level": 75,
+ "amplitude": 1,
+ "phase_rad": 2.5307274153917776,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4643,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": 200,
+ "level": 68,
+ "amplitude": 1,
+ "phase_rad": -0.82030474843733492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1194,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": 200,
+ "level": 75,
+ "amplitude": 1,
+ "phase_rad": 2.1991148575128552,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5199,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": 200,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": -2.6703537555513241,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1194,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": 200,
+ "level": 112,
+ "amplitude": 1,
+ "phase_rad": 0.59341194567807209,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2160,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": 200,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": 1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3785,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": 200,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": -2.1118483949131388,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3520,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": 200,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": -1.1519173063162576,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1888,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": 200,
+ "level": 75,
+ "amplitude": 1,
+ "phase_rad": 1.1344640137963142,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3864,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": 200,
+ "level": 69,
+ "amplitude": 1,
+ "phase_rad": -0.29670597283903605,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3482,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": 200,
+ "level": 68,
+ "amplitude": 1,
+ "phase_rad": 1.2391837689159739,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5349,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": 200,
+ "level": 96,
+ "amplitude": 1,
+ "phase_rad": -2.286381320112572,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5548,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": 200,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": 2.7576202181510405,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 181,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": 200,
+ "level": 75,
+ "amplitude": 1,
+ "phase_rad": -0.767944870877505,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3348,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 200,
+ "level": 89,
+ "amplitude": 1,
+ "phase_rad": 1.7453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2704,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": 200,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": -2.6179938779914944,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 205,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": 200,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": 3.01941960595019,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3998,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": 200,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": -2.3212879051524582,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4655,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": 200,
+ "level": 117,
+ "amplitude": 1,
+ "phase_rad": -0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3505,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": 200,
+ "level": 88,
+ "amplitude": 1,
+ "phase_rad": 2.4434609527920612,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4141,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 200,
+ "level": 93,
+ "amplitude": 1,
+ "phase_rad": -2.5307274153917776,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2383,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": 200,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": 1.6580627893946132,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2276,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 200,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": -1.43116998663535,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2749,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": 200,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": -0.19198621771937624,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4359,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": 200,
+ "level": 96,
+ "amplitude": 1,
+ "phase_rad": -1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4723,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": 200,
+ "level": 61,
+ "amplitude": 1,
+ "phase_rad": -0.64577182323790194,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3245,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": 200,
+ "level": 112,
+ "amplitude": 1,
+ "phase_rad": -1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3569,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": 200,
+ "level": 97,
+ "amplitude": 1,
+ "phase_rad": 2.286381320112572,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2831,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": 200,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": 0.41887902047863906,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3391,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": 200,
+ "level": 67,
+ "amplitude": 1,
+ "phase_rad": 0.97738438111682469,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4572,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": 200,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": 2.9496064358704168,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 299,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": 200,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": 1.2915436464758041,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1677,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": 200,
+ "level": 69,
+ "amplitude": 1,
+ "phase_rad": -1.8849555921538761,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 76,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": 200,
+ "level": 64,
+ "amplitude": 1,
+ "phase_rad": 0.715584993317675,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4865,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": 200,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": 2.286381320112572,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3066,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": 200,
+ "level": 117,
+ "amplitude": 1,
+ "phase_rad": 3.0019663134302466,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5696,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": 250,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": 2.5830872929516082,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5870,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": 250,
+ "level": 62,
+ "amplitude": 1,
+ "phase_rad": 0.59341194567807209,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3311,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": 250,
+ "level": 65,
+ "amplitude": 1,
+ "phase_rad": 2.8099800957108703,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1412,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": 250,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": -0.80285145591739149,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1194,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": 250,
+ "level": 109,
+ "amplitude": 1,
+ "phase_rad": -1.9373154697137056,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3709,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": 250,
+ "level": 102,
+ "amplitude": 1,
+ "phase_rad": -2.5481807079117211,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3011,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": 250,
+ "level": 101,
+ "amplitude": 1,
+ "phase_rad": -1.5009831567151233,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2871,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": 250,
+ "level": 90,
+ "amplitude": 1,
+ "phase_rad": 2.3212879051524582,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1170,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": 250,
+ "level": 92,
+ "amplitude": 1,
+ "phase_rad": 1.8500490071139892,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4340,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": 250,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": -2.9321531433504737,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": 250,
+ "level": 118,
+ "amplitude": 1,
+ "phase_rad": 2.9845130209103035,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3541,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": 250,
+ "level": 97,
+ "amplitude": 1,
+ "phase_rad": -2.3561944901923448,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4467,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": 250,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": -1.2740903539558606,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2234,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": 250,
+ "level": 90,
+ "amplitude": 1,
+ "phase_rad": -1.605702911834783,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4556,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": 250,
+ "level": 62,
+ "amplitude": 1,
+ "phase_rad": -1.6755160819145565,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4974,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": 250,
+ "level": 109,
+ "amplitude": 1,
+ "phase_rad": -1.53588974175501,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2525,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": 250,
+ "level": 71,
+ "amplitude": 1,
+ "phase_rad": 2.3911010752322315,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4610,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": 250,
+ "level": 60,
+ "amplitude": 1,
+ "phase_rad": -1.5009831567151233,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4284,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": 250,
+ "level": 88,
+ "amplitude": 1,
+ "phase_rad": -0.12217304763960309,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 254,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 250,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": 0.087266462599716474,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4815,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": 250,
+ "level": 110,
+ "amplitude": 1,
+ "phase_rad": -1.1868238913561442,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5465,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": 250,
+ "level": 74,
+ "amplitude": 1,
+ "phase_rad": 2.9321531433504737,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2389,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": 250,
+ "level": 97,
+ "amplitude": 1,
+ "phase_rad": -1.902408884673819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 388,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": 250,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": 2.6005405854715509,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4784,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": 250,
+ "level": 67,
+ "amplitude": 1,
+ "phase_rad": -2.0245819323134224,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 102,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 250,
+ "level": 103,
+ "amplitude": 1,
+ "phase_rad": -0.22689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3796,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": 250,
+ "level": 82,
+ "amplitude": 1,
+ "phase_rad": 1.3439035240356341,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3212,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 250,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": 0.57595865315812877,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 926,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": 250,
+ "level": 74,
+ "amplitude": 1,
+ "phase_rad": 2.8448866807507569,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4267,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": 250,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": -2.2340214425527418,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3878,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": 250,
+ "level": 102,
+ "amplitude": 1,
+ "phase_rad": -3.1415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4693,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": 250,
+ "level": 94,
+ "amplitude": 1,
+ "phase_rad": 1.064650843716541,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5596,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": 250,
+ "level": 111,
+ "amplitude": 1,
+ "phase_rad": 1.9547687622336492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1625,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": 250,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": -1.8675022996339328,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 355,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": 250,
+ "level": 81,
+ "amplitude": 1,
+ "phase_rad": -1.1344640137963142,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5804,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": 250,
+ "level": 119,
+ "amplitude": 1,
+ "phase_rad": 2.3911010752322315,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 505,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": 250,
+ "level": 102,
+ "amplitude": 1,
+ "phase_rad": 1.58824961931484,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 105,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": 250,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": -0.52359877559829882,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4803,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": 250,
+ "level": 76,
+ "amplitude": 1,
+ "phase_rad": 0.15707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4322,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": 250,
+ "level": 106,
+ "amplitude": 1,
+ "phase_rad": -3.12413936106985,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 77,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": 250,
+ "level": 101,
+ "amplitude": 1,
+ "phase_rad": 1.4660765716752369,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 320,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": 300,
+ "level": 85,
+ "amplitude": 1,
+ "phase_rad": -2.0769418098732522,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5474,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": 300,
+ "level": 60,
+ "amplitude": 1,
+ "phase_rad": 0.38397243543875248,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3058,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": 300,
+ "level": 65,
+ "amplitude": 1,
+ "phase_rad": 2.3387411976724013,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3924,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": 300,
+ "level": 82,
+ "amplitude": 1,
+ "phase_rad": 2.740166925631097,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3058,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": 300,
+ "level": 89,
+ "amplitude": 1,
+ "phase_rad": 2.8099800957108703,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1633,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": 300,
+ "level": 71,
+ "amplitude": 1,
+ "phase_rad": -1.5009831567151233,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 434,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": 300,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": -2.0245819323134224,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2359,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": 300,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": -1.3089969389957472,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3494,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": 300,
+ "level": 119,
+ "amplitude": 1,
+ "phase_rad": -1.2391837689159739,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 861,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": 300,
+ "level": 72,
+ "amplitude": 1,
+ "phase_rad": -2.5656340004316647,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4839,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": 300,
+ "level": 75,
+ "amplitude": 1,
+ "phase_rad": 1.53588974175501,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2834,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": 300,
+ "level": 60,
+ "amplitude": 1,
+ "phase_rad": 2.7576202181510405,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 885,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": 300,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": 2.8797932657906435,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1917,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": 300,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": 0.715584993317675,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5287,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": 300,
+ "level": 82,
+ "amplitude": 1,
+ "phase_rad": -2.8448866807507569,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2898,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": 300,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": 1.8325957145940459,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3478,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": 300,
+ "level": 87,
+ "amplitude": 1,
+ "phase_rad": 0.43633231299858238,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4450,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": 300,
+ "level": 117,
+ "amplitude": 1,
+ "phase_rad": -2.7750735106709841,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3322,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": 300,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": 1.8151424220741028,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5273,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 300,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": -2.9321531433504737,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1545,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": 300,
+ "level": 82,
+ "amplitude": 1,
+ "phase_rad": 2.3387411976724013,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4674,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": 300,
+ "level": 111,
+ "amplitude": 1,
+ "phase_rad": -2.4958208303518914,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1145,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": 300,
+ "level": 62,
+ "amplitude": 1,
+ "phase_rad": -0.19198621771937624,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 50,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": 300,
+ "level": 67,
+ "amplitude": 1,
+ "phase_rad": -2.3212879051524582,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1831,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": 300,
+ "level": 105,
+ "amplitude": 1,
+ "phase_rad": -2.8099800957108703,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3395,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 300,
+ "level": 91,
+ "amplitude": 1,
+ "phase_rad": -1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1471,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": 300,
+ "level": 66,
+ "amplitude": 1,
+ "phase_rad": 1.2042771838760873,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3070,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 300,
+ "level": 94,
+ "amplitude": 1,
+ "phase_rad": 1.6580627893946132,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3131,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": 300,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": -1.1519173063162576,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4105,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": 300,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": -0.97738438111682469,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 892,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": 300,
+ "level": 76,
+ "amplitude": 1,
+ "phase_rad": 1.4137166941154069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5534,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": 300,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": -1.8325957145940459,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4448,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": 300,
+ "level": 66,
+ "amplitude": 1,
+ "phase_rad": 0.10471975511965977,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5661,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": 300,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": -1.5533430342749537,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1922,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": 300,
+ "level": 94,
+ "amplitude": 1,
+ "phase_rad": -1.1170107212763709,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2628,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": 300,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": -1.9722220547535925,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 43,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": 300,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": -2.2165681500327987,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3143,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": 300,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": -1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2056,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": 300,
+ "level": 105,
+ "amplitude": 1,
+ "phase_rad": 1.902408884673819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 646,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": 300,
+ "level": 75,
+ "amplitude": 1,
+ "phase_rad": 1.780235837034216,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4720,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": 300,
+ "level": 90,
+ "amplitude": 1,
+ "phase_rad": -2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 749,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": 350,
+ "level": 112,
+ "amplitude": 1,
+ "phase_rad": 2.2514747350726849,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2441,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": 350,
+ "level": 83,
+ "amplitude": 1,
+ "phase_rad": 1.2042771838760873,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5067,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": 350,
+ "level": 110,
+ "amplitude": 1,
+ "phase_rad": -0.57595865315812877,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4498,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": 350,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": 1.9373154697137056,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2625,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": 350,
+ "level": 71,
+ "amplitude": 1,
+ "phase_rad": 3.1066860685499069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2643,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": 350,
+ "level": 65,
+ "amplitude": 1,
+ "phase_rad": 0.80285145591739149,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 779,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": 350,
+ "level": 101,
+ "amplitude": 1,
+ "phase_rad": 2.7227136331111539,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1186,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": 350,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": 0.85521133347722145,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2968,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": 350,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": -1.1519173063162576,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2434,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": 350,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": 2.1816615649929116,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4398,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": 350,
+ "level": 69,
+ "amplitude": 1,
+ "phase_rad": 1.7976891295541593,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 808,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": 350,
+ "level": 71,
+ "amplitude": 1,
+ "phase_rad": 1.3264502315156903,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2805,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": 350,
+ "level": 61,
+ "amplitude": 1,
+ "phase_rad": -2.8099800957108703,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2981,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": 350,
+ "level": 69,
+ "amplitude": 1,
+ "phase_rad": -2.1293016874330819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4429,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": 350,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": -1.064650843716541,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2538,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": 350,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": 0.3490658503988659,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4860,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": 350,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": -2.0594885173533086,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 928,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": 350,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": 2.0769418098732522,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1128,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": 350,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": -1.6755160819145565,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1327,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 350,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": 1.902408884673819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2247,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": 350,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": -1.9547687622336492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3390,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": 350,
+ "level": 61,
+ "amplitude": 1,
+ "phase_rad": -2.2340214425527418,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 132,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": 350,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": 3.12413936106985,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1684,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": 350,
+ "level": 119,
+ "amplitude": 1,
+ "phase_rad": -2.8099800957108703,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3444,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": 350,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": 0.087266462599716474,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4605,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 350,
+ "level": 88,
+ "amplitude": 1,
+ "phase_rad": 2.2165681500327987,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1817,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": 350,
+ "level": 64,
+ "amplitude": 1,
+ "phase_rad": 1.0995574287564276,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4572,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 350,
+ "level": 96,
+ "amplitude": 1,
+ "phase_rad": 2.9321531433504737,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4029,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": 350,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5736,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": 350,
+ "level": 117,
+ "amplitude": 1,
+ "phase_rad": -1.4660765716752369,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2860,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": 350,
+ "level": 75,
+ "amplitude": 1,
+ "phase_rad": -2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1508,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": 350,
+ "level": 67,
+ "amplitude": 1,
+ "phase_rad": 1.4137166941154069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5834,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": 350,
+ "level": 70,
+ "amplitude": 1,
+ "phase_rad": 1.6231562043547263,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1125,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": 350,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": 0.64577182323790194,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3351,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": 350,
+ "level": 92,
+ "amplitude": 1,
+ "phase_rad": 1.2217304763960306,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 725,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": 350,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": -3.0019663134302466,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1890,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": 350,
+ "level": 85,
+ "amplitude": 1,
+ "phase_rad": -0.20943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2306,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": 350,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": 2.1467549799530254,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 769,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": 350,
+ "level": 97,
+ "amplitude": 1,
+ "phase_rad": 2.1642082724729685,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1344,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": 350,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": -0.38397243543875248,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3868,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": 350,
+ "level": 64,
+ "amplitude": 1,
+ "phase_rad": -0.90757121103705141,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4363,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": 400,
+ "level": 109,
+ "amplitude": 1,
+ "phase_rad": 1.43116998663535,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5603,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": 400,
+ "level": 79,
+ "amplitude": 1,
+ "phase_rad": 0.069813170079773182,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4744,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": 400,
+ "level": 108,
+ "amplitude": 1,
+ "phase_rad": -1.3439035240356341,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 560,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": 400,
+ "level": 67,
+ "amplitude": 1,
+ "phase_rad": 1.064650843716541,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 435,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": 400,
+ "level": 72,
+ "amplitude": 1,
+ "phase_rad": -2.740166925631097,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1637,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": 400,
+ "level": 93,
+ "amplitude": 1,
+ "phase_rad": 3.1415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2856,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": 400,
+ "level": 99,
+ "amplitude": 1,
+ "phase_rad": 0.15707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4804,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": 400,
+ "level": 65,
+ "amplitude": 1,
+ "phase_rad": -1.0821041362364845,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1669,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": 400,
+ "level": 67,
+ "amplitude": 1,
+ "phase_rad": 0.069813170079773182,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5283,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": 400,
+ "level": 105,
+ "amplitude": 1,
+ "phase_rad": -1.3962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1916,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": 400,
+ "level": 93,
+ "amplitude": 1,
+ "phase_rad": -1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1477,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": 400,
+ "level": 110,
+ "amplitude": 1,
+ "phase_rad": 1.4137166941154069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5803,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": 400,
+ "level": 71,
+ "amplitude": 1,
+ "phase_rad": -1.5184364492350666,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3081,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": 400,
+ "level": 91,
+ "amplitude": 1,
+ "phase_rad": 0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1090,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": 400,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": 1.902408884673819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1022,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": 400,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": -0.57595865315812877,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4662,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": 400,
+ "level": 118,
+ "amplitude": 1,
+ "phase_rad": -0.99483767363676789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2642,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": 400,
+ "level": 70,
+ "amplitude": 1,
+ "phase_rad": -0.47123889803846897,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4980,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": 400,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": 1.3264502315156903,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2392,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 400,
+ "level": 99,
+ "amplitude": 1,
+ "phase_rad": -1.8849555921538761,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": 400,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": -2.8623399732707,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 38,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": 400,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": 0.4537856055185257,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2010,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": 400,
+ "level": 110,
+ "amplitude": 1,
+ "phase_rad": -0.80285145591739149,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2045,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": 400,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": -0.85521133347722145,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4440,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": 400,
+ "level": 118,
+ "amplitude": 1,
+ "phase_rad": -2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5405,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 400,
+ "level": 97,
+ "amplitude": 1,
+ "phase_rad": 1.902408884673819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3150,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": 400,
+ "level": 66,
+ "amplitude": 1,
+ "phase_rad": -2.7227136331111539,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 606,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 400,
+ "level": 66,
+ "amplitude": 1,
+ "phase_rad": 1.8675022996339328,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5621,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": 400,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": -0.80285145591739149,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5463,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": 400,
+ "level": 85,
+ "amplitude": 1,
+ "phase_rad": 2.5481807079117211,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 84,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": 400,
+ "level": 94,
+ "amplitude": 1,
+ "phase_rad": 0.19198621771937624,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 351,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": 400,
+ "level": 91,
+ "amplitude": 1,
+ "phase_rad": 0.715584993317675,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3471,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": 400,
+ "level": 70,
+ "amplitude": 1,
+ "phase_rad": 0.10471975511965977,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1382,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": 400,
+ "level": 110,
+ "amplitude": 1,
+ "phase_rad": -1.7104226669544429,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 222,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": 400,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": 0.92502450355699462,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5874,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": 400,
+ "level": 102,
+ "amplitude": 1,
+ "phase_rad": -1.8500490071139892,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1849,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": 400,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": -1.2217304763960306,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5460,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": 400,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": 0.29670597283903605,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 791,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": 400,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": 1.9373154697137056,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1497,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": 400,
+ "level": 64,
+ "amplitude": 1,
+ "phase_rad": 2.4958208303518914,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1193,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": 400,
+ "level": 85,
+ "amplitude": 1,
+ "phase_rad": -0.55850536063818546,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2804,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": 450,
+ "level": 79,
+ "amplitude": 1,
+ "phase_rad": 1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4996,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": 450,
+ "level": 101,
+ "amplitude": 1,
+ "phase_rad": -0.31415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3016,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": 450,
+ "level": 79,
+ "amplitude": 1,
+ "phase_rad": -0.3490658503988659,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1707,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": 450,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": -1.43116998663535,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5029,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": 450,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": 1.0471975511965976,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 909,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": 450,
+ "level": 118,
+ "amplitude": 1,
+ "phase_rad": -2.0245819323134224,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1006,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": 450,
+ "level": 96,
+ "amplitude": 1,
+ "phase_rad": -0.087266462599716474,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3584,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": 450,
+ "level": 66,
+ "amplitude": 1,
+ "phase_rad": 1.2217304763960306,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5899,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": 450,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": 0.715584993317675,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4844,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": 450,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": -2.4783675378319479,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3731,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": 450,
+ "level": 61,
+ "amplitude": 1,
+ "phase_rad": -0.55850536063818546,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4915,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": 450,
+ "level": 94,
+ "amplitude": 1,
+ "phase_rad": -2.4609142453120043,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5453,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": 450,
+ "level": 68,
+ "amplitude": 1,
+ "phase_rad": -3.0368728984701332,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4539,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": 450,
+ "level": 109,
+ "amplitude": 1,
+ "phase_rad": 0.68067840827778847,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5183,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": 450,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": 0.50614548307835561,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1653,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": 450,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": 2.1118483949131388,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 837,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": 450,
+ "level": 65,
+ "amplitude": 1,
+ "phase_rad": -2.4434609527920612,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4299,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": 450,
+ "level": 61,
+ "amplitude": 1,
+ "phase_rad": 2.0245819323134224,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5539,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": 450,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": -1.7453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 252,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 450,
+ "level": 111,
+ "amplitude": 1,
+ "phase_rad": 1.605702911834783,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5019,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": 450,
+ "level": 102,
+ "amplitude": 1,
+ "phase_rad": 3.1066860685499069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2026,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": 450,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": -1.5009831567151233,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5169,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": 450,
+ "level": 61,
+ "amplitude": 1,
+ "phase_rad": -0.034906585039886591,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3346,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": 450,
+ "level": 74,
+ "amplitude": 1,
+ "phase_rad": 1.9547687622336492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 960,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": 450,
+ "level": 85,
+ "amplitude": 1,
+ "phase_rad": 1.8675022996339328,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5281,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 450,
+ "level": 104,
+ "amplitude": 1,
+ "phase_rad": -0.13962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 695,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": 450,
+ "level": 103,
+ "amplitude": 1,
+ "phase_rad": 0.83775804095727813,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4665,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 450,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": -1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5967,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": 450,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": -3.1415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3533,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": 450,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": 1.2566370614359173,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5319,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": 450,
+ "level": 112,
+ "amplitude": 1,
+ "phase_rad": -1.2740903539558606,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1581,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": 450,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": -2.4609142453120043,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3680,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": 450,
+ "level": 92,
+ "amplitude": 1,
+ "phase_rad": 2.91469985083053,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1896,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": 450,
+ "level": 85,
+ "amplitude": 1,
+ "phase_rad": -1.4137166941154069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2047,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": 450,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": 2.2340214425527418,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1799,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": 450,
+ "level": 93,
+ "amplitude": 1,
+ "phase_rad": 0.75049157835756164,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 151,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": 450,
+ "level": 62,
+ "amplitude": 1,
+ "phase_rad": -2.286381320112572,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4468,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": 450,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": -2.2514747350726849,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 734,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": 450,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": -2.9845130209103035,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4575,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": 450,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": 1.6231562043547263,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1577,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": 450,
+ "level": 76,
+ "amplitude": 1,
+ "phase_rad": -2.3736477827122884,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4770,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": 500,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": -0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3088,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": 500,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": -0.052359877559829883,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4120,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": 500,
+ "level": 76,
+ "amplitude": 1,
+ "phase_rad": -1.8500490071139892,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3091,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": 500,
+ "level": 108,
+ "amplitude": 1,
+ "phase_rad": -1.2915436464758041,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2150,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": 500,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": -2.6005405854715509,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2251,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": 500,
+ "level": 102,
+ "amplitude": 1,
+ "phase_rad": -0.95993108859688125,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2280,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": 500,
+ "level": 94,
+ "amplitude": 1,
+ "phase_rad": 2.2165681500327987,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3377,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": 500,
+ "level": 68,
+ "amplitude": 1,
+ "phase_rad": 2.7750735106709841,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 932,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": 500,
+ "level": 68,
+ "amplitude": 1,
+ "phase_rad": 2.2689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 499,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": 500,
+ "level": 111,
+ "amplitude": 1,
+ "phase_rad": -1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1236,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": 500,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": -2.2514747350726849,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 910,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": 500,
+ "level": 93,
+ "amplitude": 1,
+ "phase_rad": 2.5830872929516082,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2882,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": 500,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": 1.0122909661567112,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 776,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": 500,
+ "level": 80,
+ "amplitude": 1,
+ "phase_rad": 1.7453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5575,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": 500,
+ "level": 73,
+ "amplitude": 1,
+ "phase_rad": -2.3561944901923448,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5088,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": 500,
+ "level": 106,
+ "amplitude": 1,
+ "phase_rad": 0.767944870877505,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5645,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": 500,
+ "level": 83,
+ "amplitude": 1,
+ "phase_rad": 0.94247779607693793,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2450,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": 500,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": 1.3089969389957472,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1621,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": 500,
+ "level": 74,
+ "amplitude": 1,
+ "phase_rad": 0.19198621771937624,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2608,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 500,
+ "level": 81,
+ "amplitude": 1,
+ "phase_rad": 1.605702911834783,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3780,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": 500,
+ "level": 96,
+ "amplitude": 1,
+ "phase_rad": -0.52359877559829882,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 145,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": 500,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": 1.5533430342749537,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 914,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": 500,
+ "level": 72,
+ "amplitude": 1,
+ "phase_rad": 2.4609142453120043,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1054,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": 500,
+ "level": 114,
+ "amplitude": 1,
+ "phase_rad": 2.5830872929516082,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4133,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": 500,
+ "level": 75,
+ "amplitude": 1,
+ "phase_rad": -1.7278759594743864,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 462,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 500,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": 2.6005405854715509,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4885,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": 500,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": -0.767944870877505,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1430,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 500,
+ "level": 68,
+ "amplitude": 1,
+ "phase_rad": -0.22689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3210,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": 500,
+ "level": 108,
+ "amplitude": 1,
+ "phase_rad": -2.0769418098732522,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2596,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": 500,
+ "level": 113,
+ "amplitude": 1,
+ "phase_rad": -1.1693705988362009,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2289,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": 500,
+ "level": 62,
+ "amplitude": 1,
+ "phase_rad": -0.47123889803846897,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5428,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": 500,
+ "level": 90,
+ "amplitude": 1,
+ "phase_rad": 1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2160,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": 500,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": 2.6529004630313806,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2281,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": 500,
+ "level": 102,
+ "amplitude": 1,
+ "phase_rad": 0.36651914291880922,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4393,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": 500,
+ "level": 106,
+ "amplitude": 1,
+ "phase_rad": -0.052359877559829883,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4431,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": 500,
+ "level": 103,
+ "amplitude": 1,
+ "phase_rad": 0.83775804095727813,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2899,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": 500,
+ "level": 71,
+ "amplitude": 1,
+ "phase_rad": 0.62831853071795862,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3700,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": 500,
+ "level": 97,
+ "amplitude": 1,
+ "phase_rad": -2.8274333882308138,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2268,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": 500,
+ "level": 83,
+ "amplitude": 1,
+ "phase_rad": -0.24434609527920617,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5717,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": 500,
+ "level": 89,
+ "amplitude": 1,
+ "phase_rad": 0.069813170079773182,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3456,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": 500,
+ "level": 103,
+ "amplitude": 1,
+ "phase_rad": -1.0995574287564276,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3460,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": 550,
+ "level": 108,
+ "amplitude": 1,
+ "phase_rad": 2.1991148575128552,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2903,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": 550,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": 1.58824961931484,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2945,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": 550,
+ "level": 103,
+ "amplitude": 1,
+ "phase_rad": 1.4486232791552935,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5952,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": 550,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": 0.69813170079773179,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4920,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": 550,
+ "level": 90,
+ "amplitude": 1,
+ "phase_rad": -0.767944870877505,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5822,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": 550,
+ "level": 108,
+ "amplitude": 1,
+ "phase_rad": -2.6529004630313806,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3231,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": 550,
+ "level": 117,
+ "amplitude": 1,
+ "phase_rad": 1.1868238913561442,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4291,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": 550,
+ "level": 106,
+ "amplitude": 1,
+ "phase_rad": -0.47123889803846897,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2243,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": 550,
+ "level": 92,
+ "amplitude": 1,
+ "phase_rad": -2.4783675378319479,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1640,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": 550,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": -0.52359877559829882,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2453,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": 550,
+ "level": 109,
+ "amplitude": 1,
+ "phase_rad": 3.0019663134302466,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1391,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": 550,
+ "level": 69,
+ "amplitude": 1,
+ "phase_rad": 2.9670597283903604,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3863,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": 550,
+ "level": 75,
+ "amplitude": 1,
+ "phase_rad": 2.740166925631097,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5282,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": 550,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": -0.15707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5219,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": 550,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": -1.9722220547535925,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2643,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": 550,
+ "level": 94,
+ "amplitude": 1,
+ "phase_rad": 2.4260076602721181,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 507,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": 550,
+ "level": 119,
+ "amplitude": 1,
+ "phase_rad": 1.2217304763960306,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2599,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": 550,
+ "level": 62,
+ "amplitude": 1,
+ "phase_rad": 1.7104226669544429,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3823,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": 550,
+ "level": 112,
+ "amplitude": 1,
+ "phase_rad": -2.9670597283903604,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2541,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 550,
+ "level": 66,
+ "amplitude": 1,
+ "phase_rad": -1.53588974175501,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3864,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": 550,
+ "level": 73,
+ "amplitude": 1,
+ "phase_rad": -1.2042771838760873,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1876,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": 550,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": 0.82030474843733492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3812,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": 550,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": -0.94247779607693793,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2434,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": 550,
+ "level": 79,
+ "amplitude": 1,
+ "phase_rad": 0.26179938779914941,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 858,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": 550,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": 2.8797932657906435,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1272,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 550,
+ "level": 111,
+ "amplitude": 1,
+ "phase_rad": -2.2689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1434,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": 550,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": 2.9496064358704168,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1333,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 550,
+ "level": 71,
+ "amplitude": 1,
+ "phase_rad": -0.47123889803846897,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4339,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": 550,
+ "level": 119,
+ "amplitude": 1,
+ "phase_rad": 1.6755160819145565,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1237,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": 550,
+ "level": 96,
+ "amplitude": 1,
+ "phase_rad": -1.2915436464758041,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5652,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": 550,
+ "level": 73,
+ "amplitude": 1,
+ "phase_rad": -2.2340214425527418,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4067,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": 550,
+ "level": 74,
+ "amplitude": 1,
+ "phase_rad": 1.7278759594743864,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 999,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": 550,
+ "level": 93,
+ "amplitude": 1,
+ "phase_rad": -2.8972465583105871,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3338,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": 550,
+ "level": 109,
+ "amplitude": 1,
+ "phase_rad": 2.9670597283903604,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3210,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": 550,
+ "level": 101,
+ "amplitude": 1,
+ "phase_rad": 0.97738438111682469,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 908,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": 550,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": -0.767944870877505,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4878,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": 550,
+ "level": 85,
+ "amplitude": 1,
+ "phase_rad": -3.0543261909900763,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5333,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": 550,
+ "level": 71,
+ "amplitude": 1,
+ "phase_rad": -2.0420352248333655,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1732,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": 550,
+ "level": 85,
+ "amplitude": 1,
+ "phase_rad": -2.9670597283903604,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5311,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": 550,
+ "level": 95,
+ "amplitude": 1,
+ "phase_rad": 0.68067840827778847,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5181,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": 550,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": 3.1066860685499069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 339,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -900,
+ "y": 600,
+ "level": 88,
+ "amplitude": 1,
+ "phase_rad": -2.4783675378319479,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2381,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -850,
+ "y": 600,
+ "level": 88,
+ "amplitude": 1,
+ "phase_rad": -0.48869219055841234,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1094,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -800,
+ "y": 600,
+ "level": 62,
+ "amplitude": 1,
+ "phase_rad": -1.3439035240356341,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 595,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -750,
+ "y": 600,
+ "level": 101,
+ "amplitude": 1,
+ "phase_rad": -2.3387411976724013,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5994,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -700,
+ "y": 600,
+ "level": 101,
+ "amplitude": 1,
+ "phase_rad": 0.069813170079773182,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4613,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -650,
+ "y": 600,
+ "level": 94,
+ "amplitude": 1,
+ "phase_rad": 1.1693705988362009,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2322,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -600,
+ "y": 600,
+ "level": 83,
+ "amplitude": 1,
+ "phase_rad": -2.0769418098732522,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1669,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -550,
+ "y": 600,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": -2.9321531433504737,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5809,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -500,
+ "y": 600,
+ "level": 83,
+ "amplitude": 1,
+ "phase_rad": 1.9722220547535925,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4476,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -450,
+ "y": 600,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": 2.9496064358704168,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2602,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -400,
+ "y": 600,
+ "level": 102,
+ "amplitude": 1,
+ "phase_rad": -0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5856,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -350,
+ "y": 600,
+ "level": 89,
+ "amplitude": 1,
+ "phase_rad": -1.7976891295541593,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3297,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -300,
+ "y": 600,
+ "level": 106,
+ "amplitude": 1,
+ "phase_rad": 2.0420352248333655,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5745,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -250,
+ "y": 600,
+ "level": 98,
+ "amplitude": 1,
+ "phase_rad": -0.75049157835756164,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4368,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -200,
+ "y": 600,
+ "level": 108,
+ "amplitude": 1,
+ "phase_rad": 0.017453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 290,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -150,
+ "y": 600,
+ "level": 77,
+ "amplitude": 1,
+ "phase_rad": 1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3112,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -100,
+ "y": 600,
+ "level": 67,
+ "amplitude": 1,
+ "phase_rad": -3.0368728984701332,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5533,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": -50,
+ "y": 600,
+ "level": 89,
+ "amplitude": 1,
+ "phase_rad": -2.91469985083053,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4945,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 0,
+ "y": 600,
+ "level": 107,
+ "amplitude": 1,
+ "phase_rad": -0.55850536063818546,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 423,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 600,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": -2.6703537555513241,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3646,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 100,
+ "y": 600,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": 1.6580627893946132,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1921,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 150,
+ "y": 600,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": 3.0892327760299634,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4516,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 200,
+ "y": 600,
+ "level": 61,
+ "amplitude": 1,
+ "phase_rad": -1.8325957145940459,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1770,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 250,
+ "y": 600,
+ "level": 73,
+ "amplitude": 1,
+ "phase_rad": 2.0071286397934789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5161,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 300,
+ "y": 600,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": 1.6580627893946132,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4737,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 600,
+ "level": 93,
+ "amplitude": 1,
+ "phase_rad": -1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3203,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 400,
+ "y": 600,
+ "level": 116,
+ "amplitude": 1,
+ "phase_rad": -2.5132741228718345,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 476,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 600,
+ "level": 73,
+ "amplitude": 1,
+ "phase_rad": -2.1118483949131388,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5702,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 500,
+ "y": 600,
+ "level": 91,
+ "amplitude": 1,
+ "phase_rad": -1.780235837034216,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 2037,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 550,
+ "y": 600,
+ "level": 69,
+ "amplitude": 1,
+ "phase_rad": 1.2566370614359173,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4827,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 600,
+ "y": 600,
+ "level": 89,
+ "amplitude": 1,
+ "phase_rad": -1.0995574287564276,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4496,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 650,
+ "y": 600,
+ "level": 81,
+ "amplitude": 1,
+ "phase_rad": -1.9198621771937625,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3693,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 700,
+ "y": 600,
+ "level": 84,
+ "amplitude": 1,
+ "phase_rad": -2.3736477827122884,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3072,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 750,
+ "y": 600,
+ "level": 78,
+ "amplitude": 1,
+ "phase_rad": -1.4660765716752369,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3158,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 800,
+ "y": 600,
+ "level": 73,
+ "amplitude": 1,
+ "phase_rad": 2.4958208303518914,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1200,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 850,
+ "y": 600,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": -2.8448866807507569,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1644,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 900,
+ "y": 600,
+ "level": 62,
+ "amplitude": 1,
+ "phase_rad": -1.7104226669544429,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 884,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 950,
+ "y": 600,
+ "level": 92,
+ "amplitude": 1,
+ "phase_rad": 0.052359877559829883,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5856,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1000,
+ "y": 600,
+ "level": 92,
+ "amplitude": 1,
+ "phase_rad": -1.8325957145940459,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3595,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1050,
+ "y": 600,
+ "level": 82,
+ "amplitude": 1,
+ "phase_rad": -2.1816615649929116,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 4642,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1100,
+ "y": 600,
+ "level": 85,
+ "amplitude": 1,
+ "phase_rad": 2.3387411976724013,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 3050,
+ "off_width_base": 3000,
+ "randomize_off_width_amount": 2999,
+ "detach_after_step": -1
+ }
+ ]
+ }
+ ]
+ },
+ "description": "Collection of 800+ sources distributed over the full animation space and emitting short random wave pulses."
+}
diff --git a/Wave_Dude_Examples/Example12_Dispersion/configuration.json b/Wave_Dude_Examples/Example12_Dispersion/configuration.json
new file mode 100644
index 0000000..8f46f79
--- /dev/null
+++ b/Wave_Dude_Examples/Example12_Dispersion/configuration.json
@@ -0,0 +1,277 @@
+{
+ "format_version": 1,
+ "project_name": "Example12_Dispersion",
+ "created": "2026-10-02T10:35:50Z",
+ "modified": "2026-10-03T08:21:11Z",
+ "scene": {
+ "mode": "image",
+ "image_file": "scene_images/frequency_race_track (2).png",
+ "user_width": 1920,
+ "user_height": 1080,
+ "damping_edge_enabled": true,
+ "damping_edge_size_px": 64,
+ "use_sources": false,
+ "image_source_scale": 1,
+ "use_object_sources": true,
+ "background_refractive_index": 1
+ },
+ "simulation": {
+ "steps": 15000,
+ "visualize_every": 2,
+ "export_field": false,
+ "export_intensity": false,
+ "preview_field": true,
+ "preview_intensity": true,
+ "field_color_scheme": "Default_Field",
+ "intensity_color_scheme": "Default_intensity",
+ "field_brightness": 80,
+ "intensity_brightness": 30,
+ "field_black_level": -0.05,
+ "intensity_black_level": 0,
+ "source_frequency_scale": 2,
+ "video_fps": 60,
+ "video_quality": 70,
+ "use_gpu": false,
+ "use_4th_order_laplacian": false,
+ "wave_speed_c": 1,
+ "time_decay_factor": 10,
+ "intensity_scale": 1
+ },
+ "probes": {
+ "count": 2,
+ "items": [
+ {
+ "active": false,
+ "place_on": "field",
+ "measurement": "amplitude",
+ "probe_type": "line",
+ "ax": 1713,
+ "ay": 2,
+ "bx": 1719,
+ "by": 1073,
+ "box_size": "medium",
+ "box_x": 1,
+ "box_y": 426,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ },
+ {
+ "active": false,
+ "place_on": "field",
+ "measurement": "amplitude",
+ "probe_type": "point",
+ "ax": 100,
+ "ay": 100,
+ "bx": 300,
+ "by": 100,
+ "box_size": "medium",
+ "box_x": 450,
+ "box_y": 20,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ }
+ ]
+ },
+ "object_sources": {
+ "count": 4,
+ "items": [
+ {
+ "name": "Source 1",
+ "main_type": "single",
+ "x": 150,
+ "y": 140,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 40,
+ "amplitude": 70,
+ "phase_deg": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "pulse_width_cycles": 10,
+ "off_state_cycles": 10,
+ "array_size_x": 1,
+ "array_size_y": 1,
+ "spacing_x": 10,
+ "spacing_y": 10,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": 150,
+ "y": 140,
+ "level": 40,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ }
+ ]
+ },
+ {
+ "name": "Source 2",
+ "main_type": "single",
+ "x": 147,
+ "y": 395,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 100,
+ "amplitude": 80,
+ "phase_deg": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "pulse_width_cycles": 10,
+ "off_state_cycles": 10,
+ "array_size_x": 1,
+ "array_size_y": 1,
+ "spacing_x": 10,
+ "spacing_y": 10,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": 147,
+ "y": 395,
+ "level": 100,
+ "amplitude": 0.8,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ }
+ ]
+ },
+ {
+ "name": "Source 3",
+ "main_type": "single",
+ "x": 152,
+ "y": 663,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 150,
+ "amplitude": 90,
+ "phase_deg": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "pulse_width_cycles": 10,
+ "off_state_cycles": 10,
+ "array_size_x": 1,
+ "array_size_y": 1,
+ "spacing_x": 10,
+ "spacing_y": 10,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": 152,
+ "y": 663,
+ "level": 150,
+ "amplitude": 0.9,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ }
+ ]
+ },
+ {
+ "name": "Source 4",
+ "main_type": "single",
+ "x": 153,
+ "y": 924,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 240,
+ "amplitude": 100,
+ "phase_deg": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "pulse_width_cycles": 10,
+ "off_state_cycles": 10,
+ "array_size_x": 1,
+ "array_size_y": 1,
+ "spacing_x": 10,
+ "spacing_y": 10,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": 153,
+ "y": 924,
+ "level": 240,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ }
+ ]
+ }
+ ]
+ },
+ "description": "This example shows the difference between using 3rd and 4th order Laplacian with respect to the dispersion observed. WIthout the 4th order Laplacian checkbox on, the simulation demonstrates a large difference in propagation speed for different frequencies (higher frequency -> lower propagation speed). With 4th order Laplacian enabled, the propagation speeds are the same over the complete range."
+}
diff --git a/Wave_Dude_Examples/Example12_Dispersion/scene_images/frequency_race_track (2).png b/Wave_Dude_Examples/Example12_Dispersion/scene_images/frequency_race_track (2).png
new file mode 100644
index 0000000..2b07333
Binary files /dev/null and b/Wave_Dude_Examples/Example12_Dispersion/scene_images/frequency_race_track (2).png differ
diff --git a/Wave_Dude_Examples/Example1_Simple_source/configuration.json b/Wave_Dude_Examples/Example1_Simple_source/configuration.json
new file mode 100644
index 0000000..9d70ba5
--- /dev/null
+++ b/Wave_Dude_Examples/Example1_Simple_source/configuration.json
@@ -0,0 +1,139 @@
+{
+ "format_version": 1,
+ "project_name": "Example1_Simple_source",
+ "created": "2026-09-30T17:57:50Z",
+ "modified": "2026-10-02T13:02:12Z",
+ "scene": {
+ "mode": "user_defined",
+ "image_file": "",
+ "user_width": 1920,
+ "user_height": 1080,
+ "damping_edge_enabled": true,
+ "damping_edge_size_px": 64,
+ "use_sources": false,
+ "image_source_scale": 1,
+ "use_object_sources": true,
+ "background_refractive_index": 1
+ },
+ "simulation": {
+ "steps": 8000,
+ "visualize_every": 2,
+ "export_field": false,
+ "export_intensity": false,
+ "preview_field": true,
+ "preview_intensity": true,
+ "field_color_scheme": "Ice_and_fire",
+ "intensity_color_scheme": "Default_intensity",
+ "field_brightness": 70,
+ "intensity_brightness": 50,
+ "field_black_level": -0.05,
+ "intensity_black_level": 0,
+ "source_frequency_scale": 2,
+ "video_fps": 60,
+ "video_quality": 70,
+ "use_gpu": true,
+ "use_4th_order_laplacian": true,
+ "wave_speed_c": 1,
+ "time_decay_factor": 13,
+ "intensity_scale": 1
+ },
+ "probes": {
+ "count": 2,
+ "items": [
+ {
+ "active": false,
+ "place_on": "field",
+ "measurement": "amplitude",
+ "probe_type": "point",
+ "ax": 100,
+ "ay": 100,
+ "bx": 300,
+ "by": 100,
+ "box_size": "medium",
+ "box_x": 450,
+ "box_y": 20,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ },
+ {
+ "active": false,
+ "place_on": "field",
+ "measurement": "amplitude",
+ "probe_type": "point",
+ "ax": 100,
+ "ay": 100,
+ "bx": 300,
+ "by": 100,
+ "box_size": "medium",
+ "box_x": 450,
+ "box_y": 20,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ }
+ ]
+ },
+ "object_sources": {
+ "count": 1,
+ "items": [
+ {
+ "name": "Source 1",
+ "main_type": "single",
+ "x": 943,
+ "y": 507,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 50,
+ "amplitude": 100,
+ "phase_deg": 0,
+ "mode": "pulsed",
+ "pulse_shape": "smoothed_square",
+ "pulse_width_cycles": 10,
+ "off_state_cycles": 10,
+ "array_size_x": 1,
+ "array_size_y": 1,
+ "spacing_x": 10,
+ "spacing_y": 10,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": 943,
+ "y": 507,
+ "level": 50,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "smoothed_square",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ }
+ ]
+ }
+ ]
+ },
+ "description": "Simple omnidirectional pulsed source with a smoothed square intensity profile. "
+}
diff --git a/Wave_Dude_Examples/Example2_Coherent_source/configuration.json b/Wave_Dude_Examples/Example2_Coherent_source/configuration.json
new file mode 100644
index 0000000..a451987
--- /dev/null
+++ b/Wave_Dude_Examples/Example2_Coherent_source/configuration.json
@@ -0,0 +1,2184 @@
+{
+ "format_version": 1,
+ "project_name": "Example2_Coherent_source",
+ "created": "2026-09-23T11:42:52Z",
+ "modified": "2026-10-02T13:03:54Z",
+ "scene": {
+ "mode": "user_defined",
+ "image_file": "",
+ "user_width": 1920,
+ "user_height": 1080,
+ "damping_edge_enabled": true,
+ "damping_edge_size_px": 64,
+ "use_sources": false,
+ "image_source_scale": 1,
+ "use_object_sources": true,
+ "background_refractive_index": 1,
+ "use_probes": true
+ },
+ "simulation": {
+ "steps": 4000,
+ "visualize_every": 2,
+ "export_field": false,
+ "export_intensity": false,
+ "preview_field": true,
+ "preview_intensity": true,
+ "field_color_scheme": "Default_Field",
+ "intensity_color_scheme": "inferno",
+ "field_brightness": 6,
+ "intensity_brightness": 7,
+ "field_black_level": -0.05,
+ "intensity_black_level": 0,
+ "source_frequency_scale": 2,
+ "video_fps": 60,
+ "video_quality": 70,
+ "use_gpu": true,
+ "wave_speed_c": 1,
+ "use_4th_order_laplacian": true,
+ "time_decay_factor": 10,
+ "intensity_scale": 1
+ },
+ "probes": {
+ "count": 2,
+ "items": [
+ {
+ "active": false,
+ "place_on": "field",
+ "measurement": "amplitude",
+ "probe_type": "point",
+ "ax": 1171,
+ "ay": 226,
+ "bx": 300,
+ "by": 100,
+ "box_size": "large",
+ "box_x": 13,
+ "box_y": 11,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ },
+ {
+ "active": true,
+ "place_on": "intensity",
+ "measurement": "integrated_intensity",
+ "probe_type": "line",
+ "ax": 1555,
+ "ay": 143,
+ "bx": 1555,
+ "by": 962,
+ "box_size": "extra_large",
+ "box_x": 16,
+ "box_y": 13,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": 0,
+ "y_max": 0.005,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ }
+ ]
+ },
+ "object_sources": {
+ "count": 1,
+ "items": [
+ {
+ "name": "Source 2",
+ "main_type": "composite",
+ "x": 382,
+ "y": 557,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 50,
+ "amplitude": 30,
+ "phase_deg": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "pulse_width_cycles": 10,
+ "off_state_cycles": 10,
+ "array_size_x": 21,
+ "array_size_y": 7,
+ "spacing_x": 32,
+ "spacing_y": 16,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": 62,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 94,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 126,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 158,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 190,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 222,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 254,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 286,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 318,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 382,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 414,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 446,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 478,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 510,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 542,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 574,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 606,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 638,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 670,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 702,
+ "y": 509,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 62,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 94,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 126,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 158,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 190,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 222,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 254,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 286,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 318,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 382,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 414,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 446,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 478,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 510,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 542,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 574,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 606,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 638,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 670,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 702,
+ "y": 525,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 62,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 94,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 126,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 158,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 190,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 222,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 254,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 286,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 318,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 382,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 414,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 446,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 478,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 510,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 542,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 574,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 606,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 638,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 670,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 702,
+ "y": 541,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 62,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 94,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 126,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 158,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 190,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 222,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 254,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 286,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 318,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 382,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 414,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 446,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 478,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 510,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 542,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 574,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 606,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 638,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 670,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 702,
+ "y": 557,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 62,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 94,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 126,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 158,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 190,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 222,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 254,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 286,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 318,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 382,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 414,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 446,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 478,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 510,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 542,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 574,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 606,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 638,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 670,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 702,
+ "y": 573,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 62,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 94,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 126,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 158,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 190,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 222,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 254,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 286,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 318,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 382,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 414,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 446,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 478,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 510,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 542,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 574,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 606,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 638,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 670,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 702,
+ "y": 589,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 62,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 94,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 126,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 158,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 190,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 222,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 254,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 286,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 318,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 350,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 382,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 414,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 446,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 478,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 510,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 542,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 574,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 606,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 638,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 670,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 702,
+ "y": 605,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ }
+ ]
+ }
+ ]
+ },
+ "description": "Featuring a 21 x 7 composite source that emits a continuous gaussian wave beam"
+}
diff --git a/Wave_Dude_Examples/Example3_Spherical_mirror/configuration.json b/Wave_Dude_Examples/Example3_Spherical_mirror/configuration.json
new file mode 100644
index 0000000..a0ca22b
--- /dev/null
+++ b/Wave_Dude_Examples/Example3_Spherical_mirror/configuration.json
@@ -0,0 +1,139 @@
+{
+ "format_version": 1,
+ "project_name": "Example3_Spherical_mirror",
+ "created": "2026-09-30T17:21:59Z",
+ "modified": "2026-10-02T13:06:46Z",
+ "scene": {
+ "mode": "image",
+ "image_file": "scene_images/full_mirror_full_aperture.png",
+ "user_width": 1920,
+ "user_height": 1080,
+ "damping_edge_enabled": true,
+ "damping_edge_size_px": 64,
+ "use_sources": false,
+ "image_source_scale": 1,
+ "use_object_sources": true,
+ "background_refractive_index": 1
+ },
+ "simulation": {
+ "steps": 3000,
+ "visualize_every": 2,
+ "export_field": false,
+ "export_intensity": false,
+ "preview_field": true,
+ "preview_intensity": true,
+ "field_color_scheme": "Yellow_purple",
+ "intensity_color_scheme": "Copper",
+ "field_brightness": 80,
+ "intensity_brightness": 80,
+ "field_black_level": -0.05,
+ "intensity_black_level": 0,
+ "source_frequency_scale": 2,
+ "video_fps": 60,
+ "video_quality": 80,
+ "use_gpu": true,
+ "use_4th_order_laplacian": true,
+ "wave_speed_c": 0.563,
+ "time_decay_factor": 8,
+ "intensity_scale": 1
+ },
+ "probes": {
+ "count": 2,
+ "items": [
+ {
+ "active": true,
+ "place_on": "intensity",
+ "measurement": "intensity",
+ "probe_type": "point",
+ "ax": 532,
+ "ay": 532,
+ "bx": 300,
+ "by": 100,
+ "box_size": "extra_large",
+ "box_x": 1522,
+ "box_y": 2,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 3000,
+ "use_start_after_step": true,
+ "start_after_step": 600
+ },
+ {
+ "active": true,
+ "place_on": "intensity",
+ "measurement": "integrated_intensity",
+ "probe_type": "line",
+ "ax": 532,
+ "ay": 494,
+ "bx": 532,
+ "by": 577,
+ "box_size": "extra_large",
+ "box_x": 1218,
+ "box_y": 789,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": true,
+ "start_after_step": 600
+ }
+ ]
+ },
+ "object_sources": {
+ "count": 1,
+ "items": [
+ {
+ "name": "Source 1",
+ "main_type": "single",
+ "x": 532,
+ "y": 532,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": true,
+ "detach_after_steps": 670,
+ "frequency": 200,
+ "amplitude": 100,
+ "phase_deg": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "pulse_width_cycles": 70,
+ "off_state_cycles": 100,
+ "array_size_x": 4,
+ "array_size_y": 4,
+ "spacing_x": 5,
+ "spacing_y": 10,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": 532,
+ "y": 532,
+ "level": 200,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 70,
+ "off_width_cycles": 100,
+ "off_width_base": 100,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": 670
+ }
+ ]
+ }
+ ]
+ },
+ "description": "wave pulse emitted from the center of the curvature of a mirror, reflecting and then returning to the point of emission. Featuring timed probes. Notice that this simulation runs extremely fast on the GPU, when no video export is selected."
+}
diff --git a/Wave_Dude_Examples/Example3_Test_glass/configuration.json b/Wave_Dude_Examples/Example3_Test_glass/configuration.json
new file mode 100644
index 0000000..647025f
--- /dev/null
+++ b/Wave_Dude_Examples/Example3_Test_glass/configuration.json
@@ -0,0 +1,1175 @@
+{
+ "format_version": 1,
+ "project_name": "Example3_Test_glass",
+ "created": "2026-10-01T19:11:00Z",
+ "modified": "2026-10-04T10:55:58Z",
+ "scene": {
+ "mode": "image",
+ "image_file": "scene_images/cavity_highRI_angle.png",
+ "user_width": 1920,
+ "user_height": 1080,
+ "damping_edge_enabled": true,
+ "damping_edge_size_px": 64,
+ "use_sources": false,
+ "image_source_scale": 1,
+ "use_object_sources": true,
+ "background_refractive_index": 1
+ },
+ "simulation": {
+ "steps": 4000,
+ "visualize_every": 2,
+ "export_field": false,
+ "export_intensity": false,
+ "preview_field": true,
+ "preview_intensity": true,
+ "field_color_scheme": "Default_Field",
+ "intensity_color_scheme": "Default_intensity",
+ "field_brightness": 30,
+ "intensity_brightness": 5,
+ "field_black_level": -0.05,
+ "intensity_black_level": 0,
+ "source_frequency_scale": 2,
+ "video_fps": 60,
+ "video_quality": 70,
+ "use_gpu": false,
+ "use_4th_order_laplacian": true,
+ "wave_speed_c": 1,
+ "time_decay_factor": 5,
+ "intensity_scale": 1
+ },
+ "probes": {
+ "count": 2,
+ "items": [
+ {
+ "active": true,
+ "place_on": "intensity",
+ "measurement": "integrated_intensity",
+ "probe_type": "line",
+ "ax": 1612,
+ "ay": 375,
+ "bx": 1565,
+ "by": 860,
+ "box_size": "large",
+ "box_x": 1411,
+ "box_y": 9,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": true,
+ "start_after_step": 1725
+ },
+ {
+ "active": true,
+ "place_on": "intensity",
+ "measurement": "integrated_intensity",
+ "probe_type": "line",
+ "ax": 1070,
+ "ay": 229,
+ "bx": 986,
+ "by": 878,
+ "box_size": "large",
+ "box_x": 523,
+ "box_y": 14,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": true,
+ "start_after_step": 1700
+ }
+ ]
+ },
+ "object_sources": {
+ "count": 1,
+ "items": [
+ {
+ "name": "Source 1",
+ "main_type": "composite",
+ "x": 185,
+ "y": 549,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 160,
+ "amplitude": 100,
+ "phase_deg": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "pulse_width_cycles": 30,
+ "off_state_cycles": 2000,
+ "array_size_x": 15,
+ "array_size_y": 5,
+ "spacing_x": 10,
+ "spacing_y": 5,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": 115,
+ "y": 539,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 125,
+ "y": 539,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 135,
+ "y": 539,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 145,
+ "y": 539,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 155,
+ "y": 539,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 165,
+ "y": 539,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 175,
+ "y": 539,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 185,
+ "y": 539,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 195,
+ "y": 539,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 205,
+ "y": 539,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 215,
+ "y": 539,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 225,
+ "y": 539,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 235,
+ "y": 539,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 245,
+ "y": 539,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 255,
+ "y": 539,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 115,
+ "y": 544,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 125,
+ "y": 544,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 135,
+ "y": 544,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 145,
+ "y": 544,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 155,
+ "y": 544,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 165,
+ "y": 544,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 175,
+ "y": 544,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 185,
+ "y": 544,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 195,
+ "y": 544,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 205,
+ "y": 544,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 215,
+ "y": 544,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 225,
+ "y": 544,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 235,
+ "y": 544,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 245,
+ "y": 544,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 255,
+ "y": 544,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 115,
+ "y": 549,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 125,
+ "y": 549,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 135,
+ "y": 549,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 145,
+ "y": 549,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 155,
+ "y": 549,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 165,
+ "y": 549,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 175,
+ "y": 549,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 185,
+ "y": 549,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 195,
+ "y": 549,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 205,
+ "y": 549,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 215,
+ "y": 549,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 225,
+ "y": 549,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 235,
+ "y": 549,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 245,
+ "y": 549,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 255,
+ "y": 549,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 115,
+ "y": 554,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 125,
+ "y": 554,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 135,
+ "y": 554,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 145,
+ "y": 554,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 155,
+ "y": 554,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 165,
+ "y": 554,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 175,
+ "y": 554,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 185,
+ "y": 554,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 195,
+ "y": 554,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 205,
+ "y": 554,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 215,
+ "y": 554,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 225,
+ "y": 554,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 235,
+ "y": 554,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 245,
+ "y": 554,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 255,
+ "y": 554,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 115,
+ "y": 559,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 125,
+ "y": 559,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 135,
+ "y": 559,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 145,
+ "y": 559,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 155,
+ "y": 559,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 165,
+ "y": 559,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 175,
+ "y": 559,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 185,
+ "y": 559,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 195,
+ "y": 559,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 205,
+ "y": 559,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 215,
+ "y": 559,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 225,
+ "y": 559,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 235,
+ "y": 559,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 245,
+ "y": 559,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 255,
+ "y": 559,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 30,
+ "off_width_cycles": 2000,
+ "off_width_base": 2000,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ }
+ ]
+ }
+ ]
+ },
+ "description": "The simulation shows the Interference pattern created between two high-refractive index surfaces in close proximity of each other under a small angle. "
+}
diff --git a/Wave_Dude_Examples/Example3_Test_glass/scene_images/cavity_highRI_angle.png b/Wave_Dude_Examples/Example3_Test_glass/scene_images/cavity_highRI_angle.png
new file mode 100644
index 0000000..401bb2d
Binary files /dev/null and b/Wave_Dude_Examples/Example3_Test_glass/scene_images/cavity_highRI_angle.png differ
diff --git a/Wave_Dude_Examples/Example3_Test_glass/scene_images/objects_V01.png b/Wave_Dude_Examples/Example3_Test_glass/scene_images/objects_V01.png
new file mode 100644
index 0000000..3dd605c
Binary files /dev/null and b/Wave_Dude_Examples/Example3_Test_glass/scene_images/objects_V01.png differ
diff --git a/Wave_Dude_Examples/Example4_Ball_lens/configuration.json b/Wave_Dude_Examples/Example4_Ball_lens/configuration.json
new file mode 100644
index 0000000..3f1f193
--- /dev/null
+++ b/Wave_Dude_Examples/Example4_Ball_lens/configuration.json
@@ -0,0 +1,139 @@
+{
+ "format_version": 1,
+ "project_name": "Example4_Ball_lens",
+ "created": "2026-09-29T14:01:12Z",
+ "modified": "2026-10-02T13:08:48Z",
+ "scene": {
+ "mode": "image",
+ "image_file": "scene_images/Ball_lens_high_RI_AR.png",
+ "user_width": 1920,
+ "user_height": 1080,
+ "damping_edge_enabled": true,
+ "damping_edge_size_px": 90,
+ "use_sources": false,
+ "image_source_scale": 1,
+ "use_object_sources": true,
+ "background_refractive_index": 1
+ },
+ "simulation": {
+ "steps": 4000,
+ "visualize_every": 2,
+ "export_field": false,
+ "export_intensity": false,
+ "preview_field": true,
+ "preview_intensity": true,
+ "field_color_scheme": "Default_Field",
+ "intensity_color_scheme": "Default_intensity",
+ "field_brightness": 30,
+ "intensity_brightness": 30,
+ "field_black_level": -0.05,
+ "intensity_black_level": 0,
+ "source_frequency_scale": 2,
+ "video_fps": 60,
+ "video_quality": 70,
+ "use_gpu": true,
+ "use_4th_order_laplacian": true,
+ "wave_speed_c": 1,
+ "time_decay_factor": 10,
+ "intensity_scale": 1
+ },
+ "probes": {
+ "count": 2,
+ "items": [
+ {
+ "active": true,
+ "place_on": "intensity",
+ "measurement": "integrated_intensity",
+ "probe_type": "line",
+ "ax": 1638,
+ "ay": 506,
+ "bx": 1638,
+ "by": 573,
+ "box_size": "extra_large",
+ "box_x": 2162,
+ "box_y": 13,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ },
+ {
+ "active": true,
+ "place_on": "intensity",
+ "measurement": "integrated_intensity",
+ "probe_type": "line",
+ "ax": 360,
+ "ay": 528,
+ "bx": 1102,
+ "by": 531,
+ "box_size": "extra_large",
+ "box_x": 2167,
+ "box_y": 675,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": true,
+ "start_after_step": 1050
+ }
+ ]
+ },
+ "object_sources": {
+ "count": 1,
+ "items": [
+ {
+ "name": "Source 1",
+ "main_type": "single",
+ "x": 139,
+ "y": 533,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 40,
+ "amplitude": 100,
+ "phase_deg": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "pulse_width_cycles": 10,
+ "off_state_cycles": 10,
+ "array_size_x": 1,
+ "array_size_y": 1,
+ "spacing_x": 10,
+ "spacing_y": 10,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": 139,
+ "y": 533,
+ "level": 40,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ }
+ ]
+ }
+ ]
+ },
+ "description": "Continuous point source and high refractive index ball lens. Probe 2A-B features 1/r intensity decay from the source with some interference of some reflections superimposed on it."
+}
diff --git a/Wave_Dude_Examples/Example4_Ball_lens/scene_images/Ball_lens_high_RI_AR.png b/Wave_Dude_Examples/Example4_Ball_lens/scene_images/Ball_lens_high_RI_AR.png
new file mode 100644
index 0000000..9fcfb25
Binary files /dev/null and b/Wave_Dude_Examples/Example4_Ball_lens/scene_images/Ball_lens_high_RI_AR.png differ
diff --git a/Wave_Dude_Examples/Example5_Small_incoherent_source/configuration.json b/Wave_Dude_Examples/Example5_Small_incoherent_source/configuration.json
new file mode 100644
index 0000000..1bb040c
--- /dev/null
+++ b/Wave_Dude_Examples/Example5_Small_incoherent_source/configuration.json
@@ -0,0 +1,476 @@
+{
+ "format_version": 1,
+ "project_name": "Example5_Small_incoherent_source",
+ "created": "2026-09-23T12:44:50Z",
+ "modified": "2026-10-02T13:11:02Z",
+ "scene": {
+ "mode": "user_defined",
+ "image_file": "scene_images/spherrical_mirror_small_central_aperture.png",
+ "user_width": 1920,
+ "user_height": 1080,
+ "damping_edge_enabled": true,
+ "damping_edge_size_px": 64,
+ "use_sources": false,
+ "image_source_scale": 1,
+ "use_object_sources": true,
+ "background_refractive_index": 1,
+ "use_probes": true
+ },
+ "simulation": {
+ "steps": 8000,
+ "visualize_every": 2,
+ "export_field": false,
+ "export_intensity": false,
+ "preview_field": true,
+ "preview_intensity": true,
+ "field_color_scheme": "Orange_symmetry",
+ "intensity_color_scheme": "Purple_rain",
+ "field_brightness": 50,
+ "intensity_brightness": 50,
+ "field_black_level": -0.05,
+ "intensity_black_level": 0,
+ "source_frequency_scale": 2,
+ "video_fps": 60,
+ "video_quality": 70,
+ "use_gpu": false,
+ "wave_speed_c": 0.563,
+ "use_4th_order_laplacian": true,
+ "time_decay_factor": 10,
+ "intensity_scale": 1
+ },
+ "probes": {
+ "count": 2,
+ "items": [
+ {
+ "active": true,
+ "place_on": "field",
+ "measurement": "amplitude",
+ "probe_type": "point",
+ "ax": 695,
+ "ay": 530,
+ "bx": 300,
+ "by": 100,
+ "box_size": "extra_large",
+ "box_x": 14,
+ "box_y": 14,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": false,
+ "y_min": -0.02,
+ "y_max": 0.02,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ },
+ {
+ "active": true,
+ "place_on": "intensity",
+ "measurement": "intensity",
+ "probe_type": "line",
+ "ax": 693,
+ "ay": 530,
+ "bx": 1690,
+ "by": 530,
+ "box_size": "extra_large",
+ "box_x": 16,
+ "box_y": 13,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": false,
+ "y_min": 0,
+ "y_max": 0.0001,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 3000
+ }
+ ]
+ },
+ "object_sources": {
+ "count": 1,
+ "items": [
+ {
+ "name": "Source 1",
+ "main_type": "composite",
+ "x": 542,
+ "y": 532,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": true,
+ "detach_after_steps": 2000,
+ "frequency": 100,
+ "amplitude": 100,
+ "phase_deg": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "pulse_width_cycles": 5,
+ "off_state_cycles": 20,
+ "array_size_x": 5,
+ "array_size_y": 5,
+ "spacing_x": 3,
+ "spacing_y": 3,
+ "composite_mode": "randomize",
+ "randomize_frequency": true,
+ "randomize_frequency_amount": 50,
+ "randomize_phase": true,
+ "randomize_phase_amount": 90,
+ "randomize_off_width": true,
+ "randomize_off_width_amount": 19,
+ "randomize_position": true,
+ "randomize_position_amount": 1,
+ "elements": [
+ {
+ "x": 537,
+ "y": 527,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": 1.0471975511965976,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 31,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 538,
+ "y": 525,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": 1.4486232791552935,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 34,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 542,
+ "y": 527,
+ "level": 69,
+ "amplitude": 1,
+ "phase_rad": -0.75049157835756164,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 26,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 544,
+ "y": 526,
+ "level": 74,
+ "amplitude": 1,
+ "phase_rad": -0.17453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 35,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 547,
+ "y": 527,
+ "level": 132,
+ "amplitude": 1,
+ "phase_rad": -0.55850536063818546,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 11,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 535,
+ "y": 529,
+ "level": 63,
+ "amplitude": 1,
+ "phase_rad": -1.2391837689159739,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 1,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 540,
+ "y": 529,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": -1.2217304763960306,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 37,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 541,
+ "y": 528,
+ "level": 52,
+ "amplitude": 1,
+ "phase_rad": -1.1868238913561442,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 37,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 545,
+ "y": 529,
+ "level": 55,
+ "amplitude": 1,
+ "phase_rad": -1.0471975511965976,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 10,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 547,
+ "y": 528,
+ "level": 127,
+ "amplitude": 1,
+ "phase_rad": 0.87266462599716477,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 4,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 536,
+ "y": 533,
+ "level": 73,
+ "amplitude": 1,
+ "phase_rad": 0.017453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 20,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 540,
+ "y": 531,
+ "level": 90,
+ "amplitude": 1,
+ "phase_rad": 0.19198621771937624,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 19,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 542,
+ "y": 531,
+ "level": 125,
+ "amplitude": 1,
+ "phase_rad": 1.4137166941154069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 38,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 546,
+ "y": 531,
+ "level": 58,
+ "amplitude": 1,
+ "phase_rad": -0.50614548307835561,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 22,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 547,
+ "y": 532,
+ "level": 62,
+ "amplitude": 1,
+ "phase_rad": 0.017453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 13,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 537,
+ "y": 536,
+ "level": 115,
+ "amplitude": 1,
+ "phase_rad": -1.3264502315156903,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 7,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 538,
+ "y": 536,
+ "level": 86,
+ "amplitude": 1,
+ "phase_rad": -1.53588974175501,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 14,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 541,
+ "y": 534,
+ "level": 72,
+ "amplitude": 1,
+ "phase_rad": 0.38397243543875248,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 6,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 544,
+ "y": 535,
+ "level": 97,
+ "amplitude": 1,
+ "phase_rad": 0.43633231299858238,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 16,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 548,
+ "y": 536,
+ "level": 60,
+ "amplitude": 1,
+ "phase_rad": -0.95993108859688125,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 13,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 535,
+ "y": 539,
+ "level": 93,
+ "amplitude": 1,
+ "phase_rad": -0.83775804095727813,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 37,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 538,
+ "y": 538,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": -1.0122909661567112,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 32,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 543,
+ "y": 538,
+ "level": 82,
+ "amplitude": 1,
+ "phase_rad": -0.3490658503988659,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 10,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 546,
+ "y": 538,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": 0.33161255787892258,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 33,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ },
+ {
+ "x": 549,
+ "y": 539,
+ "level": 96,
+ "amplitude": 1,
+ "phase_rad": -0.92502450355699462,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 5,
+ "off_width_cycles": 20,
+ "off_width_base": 20,
+ "randomize_off_width_amount": 19,
+ "detach_after_step": 2000
+ }
+ ]
+ }
+ ]
+ },
+ "description": "Simulation features a small (5x5 composite) source using randomized \"off\"-time and source frequency. "
+}
diff --git a/Wave_Dude_Examples/Example6_Fibers/configuration.json b/Wave_Dude_Examples/Example6_Fibers/configuration.json
new file mode 100644
index 0000000..8fe62d0
--- /dev/null
+++ b/Wave_Dude_Examples/Example6_Fibers/configuration.json
@@ -0,0 +1,232 @@
+{
+ "format_version": 1,
+ "project_name": "Example6_Fibers",
+ "created": "2026-09-23T12:04:54Z",
+ "modified": "2026-10-02T13:19:12Z",
+ "scene": {
+ "mode": "image",
+ "image_file": "scene_images/scene_optical_fibers.png",
+ "user_width": 1920,
+ "user_height": 1080,
+ "damping_edge_enabled": true,
+ "damping_edge_size_px": 64,
+ "use_sources": false,
+ "image_source_scale": 1,
+ "use_object_sources": true,
+ "background_refractive_index": 1,
+ "use_probes": true
+ },
+ "simulation": {
+ "steps": 15000,
+ "visualize_every": 2,
+ "export_field": false,
+ "export_intensity": false,
+ "preview_field": true,
+ "preview_intensity": true,
+ "field_color_scheme": "Default_Field",
+ "intensity_color_scheme": "Default_Intensity",
+ "field_brightness": 20,
+ "intensity_brightness": 20,
+ "field_black_level": -0.05,
+ "intensity_black_level": 0,
+ "source_frequency_scale": 2,
+ "video_fps": 60,
+ "video_quality": 80,
+ "use_gpu": true,
+ "wave_speed_c": 0.563,
+ "use_4th_order_laplacian": true,
+ "time_decay_factor": 10,
+ "intensity_scale": 1
+ },
+ "probes": {
+ "count": 2,
+ "items": [
+ {
+ "active": true,
+ "place_on": "field",
+ "measurement": "amplitude",
+ "probe_type": "line",
+ "ax": 1658,
+ "ay": 772,
+ "bx": 1658,
+ "by": 903,
+ "box_size": "extra_large",
+ "box_x": 1226,
+ "box_y": 4,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": false,
+ "y_min": -0.035,
+ "y_max": 0.035,
+ "running_window": 5000,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ },
+ {
+ "active": true,
+ "place_on": "intensity",
+ "measurement": "intensity",
+ "probe_type": "point",
+ "ax": 1630,
+ "ay": 199,
+ "bx": 300,
+ "by": 100,
+ "box_size": "extra_large",
+ "box_x": 4,
+ "box_y": 2,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": 0,
+ "y_max": 0.002,
+ "running_window": 10000,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ }
+ ]
+ },
+ "object_sources": {
+ "count": 3,
+ "items": [
+ {
+ "name": "Source 1",
+ "main_type": "single",
+ "x": 135,
+ "y": 198,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 100,
+ "amplitude": 100,
+ "phase_deg": 0,
+ "mode": "pulsed",
+ "pulse_shape": "smoothed_square",
+ "pulse_width_cycles": 15,
+ "off_state_cycles": 15,
+ "array_size_x": 1,
+ "array_size_y": 1,
+ "spacing_x": 10,
+ "spacing_y": 10,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": 135,
+ "y": 198,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "smoothed_square",
+ "on_width_cycles": 15,
+ "off_width_cycles": 15,
+ "off_width_base": 15,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ }
+ ]
+ },
+ {
+ "name": "Source 2",
+ "main_type": "single",
+ "x": 147,
+ "y": 489,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 100,
+ "amplitude": 100,
+ "phase_deg": 0,
+ "mode": "pulsed",
+ "pulse_shape": "smoothed_square",
+ "pulse_width_cycles": 15,
+ "off_state_cycles": 15,
+ "array_size_x": 4,
+ "array_size_y": 1,
+ "spacing_x": 30,
+ "spacing_y": 10,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": 147,
+ "y": 489,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "smoothed_square",
+ "on_width_cycles": 15,
+ "off_width_cycles": 15,
+ "off_width_base": 15,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ }
+ ]
+ },
+ {
+ "name": "Source 3",
+ "main_type": "single",
+ "x": 155,
+ "y": 835,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 100,
+ "amplitude": 100,
+ "phase_deg": 0,
+ "mode": "pulsed",
+ "pulse_shape": "smoothed_square",
+ "pulse_width_cycles": 15,
+ "off_state_cycles": 15,
+ "array_size_x": 1,
+ "array_size_y": 1,
+ "spacing_x": 10,
+ "spacing_y": 10,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": 155,
+ "y": 835,
+ "level": 100,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "smoothed_square",
+ "on_width_cycles": 15,
+ "off_width_cycles": 15,
+ "off_width_base": 15,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ }
+ ]
+ }
+ ]
+ },
+ "description": "Simulation of 3 different fibers:\r\n- Top: single mode fiber\r\n- Middle: narrow multi-mode fiber\r\n- Bottom: wide multi-mode fiber\r\nincludes the use of two probes, a A-B (line) field probe and a single point intensity probe. \r\n\r\n"
+}
diff --git a/Wave_Dude_Examples/Example6_Fibers/scene_images/scene_optical_fibers.png b/Wave_Dude_Examples/Example6_Fibers/scene_images/scene_optical_fibers.png
new file mode 100644
index 0000000..2bcff1f
Binary files /dev/null and b/Wave_Dude_Examples/Example6_Fibers/scene_images/scene_optical_fibers.png differ
diff --git a/Wave_Dude_Examples/Example7_Coherence_and_ball_lens/configuration.json b/Wave_Dude_Examples/Example7_Coherence_and_ball_lens/configuration.json
new file mode 100644
index 0000000..919236c
--- /dev/null
+++ b/Wave_Dude_Examples/Example7_Coherence_and_ball_lens/configuration.json
@@ -0,0 +1,2085 @@
+{
+ "format_version": 1,
+ "project_name": "Example7_Coherence_and_ball_lens",
+ "created": "2026-09-30T18:05:28Z",
+ "modified": "2026-10-02T12:59:34Z",
+ "scene": {
+ "mode": "image",
+ "image_file": "scene_images/Ball_lens_high_RI_AR.png",
+ "user_width": 1920,
+ "user_height": 1080,
+ "damping_edge_enabled": true,
+ "damping_edge_size_px": 64,
+ "use_sources": false,
+ "image_source_scale": 1,
+ "use_object_sources": true,
+ "background_refractive_index": 1
+ },
+ "simulation": {
+ "steps": 3800,
+ "visualize_every": 2,
+ "export_field": false,
+ "export_intensity": false,
+ "preview_field": true,
+ "preview_intensity": true,
+ "field_color_scheme": "Default_Field",
+ "intensity_color_scheme": "inferno",
+ "field_brightness": 6,
+ "intensity_brightness": 6,
+ "field_black_level": -0.05,
+ "intensity_black_level": 0,
+ "source_frequency_scale": 2,
+ "video_fps": 60,
+ "video_quality": 70,
+ "use_gpu": true,
+ "use_4th_order_laplacian": true,
+ "wave_speed_c": 1,
+ "time_decay_factor": 10,
+ "intensity_scale": 1
+ },
+ "probes": {
+ "count": 2,
+ "items": [
+ {
+ "active": true,
+ "place_on": "intensity",
+ "measurement": "integrated_intensity",
+ "probe_type": "line",
+ "ax": 938,
+ "ay": 269,
+ "bx": 938,
+ "by": 794,
+ "box_size": "extra_large",
+ "box_x": 12,
+ "box_y": 6,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ },
+ {
+ "active": true,
+ "place_on": "intensity",
+ "measurement": "integrated_intensity",
+ "probe_type": "line",
+ "ax": 1625,
+ "ay": 475,
+ "bx": 1625,
+ "by": 599,
+ "box_size": "extra_large",
+ "box_x": 2130,
+ "box_y": 65,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": 0,
+ "y_max": 0.005,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ }
+ ]
+ },
+ "object_sources": {
+ "count": 1,
+ "items": [
+ {
+ "name": "Source 2",
+ "main_type": "composite",
+ "x": 258,
+ "y": 533,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 50,
+ "amplitude": 30,
+ "phase_deg": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "pulse_width_cycles": 10,
+ "off_state_cycles": 10,
+ "array_size_x": 20,
+ "array_size_y": 7,
+ "spacing_x": 32,
+ "spacing_y": 16,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": -46,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": -14,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 18,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 82,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 114,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 146,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 178,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 210,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 485,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": -46,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": -14,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 18,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 82,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 114,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 146,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 178,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 210,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 501,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": -46,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": -14,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 18,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 82,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 114,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 146,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 178,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 210,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 517,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": -46,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": -14,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 18,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 82,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 114,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 146,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 178,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 210,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 533,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": -46,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": -14,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 18,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 82,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 114,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 146,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 178,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 210,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 549,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": -46,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": -14,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 18,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 82,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 114,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 146,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 178,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 210,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 565,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": -46,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": -14,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 18,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 50,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 82,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 114,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 146,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 178,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 210,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 581,
+ "level": 50,
+ "amplitude": 0.3,
+ "phase_rad": 0,
+ "mode": "continuous",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 10,
+ "off_width_base": 10,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ }
+ ]
+ }
+ ]
+ },
+ "description": "A coherent and direction source directing its waves at a ball lens with a high refractive index. It demonstrates Gaussian beam and Airy disk profiles "
+}
diff --git a/Wave_Dude_Examples/Example7_Coherence_and_ball_lens/scene_images/Ball_lens_high_RI_AR.png b/Wave_Dude_Examples/Example7_Coherence_and_ball_lens/scene_images/Ball_lens_high_RI_AR.png
new file mode 100644
index 0000000..9fcfb25
Binary files /dev/null and b/Wave_Dude_Examples/Example7_Coherence_and_ball_lens/scene_images/Ball_lens_high_RI_AR.png differ
diff --git a/Wave_Dude_Examples/Example7_Coherence_and_ball_lens/scene_images/lens_high_RI_AR.png b/Wave_Dude_Examples/Example7_Coherence_and_ball_lens/scene_images/lens_high_RI_AR.png
new file mode 100644
index 0000000..ba7a8fa
Binary files /dev/null and b/Wave_Dude_Examples/Example7_Coherence_and_ball_lens/scene_images/lens_high_RI_AR.png differ
diff --git a/Wave_Dude_Examples/Example8_Large_incoherent_source/configuration.json b/Wave_Dude_Examples/Example8_Large_incoherent_source/configuration.json
new file mode 100644
index 0000000..7bacfdb
--- /dev/null
+++ b/Wave_Dude_Examples/Example8_Large_incoherent_source/configuration.json
@@ -0,0 +1,13579 @@
+{
+ "format_version": 1,
+ "project_name": "Example8_Large_incoherent_source",
+ "created": "2026-09-30T18:12:24Z",
+ "modified": "2026-10-02T13:12:52Z",
+ "scene": {
+ "mode": "user_defined",
+ "image_file": "",
+ "user_width": 2500,
+ "user_height": 1500,
+ "damping_edge_enabled": true,
+ "damping_edge_size_px": 64,
+ "use_sources": false,
+ "image_source_scale": 1,
+ "use_object_sources": true,
+ "background_refractive_index": 1
+ },
+ "simulation": {
+ "steps": 10000,
+ "visualize_every": 2,
+ "export_field": false,
+ "export_intensity": false,
+ "preview_field": true,
+ "preview_intensity": true,
+ "field_color_scheme": "Default_Field",
+ "intensity_color_scheme": "Hot_orange",
+ "field_brightness": 50,
+ "intensity_brightness": 50,
+ "field_black_level": -0.05,
+ "intensity_black_level": 0,
+ "source_frequency_scale": 2,
+ "video_fps": 60,
+ "video_quality": 70,
+ "use_gpu": true,
+ "use_4th_order_laplacian": true,
+ "wave_speed_c": 1,
+ "time_decay_factor": 10,
+ "intensity_scale": 1
+ },
+ "probes": {
+ "count": 2,
+ "items": [
+ {
+ "active": true,
+ "place_on": "intensity",
+ "measurement": "integrated_intensity",
+ "probe_type": "line",
+ "ax": 1521,
+ "ay": 700,
+ "bx": 2427,
+ "by": 700,
+ "box_size": "large",
+ "box_x": 1847,
+ "box_y": 346,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": true,
+ "start_after_step": 1250
+ },
+ {
+ "active": true,
+ "place_on": "intensity",
+ "measurement": "integrated_intensity",
+ "probe_type": "line",
+ "ax": 639,
+ "ay": 462,
+ "bx": 644,
+ "by": 984,
+ "box_size": "extra_large",
+ "box_x": 280,
+ "box_y": 29,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ }
+ ]
+ },
+ "object_sources": {
+ "count": 1,
+ "items": [
+ {
+ "name": "Source 1",
+ "main_type": "composite",
+ "x": 1221,
+ "y": 707,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 150,
+ "amplitude": 100,
+ "phase_deg": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "pulse_width_cycles": 8,
+ "off_state_cycles": 1000,
+ "array_size_x": 31,
+ "array_size_y": 31,
+ "spacing_x": 6,
+ "spacing_y": 6,
+ "composite_mode": "randomize",
+ "randomize_frequency": true,
+ "randomize_frequency_amount": 30,
+ "randomize_phase": true,
+ "randomize_phase_amount": 180,
+ "randomize_off_width": true,
+ "randomize_off_width_amount": 998,
+ "randomize_position": true,
+ "randomize_position_amount": 3,
+ "elements": [
+ {
+ "x": 1133,
+ "y": 617,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": -1.5533430342749537,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1003,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1139,
+ "y": 616,
+ "level": 128,
+ "amplitude": 1,
+ "phase_rad": 2.6354471705114375,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 751,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1142,
+ "y": 618,
+ "level": 132,
+ "amplitude": 1,
+ "phase_rad": 2.1467549799530254,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1959,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1149,
+ "y": 617,
+ "level": 138,
+ "amplitude": 1,
+ "phase_rad": 1.9198621771937625,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1391,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1152,
+ "y": 620,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": 3.0368728984701332,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1352,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 617,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": -0.92502450355699462,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1602,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1164,
+ "y": 615,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": -2.2689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1297,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1171,
+ "y": 615,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": 1.1344640137963142,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1200,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1179,
+ "y": 615,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": -2.740166925631097,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 109,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1187,
+ "y": 617,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": -2.9670597283903604,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1581,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1193,
+ "y": 618,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": 2.6005405854715509,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 250,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1199,
+ "y": 616,
+ "level": 174,
+ "amplitude": 1,
+ "phase_rad": 0.48869219055841234,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 767,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1202,
+ "y": 616,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": -2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 748,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1207,
+ "y": 619,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": -1.9373154697137056,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1391,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1213,
+ "y": 616,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": -1.8675022996339328,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 278,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1224,
+ "y": 616,
+ "level": 130,
+ "amplitude": 1,
+ "phase_rad": 2.7052603405912108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1705,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1228,
+ "y": 616,
+ "level": 170,
+ "amplitude": 1,
+ "phase_rad": 0.38397243543875248,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 125,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1232,
+ "y": 614,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": -3.0543261909900763,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1595,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1242,
+ "y": 616,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": -1.2740903539558606,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 623,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1242,
+ "y": 617,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": 1.2042771838760873,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1783,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1248,
+ "y": 617,
+ "level": 122,
+ "amplitude": 1,
+ "phase_rad": -1.064650843716541,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1131,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1256,
+ "y": 614,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": 1.7278759594743864,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 486,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1263,
+ "y": 614,
+ "level": 179,
+ "amplitude": 1,
+ "phase_rad": 1.4137166941154069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1567,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1266,
+ "y": 618,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": -2.8099800957108703,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 49,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1272,
+ "y": 618,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": -0.66322511575784515,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1414,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1283,
+ "y": 620,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": 2.4783675378319479,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 13,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1287,
+ "y": 614,
+ "level": 149,
+ "amplitude": 1,
+ "phase_rad": -2.91469985083053,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1502,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1291,
+ "y": 615,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": 3.12413936106985,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1448,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1298,
+ "y": 615,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": 1.7278759594743864,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 710,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1308,
+ "y": 616,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": 0.087266462599716474,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 622,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1311,
+ "y": 615,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": 1.0471975511965976,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1702,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1130,
+ "y": 622,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": 0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1446,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1137,
+ "y": 625,
+ "level": 178,
+ "amplitude": 1,
+ "phase_rad": 1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1605,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1142,
+ "y": 624,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": 2.9845130209103035,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1266,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1151,
+ "y": 620,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": -1.064650843716541,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1419,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1157,
+ "y": 623,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": -2.8972465583105871,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1674,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1161,
+ "y": 620,
+ "level": 169,
+ "amplitude": 1,
+ "phase_rad": 0.52359877559829882,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 929,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1165,
+ "y": 625,
+ "level": 170,
+ "amplitude": 1,
+ "phase_rad": -1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 706,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1175,
+ "y": 624,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": -1.43116998663535,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 581,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1180,
+ "y": 622,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": 2.9670597283903604,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1943,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1183,
+ "y": 623,
+ "level": 168,
+ "amplitude": 1,
+ "phase_rad": 2.3911010752322315,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1118,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1191,
+ "y": 626,
+ "level": 178,
+ "amplitude": 1,
+ "phase_rad": 2.8797932657906435,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 177,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1200,
+ "y": 620,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": 1.8151424220741028,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 587,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1202,
+ "y": 626,
+ "level": 142,
+ "amplitude": 1,
+ "phase_rad": -1.2217304763960306,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1161,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1210,
+ "y": 625,
+ "level": 165,
+ "amplitude": 1,
+ "phase_rad": 0.75049157835756164,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1753,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1213,
+ "y": 621,
+ "level": 178,
+ "amplitude": 1,
+ "phase_rad": -2.8972465583105871,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 228,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1221,
+ "y": 626,
+ "level": 138,
+ "amplitude": 1,
+ "phase_rad": -2.7227136331111539,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1198,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1230,
+ "y": 622,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": -3.0019663134302466,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 30,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1231,
+ "y": 625,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": -2.5307274153917776,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 831,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1240,
+ "y": 626,
+ "level": 125,
+ "amplitude": 1,
+ "phase_rad": 3.01941960595019,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1967,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1246,
+ "y": 626,
+ "level": 130,
+ "amplitude": 1,
+ "phase_rad": -0.69813170079773179,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 717,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1251,
+ "y": 625,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": -3.1415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 818,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1255,
+ "y": 620,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": 2.1642082724729685,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1297,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1266,
+ "y": 625,
+ "level": 152,
+ "amplitude": 1,
+ "phase_rad": -1.9722220547535925,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 682,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1272,
+ "y": 626,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": -1.3264502315156903,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 696,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1277,
+ "y": 626,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": -1.8675022996339328,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 468,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1279,
+ "y": 620,
+ "level": 179,
+ "amplitude": 1,
+ "phase_rad": -2.7925268031909272,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 858,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1287,
+ "y": 625,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": 1.3089969389957472,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 342,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1291,
+ "y": 620,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": 0.715584993317675,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1557,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1297,
+ "y": 626,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": -0.31415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 930,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1307,
+ "y": 623,
+ "level": 174,
+ "amplitude": 1,
+ "phase_rad": 0.87266462599716477,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 10,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1312,
+ "y": 624,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": -2.8797932657906435,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1107,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1131,
+ "y": 626,
+ "level": 179,
+ "amplitude": 1,
+ "phase_rad": 1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 507,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1134,
+ "y": 626,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": -0.54105206811824214,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 330,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1140,
+ "y": 632,
+ "level": 170,
+ "amplitude": 1,
+ "phase_rad": -3.0368728984701332,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 236,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1151,
+ "y": 626,
+ "level": 164,
+ "amplitude": 1,
+ "phase_rad": 0.069813170079773182,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 301,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 632,
+ "level": 132,
+ "amplitude": 1,
+ "phase_rad": 1.5009831567151233,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 786,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1162,
+ "y": 627,
+ "level": 140,
+ "amplitude": 1,
+ "phase_rad": -2.8099800957108703,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1462,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1170,
+ "y": 632,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": -2.1642082724729685,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1374,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1171,
+ "y": 627,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": -0.87266462599716477,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1336,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1176,
+ "y": 626,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": -1.3613568165555767,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 669,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1188,
+ "y": 630,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": 0.13962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 334,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1192,
+ "y": 632,
+ "level": 142,
+ "amplitude": 1,
+ "phase_rad": 2.4609142453120043,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1276,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1197,
+ "y": 632,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": -0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1104,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1206,
+ "y": 631,
+ "level": 169,
+ "amplitude": 1,
+ "phase_rad": 1.1519173063162576,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 580,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1207,
+ "y": 626,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": -1.064650843716541,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1941,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1216,
+ "y": 632,
+ "level": 142,
+ "amplitude": 1,
+ "phase_rad": 2.1642082724729685,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 24,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1224,
+ "y": 628,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": -0.59341194567807209,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 868,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1224,
+ "y": 628,
+ "level": 169,
+ "amplitude": 1,
+ "phase_rad": 2.4434609527920612,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 195,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1236,
+ "y": 630,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": 0.10471975511965977,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 257,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1237,
+ "y": 632,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": 1.9547687622336492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1564,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1244,
+ "y": 627,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": 3.12413936106985,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 292,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1254,
+ "y": 632,
+ "level": 153,
+ "amplitude": 1,
+ "phase_rad": 0.31415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 985,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1259,
+ "y": 629,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": 2.3911010752322315,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1498,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1261,
+ "y": 632,
+ "level": 170,
+ "amplitude": 1,
+ "phase_rad": 2.7925268031909272,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 951,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1269,
+ "y": 632,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": 0.54105206811824214,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 588,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1276,
+ "y": 626,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": -1.8675022996339328,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1400,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1283,
+ "y": 626,
+ "level": 154,
+ "amplitude": 1,
+ "phase_rad": -2.7576202181510405,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1191,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1288,
+ "y": 628,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": -1.5184364492350666,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 954,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1290,
+ "y": 631,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": -0.66322511575784515,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 743,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1299,
+ "y": 626,
+ "level": 126,
+ "amplitude": 1,
+ "phase_rad": 1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1769,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1304,
+ "y": 626,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": -1.0471975511965976,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 474,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1311,
+ "y": 628,
+ "level": 140,
+ "amplitude": 1,
+ "phase_rad": 1.2740903539558606,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1064,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1134,
+ "y": 637,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": 2.1991148575128552,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1485,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1138,
+ "y": 638,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": -1.3613568165555767,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 156,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1145,
+ "y": 632,
+ "level": 155,
+ "amplitude": 1,
+ "phase_rad": -0.22689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 696,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1151,
+ "y": 636,
+ "level": 152,
+ "amplitude": 1,
+ "phase_rad": -1.7976891295541593,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1614,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1155,
+ "y": 638,
+ "level": 143,
+ "amplitude": 1,
+ "phase_rad": -1.1519173063162576,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 772,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1162,
+ "y": 634,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": 2.0420352248333655,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 179,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1166,
+ "y": 632,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": 1.43116998663535,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1071,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1172,
+ "y": 635,
+ "level": 145,
+ "amplitude": 1,
+ "phase_rad": 0.95993108859688125,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1550,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1179,
+ "y": 636,
+ "level": 170,
+ "amplitude": 1,
+ "phase_rad": 1.2042771838760873,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 70,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1183,
+ "y": 635,
+ "level": 142,
+ "amplitude": 1,
+ "phase_rad": 3.07177948351002,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 958,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1194,
+ "y": 637,
+ "level": 127,
+ "amplitude": 1,
+ "phase_rad": 2.4783675378319479,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1944,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1194,
+ "y": 634,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": -0.22689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 170,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1202,
+ "y": 637,
+ "level": 158,
+ "amplitude": 1,
+ "phase_rad": -1.9198621771937625,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1397,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1211,
+ "y": 637,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": 2.7052603405912108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 24,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1214,
+ "y": 633,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": -0.38397243543875248,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 544,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1224,
+ "y": 632,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": -1.3613568165555767,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 209,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1224,
+ "y": 638,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": -0.97738438111682469,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 456,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1234,
+ "y": 638,
+ "level": 140,
+ "amplitude": 1,
+ "phase_rad": 1.605702911834783,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1005,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1242,
+ "y": 634,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": 0.41887902047863906,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 945,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1247,
+ "y": 638,
+ "level": 158,
+ "amplitude": 1,
+ "phase_rad": 3.1066860685499069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 476,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1251,
+ "y": 636,
+ "level": 146,
+ "amplitude": 1,
+ "phase_rad": 3.0019663134302466,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 317,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1258,
+ "y": 638,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": 0.767944870877505,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 12,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1266,
+ "y": 636,
+ "level": 165,
+ "amplitude": 1,
+ "phase_rad": -0.87266462599716477,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1882,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1268,
+ "y": 635,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": 2.9496064358704168,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 169,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1278,
+ "y": 635,
+ "level": 125,
+ "amplitude": 1,
+ "phase_rad": -0.4537856055185257,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 155,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1284,
+ "y": 633,
+ "level": 138,
+ "amplitude": 1,
+ "phase_rad": 2.9496064358704168,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 924,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1284,
+ "y": 635,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": -2.8623399732707,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1265,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1293,
+ "y": 635,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": -1.9722220547535925,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1197,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1301,
+ "y": 633,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": 1.5707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1114,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1303,
+ "y": 636,
+ "level": 155,
+ "amplitude": 1,
+ "phase_rad": 0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 181,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1310,
+ "y": 636,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 2.5656340004316647,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 740,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1134,
+ "y": 642,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": 2.5132741228718345,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 485,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1136,
+ "y": 642,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": -2.1467549799530254,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1984,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1143,
+ "y": 644,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": 1.43116998663535,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 938,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1152,
+ "y": 639,
+ "level": 126,
+ "amplitude": 1,
+ "phase_rad": -0.82030474843733492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 711,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1156,
+ "y": 643,
+ "level": 140,
+ "amplitude": 1,
+ "phase_rad": 2.3387411976724013,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1689,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1159,
+ "y": 642,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": 2.3736477827122884,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 282,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1166,
+ "y": 643,
+ "level": 168,
+ "amplitude": 1,
+ "phase_rad": 1.1170107212763709,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1285,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1176,
+ "y": 641,
+ "level": 142,
+ "amplitude": 1,
+ "phase_rad": 2.8099800957108703,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 507,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1177,
+ "y": 641,
+ "level": 153,
+ "amplitude": 1,
+ "phase_rad": 1.6231562043547263,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 147,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1183,
+ "y": 644,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": -2.1642082724729685,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 372,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1188,
+ "y": 641,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": 0.33161255787892258,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1492,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1195,
+ "y": 639,
+ "level": 128,
+ "amplitude": 1,
+ "phase_rad": -2.8099800957108703,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1960,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1204,
+ "y": 644,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": -3.01941960595019,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1290,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1210,
+ "y": 639,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": -2.6179938779914944,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1148,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1215,
+ "y": 644,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": -2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 404,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1218,
+ "y": 639,
+ "level": 155,
+ "amplitude": 1,
+ "phase_rad": 1.8675022996339328,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1220,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1226,
+ "y": 643,
+ "level": 152,
+ "amplitude": 1,
+ "phase_rad": 1.2042771838760873,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 89,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1235,
+ "y": 641,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": 2.7052603405912108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 855,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1240,
+ "y": 640,
+ "level": 138,
+ "amplitude": 1,
+ "phase_rad": 2.9321531433504737,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1204,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1243,
+ "y": 642,
+ "level": 152,
+ "amplitude": 1,
+ "phase_rad": -2.4434609527920612,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 785,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1248,
+ "y": 644,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": 0.50614548307835561,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1487,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1255,
+ "y": 640,
+ "level": 130,
+ "amplitude": 1,
+ "phase_rad": -0.94247779607693793,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1299,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1266,
+ "y": 642,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": -0.36651914291880922,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1341,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1271,
+ "y": 640,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": 3.0019663134302466,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1716,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1273,
+ "y": 644,
+ "level": 126,
+ "amplitude": 1,
+ "phase_rad": 0.99483767363676789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1830,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1278,
+ "y": 641,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": 0.087266462599716474,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1872,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1286,
+ "y": 642,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": -0.59341194567807209,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1150,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1292,
+ "y": 638,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": 2.8274333882308138,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1614,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1298,
+ "y": 640,
+ "level": 174,
+ "amplitude": 1,
+ "phase_rad": -1.3962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 881,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1302,
+ "y": 644,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": -1.2915436464758041,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1569,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1314,
+ "y": 641,
+ "level": 153,
+ "amplitude": 1,
+ "phase_rad": -1.5533430342749537,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 459,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1128,
+ "y": 649,
+ "level": 127,
+ "amplitude": 1,
+ "phase_rad": 1.0471975511965976,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1236,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1138,
+ "y": 645,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": -0.54105206811824214,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 479,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1142,
+ "y": 645,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": 2.3212879051524582,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 568,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1151,
+ "y": 646,
+ "level": 132,
+ "amplitude": 1,
+ "phase_rad": -2.0943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 951,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1157,
+ "y": 644,
+ "level": 169,
+ "amplitude": 1,
+ "phase_rad": -1.780235837034216,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1816,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1159,
+ "y": 648,
+ "level": 174,
+ "amplitude": 1,
+ "phase_rad": 1.4486232791552935,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 61,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1170,
+ "y": 645,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": -2.0420352248333655,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 988,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1173,
+ "y": 650,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": -1.0821041362364845,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 242,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1177,
+ "y": 648,
+ "level": 149,
+ "amplitude": 1,
+ "phase_rad": -2.8972465583105871,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 309,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1187,
+ "y": 644,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": -3.0892327760299634,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 53,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1191,
+ "y": 646,
+ "level": 143,
+ "amplitude": 1,
+ "phase_rad": 1.7453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 822,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1194,
+ "y": 644,
+ "level": 174,
+ "amplitude": 1,
+ "phase_rad": 1.6231562043547263,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 920,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1200,
+ "y": 646,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": -0.73303828583761843,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 730,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1206,
+ "y": 650,
+ "level": 166,
+ "amplitude": 1,
+ "phase_rad": -0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1442,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1217,
+ "y": 644,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": -2.8448866807507569,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 607,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1218,
+ "y": 648,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": -2.7576202181510405,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 162,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1224,
+ "y": 648,
+ "level": 174,
+ "amplitude": 1,
+ "phase_rad": 1.2740903539558606,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1065,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1233,
+ "y": 649,
+ "level": 147,
+ "amplitude": 1,
+ "phase_rad": 1.6755160819145565,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 947,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1239,
+ "y": 644,
+ "level": 152,
+ "amplitude": 1,
+ "phase_rad": 2.3212879051524582,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 230,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1248,
+ "y": 649,
+ "level": 125,
+ "amplitude": 1,
+ "phase_rad": 1.1170107212763709,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 38,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1254,
+ "y": 645,
+ "level": 158,
+ "amplitude": 1,
+ "phase_rad": -1.3264502315156903,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 414,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1256,
+ "y": 647,
+ "level": 140,
+ "amplitude": 1,
+ "phase_rad": -0.15707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 566,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1263,
+ "y": 645,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": 1.1170107212763709,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 651,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1268,
+ "y": 646,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": 2.2165681500327987,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1649,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1274,
+ "y": 647,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": 2.5307274153917776,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 329,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1283,
+ "y": 648,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": 2.7227136331111539,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 886,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1286,
+ "y": 647,
+ "level": 126,
+ "amplitude": 1,
+ "phase_rad": -2.8623399732707,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 422,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1296,
+ "y": 644,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": -0.017453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 325,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1296,
+ "y": 647,
+ "level": 179,
+ "amplitude": 1,
+ "phase_rad": -0.12217304763960309,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 72,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1304,
+ "y": 645,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": 0.27925268031909273,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1577,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1311,
+ "y": 647,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": 2.2165681500327987,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1301,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1130,
+ "y": 651,
+ "level": 164,
+ "amplitude": 1,
+ "phase_rad": -2.3561944901923448,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 852,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1139,
+ "y": 653,
+ "level": 144,
+ "amplitude": 1,
+ "phase_rad": -2.9496064358704168,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1833,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1146,
+ "y": 650,
+ "level": 168,
+ "amplitude": 1,
+ "phase_rad": -0.20943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 892,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1147,
+ "y": 655,
+ "level": 164,
+ "amplitude": 1,
+ "phase_rad": 1.2042771838760873,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1496,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 653,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": 2.3038346126325151,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1667,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1162,
+ "y": 655,
+ "level": 147,
+ "amplitude": 1,
+ "phase_rad": -2.2340214425527418,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 15,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1169,
+ "y": 651,
+ "level": 135,
+ "amplitude": 1,
+ "phase_rad": -0.66322511575784515,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1711,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1174,
+ "y": 652,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": -2.7052603405912108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 785,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1180,
+ "y": 650,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": 0.40142572795869574,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 170,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1183,
+ "y": 652,
+ "level": 143,
+ "amplitude": 1,
+ "phase_rad": -2.5307274153917776,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1035,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1192,
+ "y": 655,
+ "level": 153,
+ "amplitude": 1,
+ "phase_rad": -2.4958208303518914,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1432,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1199,
+ "y": 655,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": -1.3089969389957472,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1692,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1200,
+ "y": 650,
+ "level": 135,
+ "amplitude": 1,
+ "phase_rad": -2.9845130209103035,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 183,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1210,
+ "y": 656,
+ "level": 144,
+ "amplitude": 1,
+ "phase_rad": 0.69813170079773179,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1636,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1218,
+ "y": 652,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": -1.2740903539558606,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 264,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1224,
+ "y": 654,
+ "level": 178,
+ "amplitude": 1,
+ "phase_rad": 1.7627825445142729,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1256,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1225,
+ "y": 652,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": 0.80285145591739149,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 793,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1230,
+ "y": 654,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": 1.1170107212763709,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 100,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1242,
+ "y": 653,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": -1.7278759594743864,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 749,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1246,
+ "y": 655,
+ "level": 175,
+ "amplitude": 1,
+ "phase_rad": -0.17453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 760,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1250,
+ "y": 650,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": -1.3962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1150,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1255,
+ "y": 651,
+ "level": 135,
+ "amplitude": 1,
+ "phase_rad": 2.9670597283903604,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1627,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1261,
+ "y": 655,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": 1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1353,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1270,
+ "y": 654,
+ "level": 158,
+ "amplitude": 1,
+ "phase_rad": 0.82030474843733492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 158,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1272,
+ "y": 655,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": 0.38397243543875248,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1842,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1281,
+ "y": 651,
+ "level": 146,
+ "amplitude": 1,
+ "phase_rad": 2.6703537555513241,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1032,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1284,
+ "y": 654,
+ "level": 149,
+ "amplitude": 1,
+ "phase_rad": -0.62831853071795862,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 591,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1291,
+ "y": 654,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": -2.8274333882308138,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 277,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1301,
+ "y": 653,
+ "level": 130,
+ "amplitude": 1,
+ "phase_rad": 2.286381320112572,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1705,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1302,
+ "y": 652,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": 0.29670597283903605,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1448,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1314,
+ "y": 651,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": -0.66322511575784515,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 741,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1132,
+ "y": 658,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": -0.890117918517108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 201,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1134,
+ "y": 661,
+ "level": 140,
+ "amplitude": 1,
+ "phase_rad": -0.27925268031909273,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1373,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1143,
+ "y": 658,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": -0.83775804095727813,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1035,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1146,
+ "y": 659,
+ "level": 155,
+ "amplitude": 1,
+ "phase_rad": -0.052359877559829883,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 451,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1155,
+ "y": 659,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": 1.3089969389957472,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1596,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 660,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": -1.902408884673819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1083,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1170,
+ "y": 658,
+ "level": 125,
+ "amplitude": 1,
+ "phase_rad": -2.9496064358704168,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1372,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1176,
+ "y": 658,
+ "level": 164,
+ "amplitude": 1,
+ "phase_rad": 2.8448866807507569,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 99,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1176,
+ "y": 656,
+ "level": 164,
+ "amplitude": 1,
+ "phase_rad": -2.0420352248333655,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 712,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1187,
+ "y": 660,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": -2.9670597283903604,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1337,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1190,
+ "y": 659,
+ "level": 168,
+ "amplitude": 1,
+ "phase_rad": -2.0769418098732522,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1604,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1194,
+ "y": 659,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": 0.38397243543875248,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 27,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1203,
+ "y": 661,
+ "level": 127,
+ "amplitude": 1,
+ "phase_rad": 2.6005405854715509,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1408,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1206,
+ "y": 657,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": 1.1344640137963142,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1297,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1216,
+ "y": 661,
+ "level": 158,
+ "amplitude": 1,
+ "phase_rad": -0.36651914291880922,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 203,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1221,
+ "y": 661,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": -0.94247779607693793,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1932,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1226,
+ "y": 659,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": 0.19198621771937624,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 254,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1232,
+ "y": 660,
+ "level": 175,
+ "amplitude": 1,
+ "phase_rad": -1.7104226669544429,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1246,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1239,
+ "y": 662,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": 2.7576202181510405,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1219,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1243,
+ "y": 662,
+ "level": 169,
+ "amplitude": 1,
+ "phase_rad": -0.17453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 550,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1252,
+ "y": 656,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": -0.75049157835756164,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1988,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1258,
+ "y": 662,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": -2.7052603405912108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 695,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1261,
+ "y": 661,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": 0.59341194567807209,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1268,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1272,
+ "y": 662,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": 1.7976891295541593,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 577,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1275,
+ "y": 657,
+ "level": 145,
+ "amplitude": 1,
+ "phase_rad": -2.7925268031909272,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 429,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1283,
+ "y": 660,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": 2.0943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1648,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1287,
+ "y": 656,
+ "level": 132,
+ "amplitude": 1,
+ "phase_rad": -2.6703537555513241,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 676,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1292,
+ "y": 656,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": 0.22689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1097,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1299,
+ "y": 657,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": 2.3911010752322315,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 764,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1306,
+ "y": 661,
+ "level": 154,
+ "amplitude": 1,
+ "phase_rad": -1.2391837689159739,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1334,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1309,
+ "y": 658,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": -1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1635,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1130,
+ "y": 666,
+ "level": 145,
+ "amplitude": 1,
+ "phase_rad": -2.0943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 393,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1140,
+ "y": 663,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": -1.605702911834783,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1746,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1141,
+ "y": 665,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": -1.53588974175501,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 633,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1152,
+ "y": 665,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": -1.6580627893946132,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1620,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1153,
+ "y": 665,
+ "level": 152,
+ "amplitude": 1,
+ "phase_rad": 1.1170107212763709,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1069,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 662,
+ "level": 143,
+ "amplitude": 1,
+ "phase_rad": -2.1118483949131388,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1089,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1164,
+ "y": 668,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": -1.5184364492350666,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1987,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1174,
+ "y": 666,
+ "level": 138,
+ "amplitude": 1,
+ "phase_rad": -1.0122909661567112,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1290,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1177,
+ "y": 667,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": -3.1066860685499069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 307,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1182,
+ "y": 666,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": 3.07177948351002,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1500,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1193,
+ "y": 664,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": -0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1273,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1200,
+ "y": 662,
+ "level": 164,
+ "amplitude": 1,
+ "phase_rad": 0.83775804095727813,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 239,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1205,
+ "y": 668,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": 1.2566370614359173,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1561,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1207,
+ "y": 665,
+ "level": 169,
+ "amplitude": 1,
+ "phase_rad": -1.5009831567151233,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1275,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1214,
+ "y": 663,
+ "level": 164,
+ "amplitude": 1,
+ "phase_rad": 0.59341194567807209,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1167,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1220,
+ "y": 667,
+ "level": 152,
+ "amplitude": 1,
+ "phase_rad": 0.13962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 806,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1227,
+ "y": 667,
+ "level": 144,
+ "amplitude": 1,
+ "phase_rad": -0.54105206811824214,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1580,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1235,
+ "y": 663,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": 0.767944870877505,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 178,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1240,
+ "y": 668,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": -1.7627825445142729,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1691,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1244,
+ "y": 664,
+ "level": 175,
+ "amplitude": 1,
+ "phase_rad": -1.7278759594743864,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1823,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1252,
+ "y": 667,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": -0.94247779607693793,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 890,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1257,
+ "y": 666,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": 1.8325957145940459,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 428,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1260,
+ "y": 665,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": -1.7104226669544429,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1373,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1266,
+ "y": 665,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": 2.5830872929516082,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 10,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1272,
+ "y": 668,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": -2.0594885173533086,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 121,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1281,
+ "y": 665,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": 1.5533430342749537,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 448,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1284,
+ "y": 668,
+ "level": 138,
+ "amplitude": 1,
+ "phase_rad": 0.69813170079773179,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1596,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1294,
+ "y": 667,
+ "level": 122,
+ "amplitude": 1,
+ "phase_rad": 2.9670597283903604,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 519,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1297,
+ "y": 662,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": -0.57595865315812877,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 35,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1302,
+ "y": 666,
+ "level": 146,
+ "amplitude": 1,
+ "phase_rad": 0.20943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1674,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1314,
+ "y": 665,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": -1.7453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1748,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1133,
+ "y": 672,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": -1.3089969389957472,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 29,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1140,
+ "y": 668,
+ "level": 147,
+ "amplitude": 1,
+ "phase_rad": 0.41887902047863906,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 396,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1140,
+ "y": 669,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": -0.43633231299858238,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 165,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1147,
+ "y": 670,
+ "level": 178,
+ "amplitude": 1,
+ "phase_rad": 0.94247779607693793,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1636,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1152,
+ "y": 668,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": -2.1642082724729685,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 101,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1163,
+ "y": 668,
+ "level": 179,
+ "amplitude": 1,
+ "phase_rad": 2.5830872929516082,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 672,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1167,
+ "y": 674,
+ "level": 125,
+ "amplitude": 1,
+ "phase_rad": 1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 147,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1176,
+ "y": 674,
+ "level": 165,
+ "amplitude": 1,
+ "phase_rad": 2.8797932657906435,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 562,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1176,
+ "y": 671,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": -1.8151424220741028,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1753,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1187,
+ "y": 668,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": -0.29670597283903605,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1132,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1191,
+ "y": 671,
+ "level": 140,
+ "amplitude": 1,
+ "phase_rad": -0.6108652381980153,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1692,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1198,
+ "y": 673,
+ "level": 164,
+ "amplitude": 1,
+ "phase_rad": -1.6231562043547263,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 485,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1206,
+ "y": 668,
+ "level": 152,
+ "amplitude": 1,
+ "phase_rad": -1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1304,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1207,
+ "y": 669,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": -0.890117918517108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 218,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1214,
+ "y": 672,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": -0.82030474843733492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1438,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1221,
+ "y": 673,
+ "level": 155,
+ "amplitude": 1,
+ "phase_rad": -1.3962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 603,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1229,
+ "y": 668,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": -0.97738438111682469,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1750,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1230,
+ "y": 672,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": 2.4609142453120043,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 739,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1236,
+ "y": 668,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": 1.3613568165555767,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 825,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1248,
+ "y": 668,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": 0.36651914291880922,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1352,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1252,
+ "y": 669,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": -0.99483767363676789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 306,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1259,
+ "y": 671,
+ "level": 179,
+ "amplitude": 1,
+ "phase_rad": 1.1519173063162576,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 766,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1266,
+ "y": 669,
+ "level": 147,
+ "amplitude": 1,
+ "phase_rad": 2.7750735106709841,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1054,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1271,
+ "y": 672,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": -0.90757121103705141,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1224,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1276,
+ "y": 671,
+ "level": 179,
+ "amplitude": 1,
+ "phase_rad": 3.0892327760299634,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1959,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1279,
+ "y": 669,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": 2.8797932657906435,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1470,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1287,
+ "y": 672,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": 0.64577182323790194,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1458,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1293,
+ "y": 671,
+ "level": 130,
+ "amplitude": 1,
+ "phase_rad": -1.9547687622336492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 182,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1299,
+ "y": 672,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": 0.052359877559829883,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 797,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1308,
+ "y": 672,
+ "level": 154,
+ "amplitude": 1,
+ "phase_rad": -1.9722220547535925,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1291,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1310,
+ "y": 673,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": 2.8099800957108703,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 149,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1128,
+ "y": 675,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": -0.85521133347722145,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1742,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1138,
+ "y": 675,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": 2.8274333882308138,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1892,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1142,
+ "y": 675,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": -1.8325957145940459,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1148,
+ "y": 676,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": -1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 137,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 677,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": 0.57595865315812877,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 245,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1162,
+ "y": 678,
+ "level": 126,
+ "amplitude": 1,
+ "phase_rad": -1.1868238913561442,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 699,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1168,
+ "y": 680,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": 0.17453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1305,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1172,
+ "y": 679,
+ "level": 169,
+ "amplitude": 1,
+ "phase_rad": -1.1344640137963142,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 935,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1178,
+ "y": 678,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": 0.38397243543875248,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 205,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1186,
+ "y": 679,
+ "level": 142,
+ "amplitude": 1,
+ "phase_rad": -1.9722220547535925,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 658,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1194,
+ "y": 679,
+ "level": 146,
+ "amplitude": 1,
+ "phase_rad": 2.3911010752322315,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 195,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1198,
+ "y": 679,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": -1.6231562043547263,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 558,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1200,
+ "y": 674,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": 0.62831853071795862,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 692,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1208,
+ "y": 675,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": 0.36651914291880922,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1381,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1215,
+ "y": 678,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": 1.8675022996339328,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1448,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1220,
+ "y": 677,
+ "level": 175,
+ "amplitude": 1,
+ "phase_rad": -0.069813170079773182,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1033,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1229,
+ "y": 675,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": 3.0368728984701332,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 769,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1235,
+ "y": 677,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": -0.43633231299858238,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 147,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1239,
+ "y": 679,
+ "level": 154,
+ "amplitude": 1,
+ "phase_rad": -2.8972465583105871,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 869,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1243,
+ "y": 680,
+ "level": 147,
+ "amplitude": 1,
+ "phase_rad": -1.7976891295541593,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1554,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1250,
+ "y": 677,
+ "level": 169,
+ "amplitude": 1,
+ "phase_rad": -0.034906585039886591,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1599,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1256,
+ "y": 675,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": -2.1816615649929116,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1466,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1260,
+ "y": 679,
+ "level": 155,
+ "amplitude": 1,
+ "phase_rad": 1.4137166941154069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1061,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1271,
+ "y": 675,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": -1.7976891295541593,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1156,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1277,
+ "y": 680,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": -0.10471975511965977,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 249,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1283,
+ "y": 674,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": -0.85521133347722145,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 951,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1287,
+ "y": 680,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": 1.3439035240356341,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 191,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1291,
+ "y": 676,
+ "level": 145,
+ "amplitude": 1,
+ "phase_rad": -1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 60,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1300,
+ "y": 680,
+ "level": 122,
+ "amplitude": 1,
+ "phase_rad": 1.2566370614359173,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1878,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1307,
+ "y": 674,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": 0.069813170079773182,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1257,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1308,
+ "y": 675,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": 0.85521133347722145,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1974,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1130,
+ "y": 684,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": -0.82030474843733492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1976,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1136,
+ "y": 683,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": 1.1344640137963142,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 562,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1140,
+ "y": 681,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": 0.82030474843733492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 627,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1148,
+ "y": 685,
+ "level": 152,
+ "amplitude": 1,
+ "phase_rad": -1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1923,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 686,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": 0.27925268031909273,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 790,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1162,
+ "y": 681,
+ "level": 127,
+ "amplitude": 1,
+ "phase_rad": 1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 801,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1165,
+ "y": 685,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": 1.4137166941154069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1332,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1173,
+ "y": 680,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": -1.9198621771937625,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1425,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1176,
+ "y": 684,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": -0.52359877559829882,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1604,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1186,
+ "y": 681,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": -1.902408884673819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 492,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1190,
+ "y": 684,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": 1.0995574287564276,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 189,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1197,
+ "y": 683,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": 3.0019663134302466,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 627,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1200,
+ "y": 682,
+ "level": 153,
+ "amplitude": 1,
+ "phase_rad": -1.3962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 43,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1208,
+ "y": 680,
+ "level": 128,
+ "amplitude": 1,
+ "phase_rad": 2.91469985083053,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1488,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1213,
+ "y": 684,
+ "level": 140,
+ "amplitude": 1,
+ "phase_rad": -0.17453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1711,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1219,
+ "y": 684,
+ "level": 166,
+ "amplitude": 1,
+ "phase_rad": 1.5184364492350666,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1618,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1226,
+ "y": 686,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": -0.069813170079773182,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 148,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1234,
+ "y": 684,
+ "level": 143,
+ "amplitude": 1,
+ "phase_rad": 0.82030474843733492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 392,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1236,
+ "y": 682,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": 2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1176,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1247,
+ "y": 680,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": -0.64577182323790194,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 849,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1251,
+ "y": 680,
+ "level": 135,
+ "amplitude": 1,
+ "phase_rad": -0.29670597283903605,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1928,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1258,
+ "y": 682,
+ "level": 155,
+ "amplitude": 1,
+ "phase_rad": 2.0071286397934789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1638,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1266,
+ "y": 684,
+ "level": 122,
+ "amplitude": 1,
+ "phase_rad": -2.0943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1809,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1267,
+ "y": 683,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": -1.8500490071139892,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 838,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1276,
+ "y": 684,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": 1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1280,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1284,
+ "y": 684,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": 2.4260076602721181,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 260,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1285,
+ "y": 683,
+ "level": 142,
+ "amplitude": 1,
+ "phase_rad": -1.1519173063162576,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 625,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1292,
+ "y": 685,
+ "level": 149,
+ "amplitude": 1,
+ "phase_rad": 0.15707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 880,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1297,
+ "y": 680,
+ "level": 154,
+ "amplitude": 1,
+ "phase_rad": 1.9547687622336492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 651,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1304,
+ "y": 682,
+ "level": 175,
+ "amplitude": 1,
+ "phase_rad": 3.0019663134302466,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 880,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1309,
+ "y": 680,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": 3.01941960595019,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1508,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1133,
+ "y": 690,
+ "level": 149,
+ "amplitude": 1,
+ "phase_rad": 1.9722220547535925,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 20,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1134,
+ "y": 691,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": 1.1868238913561442,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1245,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1142,
+ "y": 688,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": 2.2340214425527418,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1238,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1148,
+ "y": 692,
+ "level": 152,
+ "amplitude": 1,
+ "phase_rad": 1.6755160819145565,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 268,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1155,
+ "y": 687,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": -0.36651914291880922,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 471,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1162,
+ "y": 690,
+ "level": 149,
+ "amplitude": 1,
+ "phase_rad": -0.3490658503988659,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1696,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1165,
+ "y": 690,
+ "level": 143,
+ "amplitude": 1,
+ "phase_rad": 0.40142572795869574,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1045,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1174,
+ "y": 687,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 0.087266462599716474,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 844,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1178,
+ "y": 689,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": -1.9722220547535925,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1954,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1182,
+ "y": 690,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": -0.90757121103705141,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 32,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1190,
+ "y": 689,
+ "level": 126,
+ "amplitude": 1,
+ "phase_rad": 2.1642082724729685,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 428,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1198,
+ "y": 692,
+ "level": 122,
+ "amplitude": 1,
+ "phase_rad": 0.48869219055841234,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 692,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1202,
+ "y": 688,
+ "level": 135,
+ "amplitude": 1,
+ "phase_rad": 2.1467549799530254,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 902,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1210,
+ "y": 692,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": -1.064650843716541,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1880,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1213,
+ "y": 688,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": -0.99483767363676789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1409,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1218,
+ "y": 687,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": -0.22689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 319,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1224,
+ "y": 690,
+ "level": 127,
+ "amplitude": 1,
+ "phase_rad": -0.4537856055185257,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1066,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1234,
+ "y": 689,
+ "level": 153,
+ "amplitude": 1,
+ "phase_rad": -0.94247779607693793,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1752,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1241,
+ "y": 687,
+ "level": 125,
+ "amplitude": 1,
+ "phase_rad": -2.0769418098732522,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 218,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1242,
+ "y": 687,
+ "level": 122,
+ "amplitude": 1,
+ "phase_rad": 1.5009831567151233,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 561,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1248,
+ "y": 688,
+ "level": 164,
+ "amplitude": 1,
+ "phase_rad": -0.52359877559829882,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1661,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1254,
+ "y": 689,
+ "level": 166,
+ "amplitude": 1,
+ "phase_rad": -2.2689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 217,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1262,
+ "y": 688,
+ "level": 155,
+ "amplitude": 1,
+ "phase_rad": -0.50614548307835561,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 517,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1270,
+ "y": 687,
+ "level": 170,
+ "amplitude": 1,
+ "phase_rad": -1.2042771838760873,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1549,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1273,
+ "y": 688,
+ "level": 169,
+ "amplitude": 1,
+ "phase_rad": -0.27925268031909273,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 333,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1284,
+ "y": 687,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": -1.6755160819145565,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1298,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1290,
+ "y": 687,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": -1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 41,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1294,
+ "y": 692,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": 0.6108652381980153,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1030,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1297,
+ "y": 691,
+ "level": 144,
+ "amplitude": 1,
+ "phase_rad": -1.6231562043547263,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1002,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1304,
+ "y": 690,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": 2.5830872929516082,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 887,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1313,
+ "y": 688,
+ "level": 164,
+ "amplitude": 1,
+ "phase_rad": 2.91469985083053,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 249,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1133,
+ "y": 696,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": -1.5707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1689,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1139,
+ "y": 696,
+ "level": 152,
+ "amplitude": 1,
+ "phase_rad": -0.052359877559829883,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 374,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1140,
+ "y": 696,
+ "level": 143,
+ "amplitude": 1,
+ "phase_rad": -0.64577182323790194,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1187,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1151,
+ "y": 695,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": 1.8500490071139892,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1163,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1154,
+ "y": 698,
+ "level": 154,
+ "amplitude": 1,
+ "phase_rad": 2.8623399732707,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1560,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1160,
+ "y": 695,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": 1.8325957145940459,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1679,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1167,
+ "y": 695,
+ "level": 169,
+ "amplitude": 1,
+ "phase_rad": -2.7576202181510405,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 542,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1170,
+ "y": 696,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": 1.58824961931484,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1410,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1179,
+ "y": 693,
+ "level": 175,
+ "amplitude": 1,
+ "phase_rad": -2.8099800957108703,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 723,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1187,
+ "y": 693,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": -1.1519173063162576,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1405,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1189,
+ "y": 692,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": -0.75049157835756164,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1491,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1199,
+ "y": 692,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": -0.19198621771937624,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 966,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1201,
+ "y": 696,
+ "level": 165,
+ "amplitude": 1,
+ "phase_rad": 0.94247779607693793,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1255,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1210,
+ "y": 697,
+ "level": 140,
+ "amplitude": 1,
+ "phase_rad": -2.3387411976724013,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1096,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1212,
+ "y": 692,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": -2.6005405854715509,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 53,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1218,
+ "y": 692,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": 0.59341194567807209,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 13,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1224,
+ "y": 693,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": -2.6005405854715509,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1131,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1232,
+ "y": 696,
+ "level": 146,
+ "amplitude": 1,
+ "phase_rad": -1.1693705988362009,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1009,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1242,
+ "y": 694,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": -1.4486232791552935,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 864,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1247,
+ "y": 695,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": -0.4537856055185257,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1463,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1254,
+ "y": 698,
+ "level": 128,
+ "amplitude": 1,
+ "phase_rad": 1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1237,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1255,
+ "y": 696,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": -0.90757121103705141,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1229,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1264,
+ "y": 695,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": -0.22689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 708,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1266,
+ "y": 692,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": -2.6179938779914944,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 416,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1272,
+ "y": 694,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": 0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1119,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1283,
+ "y": 692,
+ "level": 132,
+ "amplitude": 1,
+ "phase_rad": 0.97738438111682469,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 347,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1288,
+ "y": 697,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": 2.286381320112572,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 54,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1291,
+ "y": 692,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": -0.19198621771937624,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 731,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1301,
+ "y": 697,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": 1.2566370614359173,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1607,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1305,
+ "y": 696,
+ "level": 152,
+ "amplitude": 1,
+ "phase_rad": 2.6179938779914944,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 843,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1313,
+ "y": 698,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": -1.7627825445142729,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1356,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1132,
+ "y": 704,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": -1.8325957145940459,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1751,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1134,
+ "y": 701,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": -2.0071286397934789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1984,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1146,
+ "y": 701,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": -0.40142572795869574,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 256,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1152,
+ "y": 699,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": 1.3788101090755205,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 911,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1154,
+ "y": 699,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": 2.0071286397934789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 245,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 701,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": -1.6755160819145565,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 814,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1169,
+ "y": 702,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": -1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 816,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1172,
+ "y": 702,
+ "level": 158,
+ "amplitude": 1,
+ "phase_rad": 0.59341194567807209,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 495,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1178,
+ "y": 701,
+ "level": 174,
+ "amplitude": 1,
+ "phase_rad": 1.3089969389957472,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1804,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1188,
+ "y": 703,
+ "level": 125,
+ "amplitude": 1,
+ "phase_rad": 1.8151424220741028,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1058,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1191,
+ "y": 702,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": 1.6755160819145565,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 710,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1196,
+ "y": 702,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": -2.6005405854715509,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1512,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1203,
+ "y": 699,
+ "level": 178,
+ "amplitude": 1,
+ "phase_rad": 1.7278759594743864,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 458,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1207,
+ "y": 702,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": -2.9670597283903604,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1579,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1214,
+ "y": 702,
+ "level": 155,
+ "amplitude": 1,
+ "phase_rad": -0.17453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 339,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1223,
+ "y": 700,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": 2.6179938779914944,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 312,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1226,
+ "y": 701,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": 1.2915436464758041,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1759,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1230,
+ "y": 699,
+ "level": 125,
+ "amplitude": 1,
+ "phase_rad": 2.0769418098732522,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 141,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1241,
+ "y": 704,
+ "level": 153,
+ "amplitude": 1,
+ "phase_rad": 2.1293016874330819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1365,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1242,
+ "y": 702,
+ "level": 127,
+ "amplitude": 1,
+ "phase_rad": -0.13962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1237,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1250,
+ "y": 698,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": 3.1415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 468,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1260,
+ "y": 698,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": 0.6108652381980153,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1138,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1266,
+ "y": 704,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": 2.7227136331111539,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 801,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1266,
+ "y": 702,
+ "level": 135,
+ "amplitude": 1,
+ "phase_rad": 2.4958208303518914,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 283,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1272,
+ "y": 701,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": 2.8972465583105871,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 56,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1280,
+ "y": 698,
+ "level": 165,
+ "amplitude": 1,
+ "phase_rad": 1.8151424220741028,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 129,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1285,
+ "y": 699,
+ "level": 127,
+ "amplitude": 1,
+ "phase_rad": -1.2740903539558606,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1603,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1291,
+ "y": 700,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": -0.17453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1908,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1302,
+ "y": 699,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": -1.5184364492350666,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 231,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1307,
+ "y": 698,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": -0.40142572795869574,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1164,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1310,
+ "y": 700,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": -1.0122909661567112,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 976,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1133,
+ "y": 705,
+ "level": 126,
+ "amplitude": 1,
+ "phase_rad": 2.9670597283903604,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1662,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1140,
+ "y": 706,
+ "level": 132,
+ "amplitude": 1,
+ "phase_rad": 0.20943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 729,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1144,
+ "y": 709,
+ "level": 149,
+ "amplitude": 1,
+ "phase_rad": -2.3387411976724013,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 270,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1150,
+ "y": 705,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": 2.7750735106709841,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 285,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 704,
+ "level": 155,
+ "amplitude": 1,
+ "phase_rad": 2.1642082724729685,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 467,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1160,
+ "y": 707,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": -1.8500490071139892,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1284,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1170,
+ "y": 704,
+ "level": 168,
+ "amplitude": 1,
+ "phase_rad": 1.9547687622336492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1933,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1170,
+ "y": 706,
+ "level": 152,
+ "amplitude": 1,
+ "phase_rad": 0.87266462599716477,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 164,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1180,
+ "y": 710,
+ "level": 178,
+ "amplitude": 1,
+ "phase_rad": 2.4958208303518914,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 842,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1188,
+ "y": 708,
+ "level": 149,
+ "amplitude": 1,
+ "phase_rad": -1.2391837689159739,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1767,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1189,
+ "y": 707,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": -1.9198621771937625,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1041,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1199,
+ "y": 708,
+ "level": 135,
+ "amplitude": 1,
+ "phase_rad": 1.5009831567151233,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1075,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1203,
+ "y": 704,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": 2.4609142453120043,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 975,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1210,
+ "y": 704,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": -2.1293016874330819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 227,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1214,
+ "y": 708,
+ "level": 128,
+ "amplitude": 1,
+ "phase_rad": 2.2689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 962,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1218,
+ "y": 704,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": -0.48869219055841234,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 562,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1228,
+ "y": 710,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": -1.1170107212763709,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 815,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1232,
+ "y": 709,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": -1.3264502315156903,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 306,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1238,
+ "y": 704,
+ "level": 168,
+ "amplitude": 1,
+ "phase_rad": -2.5132741228718345,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1283,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1246,
+ "y": 710,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": -0.57595865315812877,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1520,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1254,
+ "y": 710,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": -1.9547687622336492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 972,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1258,
+ "y": 706,
+ "level": 145,
+ "amplitude": 1,
+ "phase_rad": 1.3613568165555767,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1029,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1265,
+ "y": 710,
+ "level": 170,
+ "amplitude": 1,
+ "phase_rad": -0.26179938779914941,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1724,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1269,
+ "y": 704,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": -0.10471975511965977,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 318,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1278,
+ "y": 707,
+ "level": 143,
+ "amplitude": 1,
+ "phase_rad": -3.0892327760299634,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1500,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1280,
+ "y": 710,
+ "level": 122,
+ "amplitude": 1,
+ "phase_rad": -1.780235837034216,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1685,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1284,
+ "y": 710,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": 1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 760,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1295,
+ "y": 708,
+ "level": 170,
+ "amplitude": 1,
+ "phase_rad": 2.1293016874330819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1665,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1302,
+ "y": 706,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": 1.7278759594743864,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 786,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1304,
+ "y": 705,
+ "level": 140,
+ "amplitude": 1,
+ "phase_rad": -1.6406094968746698,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 298,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1312,
+ "y": 706,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": -1.5707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1697,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1131,
+ "y": 713,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": -0.38397243543875248,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 263,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1138,
+ "y": 712,
+ "level": 132,
+ "amplitude": 1,
+ "phase_rad": 2.3387411976724013,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 951,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1145,
+ "y": 714,
+ "level": 130,
+ "amplitude": 1,
+ "phase_rad": -2.6529004630313806,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 256,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1152,
+ "y": 711,
+ "level": 170,
+ "amplitude": 1,
+ "phase_rad": 0.94247779607693793,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 470,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1156,
+ "y": 714,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": 0.73303828583761843,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 717,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1159,
+ "y": 713,
+ "level": 168,
+ "amplitude": 1,
+ "phase_rad": -2.7052603405912108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 432,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1169,
+ "y": 712,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": 1.9722220547535925,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1875,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1171,
+ "y": 712,
+ "level": 143,
+ "amplitude": 1,
+ "phase_rad": 1.3089969389957472,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 263,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1179,
+ "y": 710,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": -1.2566370614359173,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1223,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1186,
+ "y": 710,
+ "level": 135,
+ "amplitude": 1,
+ "phase_rad": -2.4434609527920612,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 554,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1191,
+ "y": 713,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": -3.0543261909900763,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 520,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1200,
+ "y": 716,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": -2.6529004630313806,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1967,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1201,
+ "y": 713,
+ "level": 128,
+ "amplitude": 1,
+ "phase_rad": 0.99483767363676789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1464,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1208,
+ "y": 714,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": -2.2689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1886,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1215,
+ "y": 715,
+ "level": 127,
+ "amplitude": 1,
+ "phase_rad": 0.12217304763960309,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1354,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1221,
+ "y": 714,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": -3.1066860685499069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1311,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1224,
+ "y": 712,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": 1.8500490071139892,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1550,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1231,
+ "y": 713,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": 0.3490658503988659,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 156,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1237,
+ "y": 714,
+ "level": 138,
+ "amplitude": 1,
+ "phase_rad": 1.3962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1942,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1248,
+ "y": 716,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": 0.41887902047863906,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 429,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1248,
+ "y": 714,
+ "level": 126,
+ "amplitude": 1,
+ "phase_rad": -2.0943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1422,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1258,
+ "y": 712,
+ "level": 146,
+ "amplitude": 1,
+ "phase_rad": -1.0122909661567112,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1568,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1262,
+ "y": 714,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": -0.47123889803846897,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1752,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1272,
+ "y": 716,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": 2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 904,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1278,
+ "y": 714,
+ "level": 168,
+ "amplitude": 1,
+ "phase_rad": -2.7576202181510405,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1391,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1284,
+ "y": 713,
+ "level": 144,
+ "amplitude": 1,
+ "phase_rad": 0.29670597283903605,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1370,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1287,
+ "y": 711,
+ "level": 165,
+ "amplitude": 1,
+ "phase_rad": 1.8325957145940459,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1223,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1292,
+ "y": 711,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": -2.6354471705114375,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 276,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1302,
+ "y": 710,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": 1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1582,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1306,
+ "y": 716,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": 2.1816615649929116,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 208,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1308,
+ "y": 714,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": -2.4260076602721181,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 514,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1130,
+ "y": 722,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": -0.17453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1510,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1134,
+ "y": 722,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": 0.95993108859688125,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 571,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1140,
+ "y": 722,
+ "level": 174,
+ "amplitude": 1,
+ "phase_rad": 1.9722220547535925,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 901,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1150,
+ "y": 718,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": 1.53588974175501,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1013,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 722,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": -1.4486232791552935,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 139,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 720,
+ "level": 154,
+ "amplitude": 1,
+ "phase_rad": -0.36651914291880922,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1144,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1170,
+ "y": 721,
+ "level": 158,
+ "amplitude": 1,
+ "phase_rad": 0.22689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 422,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1173,
+ "y": 716,
+ "level": 122,
+ "amplitude": 1,
+ "phase_rad": -1.0995574287564276,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1992,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1176,
+ "y": 716,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": -0.087266462599716474,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1462,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1187,
+ "y": 716,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": -0.66322511575784515,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 826,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1193,
+ "y": 718,
+ "level": 164,
+ "amplitude": 1,
+ "phase_rad": 0.68067840827778847,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 623,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1197,
+ "y": 721,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": -0.6108652381980153,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1433,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1203,
+ "y": 718,
+ "level": 146,
+ "amplitude": 1,
+ "phase_rad": -2.6354471705114375,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 830,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1208,
+ "y": 717,
+ "level": 142,
+ "amplitude": 1,
+ "phase_rad": 0.64577182323790194,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1807,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1215,
+ "y": 718,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": 1.5533430342749537,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 984,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1223,
+ "y": 722,
+ "level": 153,
+ "amplitude": 1,
+ "phase_rad": 0.24434609527920617,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 631,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1224,
+ "y": 719,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": -2.9670597283903604,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1635,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1233,
+ "y": 716,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": -1.7453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1552,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1240,
+ "y": 718,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": 0.68067840827778847,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 945,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1246,
+ "y": 720,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": -2.7052603405912108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 857,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1251,
+ "y": 720,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": -0.052359877559829883,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1700,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1257,
+ "y": 718,
+ "level": 179,
+ "amplitude": 1,
+ "phase_rad": -2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 997,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1263,
+ "y": 718,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": -2.6005405854715509,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1390,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1272,
+ "y": 717,
+ "level": 144,
+ "amplitude": 1,
+ "phase_rad": -1.5009831567151233,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1817,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1273,
+ "y": 717,
+ "level": 128,
+ "amplitude": 1,
+ "phase_rad": 2.0594885173533086,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 413,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1279,
+ "y": 720,
+ "level": 140,
+ "amplitude": 1,
+ "phase_rad": -1.4137166941154069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1697,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1284,
+ "y": 722,
+ "level": 149,
+ "amplitude": 1,
+ "phase_rad": -2.4434609527920612,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1603,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1292,
+ "y": 716,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": -2.0245819323134224,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 751,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1296,
+ "y": 716,
+ "level": 175,
+ "amplitude": 1,
+ "phase_rad": 1.4137166941154069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 568,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1304,
+ "y": 716,
+ "level": 153,
+ "amplitude": 1,
+ "phase_rad": 2.6005405854715509,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 993,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1311,
+ "y": 718,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": -2.1293016874330819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 318,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1130,
+ "y": 725,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": -1.3613568165555767,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1274,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1139,
+ "y": 722,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": -1.4660765716752369,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 761,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1143,
+ "y": 727,
+ "level": 127,
+ "amplitude": 1,
+ "phase_rad": -1.3439035240356341,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 652,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1152,
+ "y": 725,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": 2.4434609527920612,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1655,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1153,
+ "y": 724,
+ "level": 145,
+ "amplitude": 1,
+ "phase_rad": 0.26179938779914941,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1618,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 722,
+ "level": 145,
+ "amplitude": 1,
+ "phase_rad": 1.7453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 828,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1169,
+ "y": 724,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": 2.8623399732707,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1012,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1176,
+ "y": 725,
+ "level": 143,
+ "amplitude": 1,
+ "phase_rad": 0.26179938779914941,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1202,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1182,
+ "y": 724,
+ "level": 158,
+ "amplitude": 1,
+ "phase_rad": -0.97738438111682469,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1579,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1186,
+ "y": 728,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": 0.55850536063818546,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1209,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1194,
+ "y": 722,
+ "level": 168,
+ "amplitude": 1,
+ "phase_rad": -1.0471975511965976,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1884,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1200,
+ "y": 722,
+ "level": 125,
+ "amplitude": 1,
+ "phase_rad": -0.15707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1066,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1204,
+ "y": 726,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": 2.2340214425527418,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1100,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1207,
+ "y": 725,
+ "level": 130,
+ "amplitude": 1,
+ "phase_rad": 1.7627825445142729,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 933,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1215,
+ "y": 723,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": -1.3439035240356341,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1681,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1224,
+ "y": 726,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": 1.58824961931484,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 473,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1224,
+ "y": 727,
+ "level": 170,
+ "amplitude": 1,
+ "phase_rad": -2.0594885173533086,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1027,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1235,
+ "y": 725,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": -3.0892327760299634,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1042,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1241,
+ "y": 724,
+ "level": 175,
+ "amplitude": 1,
+ "phase_rad": -3.0892327760299634,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1879,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1244,
+ "y": 724,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": 1.8500490071139892,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1226,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1248,
+ "y": 727,
+ "level": 149,
+ "amplitude": 1,
+ "phase_rad": -2.3911010752322315,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 316,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1259,
+ "y": 724,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": -0.052359877559829883,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 157,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1262,
+ "y": 722,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": -1.6406094968746698,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 821,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1271,
+ "y": 727,
+ "level": 165,
+ "amplitude": 1,
+ "phase_rad": -0.99483767363676789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1556,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1276,
+ "y": 725,
+ "level": 130,
+ "amplitude": 1,
+ "phase_rad": -1.5184364492350666,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1402,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1278,
+ "y": 723,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": -0.97738438111682469,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1065,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1287,
+ "y": 728,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": -2.2689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 342,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1292,
+ "y": 724,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": -3.0543261909900763,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1519,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1298,
+ "y": 722,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": 2.7227136331111539,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 418,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1307,
+ "y": 722,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": 0.62831853071795862,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 250,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1311,
+ "y": 726,
+ "level": 147,
+ "amplitude": 1,
+ "phase_rad": -3.0543261909900763,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1921,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1131,
+ "y": 732,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": -0.50614548307835561,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 114,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1137,
+ "y": 732,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": 2.8972465583105871,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1276,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1142,
+ "y": 733,
+ "level": 132,
+ "amplitude": 1,
+ "phase_rad": -2.7227136331111539,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 190,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1149,
+ "y": 728,
+ "level": 164,
+ "amplitude": 1,
+ "phase_rad": 0.50614548307835561,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 759,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1156,
+ "y": 728,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": -2.8274333882308138,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1916,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 731,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": -1.7453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 147,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1169,
+ "y": 731,
+ "level": 135,
+ "amplitude": 1,
+ "phase_rad": -2.0245819323134224,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1255,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1174,
+ "y": 728,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": 2.8972465583105871,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 482,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1180,
+ "y": 734,
+ "level": 152,
+ "amplitude": 1,
+ "phase_rad": -1.2915436464758041,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1566,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1188,
+ "y": 733,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": 0.017453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1330,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1190,
+ "y": 734,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": 0.87266462599716477,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 655,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1197,
+ "y": 730,
+ "level": 130,
+ "amplitude": 1,
+ "phase_rad": -0.24434609527920617,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1912,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1206,
+ "y": 732,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": 2.4434609527920612,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1741,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1212,
+ "y": 731,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": -0.36651914291880922,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 842,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1214,
+ "y": 733,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": -1.0122909661567112,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1348,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1223,
+ "y": 731,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": -1.4660765716752369,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1924,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1226,
+ "y": 734,
+ "level": 155,
+ "amplitude": 1,
+ "phase_rad": 0.3490658503988659,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1510,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1235,
+ "y": 732,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": 2.2165681500327987,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 235,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1237,
+ "y": 734,
+ "level": 170,
+ "amplitude": 1,
+ "phase_rad": -3.1415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 567,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1242,
+ "y": 734,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": -0.48869219055841234,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1603,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1251,
+ "y": 733,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": -2.6179938779914944,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 669,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1257,
+ "y": 729,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": 2.91469985083053,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1101,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1260,
+ "y": 731,
+ "level": 175,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1304,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1266,
+ "y": 728,
+ "level": 143,
+ "amplitude": 1,
+ "phase_rad": -2.3212879051524582,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 79,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1274,
+ "y": 734,
+ "level": 130,
+ "amplitude": 1,
+ "phase_rad": -1.0995574287564276,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 317,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1280,
+ "y": 728,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": -2.7925268031909272,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1168,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1290,
+ "y": 733,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": -0.20943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 907,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1293,
+ "y": 733,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": -1.7453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 588,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1300,
+ "y": 728,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": -1.2566370614359173,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 211,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1307,
+ "y": 728,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": -0.94247779607693793,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 566,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1308,
+ "y": 731,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": -0.73303828583761843,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 803,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1132,
+ "y": 738,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": 2.6878070480712677,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1906,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1137,
+ "y": 736,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": -0.767944870877505,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1385,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1141,
+ "y": 740,
+ "level": 147,
+ "amplitude": 1,
+ "phase_rad": -2.8623399732707,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 231,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1147,
+ "y": 737,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": 2.1293016874330819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 729,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1154,
+ "y": 735,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": -1.7627825445142729,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 737,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1160,
+ "y": 738,
+ "level": 145,
+ "amplitude": 1,
+ "phase_rad": 1.7278759594743864,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1067,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1166,
+ "y": 736,
+ "level": 127,
+ "amplitude": 1,
+ "phase_rad": -2.740166925631097,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1615,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1176,
+ "y": 740,
+ "level": 154,
+ "amplitude": 1,
+ "phase_rad": -1.4660765716752369,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1725,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1178,
+ "y": 738,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": 0.68067840827778847,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1891,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1187,
+ "y": 738,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": -1.6755160819145565,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 152,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1191,
+ "y": 736,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": -3.01941960595019,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 119,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1197,
+ "y": 738,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": 0.36651914291880922,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1226,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1205,
+ "y": 740,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": 2.1816615649929116,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 742,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1211,
+ "y": 739,
+ "level": 143,
+ "amplitude": 1,
+ "phase_rad": -1.6580627893946132,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 336,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1213,
+ "y": 740,
+ "level": 174,
+ "amplitude": 1,
+ "phase_rad": 2.9845130209103035,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 144,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1223,
+ "y": 740,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": -1.43116998663535,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1075,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1229,
+ "y": 736,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": 1.2566370614359173,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 62,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1236,
+ "y": 738,
+ "level": 126,
+ "amplitude": 1,
+ "phase_rad": -3.12413936106985,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 735,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1237,
+ "y": 736,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": 0.97738438111682469,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 276,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1244,
+ "y": 740,
+ "level": 146,
+ "amplitude": 1,
+ "phase_rad": -1.6580627893946132,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 253,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1248,
+ "y": 735,
+ "level": 122,
+ "amplitude": 1,
+ "phase_rad": -2.7227136331111539,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1645,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1257,
+ "y": 737,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": 2.8274333882308138,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 617,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1263,
+ "y": 737,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": -3.01941960595019,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1737,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1268,
+ "y": 739,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": 1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 851,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1273,
+ "y": 739,
+ "level": 142,
+ "amplitude": 1,
+ "phase_rad": 2.3387411976724013,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1866,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1284,
+ "y": 740,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": 2.1293016874330819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1470,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1289,
+ "y": 737,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": -2.2165681500327987,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1070,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1293,
+ "y": 736,
+ "level": 127,
+ "amplitude": 1,
+ "phase_rad": 2.3736477827122884,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1015,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1299,
+ "y": 740,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": 1.2391837689159739,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1702,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1307,
+ "y": 740,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": 1.7976891295541593,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1675,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1311,
+ "y": 740,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": 1.9547687622336492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1935,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1129,
+ "y": 745,
+ "level": 130,
+ "amplitude": 1,
+ "phase_rad": -2.3038346126325151,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1810,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1137,
+ "y": 741,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": -1.7976891295541593,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 917,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1140,
+ "y": 742,
+ "level": 132,
+ "amplitude": 1,
+ "phase_rad": -0.087266462599716474,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 680,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1152,
+ "y": 744,
+ "level": 127,
+ "amplitude": 1,
+ "phase_rad": -1.2042771838760873,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1927,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1153,
+ "y": 743,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": -3.0368728984701332,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 289,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1164,
+ "y": 746,
+ "level": 147,
+ "amplitude": 1,
+ "phase_rad": 3.1415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 334,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1170,
+ "y": 746,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": -2.0245819323134224,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 500,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1174,
+ "y": 741,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": 2.9670597283903604,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1910,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1177,
+ "y": 740,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": -1.6580627893946132,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1650,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1184,
+ "y": 745,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": -0.33161255787892258,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1843,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1194,
+ "y": 745,
+ "level": 138,
+ "amplitude": 1,
+ "phase_rad": 2.1816615649929116,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1540,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1199,
+ "y": 741,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": 3.0892327760299634,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1952,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1203,
+ "y": 745,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": -2.8623399732707,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1034,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1207,
+ "y": 741,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": -1.6755160819145565,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1300,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1216,
+ "y": 744,
+ "level": 128,
+ "amplitude": 1,
+ "phase_rad": -0.92502450355699462,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1501,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1218,
+ "y": 744,
+ "level": 146,
+ "amplitude": 1,
+ "phase_rad": -1.9373154697137056,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1535,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1224,
+ "y": 743,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": -2.6703537555513241,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 487,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1231,
+ "y": 743,
+ "level": 142,
+ "amplitude": 1,
+ "phase_rad": -0.57595865315812877,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1041,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1239,
+ "y": 740,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": 3.1066860685499069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 770,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1244,
+ "y": 741,
+ "level": 174,
+ "amplitude": 1,
+ "phase_rad": 1.3962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1341,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1249,
+ "y": 745,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": 1.8675022996339328,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 436,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1255,
+ "y": 744,
+ "level": 178,
+ "amplitude": 1,
+ "phase_rad": -2.5481807079117211,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1337,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1260,
+ "y": 745,
+ "level": 178,
+ "amplitude": 1,
+ "phase_rad": -1.7453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1674,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1266,
+ "y": 745,
+ "level": 168,
+ "amplitude": 1,
+ "phase_rad": 1.9198621771937625,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 737,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1276,
+ "y": 745,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": 1.3613568165555767,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 243,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1282,
+ "y": 744,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": 2.9496064358704168,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 670,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1290,
+ "y": 744,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": 0.13962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1169,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1292,
+ "y": 741,
+ "level": 132,
+ "amplitude": 1,
+ "phase_rad": 2.2689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1951,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1299,
+ "y": 744,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": 1.5184364492350666,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 797,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1307,
+ "y": 740,
+ "level": 167,
+ "amplitude": 1,
+ "phase_rad": -2.1642082724729685,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 582,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1312,
+ "y": 743,
+ "level": 125,
+ "amplitude": 1,
+ "phase_rad": -0.92502450355699462,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 153,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1130,
+ "y": 747,
+ "level": 153,
+ "amplitude": 1,
+ "phase_rad": 1.0995574287564276,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1142,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1138,
+ "y": 749,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": 1.6580627893946132,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1593,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1142,
+ "y": 752,
+ "level": 146,
+ "amplitude": 1,
+ "phase_rad": 0.87266462599716477,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 934,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1152,
+ "y": 750,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": 2.0594885173533086,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1731,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 749,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": -1.1519173063162576,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 623,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1161,
+ "y": 752,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": 1.1170107212763709,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1423,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1167,
+ "y": 750,
+ "level": 142,
+ "amplitude": 1,
+ "phase_rad": -0.33161255787892258,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 445,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1171,
+ "y": 750,
+ "level": 152,
+ "amplitude": 1,
+ "phase_rad": -1.3439035240356341,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 738,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1176,
+ "y": 750,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": 2.7925268031909272,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1962,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1187,
+ "y": 750,
+ "level": 128,
+ "amplitude": 1,
+ "phase_rad": 1.2042771838760873,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 805,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1188,
+ "y": 749,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": -0.087266462599716474,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 167,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1199,
+ "y": 747,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": -0.85521133347722145,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 45,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1205,
+ "y": 749,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": -2.8274333882308138,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 735,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1211,
+ "y": 750,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": -0.54105206811824214,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 507,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1213,
+ "y": 746,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": -0.26179938779914941,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1719,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1220,
+ "y": 746,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": -1.0471975511965976,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1001,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1230,
+ "y": 751,
+ "level": 138,
+ "amplitude": 1,
+ "phase_rad": -1.4137166941154069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1348,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1236,
+ "y": 748,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": -0.85521133347722145,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 808,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1242,
+ "y": 748,
+ "level": 130,
+ "amplitude": 1,
+ "phase_rad": -1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1288,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1245,
+ "y": 748,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": 0.47123889803846897,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 350,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1249,
+ "y": 750,
+ "level": 164,
+ "amplitude": 1,
+ "phase_rad": -0.40142572795869574,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 332,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1260,
+ "y": 752,
+ "level": 169,
+ "amplitude": 1,
+ "phase_rad": 0.80285145591739149,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1402,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1265,
+ "y": 748,
+ "level": 175,
+ "amplitude": 1,
+ "phase_rad": 2.286381320112572,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 264,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1272,
+ "y": 747,
+ "level": 122,
+ "amplitude": 1,
+ "phase_rad": -0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 899,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1275,
+ "y": 751,
+ "level": 158,
+ "amplitude": 1,
+ "phase_rad": -3.07177948351002,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 649,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1283,
+ "y": 752,
+ "level": 142,
+ "amplitude": 1,
+ "phase_rad": 1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 709,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1284,
+ "y": 749,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": -2.1467549799530254,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 642,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1291,
+ "y": 746,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": -2.4609142453120043,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1379,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1296,
+ "y": 749,
+ "level": 135,
+ "amplitude": 1,
+ "phase_rad": 1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1234,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1306,
+ "y": 749,
+ "level": 138,
+ "amplitude": 1,
+ "phase_rad": -2.3038346126325151,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1329,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1310,
+ "y": 747,
+ "level": 125,
+ "amplitude": 1,
+ "phase_rad": -2.3561944901923448,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1412,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1131,
+ "y": 752,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": -2.4434609527920612,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 684,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1134,
+ "y": 755,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": -1.43116998663535,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1233,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1141,
+ "y": 752,
+ "level": 165,
+ "amplitude": 1,
+ "phase_rad": 0.26179938779914941,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1816,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1152,
+ "y": 754,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": 1.1693705988362009,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 806,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 755,
+ "level": 178,
+ "amplitude": 1,
+ "phase_rad": -0.66322511575784515,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1498,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1160,
+ "y": 756,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": -2.1991148575128552,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 91,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1169,
+ "y": 755,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": -0.29670597283903605,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1779,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1171,
+ "y": 754,
+ "level": 166,
+ "amplitude": 1,
+ "phase_rad": 1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1178,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1179,
+ "y": 755,
+ "level": 179,
+ "amplitude": 1,
+ "phase_rad": -2.8623399732707,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 797,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1186,
+ "y": 757,
+ "level": 166,
+ "amplitude": 1,
+ "phase_rad": -1.7278759594743864,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1414,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1194,
+ "y": 754,
+ "level": 144,
+ "amplitude": 1,
+ "phase_rad": 1.4137166941154069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1535,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1200,
+ "y": 752,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": -0.85521133347722145,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 54,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1203,
+ "y": 753,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": -1.7104226669544429,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1581,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1211,
+ "y": 757,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": 0.95993108859688125,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1448,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1216,
+ "y": 755,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": -2.5307274153917776,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1701,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1220,
+ "y": 755,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": 3.12413936106985,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 350,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1227,
+ "y": 757,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": -0.36651914291880922,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 127,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1233,
+ "y": 752,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": 1.1693705988362009,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1906,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1236,
+ "y": 758,
+ "level": 143,
+ "amplitude": 1,
+ "phase_rad": 1.5184364492350666,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 133,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1244,
+ "y": 756,
+ "level": 166,
+ "amplitude": 1,
+ "phase_rad": -1.5533430342749537,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1320,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1253,
+ "y": 755,
+ "level": 126,
+ "amplitude": 1,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 122,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1256,
+ "y": 753,
+ "level": 138,
+ "amplitude": 1,
+ "phase_rad": 2.3387411976724013,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 728,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1262,
+ "y": 753,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": -1.9722220547535925,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 952,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1270,
+ "y": 753,
+ "level": 144,
+ "amplitude": 1,
+ "phase_rad": -2.1118483949131388,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 588,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1276,
+ "y": 753,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": 1.2566370614359173,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1228,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1282,
+ "y": 753,
+ "level": 145,
+ "amplitude": 1,
+ "phase_rad": -2.9496064358704168,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1105,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1289,
+ "y": 757,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": -1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 744,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1290,
+ "y": 756,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": -0.75049157835756164,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1303,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1298,
+ "y": 757,
+ "level": 158,
+ "amplitude": 1,
+ "phase_rad": -1.1170107212763709,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1057,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1308,
+ "y": 756,
+ "level": 132,
+ "amplitude": 1,
+ "phase_rad": -1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 715,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1308,
+ "y": 754,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": 2.91469985083053,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 6,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1131,
+ "y": 764,
+ "level": 145,
+ "amplitude": 1,
+ "phase_rad": 2.4434609527920612,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 813,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1135,
+ "y": 763,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": -1.1344640137963142,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1298,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1144,
+ "y": 761,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": 1.9896753472735356,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 801,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1146,
+ "y": 763,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": 0.087266462599716474,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1922,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 762,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": -2.0769418098732522,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1315,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1164,
+ "y": 764,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": 1.0995574287564276,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 985,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1166,
+ "y": 759,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": -1.0471975511965976,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1669,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1171,
+ "y": 760,
+ "level": 158,
+ "amplitude": 1,
+ "phase_rad": 3.0019663134302466,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 838,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1180,
+ "y": 761,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": 1.0821041362364845,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1716,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1185,
+ "y": 762,
+ "level": 143,
+ "amplitude": 1,
+ "phase_rad": 2.3038346126325151,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 703,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1190,
+ "y": 759,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": 3.1415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 243,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1200,
+ "y": 762,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": -1.7104226669544429,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 847,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1201,
+ "y": 762,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": 2.0594885173533086,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 442,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1209,
+ "y": 763,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": 3.0368728984701332,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 390,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1217,
+ "y": 758,
+ "level": 122,
+ "amplitude": 1,
+ "phase_rad": -2.5656340004316647,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 749,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1220,
+ "y": 760,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": -1.1868238913561442,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 380,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1226,
+ "y": 762,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": -1.1170107212763709,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 313,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1231,
+ "y": 758,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": -1.8151424220741028,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1862,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1240,
+ "y": 758,
+ "level": 144,
+ "amplitude": 1,
+ "phase_rad": 0.33161255787892258,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 319,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1248,
+ "y": 764,
+ "level": 149,
+ "amplitude": 1,
+ "phase_rad": -0.29670597283903605,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 706,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1252,
+ "y": 758,
+ "level": 144,
+ "amplitude": 1,
+ "phase_rad": 1.0821041362364845,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1273,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1255,
+ "y": 759,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": 0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1486,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1264,
+ "y": 764,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": -2.8972465583105871,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 255,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1270,
+ "y": 760,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": 1.0821041362364845,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 117,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1274,
+ "y": 758,
+ "level": 146,
+ "amplitude": 1,
+ "phase_rad": -2.8274333882308138,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1150,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1282,
+ "y": 762,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": 2.740166925631097,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 750,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1287,
+ "y": 763,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": 2.8972465583105871,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1012,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1291,
+ "y": 759,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": 1.1693705988362009,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1833,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1302,
+ "y": 758,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": -0.19198621771937624,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 697,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1306,
+ "y": 758,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": -0.47123889803846897,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 967,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1312,
+ "y": 762,
+ "level": 169,
+ "amplitude": 1,
+ "phase_rad": -0.66322511575784515,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1863,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1132,
+ "y": 768,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": -2.5481807079117211,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1939,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1137,
+ "y": 769,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": -1.5707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 543,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1145,
+ "y": 769,
+ "level": 179,
+ "amplitude": 1,
+ "phase_rad": 0.20943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1729,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1149,
+ "y": 768,
+ "level": 155,
+ "amplitude": 1,
+ "phase_rad": 1.605702911834783,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 233,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1154,
+ "y": 764,
+ "level": 179,
+ "amplitude": 1,
+ "phase_rad": 1.2740903539558606,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1861,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1161,
+ "y": 766,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": -0.31415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1346,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1169,
+ "y": 764,
+ "level": 166,
+ "amplitude": 1,
+ "phase_rad": -2.9845130209103035,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1805,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1174,
+ "y": 769,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": 1.3613568165555767,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 755,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1177,
+ "y": 764,
+ "level": 170,
+ "amplitude": 1,
+ "phase_rad": -1.902408884673819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1198,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1187,
+ "y": 765,
+ "level": 170,
+ "amplitude": 1,
+ "phase_rad": 0.38397243543875248,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1971,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1188,
+ "y": 764,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": -1.3962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1223,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1198,
+ "y": 768,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": -2.1118483949131388,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 847,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1201,
+ "y": 768,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": 0.48869219055841234,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 858,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1211,
+ "y": 764,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": 0.82030474843733492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 400,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1216,
+ "y": 765,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": -0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1804,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1219,
+ "y": 765,
+ "level": 166,
+ "amplitude": 1,
+ "phase_rad": -2.4958208303518914,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 207,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1226,
+ "y": 767,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": -0.22689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1298,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1235,
+ "y": 770,
+ "level": 149,
+ "amplitude": 1,
+ "phase_rad": -0.52359877559829882,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 605,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1236,
+ "y": 765,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": -1.3089969389957472,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 361,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1245,
+ "y": 767,
+ "level": 135,
+ "amplitude": 1,
+ "phase_rad": 1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1739,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1253,
+ "y": 765,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": -0.87266462599716477,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 623,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1260,
+ "y": 765,
+ "level": 161,
+ "amplitude": 1,
+ "phase_rad": -0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 682,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1262,
+ "y": 770,
+ "level": 153,
+ "amplitude": 1,
+ "phase_rad": -2.7576202181510405,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 50,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1270,
+ "y": 765,
+ "level": 128,
+ "amplitude": 1,
+ "phase_rad": 2.6878070480712677,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1253,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1277,
+ "y": 767,
+ "level": 152,
+ "amplitude": 1,
+ "phase_rad": -1.0821041362364845,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 324,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1281,
+ "y": 769,
+ "level": 155,
+ "amplitude": 1,
+ "phase_rad": -1.9198621771937625,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 701,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1289,
+ "y": 770,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": -1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 652,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1291,
+ "y": 766,
+ "level": 128,
+ "amplitude": 1,
+ "phase_rad": -2.1816615649929116,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1557,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1300,
+ "y": 765,
+ "level": 126,
+ "amplitude": 1,
+ "phase_rad": -2.6703537555513241,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1748,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1303,
+ "y": 768,
+ "level": 138,
+ "amplitude": 1,
+ "phase_rad": -1.4660765716752369,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1003,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1310,
+ "y": 766,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": -2.2514747350726849,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 202,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1129,
+ "y": 774,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": -1.902408884673819,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1608,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1134,
+ "y": 774,
+ "level": 149,
+ "amplitude": 1,
+ "phase_rad": -2.9845130209103035,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1038,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1143,
+ "y": 776,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": 1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1661,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1148,
+ "y": 770,
+ "level": 179,
+ "amplitude": 1,
+ "phase_rad": -2.2165681500327987,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1981,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1155,
+ "y": 773,
+ "level": 147,
+ "amplitude": 1,
+ "phase_rad": -0.29670597283903605,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1961,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1164,
+ "y": 773,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": 1.2391837689159739,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1903,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1167,
+ "y": 774,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": -2.3212879051524582,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 223,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1173,
+ "y": 773,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": -0.95993108859688125,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1407,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1176,
+ "y": 775,
+ "level": 125,
+ "amplitude": 1,
+ "phase_rad": 0.3490658503988659,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 739,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1184,
+ "y": 772,
+ "level": 154,
+ "amplitude": 1,
+ "phase_rad": -0.40142572795869574,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 297,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1190,
+ "y": 772,
+ "level": 130,
+ "amplitude": 1,
+ "phase_rad": -2.1991148575128552,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1211,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1199,
+ "y": 771,
+ "level": 145,
+ "amplitude": 1,
+ "phase_rad": -1.780235837034216,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1828,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1204,
+ "y": 771,
+ "level": 168,
+ "amplitude": 1,
+ "phase_rad": -2.6878070480712677,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 24,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1212,
+ "y": 770,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": 0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 630,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1218,
+ "y": 770,
+ "level": 158,
+ "amplitude": 1,
+ "phase_rad": -0.3490658503988659,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1883,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1222,
+ "y": 772,
+ "level": 174,
+ "amplitude": 1,
+ "phase_rad": -2.6179938779914944,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1318,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1228,
+ "y": 776,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": 0.29670597283903605,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1125,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1231,
+ "y": 772,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": 0.15707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 693,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1238,
+ "y": 770,
+ "level": 164,
+ "amplitude": 1,
+ "phase_rad": -0.41887902047863906,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 254,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1247,
+ "y": 776,
+ "level": 120,
+ "amplitude": 1,
+ "phase_rad": 0.27925268031909273,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 925,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1250,
+ "y": 770,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": -2.3736477827122884,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 510,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1256,
+ "y": 774,
+ "level": 164,
+ "amplitude": 1,
+ "phase_rad": -1.8325957145940459,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1799,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1262,
+ "y": 772,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": 0.36651914291880922,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 646,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1270,
+ "y": 772,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": 0.069813170079773182,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1671,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1275,
+ "y": 772,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": -1.3962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 49,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1283,
+ "y": 772,
+ "level": 132,
+ "amplitude": 1,
+ "phase_rad": -1.1344640137963142,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 332,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1288,
+ "y": 772,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": 0.767944870877505,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 677,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1293,
+ "y": 770,
+ "level": 165,
+ "amplitude": 1,
+ "phase_rad": -1.3089969389957472,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 469,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1299,
+ "y": 774,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": 0.80285145591739149,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1886,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1308,
+ "y": 775,
+ "level": 130,
+ "amplitude": 1,
+ "phase_rad": -2.4434609527920612,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 973,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1310,
+ "y": 775,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": 1.3089969389957472,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1961,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1128,
+ "y": 779,
+ "level": 160,
+ "amplitude": 1,
+ "phase_rad": -2.5307274153917776,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 823,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1140,
+ "y": 779,
+ "level": 145,
+ "amplitude": 1,
+ "phase_rad": -2.8797932657906435,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 382,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1140,
+ "y": 782,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": -1.7627825445142729,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1683,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1150,
+ "y": 780,
+ "level": 178,
+ "amplitude": 1,
+ "phase_rad": -1.4137166941154069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 720,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1157,
+ "y": 781,
+ "level": 122,
+ "amplitude": 1,
+ "phase_rad": -1.0297442586766543,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 123,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 777,
+ "level": 125,
+ "amplitude": 1,
+ "phase_rad": 2.0943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1574,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1170,
+ "y": 781,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": 0.890117918517108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 626,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1170,
+ "y": 778,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": 2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 478,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1182,
+ "y": 778,
+ "level": 147,
+ "amplitude": 1,
+ "phase_rad": -0.40142572795869574,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1777,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1188,
+ "y": 776,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": -1.4486232791552935,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1696,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1193,
+ "y": 781,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": -0.95993108859688125,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 392,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1195,
+ "y": 778,
+ "level": 139,
+ "amplitude": 1,
+ "phase_rad": -2.91469985083053,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 582,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1205,
+ "y": 778,
+ "level": 155,
+ "amplitude": 1,
+ "phase_rad": -1.53588974175501,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 468,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1207,
+ "y": 778,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": 2.5656340004316647,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1623,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1214,
+ "y": 782,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": -2.91469985083053,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 768,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1221,
+ "y": 778,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": -0.33161255787892258,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 150,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1224,
+ "y": 777,
+ "level": 169,
+ "amplitude": 1,
+ "phase_rad": 3.0543261909900763,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 110,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1231,
+ "y": 780,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": -0.3490658503988659,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 177,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1240,
+ "y": 776,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": 0.57595865315812877,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 811,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1245,
+ "y": 780,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": -1.8849555921538761,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1354,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1252,
+ "y": 782,
+ "level": 122,
+ "amplitude": 1,
+ "phase_rad": -0.26179938779914941,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1111,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1259,
+ "y": 781,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": 2.9321531433504737,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1391,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1266,
+ "y": 781,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": 2.91469985083053,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 379,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1270,
+ "y": 780,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": -1.8675022996339328,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 157,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1276,
+ "y": 776,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": 2.0071286397934789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 400,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1279,
+ "y": 778,
+ "level": 149,
+ "amplitude": 1,
+ "phase_rad": 0.83775804095727813,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1640,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1289,
+ "y": 777,
+ "level": 144,
+ "amplitude": 1,
+ "phase_rad": 1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 843,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1291,
+ "y": 777,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": -0.4537856055185257,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 625,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1298,
+ "y": 778,
+ "level": 140,
+ "amplitude": 1,
+ "phase_rad": 1.5707963267948966,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 425,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1307,
+ "y": 777,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": -0.6108652381980153,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1569,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1314,
+ "y": 776,
+ "level": 180,
+ "amplitude": 1,
+ "phase_rad": -2.3736477827122884,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 164,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1132,
+ "y": 784,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": -1.5184364492350666,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 575,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1136,
+ "y": 783,
+ "level": 153,
+ "amplitude": 1,
+ "phase_rad": -2.2340214425527418,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1807,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1145,
+ "y": 784,
+ "level": 126,
+ "amplitude": 1,
+ "phase_rad": 0.26179938779914941,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 87,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1149,
+ "y": 783,
+ "level": 130,
+ "amplitude": 1,
+ "phase_rad": 2.4609142453120043,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1305,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1153,
+ "y": 786,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": 0.68067840827778847,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 811,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1158,
+ "y": 787,
+ "level": 124,
+ "amplitude": 1,
+ "phase_rad": 2.1991148575128552,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1703,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1168,
+ "y": 783,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": 1.1868238913561442,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1614,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1175,
+ "y": 788,
+ "level": 126,
+ "amplitude": 1,
+ "phase_rad": -2.2689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1890,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1177,
+ "y": 788,
+ "level": 131,
+ "amplitude": 1,
+ "phase_rad": 2.1816615649929116,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 979,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1184,
+ "y": 782,
+ "level": 126,
+ "amplitude": 1,
+ "phase_rad": -0.890117918517108,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 672,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1193,
+ "y": 788,
+ "level": 126,
+ "amplitude": 1,
+ "phase_rad": -0.17453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1820,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1200,
+ "y": 785,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": 2.2165681500327987,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 336,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1204,
+ "y": 783,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": -1.3089969389957472,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 455,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1209,
+ "y": 783,
+ "level": 145,
+ "amplitude": 1,
+ "phase_rad": 1.4835298641951802,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 469,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1215,
+ "y": 782,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": 2.7925268031909272,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 961,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1220,
+ "y": 785,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": -2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 69,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1224,
+ "y": 786,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": 0.069813170079773182,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 239,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1235,
+ "y": 782,
+ "level": 168,
+ "amplitude": 1,
+ "phase_rad": 1.7453292519943295,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1807,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1238,
+ "y": 784,
+ "level": 135,
+ "amplitude": 1,
+ "phase_rad": 2.9845130209103035,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 603,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1248,
+ "y": 783,
+ "level": 174,
+ "amplitude": 1,
+ "phase_rad": 0.75049157835756164,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1856,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1249,
+ "y": 786,
+ "level": 142,
+ "amplitude": 1,
+ "phase_rad": -2.3561944901923448,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1668,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1258,
+ "y": 788,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": 3.0892327760299634,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1216,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1262,
+ "y": 785,
+ "level": 150,
+ "amplitude": 1,
+ "phase_rad": 2.0071286397934789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 183,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1266,
+ "y": 785,
+ "level": 132,
+ "amplitude": 1,
+ "phase_rad": -2.0594885173533086,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 999,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1275,
+ "y": 784,
+ "level": 159,
+ "amplitude": 1,
+ "phase_rad": 2.0769418098732522,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1788,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1279,
+ "y": 788,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": 0.90757121103705141,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 968,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1285,
+ "y": 786,
+ "level": 144,
+ "amplitude": 1,
+ "phase_rad": -1.9547687622336492,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1625,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1293,
+ "y": 783,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": 1.1170107212763709,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1040,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1301,
+ "y": 788,
+ "level": 169,
+ "amplitude": 1,
+ "phase_rad": -2.0943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1051,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1308,
+ "y": 787,
+ "level": 146,
+ "amplitude": 1,
+ "phase_rad": 2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 539,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1311,
+ "y": 788,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": -2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 854,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1134,
+ "y": 794,
+ "level": 153,
+ "amplitude": 1,
+ "phase_rad": -1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1334,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1138,
+ "y": 794,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": 0.034906585039886591,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 931,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1145,
+ "y": 788,
+ "level": 138,
+ "amplitude": 1,
+ "phase_rad": -3.1066860685499069,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1277,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1151,
+ "y": 794,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": 0.95993108859688125,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1391,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1156,
+ "y": 791,
+ "level": 148,
+ "amplitude": 1,
+ "phase_rad": -1.2217304763960306,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 5,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1160,
+ "y": 791,
+ "level": 130,
+ "amplitude": 1,
+ "phase_rad": -0.78539816339744828,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1891,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1165,
+ "y": 794,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": 1.6580627893946132,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1883,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1173,
+ "y": 792,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": -3.0892327760299634,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1613,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1182,
+ "y": 790,
+ "level": 138,
+ "amplitude": 1,
+ "phase_rad": 1.2740903539558606,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1563,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1187,
+ "y": 791,
+ "level": 145,
+ "amplitude": 1,
+ "phase_rad": -1.6231562043547263,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 946,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1192,
+ "y": 791,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": -0.48869219055841234,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1651,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1196,
+ "y": 791,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": -1.7104226669544429,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 673,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1201,
+ "y": 792,
+ "level": 128,
+ "amplitude": 1,
+ "phase_rad": 0.38397243543875248,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 570,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1211,
+ "y": 793,
+ "level": 153,
+ "amplitude": 1,
+ "phase_rad": -2.740166925631097,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 338,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1212,
+ "y": 791,
+ "level": 151,
+ "amplitude": 1,
+ "phase_rad": 2.1816615649929116,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1531,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1219,
+ "y": 789,
+ "level": 166,
+ "amplitude": 1,
+ "phase_rad": 0.13962634015954636,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 303,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1229,
+ "y": 788,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": 2.5307274153917776,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 552,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1235,
+ "y": 793,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": 2.740166925631097,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1221,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1242,
+ "y": 791,
+ "level": 127,
+ "amplitude": 1,
+ "phase_rad": 1.0995574287564276,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1098,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1243,
+ "y": 789,
+ "level": 165,
+ "amplitude": 1,
+ "phase_rad": -0.50614548307835561,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1907,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1248,
+ "y": 794,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": -2.6703537555513241,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 736,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1255,
+ "y": 794,
+ "level": 133,
+ "amplitude": 1,
+ "phase_rad": 0.99483767363676789,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1223,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1260,
+ "y": 793,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": -2.6529004630313806,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1069,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1267,
+ "y": 793,
+ "level": 134,
+ "amplitude": 1,
+ "phase_rad": -1.3613568165555767,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1094,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1278,
+ "y": 794,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": -0.29670597283903605,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 415,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1282,
+ "y": 790,
+ "level": 170,
+ "amplitude": 1,
+ "phase_rad": -1.2740903539558606,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1079,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1290,
+ "y": 791,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": 0.43633231299858238,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 115,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1295,
+ "y": 792,
+ "level": 171,
+ "amplitude": 1,
+ "phase_rad": 0.20943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 226,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1301,
+ "y": 792,
+ "level": 132,
+ "amplitude": 1,
+ "phase_rad": -1.0995574287564276,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1033,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1303,
+ "y": 793,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": -2.2689280275926285,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 646,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1311,
+ "y": 788,
+ "level": 147,
+ "amplitude": 1,
+ "phase_rad": 2.3387411976724013,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1956,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1129,
+ "y": 796,
+ "level": 175,
+ "amplitude": 1,
+ "phase_rad": 2.3212879051524582,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1426,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1139,
+ "y": 794,
+ "level": 176,
+ "amplitude": 1,
+ "phase_rad": -2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1286,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1144,
+ "y": 796,
+ "level": 129,
+ "amplitude": 1,
+ "phase_rad": -3.01941960595019,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1433,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1149,
+ "y": 800,
+ "level": 163,
+ "amplitude": 1,
+ "phase_rad": -2.0594885173533086,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1489,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1154,
+ "y": 798,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": 2.7576202181510405,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1969,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1164,
+ "y": 796,
+ "level": 162,
+ "amplitude": 1,
+ "phase_rad": 2.9845130209103035,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 185,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1170,
+ "y": 794,
+ "level": 149,
+ "amplitude": 1,
+ "phase_rad": 0.57595865315812877,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1710,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1173,
+ "y": 799,
+ "level": 179,
+ "amplitude": 1,
+ "phase_rad": 2.0245819323134224,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 651,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1180,
+ "y": 799,
+ "level": 125,
+ "amplitude": 1,
+ "phase_rad": 1.1344640137963142,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1831,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1187,
+ "y": 798,
+ "level": 121,
+ "amplitude": 1,
+ "phase_rad": -0.48869219055841234,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1535,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1191,
+ "y": 796,
+ "level": 137,
+ "amplitude": 1,
+ "phase_rad": -2.3561944901923448,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1276,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1197,
+ "y": 794,
+ "level": 179,
+ "amplitude": 1,
+ "phase_rad": 2.4085543677521746,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1584,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1203,
+ "y": 796,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": -2.9845130209103035,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1363,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1209,
+ "y": 800,
+ "level": 154,
+ "amplitude": 1,
+ "phase_rad": -2.0943951023931953,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 547,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1217,
+ "y": 800,
+ "level": 173,
+ "amplitude": 1,
+ "phase_rad": 2.1816615649929116,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 89,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1222,
+ "y": 798,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": -3.01941960595019,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 304,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1226,
+ "y": 796,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": -1.8500490071139892,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1144,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1234,
+ "y": 799,
+ "level": 141,
+ "amplitude": 1,
+ "phase_rad": 2.8448866807507569,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 684,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1238,
+ "y": 799,
+ "level": 126,
+ "amplitude": 1,
+ "phase_rad": -2.9670597283903604,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1724,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1244,
+ "y": 799,
+ "level": 123,
+ "amplitude": 1,
+ "phase_rad": 3.1415926535897931,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 704,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1254,
+ "y": 794,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": -2.1991148575128552,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1950,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1258,
+ "y": 796,
+ "level": 146,
+ "amplitude": 1,
+ "phase_rad": -2.6354471705114375,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 27,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1266,
+ "y": 797,
+ "level": 177,
+ "amplitude": 1,
+ "phase_rad": 1.4486232791552935,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 914,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1267,
+ "y": 794,
+ "level": 165,
+ "amplitude": 1,
+ "phase_rad": -0.29670597283903605,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 46,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1277,
+ "y": 797,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": 2.0420352248333655,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1836,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1284,
+ "y": 799,
+ "level": 172,
+ "amplitude": 1,
+ "phase_rad": 3.0543261909900763,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1499,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1289,
+ "y": 797,
+ "level": 156,
+ "amplitude": 1,
+ "phase_rad": 1.064650843716541,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 455,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1292,
+ "y": 797,
+ "level": 127,
+ "amplitude": 1,
+ "phase_rad": -1.6929693744344996,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1993,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1297,
+ "y": 796,
+ "level": 136,
+ "amplitude": 1,
+ "phase_rad": 2.7750735106709841,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 853,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1308,
+ "y": 799,
+ "level": 142,
+ "amplitude": 1,
+ "phase_rad": 0.43633231299858238,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1388,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ },
+ {
+ "x": 1309,
+ "y": 794,
+ "level": 157,
+ "amplitude": 1,
+ "phase_rad": 3.0019663134302466,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 8,
+ "off_width_cycles": 1077,
+ "off_width_base": 1000,
+ "randomize_off_width_amount": 998,
+ "detach_after_step": -1
+ }
+ ]
+ }
+ ]
+ },
+ "description": "Featuring a large (900+ composite) source that creates both spatially- as well as temporally incoherent wave emission "
+}
diff --git a/Wave_Dude_Examples/Example9_Directional_pulsed_source/configuration.json b/Wave_Dude_Examples/Example9_Directional_pulsed_source/configuration.json
new file mode 100644
index 0000000..f8a7781
--- /dev/null
+++ b/Wave_Dude_Examples/Example9_Directional_pulsed_source/configuration.json
@@ -0,0 +1,3359 @@
+{
+ "format_version": 1,
+ "project_name": "Example9_Directional_pulsed_source",
+ "created": "2026-10-01T03:51:53Z",
+ "modified": "2026-10-02T13:00:59Z",
+ "scene": {
+ "mode": "user_defined",
+ "image_file": "scene_images/prism2_large.png",
+ "user_width": 1920,
+ "user_height": 1080,
+ "damping_edge_enabled": true,
+ "damping_edge_size_px": 64,
+ "use_sources": false,
+ "image_source_scale": 1,
+ "use_object_sources": true,
+ "background_refractive_index": 1
+ },
+ "simulation": {
+ "steps": 10000,
+ "visualize_every": 1,
+ "export_field": false,
+ "export_intensity": false,
+ "preview_field": true,
+ "preview_intensity": true,
+ "field_color_scheme": "Default_Field",
+ "intensity_color_scheme": "Default_intensity",
+ "field_brightness": 4,
+ "intensity_brightness": 8,
+ "field_black_level": -0.05,
+ "intensity_black_level": 0,
+ "source_frequency_scale": 2,
+ "video_fps": 60,
+ "video_quality": 70,
+ "use_gpu": true,
+ "use_4th_order_laplacian": true,
+ "wave_speed_c": 1,
+ "time_decay_factor": 7,
+ "intensity_scale": 1
+ },
+ "probes": {
+ "count": 2,
+ "items": [
+ {
+ "active": true,
+ "place_on": "field",
+ "measurement": "amplitude",
+ "probe_type": "point",
+ "ax": 1401,
+ "ay": 540,
+ "bx": 300,
+ "by": 100,
+ "box_size": "extra_large",
+ "box_x": 21,
+ "box_y": 21,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ },
+ {
+ "active": true,
+ "place_on": "intensity",
+ "measurement": "intensity",
+ "probe_type": "point",
+ "ax": 1425,
+ "ay": 540,
+ "bx": 300,
+ "by": 100,
+ "box_size": "extra_large",
+ "box_x": 21,
+ "box_y": 23,
+ "scale_mode": "running",
+ "auto_scale_x": true,
+ "auto_scale_y": true,
+ "y_min": -1,
+ "y_max": 1,
+ "running_window": 500,
+ "use_start_after_step": false,
+ "start_after_step": 0
+ }
+ ]
+ },
+ "object_sources": {
+ "count": 1,
+ "items": [
+ {
+ "name": "Source 1",
+ "main_type": "composite",
+ "x": 402,
+ "y": 542,
+ "has_position": true,
+ "source_on": true,
+ "detach_source": false,
+ "detach_after_steps": 1000,
+ "frequency": 100,
+ "amplitude": 70,
+ "phase_deg": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "pulse_width_cycles": 10,
+ "off_state_cycles": 4,
+ "array_size_x": 21,
+ "array_size_y": 11,
+ "spacing_x": 16,
+ "spacing_y": 8,
+ "composite_mode": "inherit",
+ "randomize_frequency": false,
+ "randomize_frequency_amount": 0,
+ "randomize_phase": false,
+ "randomize_phase_amount": 0,
+ "randomize_off_width": false,
+ "randomize_off_width_amount": 0,
+ "randomize_position": false,
+ "randomize_position_amount": 0,
+ "elements": [
+ {
+ "x": 242,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 258,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 290,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 322,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 354,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 386,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 418,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 482,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 514,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 546,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 502,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 258,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 290,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 322,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 354,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 386,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 418,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 482,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 514,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 546,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 510,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 258,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 290,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 322,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 354,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 386,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 418,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 482,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 514,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 546,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 518,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 258,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 290,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 322,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 354,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 386,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 418,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 482,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 514,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 546,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 526,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 258,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 290,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 322,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 354,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 386,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 418,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 482,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 514,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 546,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 534,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 258,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 290,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 322,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 354,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 386,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 418,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 482,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 514,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 546,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 542,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 258,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 290,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 322,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 354,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 386,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 418,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 482,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 514,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 546,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 550,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 258,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 290,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 322,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 354,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 386,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 418,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 482,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 514,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 546,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 558,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 258,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 290,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 322,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 354,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 386,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 418,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 482,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 514,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 546,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 566,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 258,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 290,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 322,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 354,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 386,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 418,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 482,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 514,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 546,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 574,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 242,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 258,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 274,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 290,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 306,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 322,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 338,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 354,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 370,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 386,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 402,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 418,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 434,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 450,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 466,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 482,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 498,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 514,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 530,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 546,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ },
+ {
+ "x": 562,
+ "y": 582,
+ "level": 100,
+ "amplitude": 0.7,
+ "phase_rad": 0,
+ "mode": "pulsed",
+ "pulse_shape": "gaussian",
+ "on_width_cycles": 10,
+ "off_width_cycles": 4,
+ "off_width_base": 4,
+ "randomize_off_width_amount": 0,
+ "detach_after_step": -1
+ }
+ ]
+ }
+ ]
+ },
+ "description": "Featuring a coherent pulsed assembly of sources that emits a directional stream of wave pulses."
+}
diff --git a/Wave_Dude_Examples/Example9_Directional_pulsed_source/scene_images/prism.png b/Wave_Dude_Examples/Example9_Directional_pulsed_source/scene_images/prism.png
new file mode 100644
index 0000000..fbde497
Binary files /dev/null and b/Wave_Dude_Examples/Example9_Directional_pulsed_source/scene_images/prism.png differ
diff --git a/Wave_Dude_Examples/Example9_Directional_pulsed_source/scene_images/prism2.png b/Wave_Dude_Examples/Example9_Directional_pulsed_source/scene_images/prism2.png
new file mode 100644
index 0000000..f9b5c31
Binary files /dev/null and b/Wave_Dude_Examples/Example9_Directional_pulsed_source/scene_images/prism2.png differ
diff --git a/Wave_Dude_Examples/Example9_Directional_pulsed_source/scene_images/prism2_large.png b/Wave_Dude_Examples/Example9_Directional_pulsed_source/scene_images/prism2_large.png
new file mode 100644
index 0000000..91afdd1
Binary files /dev/null and b/Wave_Dude_Examples/Example9_Directional_pulsed_source/scene_images/prism2_large.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/Ball_lens.png b/Wave_Dude_Examples/Scene_example_images/Ball_lens.png
new file mode 100644
index 0000000..b2e6130
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/Ball_lens.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/Ball_lens_high_RI.png b/Wave_Dude_Examples/Scene_example_images/Ball_lens_high_RI.png
new file mode 100644
index 0000000..d4bf02f
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/Ball_lens_high_RI.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/Ball_lens_high_RI_AR.png b/Wave_Dude_Examples/Scene_example_images/Ball_lens_high_RI_AR.png
new file mode 100644
index 0000000..0bc55e9
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/Ball_lens_high_RI_AR.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/Double_slit_narrow_spacing.png b/Wave_Dude_Examples/Scene_example_images/Double_slit_narrow_spacing.png
new file mode 100644
index 0000000..55ffd4e
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/Double_slit_narrow_spacing.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/Single_slit_wide.png b/Wave_Dude_Examples/Scene_example_images/Single_slit_wide.png
new file mode 100644
index 0000000..e832a2b
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/Single_slit_wide.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/cavity_highRI_angle.png b/Wave_Dude_Examples/Scene_example_images/cavity_highRI_angle.png
new file mode 100644
index 0000000..401bb2d
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/cavity_highRI_angle.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/double_slit.png b/Wave_Dude_Examples/Scene_example_images/double_slit.png
new file mode 100644
index 0000000..2d7fbd1
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/double_slit.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/double_slit_wide.png b/Wave_Dude_Examples/Scene_example_images/double_slit_wide.png
new file mode 100644
index 0000000..1191724
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/double_slit_wide.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/frequency_race_track (2).png b/Wave_Dude_Examples/Scene_example_images/frequency_race_track (2).png
new file mode 100644
index 0000000..2b07333
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/frequency_race_track (2).png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/lens_bi_CX.png b/Wave_Dude_Examples/Scene_example_images/lens_bi_CX.png
new file mode 100644
index 0000000..f678297
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/lens_bi_CX.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/lens_high_RI.png b/Wave_Dude_Examples/Scene_example_images/lens_high_RI.png
new file mode 100644
index 0000000..b92e468
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/lens_high_RI.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/lens_high_RI_AR.png b/Wave_Dude_Examples/Scene_example_images/lens_high_RI_AR.png
new file mode 100644
index 0000000..ba7a8fa
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/lens_high_RI_AR.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/lens_high_RI_fast_AR.png b/Wave_Dude_Examples/Scene_example_images/lens_high_RI_fast_AR.png
new file mode 100644
index 0000000..8e50ad7
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/lens_high_RI_fast_AR.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/lens_in_holder.png b/Wave_Dude_Examples/Scene_example_images/lens_in_holder.png
new file mode 100644
index 0000000..bb2e90d
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/lens_in_holder.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/lens_med_RI_fast_AR.png b/Wave_Dude_Examples/Scene_example_images/lens_med_RI_fast_AR.png
new file mode 100644
index 0000000..9724fe3
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/lens_med_RI_fast_AR.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/mirror_beam_splitter_no_shield_no_lens.png b/Wave_Dude_Examples/Scene_example_images/mirror_beam_splitter_no_shield_no_lens.png
new file mode 100644
index 0000000..317dbec
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/mirror_beam_splitter_no_shield_no_lens.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/objects_V01.png b/Wave_Dude_Examples/Scene_example_images/objects_V01.png
new file mode 100644
index 0000000..3dd605c
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/objects_V01.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/prism.png b/Wave_Dude_Examples/Scene_example_images/prism.png
new file mode 100644
index 0000000..80d6ead
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/prism.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/prism_AR.png b/Wave_Dude_Examples/Scene_example_images/prism_AR.png
new file mode 100644
index 0000000..354705d
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/prism_AR.png differ
diff --git a/Wave_Dude_Examples/Scene_example_images/scene_optical_fibers.png b/Wave_Dude_Examples/Scene_example_images/scene_optical_fibers.png
new file mode 100644
index 0000000..2bcff1f
Binary files /dev/null and b/Wave_Dude_Examples/Scene_example_images/scene_optical_fibers.png differ
diff --git a/Wave_Dude_Examples/readme.txt.txt b/Wave_Dude_Examples/readme.txt.txt
new file mode 100644
index 0000000..53e8ec4
--- /dev/null
+++ b/Wave_Dude_Examples/readme.txt.txt
@@ -0,0 +1,15 @@
+Wave_Dude_2D Example projects V01
+
+To install the project, copy the folders to the Project Root folder set in the Wave Dude 2D app (using the file menu or pick/browse root buttons. You might have to click to another tab or restart the app to make the installed projects visible.
+
+THe Zip file also contains a folder named "Scene_example_images". This folder contains a set of scenes that can be used in any project.
+
+About Scene Images
+Currently, scene images can only be created externally in a program like for example Photoshop. Save the images in a lossless format like .png. To add objects to a scene that the waves can interact with, you can use the red and green channels in the image color palette:
+
+ - Red channel (Refractive index): can effectively use values ranging from 100 to 255, which represent refractive index values ranging from 1.00 to 2.55. Values lower than 100 will be set to 100 as a minimum. The red channel can be used to refract or reflect waves and create for example lenses.
+ - Blue channel (Damping): reserved for damping - use values between 0 and 255, where zero means no damping and 255 heavy damping. It can be used to create regions that absorb waves like for example borders.
+ - Green channel (Sources): reserved for creating wave sources, where the values 1-255 represent the frequency of the waves emitted by a pixel. If you use in-scene sources, do not use anti-aliasing to create them since this can cause the pixels next to a source to also contain a (lower) value in the green channel. When you want to use in-image sources, you must have 'use image sources' checked in the setup tab.
+
+More info on the app can be found in the main menu under Info > Help or watch the explainer video on Youtube: https://youtu.be/yC2tx5x6vOY
+
diff --git a/_tools/library_check/LibraryCheck.csproj b/_tools/library_check/LibraryCheck.csproj
new file mode 100644
index 0000000..52a6c17
--- /dev/null
+++ b/_tools/library_check/LibraryCheck.csproj
@@ -0,0 +1,17 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <!-- Verification harness for the WaveDude library (engines, probes, rendering, frame store, run driver).
+ Not part of the solution; run with "dotnet run" on this project (Release) -->
+ <PropertyGroup>
+ <OutputType>Exe</OutputType>
+ <TargetFramework>net10.0</TargetFramework>
+ <ImplicitUsings>enable</ImplicitUsings>
+ <Nullable>enable</Nullable>
+ <RootNamespace>LibraryCheck</RootNamespace>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <ProjectReference Include="..\..\WaveDude\WaveDude.csproj" />
+ </ItemGroup>
+
+</Project>
diff --git a/_tools/library_check/Program.cs b/_tools/library_check/Program.cs
new file mode 100644
index 0000000..9b4fba6
--- /dev/null
+++ b/_tools/library_check/Program.cs
@@ -0,0 +1,683 @@
+using System.Diagnostics;
+using NLog;
+using WaveDude.Engine;
+using WaveDude.Model;
+using WaveDude.Probes;
+using WaveDude.Rendering;
+using WaveDude.Runs;
+
+namespace LibraryCheck;
+
+// Drives the library end to end: CPU and (if available) GPU engines over the same scene and compares their
+// fields, seed determinism, the model-to-emitter mapping, the frame store, the renderer, the colour scheme
+// files and a headless run. Exit code 0 = all checks passed.
+internal static class Program
+{
+ private static int _failures;
+
+ private static void Check(bool ok, string what)
+ {
+ Console.WriteLine((ok ? " ok " : " FAIL ") + what);
+ if (!ok)
+ {
+ _failures++;
+ }
+ }
+
+ private static Emitter Make(int x, int y, int level, double amplitude, SourceMode mode = SourceMode.Continuous, PulseShape shape = PulseShape.Gaussian,
+ double phase = 0, int onWidth = 10, int offWidth = 10, int detach = -1, int randomize = 0, uint seed = 1) => new()
+ {
+ X = x, Y = y, Level = level, Amplitude = amplitude, PhaseRadians = phase, Mode = mode, PulseShape = shape,
+ OnWidthCycles = onWidth, OffWidthCycles = offWidth, OffWidthBase = offWidth, RandomizeOffWidthAmount = randomize, DetachAfterStep = detach, RngSeed = seed,
+ };
+
+ private static List<Emitter> Sources() =>
+ [
+ Make(20, 24, 120, 1.0),
+ Make(44, 12, 200, 0.7, SourceMode.Pulsed, PulseShape.Gaussian, phase: 0.5, onWidth: 4, offWidth: 6),
+ Make(44, 36, 90, 0.5, SourceMode.Pulsed, PulseShape.SmoothedSquare, onWidth: 5, offWidth: 3, detach: 120),
+ Make(99, 99, 50, 9.0), // outside: must be dropped
+ ];
+
+ private static float MaxAbs(ReadOnlySpan<float> a)
+ {
+ float m = 0f;
+ foreach (float v in a)
+ {
+ m = Math.Max(m, Math.Abs(v));
+ }
+ return m;
+ }
+
+ private static float MaxDiff(ReadOnlySpan<float> a, ReadOnlySpan<float> b)
+ {
+ float m = 0f;
+ for (int i = 0; i < a.Length; i++)
+ {
+ m = Math.Max(m, Math.Abs(a[i] - b[i]));
+ }
+ return m;
+ }
+
+ private static float MaxDiff(float[]?[] a, float[]?[] b)
+ {
+ float m = 0f;
+ for (int i = 0; i < a.Length; i++)
+ {
+ if (a[i] == null || b[i] == null)
+ {
+ if (a[i] != b[i])
+ {
+ return float.PositiveInfinity;
+ }
+ continue;
+ }
+ if (a[i]!.Length != b[i]!.Length)
+ {
+ return float.PositiveInfinity;
+ }
+ m = Math.Max(m, MaxDiff(a[i], b[i]));
+ }
+ return m;
+ }
+
+ private static ProbeSampler Probes(int w, int h) => ProbeSampler.Build(
+ [
+ new ProbeSpec("A", ProbeKind.Point, ProbeMeasurement.Amplitude, 20, 24, 0, 0, 0),
+ new ProbeSpec("B", ProbeKind.Line, ProbeMeasurement.IntegratedIntensity, 5, 5, 40, 30, 50),
+ new ProbeSpec("C", ProbeKind.Point, ProbeMeasurement.Intensity, 30, 20, 0, 0, 0),
+ ], w, h);
+
+ private static void Run(IWaveEngine engine, int steps)
+ {
+ for (int i = 0; i < steps; i++)
+ {
+ engine.AdvanceOneStep();
+ engine.SampleProbes();
+ }
+ engine.PrepareFrame(true, true);
+ }
+
+ /// <summary>A 64×48 BGRA scene: refractive index 1.00 everywhere, one green source pixel at (10, 10).</summary>
+ private static (byte[] Bgra, int Stride) ScenePixels(int w, int h)
+ {
+ int stride = w * 4 + 8; // deliberately padded rows
+ byte[] bgra = new byte[stride * h];
+ for (int y = 0; y < h; y++)
+ {
+ for (int x = 0; x < w; x++)
+ {
+ bgra[y * stride + x * 4 + 2] = 100; // R
+ bgra[y * stride + x * 4 + 3] = 255; // A
+ }
+ }
+ bgra[10 * stride + 10 * 4 + 1] = 160; // G at (10, 10)
+ return (bgra, stride);
+ }
+
+ private static int Main(string[] args)
+ {
+ LogManager.Setup().LoadConfiguration(c => c.ForLogger().FilterMinLevel(LogLevel.Info).WriteToConsole(layout: " log ${level}: ${message}"));
+ if (args.Length > 0 && args[0] == "bench")
+ {
+ Bench(args.Length > 1 ? int.Parse(args[1]) : 1920, args.Length > 2 ? int.Parse(args[2]) : 1080);
+ return 0;
+ }
+ const int W = 64, H = 48, Steps = 200;
+ (byte[] bgra, int stride) = ScenePixels(W, H);
+ SceneData scene = SceneData.FromBgra(bgra, W, H, stride, true, 6);
+ Check(scene.SourceCount == 1 && scene.SourceX[0] == 10 && scene.SourceLevel[0] == 160, "scene from BGRA has 1 image source at (10, 10) level 160");
+ Check(SceneData.CountSources(bgra, W, H, stride) == 1, "CountSources agrees");
+ Check(Math.Abs(scene.C2[0] - 1f) < 1e-6f && scene.D[0] == 0f && scene.D[7 * W + 7] == 1f, "c² = 1, damping edge of 6 (corner 0, inside 1)");
+
+ CheckEngines(scene, W, H, Steps);
+ CheckCaptureResetEmitters(scene, W, H);
+ CheckDeterminism(scene);
+ CheckEmitterMapping();
+ CheckFrameStore(scene);
+ CheckRenderer();
+ CheckColorSchemes();
+ CheckRun();
+
+ Console.WriteLine(_failures == 0 ? "LIBRARY OK" : _failures + " check(s) failed");
+ return _failures == 0 ? 0 : 1;
+ }
+
+ /// <summary>"bench [w h]": what a step costs on each engine at that size, pure stepping and with a frame readback every 2 steps.</summary>
+ private static void Bench(int w, int h)
+ {
+ Console.WriteLine($"--- bench {w}x{h}");
+ SceneData scene = SceneData.Empty(w, h, 64);
+ List<Emitter> emitters = [Make(w / 3, h / 2, 120, 1.0), Make(2 * w / 3, h / 3, 200, 0.7, SourceMode.Pulsed, onWidth: 4, offWidth: 6)];
+ foreach (bool fourth in new[] { false, true })
+ {
+ var options = new EngineOptions(2.0, 1.0, true, fourth, 10.0, 1.0);
+ var clock = Stopwatch.StartNew();
+ GpuWaveSimulator? gpu = GpuWaveSimulator.TryCreate(scene, options, emitters, out string problems);
+ Console.WriteLine($" GPU engine build (4th order {fourth}): {clock.ElapsedMilliseconds} ms{(gpu == null ? ", " + problems : "")}");
+ if (gpu != null)
+ {
+ using (gpu)
+ {
+ Time(gpu, "GPU", 300, fourth);
+ }
+ }
+ if (fourth)
+ {
+ continue;
+ }
+ int cpuSteps = (long)w * h > 500_000 ? 40 : 300;
+ clock.Restart();
+ var cpu = new WaveSimulator(scene, options, emitters);
+ Console.WriteLine($" CPU engine build: {clock.ElapsedMilliseconds} ms");
+ Time(cpu, "CPU", cpuSteps, fourth);
+ }
+ }
+
+ private static void Time(IWaveEngine engine, string name, int steps, bool fourth)
+ {
+ for (int i = 0; i < 5; i++)
+ {
+ engine.AdvanceOneStep();
+ }
+ engine.PrepareFrame(true, true);
+ var clock = Stopwatch.StartNew();
+ for (int i = 0; i < steps; i++)
+ {
+ engine.AdvanceOneStep();
+ }
+ engine.PrepareFrame(true, false);
+ double pure = clock.Elapsed.TotalMilliseconds / steps;
+ clock.Restart();
+ for (int i = 0; i < steps; i++)
+ {
+ engine.AdvanceOneStep();
+ if (i % 2 == 0)
+ {
+ engine.PrepareFrame(true, true);
+ }
+ }
+ double withReadback = clock.Elapsed.TotalMilliseconds / steps;
+ // the run's pattern: capture into a pool of snapshots, await one frame late
+ var snapshots = new[] { new FrameSnapshot(engine.Width, engine.Height, true), new FrameSnapshot(engine.Width, engine.Height, true), new FrameSnapshot(engine.Width, engine.Height, true) };
+ int next = 0;
+ clock.Restart();
+ for (int i = 0; i < steps; i++)
+ {
+ engine.AdvanceOneStep();
+ if (i % 2 == 0)
+ {
+ FrameSnapshot s = snapshots[next];
+ next = (next + 1) % snapshots.Length;
+ engine.AwaitFrame(s);
+ engine.CaptureFrame(s, true);
+ }
+ }
+ foreach (FrameSnapshot s in snapshots)
+ {
+ engine.AwaitFrame(s);
+ }
+ double withCapture = clock.Elapsed.TotalMilliseconds / steps;
+ Console.WriteLine($" {name} 4th order {fourth}: {pure:0.00} ms/step pure, {withReadback:0.00} ms/step with both planes read back every 2 steps, {withCapture:0.00} ms/step with pipelined half captures every 2 steps ({steps} steps)");
+ }
+
+ private static void CheckEngines(SceneData scene, int W, int H, int Steps)
+ {
+ foreach (bool fourth in new[] { false, true })
+ {
+ Console.WriteLine("--- engines, 4th order: " + fourth);
+ var options = new EngineOptions(1.0, 1.0, true, fourth, 10.0, 1.0);
+ var cpu = new WaveSimulator(scene, options, Sources());
+ cpu.SetProbes(Probes(W, H));
+ Run(cpu, Steps);
+ float[] cpuField = (float[])cpu.FieldData.Clone();
+ float[] cpuInten = (float[])cpu.IntensityData!.Clone();
+ float[][] cpuSamples = cpu.TakeProbeSamples();
+ float[]?[] cpuProfiles = cpu.ReadProbeProfiles();
+ Check(cpuSamples[0].Length == Steps && cpuSamples[2].Length == Steps && cpuSamples[1].Length == 0, "CPU point probes have one sample per step");
+ Check(cpuProfiles[1] != null && cpuProfiles[1]!.Length > 30 && MaxAbs(cpuProfiles[1]) > 0f, "CPU integrated line profile populated");
+ Check(cpu.TakeProbeSamples()[0].Length == 0, "CPU TakeProbeSamples clears");
+ Check(MaxAbs(cpuField) > 0.01f, "CPU field is non-trivial (max |u| = " + MaxAbs(cpuField) + ")");
+ Check(MaxAbs(cpuInten) > 0f, "CPU intensity accumulated");
+ Check(Math.Abs(cpu.Time - Steps) < 1e-9, "CPU time counts steps");
+ bool borderZero = true;
+ for (int x = 0; x < cpu.Stride; x++)
+ {
+ borderZero &= cpuField[x] == 0f && cpuField[(H + 1) * cpu.Stride + x] == 0f;
+ }
+ Check(borderZero, "CPU padding rows untouched");
+
+ GpuWaveSimulator? gpu = GpuWaveSimulator.TryCreate(scene, options, Sources(), out string problems);
+ if (gpu == null)
+ {
+ Console.WriteLine(" skip GPU: " + problems);
+ continue;
+ }
+ using (gpu)
+ {
+ Console.WriteLine(" " + gpu.Description);
+ gpu.SetProbes(Probes(W, H));
+ Run(gpu, Steps);
+ float diffField = MaxDiff(cpuField, gpu.FieldData);
+ float diffInten = MaxDiff(cpuInten, gpu.IntensityData!);
+ Check(diffField < 1e-3f * Math.Max(1f, MaxAbs(cpuField)), "GPU field matches CPU (max diff " + diffField + ")");
+ Check(diffInten < 1e-3f * Math.Max(1f, MaxAbs(cpuInten)), "GPU intensity matches CPU (max diff " + diffInten + ")");
+ float[][] gpuSamples = gpu.TakeProbeSamples();
+ float[]?[] gpuProfiles = gpu.ReadProbeProfiles();
+ float diffSamples = MaxDiff(cpuSamples, gpuSamples);
+ float diffProfiles = MaxDiff(cpuProfiles, gpuProfiles);
+ Check(diffSamples < 1e-3f, "GPU point-probe samples match CPU (max diff " + diffSamples + ")");
+ Check(diffProfiles < 1e-3f * Math.Max(1f, MaxAbs(cpuProfiles[1])), "GPU line profile matches CPU (max diff " + diffProfiles + ")");
+ gpu.SetProbes(Probes(W, H));
+ Run(gpu, 10);
+ Check(gpu.TakeProbeSamples()[0].Length == 10, "GPU probes re-installed and sampling again");
+ gpu.SetProbes(null);
+ Check(gpu.TakeProbeSamples().Length == 0 && gpu.ReadProbeProfiles().Length == 0, "GPU: probes cleared -> empty results");
+ gpu.Dispose();
+ gpu.Dispose();
+ Check(true, "GPU double dispose is harmless");
+ }
+ }
+ Console.WriteLine("--- factory");
+ IWaveEngine fallback = WaveEngineFactory.Create(scene, new EngineOptions(1.0, 1.0, false, false, 10.0, 1.0), false, null, out string note);
+ Check(fallback is WaveSimulator && note == "" && fallback.IntensityData == null, "factory gives the CPU engine without intensity when asked");
+ (fallback as IDisposable)?.Dispose();
+ }
+
+ private static float MaxDiff(ReadOnlySpan<float> padded, int stride, int w, int h, Half[] plane)
+ {
+ float m = 0f;
+ for (int y = 0; y < h; y++)
+ {
+ for (int x = 0; x < w; x++)
+ {
+ m = Math.Max(m, Math.Abs(padded[(y + 1) * stride + x + 1] - (float)plane[y * w + x]));
+ }
+ }
+ return m;
+ }
+
+ /// <summary>CaptureFrame/AwaitFrame, Reset and SetEmitters on both engines, and a deferred await (the pipeline's pattern).</summary>
+ private static void CheckCaptureResetEmitters(SceneData scene, int W, int H)
+ {
+ Console.WriteLine("--- capture, reset, emitters");
+ var options = new EngineOptions(1.0, 1.0, true, false, 10.0, 1.0);
+ List<Emitter> moved = [Make(30, 30, 120, 1.0), Make(44, 12, 200, 0.7, SourceMode.Pulsed, PulseShape.Gaussian, phase: 0.5, onWidth: 4, offWidth: 6)];
+ var reference = new WaveSimulator(scene, options, Sources());
+ Run(reference, 100);
+ float[] at100 = (float[])reference.FieldData.Clone();
+ float[] inten100 = (float[])reference.IntensityData!.Clone();
+ Run(reference, 50);
+ float[] at150 = (float[])reference.FieldData.Clone();
+ var movedReference = new WaveSimulator(scene, options, moved);
+ Run(movedReference, 100);
+ float[] movedAt100 = (float[])movedReference.FieldData.Clone();
+ Check(MaxDiff(at100, movedAt100) > 1e-3f, "moving a source changes the field (reference)");
+
+ GpuWaveSimulator? gpu = GpuWaveSimulator.TryCreate(scene, options, Sources(), out string problems);
+ if (gpu == null)
+ {
+ Console.WriteLine(" skip GPU: " + problems);
+ }
+ foreach ((IWaveEngine engine, string name) in new (IWaveEngine, string)[] { (new WaveSimulator(scene, options, Sources()), "CPU"), (gpu!, "GPU") })
+ {
+ if (engine == null)
+ {
+ continue;
+ }
+ var a = new FrameSnapshot(W, H, true);
+ var b = new FrameSnapshot(W, H, true);
+ Run(engine, 100);
+ engine.CaptureFrame(a, true);
+ // keep stepping before awaiting: the capture must still show step 100
+ Run(engine, 50);
+ engine.CaptureFrame(b, false);
+ engine.AwaitFrame(a);
+ engine.AwaitFrame(b);
+ float tolerance = 2e-3f * Math.Max(1f, MaxAbs(at100));
+ Check(a.HasIntensity && !b.HasIntensity, name + ": intensity captured only when asked");
+ Check(MaxDiff(at100, engine.Stride, W, H, a.Field) < tolerance, name + ": deferred capture holds the field of its step (max diff " + MaxDiff(at100, engine.Stride, W, H, a.Field) + ")");
+ Check(MaxDiff(inten100, engine.Stride, W, H, a.Intensity!) < 2e-3f * Math.Max(1f, MaxAbs(inten100)), name + ": captured intensity matches");
+ Check(MaxDiff(at150, engine.Stride, W, H, b.Field) < tolerance, name + ": second capture holds the later step");
+ engine.Reset();
+ engine.CaptureFrame(a, true);
+ engine.AwaitFrame(a);
+ Check(MaxAbs(a.Field.Select(h => (float)h).ToArray()) == 0f && MaxAbs(a.Intensity!.Select(h => (float)h).ToArray()) == 0f, name + ": reset clears field and intensity");
+ Run(engine, 100);
+ engine.CaptureFrame(a, false);
+ engine.AwaitFrame(a);
+ Check(MaxDiff(at100, engine.Stride, W, H, a.Field) < tolerance, name + ": after reset the run reproduces (max diff " + MaxDiff(at100, engine.Stride, W, H, a.Field) + ")");
+ engine.Reset();
+ engine.SetEmitters(moved);
+ Run(engine, 100);
+ engine.CaptureFrame(a, false);
+ engine.AwaitFrame(a);
+ Check(MaxDiff(movedAt100, engine.Stride, W, H, a.Field) < tolerance, name + ": replaced emitters give the moved reference's field (max diff " + MaxDiff(movedAt100, engine.Stride, W, H, a.Field) + ")");
+ engine.Reset();
+ engine.SetEmitters(Sources());
+ Run(engine, 100);
+ engine.CaptureFrame(a, false);
+ engine.AwaitFrame(a);
+ Check(MaxDiff(at100, engine.Stride, W, H, a.Field) < tolerance, name + ": emitters restored, original field again");
+ (engine as IDisposable)?.Dispose();
+ }
+ }
+
+ private static float[] RunCpu(SceneData scene, List<Emitter> emitters, int steps)
+ {
+ var cpu = new WaveSimulator(scene, new EngineOptions(1.0, 1.0, false, false, 10.0, 1.0), emitters);
+ Run(cpu, steps);
+ return (float[])cpu.FieldData.Clone();
+ }
+
+ private static void CheckDeterminism(SceneData scene)
+ {
+ Console.WriteLine("--- determinism");
+ Source Randomized(int seed)
+ {
+ var source = new Source
+ {
+ Name = "Jitter", X = 32, Y = 24, Frequency = 180, Amplitude = 80, Mode = SourceMode.Pulsed, PulseShape = PulseShape.SmoothedSquare,
+ PulseWidth = 2, OffWidth = 2, Array = new SourceArray { SizeX = 3, SizeY = 1, SpacingX = 6, RandomOffWidth = 3 },
+ };
+ source.GenerateElements(seed);
+ return source;
+ }
+ List<Emitter> a = Emitter.FromSource(Randomized(123), 123);
+ List<Emitter> b = Emitter.FromSource(Randomized(123), 123);
+ List<Emitter> c = Emitter.FromSource(Randomized(124), 124);
+ Check(a.Count == 3 && a.All(e => e.RandomizeOffWidthAmount == 3 && e.RngSeed != 0), "randomized composite gives 3 emitters with non-zero seeds");
+ Check(a.Select(e => e.RngSeed).SequenceEqual(b.Select(e => e.RngSeed)), "same project seed -> same emitter seeds");
+ Check(!a.Select(e => e.RngSeed).SequenceEqual(c.Select(e => e.RngSeed)), "different project seed -> different emitter seeds");
+ float[] fieldA = RunCpu(scene, a, 300);
+ float[] fieldB = RunCpu(scene, b, 300);
+ float[] fieldC = RunCpu(scene, c, 300);
+ Check(fieldA.AsSpan().SequenceEqual(fieldB), "same seed -> bit-identical field after 300 steps");
+ Check(MaxDiff(fieldA, fieldC) > 1e-4f, "different seed -> different field (max diff " + MaxDiff(fieldA, fieldC) + ")");
+ var options = new EngineOptions(1.0, 1.0, false, false, 10.0, 1.0);
+ GpuWaveSimulator? gpu = GpuWaveSimulator.TryCreate(scene, options, a, out string problems);
+ if (gpu == null)
+ {
+ Console.WriteLine(" skip GPU: " + problems);
+ return;
+ }
+ using (gpu)
+ {
+ Run(gpu, 300);
+ float diff = MaxDiff(fieldA, gpu.FieldData);
+ Check(diff < 1e-3f * Math.Max(1f, MaxAbs(fieldA)), "GPU agrees with CPU on the randomized gaps (max diff " + diff + ")");
+ }
+ }
+
+ private static void CheckEmitterMapping()
+ {
+ Console.WriteLine("--- emitter mapping");
+ var project = new Project();
+ Source source = project.AddSource();
+ source.X = 12;
+ source.Y = 34;
+ source.Frequency = 77;
+ source.Amplitude = 50;
+ source.Phase = 90;
+ source.Mode = SourceMode.Pulsed;
+ source.PulseShape = PulseShape.SmoothedSquare;
+ source.PulseWidth = 7;
+ source.OffWidth = 9;
+ source.DetachAfter = 500;
+ List<Emitter> emitters = Emitter.FromProject(project);
+ Check(emitters.Count == 1, "one emitter for a single source");
+ Emitter e = emitters[0];
+ Check(e.X == 12 && e.Y == 34 && e.Level == 77, "position and level copied");
+ Check(Math.Abs(e.Amplitude - 0.5) < 1e-12 && Math.Abs(e.PhaseRadians - Math.PI / 2) < 1e-12, "amplitude / 100 and phase in radians");
+ Check(e.Mode == SourceMode.Pulsed && e.PulseShape == PulseShape.SmoothedSquare && e.OnWidthCycles == 7 && e.OffWidthCycles == 9 && e.OffWidthBase == 9 && e.RandomizeOffWidthAmount == 0 && e.DetachAfterStep == 500, "mode, shape, widths, detach copied");
+ source.Enabled = false;
+ Check(Emitter.FromProject(project).Count == 0, "disabled source gives no emitters");
+ source.Enabled = true;
+ project.Scene.ObjectSources = false;
+ Check(Emitter.FromProject(project).Count == 0, "scene without object sources gives no emitters");
+ }
+
+ private static void CheckFrameStore(SceneData scene)
+ {
+ Console.WriteLine("--- frame store");
+ string path = Path.Combine(Path.GetTempPath(), "library_check-" + Guid.NewGuid().ToString("N") + FrameCache.Extension);
+ var cpu = new WaveSimulator(scene, new EngineOptions(1.0, 1.0, true, false, 10.0, 1.0), Sources());
+ using (var store = FrameStore.Create(path, scene.Width, scene.Height, FrameLayers.Field | FrameLayers.Intensity, 3, 2))
+ {
+ Check(File.Exists(path) && new FileInfo(path).Length == store.TotalBytes, "file created and pre-sized (" + store.TotalBytes + " bytes)");
+ Check(store.Count == 0 && store.LayerCount == 2 && store.Has(FrameLayer.Intensity) && store.StepOf(2) == 4, "empty store reports its layout");
+ int written = 0;
+ store.FrameWritten += n => written = n;
+ float[][] fields = new float[3][];
+ for (int frame = 0; frame < 3; frame++)
+ {
+ Run(cpu, 2);
+ fields[frame] = (float[])cpu.FieldData.Clone();
+ store.Write(frame, cpu.FieldData, cpu.IntensityData, cpu.Stride);
+ }
+ Check(store.Count == 3 && written == 3, "three frames written, event saw the count");
+ bool same = true;
+ var copy = new Half[scene.Width * scene.Height];
+ for (int frame = 0; frame < 3 && same; frame++)
+ {
+ Check(store.CopyLayer(frame, FrameLayer.Field, copy), "CopyLayer frame " + frame);
+ for (int y = 0; y < scene.Height && same; y++)
+ {
+ for (int x = 0; x < scene.Width; x++)
+ {
+ Half expected = (Half)fields[frame][(y + 1) * cpu.Stride + x + 1];
+ if (copy[y * scene.Width + x] != expected)
+ {
+ same = false;
+ break;
+ }
+ }
+ }
+ }
+ Check(same, "CopyLayer returns the Half of every interior cell");
+ Check(store.CopyLayer(2, FrameLayer.Intensity, copy) && MaxAbs(fields[2]) > 0 && (float)copy[24 * scene.Width + 20] > 0, "intensity plane populated");
+ Check(!store.CopyLayer(2, FrameLayer.Intensity, copy) == false, "a read while alive succeeds");
+ bool threw = false;
+ try
+ {
+ store.Write(5, cpu.FieldData, cpu.IntensityData, cpu.Stride);
+ }
+ catch (ArgumentOutOfRangeException)
+ {
+ threw = true;
+ }
+ Check(threw, "out-of-order write is rejected");
+ try
+ {
+ store.Write(3, cpu.FieldData, cpu.IntensityData, cpu.Stride);
+ threw = false;
+ }
+ catch (ArgumentOutOfRangeException)
+ {
+ threw = true;
+ }
+ Check(threw, "write beyond the capacity is rejected");
+ }
+ Check(!File.Exists(path), "file deleted on dispose");
+ Check(FrameStore.SizeOf(1920, 1080, FrameLayers.Field | FrameLayers.Intensity, 1250) == 64 + 1250L * 2 * 1920 * 1080 * 2, "SizeOf matches the layout");
+
+ // a full-HD store of 1 GB: the writes must run at memory speed and the dispose must not flush the
+ // dirty pages to disk (the file is deleted anyway; this used to take a minute for a 10 GB run)
+ const int bigW = 1920, bigH = 1080, bigFrames = 64;
+ path = Path.Combine(Path.GetTempPath(), "library_check-big-" + Guid.NewGuid().ToString("N") + FrameCache.Extension);
+ float[] bigField = new float[(bigW + 2) * (bigH + 2)];
+ float[] bigIntensity = new float[(bigW + 2) * (bigH + 2)];
+ for (int i = 0; i < bigField.Length; i++)
+ {
+ bigField[i] = (i % 97) / 97f - 0.5f;
+ bigIntensity[i] = (i % 89) / 89f;
+ }
+ var clock = Stopwatch.StartNew();
+ var big = FrameStore.Create(path, bigW, bigH, FrameLayers.Field | FrameLayers.Intensity, bigFrames, 1);
+ for (int frame = 0; frame < bigFrames; frame++)
+ {
+ big.Write(frame, bigField, bigIntensity, bigW + 2);
+ }
+ double writeMs = clock.Elapsed.TotalMilliseconds;
+ clock.Restart();
+ var plane = new Half[bigW * bigH];
+ for (int frame = 0; frame < bigFrames; frame++)
+ {
+ big.CopyLayer(frame, FrameLayer.Field, plane);
+ big.CopyLayer(frame, FrameLayer.Intensity, plane);
+ }
+ double readMs = clock.Elapsed.TotalMilliseconds;
+ Check(plane[0] == (Half)bigIntensity[(bigW + 2) + 1] && plane[bigW * bigH - 1] == (Half)bigIntensity[bigH * (bigW + 2) + bigW], "big store reads back what was written");
+ clock.Restart();
+ big.Dispose();
+ double disposeMs = clock.Elapsed.TotalMilliseconds;
+ Console.WriteLine($" 1 GB store: {writeMs:0} ms writing ({big.TotalBytes / writeMs / 1000:0} MB/s, {writeMs / bigFrames:0.0} ms/frame), {readMs:0} ms reading ({readMs / bigFrames:0.0} ms/frame), {disposeMs:0} ms dispose");
+ Check(!File.Exists(path), "big store deleted on dispose");
+ Check(disposeMs < 1500, "disposing a 1 GB store does not flush it to disk (" + disposeMs.ToString("0") + " ms)");
+ }
+
+ private static void CheckRenderer()
+ {
+ Console.WriteLine("--- renderer");
+ var values = new Half[4] { (Half)0f, (Half)0.5f, (Half)(-2f), (Half)1f };
+ var pixels = new int[4];
+ FrameRenderer.RenderField(values, 2, 2, null, 1f, pixels);
+ Check(pixels[0] == unchecked((int)0xFF7F7F7F) && pixels[2] == unchecked((int)0xFF000000) && pixels[3] == unchecked((int)0xFFFEFEFE), "field without LUT: grey 127 / 0 / 254");
+ int[] lut = new int[255];
+ for (int i = 0; i < 255; i++)
+ {
+ lut[i] = i;
+ }
+ FrameRenderer.RenderField(values, 2, 2, lut, 1f, pixels);
+ Check(pixels[1] == ColorLut.FieldIndex(0.5f, 1f) && pixels[1] == 190, "field with LUT uses FieldIndex (0.5 -> 190)");
+ var intensities = new Half[4] { (Half)0f, (Half)(-1f), (Half)0.25f, (Half)9f };
+ FrameRenderer.RenderIntensity(intensities, 2, 2, lut, 1f, pixels);
+ Check(pixels[0] == 0 && pixels[1] == 0 && pixels[2] == 127 && pixels[3] == 254, "intensity: <= 0 -> 0, sqrt(0.25) -> 127, clamp -> 254");
+ var stops = new Rgb[ColorScheme.StopCount];
+ for (int i = 0; i < stops.Length; i++)
+ {
+ stops[i] = new Rgb((byte)(i * 30), 0, (byte)(255 - i * 30));
+ }
+ ColorScheme scheme = ColorScheme.FromStops("test", stops);
+ ColorLut built = ColorLut.Build(scheme);
+ Check(built.ColorAt(0) == stops[0] && built.ColorAt(254) == stops[^1] && built.ColorAt(127) == stops[4], "LUT from a stop scheme hits the stops at 0, 127 and 254");
+ Check(ColorLut.Build(scheme, blackLevel: 0.5).ColorAt(0).G == 127, "black level 0.5 lifts a 0 channel to 127");
+ }
+
+ private static void CheckColorSchemes()
+ {
+ Console.WriteLine("--- colour schemes");
+ string folder = Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, "..", "..", "..", "..", "..", "ColorSchemeList"));
+ var errors = new List<string>();
+ List<ColorScheme> schemes = ColorSchemeStore.LoadBuiltIn(errors);
+ foreach (string error in errors)
+ {
+ Console.WriteLine(" " + error);
+ }
+ Check(errors.Count == 0, "all built-in schemes load from the assembly (" + schemes.Count + ")");
+ Check(schemes.Count >= 20 && schemes.All(s => s.IsBuiltIn && s.FilePath == ""), "at least 20 schemes embedded, marked built-in");
+ List<ColorScheme> fromFiles = ColorSchemeStore.LoadFolder(folder, null);
+ Check(fromFiles.Count == schemes.Count && fromFiles.Select(s => s.Name).SequenceEqual(schemes.Select(s => s.Name)), "the embedded set equals the repo's ColorSchemeList folder");
+ ColorScheme? field = ColorSchemeStore.Find(schemes, Display.DefaultFieldColorScheme);
+ ColorScheme? intensity = ColorSchemeStore.Find(schemes, Display.DefaultIntensityColorScheme);
+ Check(field != null && intensity != null, "default field and intensity schemes found (case-insensitive)");
+ Check(field != null && field.HasStops && field.Stops!.Length == ColorScheme.StopCount, "Default_Field has 9 stops");
+ Check(intensity != null && intensity.SchemeType == ColorScheme.SchemeTypeIntensity, "Default_Intensity is typed intensity");
+ if (field != null)
+ {
+ string temp = Path.Combine(Path.GetTempPath(), "library_check-scheme.json");
+ ColorSchemeStore.Save(field.Clone(field.Name), temp);
+ string original = File.ReadAllText(Path.Combine(folder, "Default_Field.json"));
+ string saved = File.ReadAllText(temp);
+ File.Delete(temp);
+ Check(saved.ReplaceLineEndings() == original.ReplaceLineEndings(), "Save reproduces the shipped file");
+ }
+ }
+
+ private static void CheckRun()
+ {
+ Console.WriteLine("--- run");
+ var project = new Project();
+ project.Scene.Width = 64;
+ project.Scene.Height = 48;
+ project.Scene.DampingEdge = 4;
+ project.Simulation.Steps = 200;
+ project.Simulation.VisualizeEvery = 2;
+ Source source = project.AddSource();
+ source.X = 20;
+ source.Y = 24;
+ source.Frequency = 120;
+ Probe probe = project.AddProbe();
+ probe.AX = 20;
+ probe.AY = 24;
+ RunSpec spec = RunSpec.Create(project, null, preferGpu: false);
+ Check(spec.FrameCount == 100 && spec.Layers == (FrameLayers.Field | FrameLayers.Intensity) && spec.Emitters.Length == 1 && spec.Probes.Length == 1, "spec: 100 frames, both layers (intensity preview on), 1 emitter, 1 probe");
+
+ string path = Path.Combine(Path.GetTempPath(), "library_check-run-" + Guid.NewGuid().ToString("N") + FrameCache.Extension);
+ using (var store = FrameStore.Create(path, spec.Width, spec.Height, spec.Layers, spec.FrameCount, spec.VisualizeEvery))
+ {
+ var run = new SimulationRun(spec, store, null);
+ var states = new List<RunState>();
+ run.PropertyChanged += (_, e) =>
+ {
+ if (e.PropertyName == nameof(SimulationRun.State))
+ {
+ states.Add(run.State);
+ }
+ };
+ int finished = 0;
+ run.Finished += (_, _) => finished++;
+ var stopwatch = Stopwatch.StartNew();
+ run.Start();
+ Check(run.Completion.Wait(30000), "run completes within 30 s");
+ Console.WriteLine(" " + run.EngineDescription + ", " + run.Elapsed.TotalMilliseconds.ToString("0") + " ms");
+ Check(run.State == RunState.Completed && finished == 1 && run.Error == null, "state Completed, Finished raised once");
+ Check(states.SequenceEqual([RunState.Starting, RunState.Running, RunState.Completed]), "states: Starting, Running, Completed");
+ Check(run.StepsDone == 200 && run.FrameCount == 100 && store.Count == 100, "200 steps, 100 frames in the store");
+ Check(run.Traces[0].Series.Count == 200 && run.Traces[0].StepsSampled == 200, "probe trace has one sample per step");
+ Check(run.EngineDescription.StartsWith("CPU"), "CPU engine used");
+ var lastFrame = new Half[64 * 48];
+ Check(store.CopyLayer(99, FrameLayer.Field, lastFrame) && (float)lastFrame[24 * 64 + 20] != 0f, "last frame has a field at the source");
+ run.Dispose();
+ }
+ Check(!File.Exists(path), "store deleted after the run");
+
+ Console.WriteLine("--- run: pause, stop, GPU preferred");
+ project.Simulation.Steps = 100000;
+ spec = RunSpec.Create(project, null, preferGpu: true);
+ path = Path.Combine(Path.GetTempPath(), "library_check-run-" + Guid.NewGuid().ToString("N") + FrameCache.Extension);
+ using (var store = FrameStore.Create(path, spec.Width, spec.Height, spec.Layers, spec.FrameCount, spec.VisualizeEvery))
+ using (var run = new SimulationRun(spec, store, null))
+ {
+ run.Start();
+ var wait = Stopwatch.StartNew();
+ while (run.State != RunState.Running && wait.ElapsedMilliseconds < 20000)
+ {
+ Thread.Sleep(10);
+ }
+ Check(run.State == RunState.Running, "second run is running (" + run.EngineDescription + (run.EngineNote.Length > 0 ? "; " + run.EngineNote : "") + ")");
+ Thread.Sleep(200);
+ run.Pause();
+ wait.Restart();
+ while (run.State != RunState.Paused && wait.ElapsedMilliseconds < 5000)
+ {
+ Thread.Sleep(10);
+ }
+ int atPause = run.StepsDone;
+ Thread.Sleep(200);
+ Check(run.State == RunState.Paused && run.StepsDone == atPause && atPause > 0 && atPause < spec.Steps, "paused at step " + atPause + " and holding");
+ Check(run.IsPauseRequested, "pause is reported as requested");
+ run.TogglePause();
+ wait.Restart();
+ while (run.State != RunState.Running && wait.ElapsedMilliseconds < 5000)
+ {
+ Thread.Sleep(10);
+ }
+ Check(run.State == RunState.Running, "resumed through TogglePause");
+ run.Stop();
+ Check(run.Completion.Wait(10000) && run.State == RunState.Cancelled && !run.IsActive, "stopped -> Cancelled, " + run.StepsDone + " steps, " + run.FrameCount + " frames");
+ Check(run.FrameCount == store.Count && run.FrameCount > 0, "frame count published matches the store");
+ }
+ Check(!File.Exists(path), "second store deleted");
+ }
+}
diff --git a/_tools/ui_check/Common.ps1 b/_tools/ui_check/Common.ps1
new file mode 100644
index 0000000..c37beaf
--- /dev/null
+++ b/_tools/ui_check/Common.ps1
@@ -0,0 +1,214 @@
+# Shared part of the UI harnesses (dot-source it): the native helpers, UI Automation lookups and the
+# launch/park/stop logic. Keystrokes are posted to the app window (WM_KEYDOWN/WM_CHAR), results are
+# read back through UI Automation *properties*. Nothing here activates the app window or uses the
+# mouse, so a harness can run while the machine is in use. UI Automation *patterns* (Invoke,
+# SetValue, Select, SetFocus) are deliberately not called: on this app each one focuses its target
+# and brings the window to the foreground. Modifier keys cannot be posted either (WPF reads Shift/
+# Ctrl/Alt from the real keyboard state), so every shortcut a harness needs must have an unmodified key.
+#
+# Expects the caller to have declared $Trace (switch) before dot-sourcing; sets $script:p, $win, $hwnd, $park.
+
+Add-Type -AssemblyName UIAutomationClient, UIAutomationTypes, System.Drawing, System.Windows.Forms
+Add-Type -ReferencedAssemblies System.Drawing -TypeDefinition @"
+using System;
+using System.Drawing;
+using System.Drawing.Imaging;
+using System.Runtime.InteropServices;
+public static class Native
+{
+ [DllImport("user32.dll")] static extern bool PrintWindow(IntPtr hwnd, IntPtr hdc, uint flags);
+ [DllImport("user32.dll")] static extern bool GetWindowRect(IntPtr hwnd, out RECT rect);
+ [DllImport("user32.dll")] static extern bool PostMessage(IntPtr hwnd, uint msg, IntPtr wParam, IntPtr lParam);
+ [DllImport("user32.dll")] public static extern IntPtr GetForegroundWindow();
+ [DllImport("user32.dll")] public static extern bool ShowWindow(IntPtr hwnd, int cmd);
+ [StructLayout(LayoutKind.Sequential)] public struct RECT { public int Left, Top, Right, Bottom; }
+
+ // PW_RENDERFULLCONTENT: ask DWM for the composed content, which a hardware-rendered WPF window needs
+ static Bitmap Grab(IntPtr hwnd, out RECT r)
+ {
+ GetWindowRect(hwnd, out r);
+ var bmp = new Bitmap(r.Right - r.Left, r.Bottom - r.Top);
+ using (var g = Graphics.FromImage(bmp))
+ {
+ IntPtr hdc = g.GetHdc();
+ PrintWindow(hwnd, hdc, 2);
+ g.ReleaseHdc(hdc);
+ }
+ return bmp;
+ }
+
+ public static void Capture(IntPtr hwnd, string path)
+ {
+ RECT r;
+ using (var bmp = Grab(hwnd, out r)) bmp.Save(path, ImageFormat.Png);
+ }
+
+ // MD5 of a screen-rectangle crop of the window's content, for "the picture changed" checks
+ public static string Hash(IntPtr hwnd, int x, int y, int w, int h)
+ {
+ RECT r;
+ using (var bmp = Grab(hwnd, out r))
+ using (var crop = bmp.Clone(new Rectangle(x - r.Left, y - r.Top, w, h), bmp.PixelFormat))
+ using (var ms = new System.IO.MemoryStream())
+ {
+ crop.Save(ms, ImageFormat.Bmp);
+ using (var md5 = System.Security.Cryptography.MD5.Create())
+ return BitConverter.ToString(md5.ComputeHash(ms.ToArray()));
+ }
+ }
+
+ // WM_KEYDOWN / WM_KEYUP posted straight to the window: no SendInput, no focus change
+ public static void Key(IntPtr hwnd, int vk)
+ {
+ PostMessage(hwnd, 0x0100, (IntPtr)vk, (IntPtr)1);
+ PostMessage(hwnd, 0x0101, (IntPtr)vk, (IntPtr)(1 | (1 << 30) | (1 << 31)));
+ }
+
+ // WM_CHAR: text input independent of the keyboard layout
+ public static void Char(IntPtr hwnd, char c) { PostMessage(hwnd, 0x0102, (IntPtr)c, (IntPtr)1); }
+}
+"@
+
+$A = [System.Windows.Automation.AutomationElement]
+$VK_BACK = 0x08; $VK_TAB = 0x09; $VK_SPACE = 0x20; $VK_END = 0x23; $VK_HOME = 0x24
+$VK_LEFT = 0x25; $VK_RIGHT = 0x27; $VK_PRIOR = 0x21; $VK_NEXT = 0x22; $VK_RETURN = 0x0D; $VK_ESCAPE = 0x1B
+$VK_F4 = 0x73; $VK_F5 = 0x74; $VK_F6 = 0x75
+$VK_F = 0x46; $VK_I = 0x49; $VK_O = 0x4F; $VK_X = 0x58; $VK_L = 0x4C; $VK_COMMA = 0xBC; $VK_PERIOD = 0xBE
+$script:failures = 0
+
+function Check([string]$name, [bool]$ok, [string]$detail = "") {
+ $tag = if ($ok) { "PASS" } else { $script:failures++; "FAIL" }
+ if ($Trace) { $detail += (" [fg={0} focus={1}]" -f (Foreground), (FocusedId)) }
+ Write-Output ("{0} {1} {2}" -f $tag, $name, $detail)
+}
+function Foreground() {
+ $fg = [Native]::GetForegroundWindow()
+ if ($fg -eq $script:hwnd) { "APP" } elseif ($fg -eq $script:park.Handle) { "harness" } else { "other" }
+}
+# UI Automation lookups can miss while the UI thread is busy, so retry
+function Find([string]$id) {
+ $c = New-Object System.Windows.Automation.PropertyCondition($A::AutomationIdProperty, $id)
+ for ($i = 0; $i -lt 10; $i++) {
+ $e = $script:win.FindFirst([System.Windows.Automation.TreeScope]::Descendants, $c)
+ if ($e -ne $null) { return $e }
+ Start-Sleep -Milliseconds 200
+ }
+ throw "element '$id' not found"
+}
+# a pattern object, used only to *read* its Current properties (never call its methods)
+function Pattern($e, [string]$name) {
+ $type = [System.Windows.Automation.InvokePattern].Assembly.GetType("System.Windows.Automation." + $name + "Pattern", $true)
+ return $e.GetCurrentPattern($type.GetField("Pattern").GetValue($null))
+}
+function Frame() { return (Find "PreviewFrame").Current.Name }
+function Position() { return [int](((Frame) -split " / ")[0]) }
+function Playing() { return (Find "PreviewPause").Current.IsEnabled }
+function Selected([string]$id) { return (Pattern (Find $id) "SelectionItem").Current.IsSelected }
+function SpeedText() { return (Pattern (Find "PreviewSpeed") "Value").Current.Value }
+function Focused([string]$id) { return (Find $id).Current.HasKeyboardFocus }
+function StepText() { return (Find "PreviewStep").Current.Name }
+function ToggleOn([string]$id) { return (Pattern (Find $id) "Toggle").Current.ToggleState -eq [System.Windows.Automation.ToggleState]::On }
+function LoopOn() { return ToggleOn "PreviewLoop" }
+function LiveOn() { return ToggleOn "PreviewLive" }
+function RunStatus() { return (Find "StatusRun").Current.Name }
+# MD5 of the field picture as drawn (overlay included), for "the picture changed" checks
+function FieldHash() {
+ $r = (Find "PreviewFieldImage").Current.BoundingRectangle
+ return [Native]::Hash($script:hwnd, [int]$r.Left, [int]$r.Top, [int]$r.Width, [int]$r.Height)
+}
+# the centre of an element's screen rectangle
+function CentreOf([string]$id) { $r = (Find $id).Current.BoundingRectangle; return @(($r.Left + $r.Width / 2), ($r.Top + $r.Height / 2)) }
+# where canvas pixel (x, y) of a w x h canvas lands inside a picture element (uniform scale, centred), as the overlay maps it
+function CanvasPoint([string]$imageId, [int]$w, [int]$h, [double]$x, [double]$y) {
+ $r = (Find $imageId).Current.BoundingRectangle
+ $scale = [math]::Min($r.Width / $w, $r.Height / $h)
+ $ox = $r.Left + ($r.Width - $w * $scale) / 2; $oy = $r.Top + ($r.Height - $h * $scale) / 2
+ return @(($ox + ($x + 0.5) * $scale), ($oy + ($y + 0.5) * $scale), $scale)
+}
+# whether the tree item with this name is selected (reads the SelectionItem pattern's property only)
+function TreeItemSelected([string]$name) {
+ $c = New-Object System.Windows.Automation.AndCondition(
+ (New-Object System.Windows.Automation.PropertyCondition($A::ControlTypeProperty, [System.Windows.Automation.ControlType]::TreeItem)),
+ (New-Object System.Windows.Automation.PropertyCondition($A::NameProperty, $name)))
+ $e = $script:win.FindFirst([System.Windows.Automation.TreeScope]::Descendants, $c)
+ if ($e -eq $null) { return $false }
+ return (Pattern $e "SelectionItem").Current.IsSelected
+}
+function FocusedId() {
+ foreach ($id in "PreviewPlay", "PreviewPause", "PreviewStepBack", "PreviewStepForward", "PreviewSetIn", "PreviewSetOut", "PreviewClearRange", "PreviewLoop",
+ "PreviewLive", "PreviewSpeed", "PreviewSideBySide", "PreviewStacked", "PreviewTimeline", "PreviewSplitter") {
+ if (Focused $id) { return $id }
+ }
+ # the editable combo keeps focus in its inner text box
+ $c = New-Object System.Windows.Automation.PropertyCondition($A::HasKeyboardFocusProperty, $true)
+ if ((Find "PreviewSpeed").FindFirst([System.Windows.Automation.TreeScope]::Descendants, $c) -ne $null) { return "PreviewSpeed" }
+ $other = $script:win.FindFirst([System.Windows.Automation.TreeScope]::Descendants, $c)
+ if ($other -ne $null) { return "(other: " + $other.Current.ControlType.ProgrammaticName + " '" + $other.Current.Name + "')" }
+ # nothing in the window reports focus: ask the system (only meaningful while the app is foreground)
+ $fe = $A::FocusedElement
+ if ($fe -ne $null -and $fe.Current.ProcessId -eq $script:p.Id) { return "(focused: " + $fe.Current.ControlType.ProgrammaticName + " '" + $fe.Current.Name + "' " + $fe.Current.ClassName + ")" }
+ return "(none)"
+}
+function Key([int]$vk, [int]$settle = 150) { [Native]::Key($script:hwnd, $vk); Start-Sleep -Milliseconds $settle }
+# Tab (posted) until the wanted element holds focus; the cycle runs through the whole window
+function FocusOn([string]$id) {
+ for ($i = 0; $i -lt 80; $i++) {
+ if ((Focused $id) -or (FocusedId) -eq $id) { return }
+ Key $VK_TAB
+ }
+ throw "could not reach '$id' with Tab; focus is at $(FocusedId)"
+}
+# polls a condition; returns whether it became true within the timeout
+function WaitFor([scriptblock]$condition, [int]$timeoutMs = 10000, [int]$pollMs = 100) {
+ $deadline = [DateTime]::Now.AddMilliseconds($timeoutMs)
+ while ([DateTime]::Now -lt $deadline) {
+ if (& $condition) { return $true }
+ Start-Sleep -Milliseconds $pollMs
+ }
+ return (& $condition)
+}
+
+# Launches the app (optionally with a project file), finds its window and parks the foreground elsewhere.
+# Windows may hand a new window the foreground. Park it on an off-screen window of our own (when the user
+# is busy elsewhere this silently fails and the foreground stays theirs, which is just as good): every
+# check must then leave the app inactive.
+function Start-App([string]$Exe, [string]$ProjectFile = "") {
+ if ($ProjectFile -ne "") { $script:p = Start-Process -FilePath $Exe -ArgumentList ('"' + $ProjectFile + '"') -PassThru }
+ else { $script:p = Start-Process -FilePath $Exe -PassThru }
+ $script:win = $null
+ for ($i = 0; $i -lt 100 -and $script:win -eq $null; $i++) {
+ Start-Sleep -Milliseconds 200
+ $c = New-Object System.Windows.Automation.PropertyCondition($A::ProcessIdProperty, $script:p.Id)
+ $script:win = $A::RootElement.FindFirst([System.Windows.Automation.TreeScope]::Children, $c)
+ }
+ if ($script:win -eq $null) { throw "main window not found" }
+ $script:p.Refresh()
+ $script:hwnd = $script:p.MainWindowHandle
+ Start-Sleep -Milliseconds 800
+
+ $script:park = New-Object System.Windows.Forms.Form
+ $script:park.StartPosition = "Manual"
+ $script:park.Location = New-Object System.Drawing.Point(-3000, -3000)
+ $script:park.Size = New-Object System.Drawing.Size(10, 10)
+ $script:park.ShowInTaskbar = $false
+ $script:park.Show(); $script:park.Activate(); [System.Windows.Forms.Application]::DoEvents()
+ Start-Sleep -Milliseconds 500
+ for ($i = 0; $i -lt 3 -and (Foreground) -eq "APP"; $i++) {
+ [Native]::ShowWindow($script:hwnd, 6) | Out-Null # SW_MINIMIZE: the OS activates something else
+ Start-Sleep -Milliseconds 300
+ $script:park.Activate(); [System.Windows.Forms.Application]::DoEvents()
+ Start-Sleep -Milliseconds 300
+ [Native]::ShowWindow($script:hwnd, 4) | Out-Null # SW_SHOWNOACTIVATE
+ Start-Sleep -Milliseconds 500
+ }
+ Write-Output ("window: '{0}' foreground: {1}" -f $script:win.Current.Name, (Foreground))
+}
+
+function Stop-App() {
+ if ($script:p -ne $null) {
+ $script:p.CloseMainWindow() | Out-Null
+ if (-not $script:p.WaitForExit(8000)) { $script:p.Kill() }
+ $script:p = $null
+ }
+ if ($script:park -ne $null) { $script:park.Close(); $script:park = $null }
+}
diff --git a/_tools/ui_check/PreviewCheck.ps1 b/_tools/ui_check/PreviewCheck.ps1
index 7a04e9f..94ec97c 100644
--- a/_tools/ui_check/PreviewCheck.ps1
+++ b/_tools/ui_check/PreviewCheck.ps1
@@ -1,8 +1,7 @@
-# Drives the WPF preview pane with keystrokes posted to its window (WM_KEYDOWN/WM_CHAR) and reads
-# the result back through UI Automation. Nothing here activates the app window or uses the mouse,
-# so it can run while the machine is in use. UI Automation *patterns* (Invoke, SetValue, Select)
-# are deliberately not used: on this app each one focuses its target and brings the window to the
-# foreground. Prints PASS/FAIL per check and exits with the failure count.
+# Drives the WPF preview pane with keystrokes posted to its window and reads the result back through
+# UI Automation; see Common.ps1 for the rules (no mouse, no activation, no UIA patterns). Runs on the
+# default (new) project, so no simulation is involved: playback moves over the placeholder pictures.
+# Prints PASS/FAIL per check and exits with the failure count.
#
# powershell -ExecutionPolicy Bypass -File _tools\ui_check\PreviewCheck.ps1 [-Exe <path>] [-Shot <png>] [-Trace]
@@ -12,147 +11,17 @@ param(
[switch]$Trace # append foreground state and focused element to every line
)
-Add-Type -AssemblyName UIAutomationClient, UIAutomationTypes, System.Drawing, System.Windows.Forms
-Add-Type -ReferencedAssemblies System.Drawing -TypeDefinition @"
-using System;
-using System.Drawing;
-using System.Drawing.Imaging;
-using System.Runtime.InteropServices;
-public static class Native
-{
- [DllImport("user32.dll")] static extern bool PrintWindow(IntPtr hwnd, IntPtr hdc, uint flags);
- [DllImport("user32.dll")] static extern bool GetWindowRect(IntPtr hwnd, out RECT rect);
- [DllImport("user32.dll")] static extern bool PostMessage(IntPtr hwnd, uint msg, IntPtr wParam, IntPtr lParam);
- [DllImport("user32.dll")] public static extern IntPtr GetForegroundWindow();
- [DllImport("user32.dll")] public static extern bool ShowWindow(IntPtr hwnd, int cmd);
- [StructLayout(LayoutKind.Sequential)] public struct RECT { public int Left, Top, Right, Bottom; }
-
- // PW_RENDERFULLCONTENT: ask DWM for the composed content, which a hardware-rendered WPF window needs
- public static void Capture(IntPtr hwnd, string path)
- {
- RECT r; GetWindowRect(hwnd, out r);
- using (var bmp = new Bitmap(r.Right - r.Left, r.Bottom - r.Top))
- {
- using (var g = Graphics.FromImage(bmp))
- {
- IntPtr hdc = g.GetHdc();
- PrintWindow(hwnd, hdc, 2);
- g.ReleaseHdc(hdc);
- }
- bmp.Save(path, ImageFormat.Png);
- }
- }
-
- // WM_KEYDOWN / WM_KEYUP posted straight to the window: no SendInput, no focus change
- public static void Key(IntPtr hwnd, int vk)
- {
- PostMessage(hwnd, 0x0100, (IntPtr)vk, (IntPtr)1);
- PostMessage(hwnd, 0x0101, (IntPtr)vk, (IntPtr)(1 | (1 << 30) | (1 << 31)));
- }
-
- // WM_CHAR: text input independent of the keyboard layout
- public static void Char(IntPtr hwnd, char c) { PostMessage(hwnd, 0x0102, (IntPtr)c, (IntPtr)1); }
-}
-"@
-
-$A = [System.Windows.Automation.AutomationElement]
-$VK_BACK = 0x08; $VK_TAB = 0x09; $VK_SPACE = 0x20; $VK_END = 0x23; $VK_HOME = 0x24
-$VK_LEFT = 0x25; $VK_RIGHT = 0x27; $VK_PRIOR = 0x21; $VK_NEXT = 0x22; $VK_RETURN = 0x0D; $VK_ESCAPE = 0x1B; $VK_F4 = 0x73
-$VK_I = 0x49; $VK_O = 0x4F; $VK_X = 0x58; $VK_L = 0x4C; $VK_COMMA = 0xBC; $VK_PERIOD = 0xBE
-$script:failures = 0
-
-function Check([string]$name, [bool]$ok, [string]$detail = "") {
- $tag = if ($ok) { "PASS" } else { $script:failures++; "FAIL" }
- if ($Trace) { $detail += (" [fg={0} focus={1}]" -f (Foreground), (FocusedId)) }
- Write-Output ("{0} {1} {2}" -f $tag, $name, $detail)
-}
-function Foreground() {
- $fg = [Native]::GetForegroundWindow()
- if ($fg -eq $hwnd) { "APP" } elseif ($fg -eq $park.Handle) { "harness" } else { "other" }
-}
-function Find([string]$id) {
- $c = New-Object System.Windows.Automation.PropertyCondition($A::AutomationIdProperty, $id)
- for ($i = 0; $i -lt 10; $i++) {
- $e = $win.FindFirst([System.Windows.Automation.TreeScope]::Descendants, $c)
- if ($e -ne $null) { return $e }
- Start-Sleep -Milliseconds 200
- }
- throw "element '$id' not found"
-}
-function Pattern($e, [string]$name) {
- $type = [System.Windows.Automation.InvokePattern].Assembly.GetType("System.Windows.Automation." + $name + "Pattern", $true)
- return $e.GetCurrentPattern($type.GetField("Pattern").GetValue($null))
-}
-function Frame() { return (Find "PreviewFrame").Current.Name }
-function Position() { return [int](((Frame) -split " / ")[0]) }
-function Playing() { return (Find "PreviewPause").Current.IsEnabled }
-function Selected([string]$id) { return (Pattern (Find $id) "SelectionItem").Current.IsSelected }
-function SpeedText() { return (Pattern (Find "PreviewSpeed") "Value").Current.Value }
-function Focused([string]$id) { return (Find $id).Current.HasKeyboardFocus }
-function StepText() { return (Find "PreviewStep").Current.Name }
-function Range() { $t = Find "PreviewTimeline"; return $t }
-function LoopOn() { return (Pattern (Find "PreviewLoop") "Toggle").Current.ToggleState -eq [System.Windows.Automation.ToggleState]::On }
-function FocusedId() {
- foreach ($id in "PreviewPlay", "PreviewPause", "PreviewStepBack", "PreviewStepForward", "PreviewSetIn", "PreviewSetOut", "PreviewClearRange", "PreviewLoop",
- "PreviewSpeed", "PreviewSideBySide", "PreviewStacked", "PreviewTimeline", "PreviewSplitter") {
- if (Focused $id) { return $id }
- }
- # the editable combo keeps focus in its inner text box
- $c = New-Object System.Windows.Automation.PropertyCondition($A::HasKeyboardFocusProperty, $true)
- if ((Find "PreviewSpeed").FindFirst([System.Windows.Automation.TreeScope]::Descendants, $c) -ne $null) { return "PreviewSpeed" }
- $other = $win.FindFirst([System.Windows.Automation.TreeScope]::Descendants, $c)
- if ($other -ne $null) { return "(other: " + $other.Current.ControlType.ProgrammaticName + " '" + $other.Current.Name + "')" }
- # nothing in the window reports focus: ask the system (only meaningful while the app is foreground)
- $fe = $A::FocusedElement
- if ($fe -ne $null -and $fe.Current.ProcessId -eq $p.Id) { return "(focused: " + $fe.Current.ControlType.ProgrammaticName + " '" + $fe.Current.Name + "' " + $fe.Current.ClassName + ")" }
- return "(none)"
-}
-function Key([int]$vk, [int]$settle = 150) { [Native]::Key($hwnd, $vk); Start-Sleep -Milliseconds $settle }
-# Tab (posted) until the wanted element holds focus; the cycle runs through the whole window
-function FocusOn([string]$id) {
- for ($i = 0; $i -lt 60; $i++) {
- if ((FocusedId) -eq $id) { return }
- Key $VK_TAB
- }
- throw "could not reach '$id' with Tab; focus is at $(FocusedId)"
-}
-
-# ---------------------------------------------------------------- launch
-$p = Start-Process -FilePath $Exe -PassThru
-$win = $null
-for ($i = 0; $i -lt 100 -and $win -eq $null; $i++) {
- Start-Sleep -Milliseconds 200
- $c = New-Object System.Windows.Automation.PropertyCondition($A::ProcessIdProperty, $p.Id)
- $win = $A::RootElement.FindFirst([System.Windows.Automation.TreeScope]::Children, $c)
-}
-if ($win -eq $null) { throw "main window not found" }
-$p.Refresh()
-$hwnd = $p.MainWindowHandle
-Start-Sleep -Milliseconds 800
-
-# Windows may hand a new window the foreground. Park it on an off-screen window of our own (when
-# the user is busy elsewhere this silently fails and the foreground stays theirs, which is just as
-# good): every check below must then leave the app inactive.
-$park = New-Object System.Windows.Forms.Form
-$park.StartPosition = "Manual"
-$park.Location = New-Object System.Drawing.Point(-3000, -3000)
-$park.Size = New-Object System.Drawing.Size(10, 10)
-$park.ShowInTaskbar = $false
-$park.Show(); $park.Activate(); [System.Windows.Forms.Application]::DoEvents()
-Start-Sleep -Milliseconds 500
-for ($i = 0; $i -lt 3 -and (Foreground) -eq "APP"; $i++) {
- [Native]::ShowWindow($hwnd, 6) | Out-Null # SW_MINIMIZE: the OS activates something else
- Start-Sleep -Milliseconds 300
- $park.Activate(); [System.Windows.Forms.Application]::DoEvents()
- Start-Sleep -Milliseconds 300
- [Native]::ShowWindow($hwnd, 4) | Out-Null # SW_SHOWNOACTIVATE
- Start-Sleep -Milliseconds 500
-}
-Write-Output ("window: '{0}' foreground: {1}" -f $win.Current.Name, (Foreground))
+. (Join-Path $PSScriptRoot "Common.ps1")
+Start-App $Exe
try {
Check "initial readout" ((Frame) -eq "0 / 1249") (Frame)
+ # the split orientation is a persisted user setting: start from side by side whatever the last session left
+ if (Selected "PreviewStacked") { FocusOn "PreviewStacked"; Key $VK_LEFT 400 }
+ Check "side by side to begin with" (Selected "PreviewSideBySide")
Check "play enabled, pause disabled" ((Find "PreviewPlay").Current.IsEnabled -and -not (Playing))
+ Check "live is disabled without a run" (-not (Find "PreviewLive").Current.IsEnabled)
+ Check "no run status" ((RunStatus) -eq "") (RunStatus)
# ------------------------------------------------------------ transport
Write-Output ("focus before any key: {0}" -f (FocusedId))
@@ -160,13 +29,14 @@ try {
Check "Tab reaches play while the window stays inactive" (((FocusedId) -eq "PreviewPlay") -and ((Foreground) -ne "APP")) (FocusedId)
$order = @()
for ($i = 0; $i -lt 10; $i++) { Key $VK_TAB 250; $order += (FocusedId) }
- # pause and clear-range are disabled and skipped; the split group is one stop (its checked radio); timeline; splitter; then the pane is left
+ # pause, clear-range and live are disabled and skipped; the split group is one stop (its checked radio); timeline; splitter; then the pane is left
Check "tab order play > step back/forward > in > out > loop > speed > split > timeline > splitter > out of the pane" (($order[0..8] -join ",") -eq "PreviewStepBack,PreviewStepForward,PreviewSetIn,PreviewSetOut,PreviewLoop,PreviewSpeed,PreviewSideBySide,PreviewTimeline,PreviewSplitter" -and $order[9] -like "(other*") ($order -join ",")
FocusOn "PreviewPlay"
Key $VK_SPACE 2000
$pos = Position
- Check "Space on play: ~60 frames in 2 s at speed 1" ($pos -ge 45 -and $pos -le 75) "position $pos"
+ # the clock is the project's video frame rate, 60 fps by default
+ Check "Space on play: ~120 frames in 2 s at speed 1" ($pos -ge 90 -and $pos -le 150) "position $pos"
Check "pause enabled while playing, focus handed to pause" ((Playing) -and -not (Find "PreviewPlay").Current.IsEnabled -and (Focused "PreviewPause")) (FocusedId)
Key $VK_SPACE 300
$held = Position
@@ -197,7 +67,7 @@ try {
Key $VK_SPACE 2000
Key $VK_SPACE 300 # focus was handed to pause
$delta = (Position) - $before
- Check "speed 4: ~240 frames in 2 s" ($delta -ge 190 -and $delta -le 290) "delta $delta"
+ Check "speed 4: ~480 frames in 2 s" ($delta -ge 400 -and $delta -le 560) "delta $delta"
# ------------------------------------------------------------ timeline keys
FocusOn "PreviewTimeline"
@@ -240,7 +110,7 @@ try {
Key $VK_HOME 200
Key $VK_L 300
Check "L turns looping on" (LoopOn)
- Key $VK_SPACE 2500 # 2.5 s at speed 4 = ~300 frames through a range of 1234: still inside, and still playing
+ Key $VK_SPACE 2500 # 2.5 s at speed 4 = ~600 frames through a range of 1234: still inside, and still playing
$pos = Position
$still = Playing
Key $VK_SPACE 300
@@ -269,7 +139,6 @@ try {
Key $VK_TAB 300
Check "Tab enters the split group at the checked (stacked) radio" (Focused "PreviewStacked") (FocusedId)
Key $VK_LEFT 400
- $fr = $field.Current.BoundingRectangle; $ir = $intensity.Current.BoundingRectangle
$fr = (Find "PreviewFieldImage").Current.BoundingRectangle; $ir = (Find "PreviewIntensityImage").Current.BoundingRectangle
Check "Left arrow selects side by side again, pictures on one row, same top" ((Selected "PreviewSideBySide") -and (Focused "PreviewSideBySide") -and [math]::Abs($ir.Top - $fr.Top) -lt 2 -and $ir.Left -gt $fr.Right) ("field {0},{1} intensity {2},{3}" -f $fr.Left, $fr.Top, $ir.Left, $ir.Top)
@@ -287,9 +156,7 @@ try {
Check "the app never took the foreground" ((Foreground) -ne "APP") (Foreground)
}
finally {
- $p.CloseMainWindow() | Out-Null
- if (-not $p.WaitForExit(5000)) { $p.Kill() }
- $park.Close()
+ Stop-App
Write-Output ("{0} failure(s)" -f $script:failures)
}
exit $script:failures
diff --git a/_tools/ui_check/RunCheck.ps1 b/_tools/ui_check/RunCheck.ps1
new file mode 100644
index 0000000..692b522
--- /dev/null
+++ b/_tools/ui_check/RunCheck.ps1
@@ -0,0 +1,152 @@
+# Runs a simulation in the WPF app through the keyboard and checks the preview follows it: F5 on a tiny
+# project (64x48, 200 steps, a frame every 2 steps) must complete and leave the preview live on the last
+# frame; stepping detaches, the picture differs between frames, F re-attaches. A second, long project
+# exercises pause (F6), resume and stop (Esc) while the run is in progress. See Common.ps1 for the rules
+# (no mouse, no activation, no UIA patterns). Prints PASS/FAIL per check and exits with the failure count.
+#
+# powershell -ExecutionPolicy Bypass -File _tools\ui_check\RunCheck.ps1 [-Exe <path>] [-Trace]
+
+param(
+ [string]$Exe = (Join-Path $PSScriptRoot "..\..\WaveDude.WPF\bin\Debug\net10.0-windows\WaveDude.WPF.exe"),
+ [switch]$Trace # append foreground state and focused element to every line
+)
+
+. (Join-Path $PSScriptRoot "Common.ps1")
+
+# ---------------------------------------------------------------- a short run to completion
+Start-App $Exe (Join-Path $PSScriptRoot "tiny.wdproj")
+try {
+ Check "tiny project loaded: 100 frames" ((Frame) -eq "0 / 99") (Frame)
+ Check "no run status before F5" ((RunStatus) -eq "") (RunStatus)
+ # the source handle sits on the black frame at the source's canvas position, before any run
+ $expected = CanvasPoint "PreviewFieldImage" 64 48 20 24
+ $centre = CentreOf "Source:Source 1"
+ Check "source marker at the source's canvas position on the black frame" ([math]::Abs($centre[0] - $expected[0]) -lt 3 -and [math]::Abs($centre[1] - $expected[1]) -lt 3) ("marker {0:0},{1:0} expected {2:0},{3:0}" -f $centre[0], $centre[1], $expected[0], $expected[1])
+ $black = FieldHash
+ FocusOn "Source:Source 1"
+ Check "Tab reaches the source marker, which selects Source 1 in the tree" ((Focused "Source:Source 1") -and (TreeItemSelected "Source 1")) (FocusedId)
+ Key $VK_RIGHT 400
+ $moved = CentreOf "Source:Source 1"
+ Check "Right arrow moves the marker one canvas pixel" ([math]::Abs(($moved[0] - $centre[0]) - $expected[2]) -lt 2 -and [math]::Abs($moved[1] - $centre[1]) -lt 2) ("dx {0:0.0} expected {1:0.0}" -f ($moved[0] - $centre[0]), $expected[2])
+ # no run yet: the edit alone makes the preview compute the shown frame from scratch
+ Check "a scratch frame replaces the black canvas after the edit" (WaitFor { (FieldHash) -ne $black } 6000 200)
+ Key $VK_LEFT 400
+ $back = CentreOf "Source:Source 1"
+ Check "Left arrow moves it back" ([math]::Abs($back[0] - $centre[0]) -lt 2) ("x {0:0} vs {1:0}" -f $back[0], $centre[0])
+ # ------------------------------------------------------------ play without a run starts one
+ FocusOn "PreviewTimeline"
+ Key $VK_HOME 100; Key $VK_PRIOR 50; Key $VK_PRIOR 50; Key $VK_PRIOR 300 # frame 30
+ Check "skipped to frame 30 with no run" ((Position) -eq 30) (Frame)
+ $dark = FieldHash
+ Key $VK_SPACE 200
+ Check "Space starts a run when there is none" (WaitFor { (RunStatus) -like "Running:*" -or (RunStatus) -like "Completed:*" } 5000 50) (RunStatus)
+ Check "playback went on from frame 30 once the frames existed" (WaitFor { (Position) -gt 30 } 5000 20) ("position {0}, {1}" -f (Position), (RunStatus))
+ Check "play did not switch to live follow" (-not (LiveOn))
+ Check "and ran to the end of the run" (WaitFor { -not (Playing) -and (Position) -eq 99 } 5000 50) (Frame)
+ Check "the picture is not black any more" ((FieldHash) -ne $dark)
+ FocusOn "PreviewPlay"
+ Key $VK_F5 200
+ Check "F5 starts the run (status appears)" (WaitFor { (RunStatus) -ne "" } 5000) (RunStatus)
+ Check "run completes" (WaitFor { (RunStatus) -like "Completed:*" } 30000) (RunStatus)
+ Check "status names the steps and the engine" ((RunStatus) -match "^Completed: 200 / 200 steps, (CPU|GPU)") (RunStatus)
+ Start-Sleep -Milliseconds 500
+ Check "preview followed the run to its last frame; Live is off again once it ended" (-not (LiveOn) -and (Frame) -eq "99 / 99") ("live {0}, {1}" -f (LiveOn), (Frame))
+ Check "live button disabled after the run, play enabled" (-not (Find "PreviewLive").Current.IsEnabled -and (Find "PreviewPlay").Current.IsEnabled)
+ $late = FieldHash
+ Key $VK_COMMA 500
+ Check "comma steps back to frame 98" ((Frame) -eq "98 / 99") (Frame)
+ Key $VK_HOME 600
+ Check "Home goes to frame 0" ((Frame) -eq "0 / 99") (Frame)
+ $early = FieldHash
+ Check "the field picture differs between frame 0 and the last frame" ($early -ne $late) ("{0} vs {1}" -f $early.Substring(0, 8), $late.Substring(0, 8))
+ Key $VK_F 300
+ Check "F does nothing once the run has ended" (-not (LiveOn) -and (Frame) -eq "0 / 99") ("live {0}, {1}" -f (LiveOn), (Frame))
+ Key $VK_END 500
+ Check "End goes to the last frame" ((Frame) -eq "99 / 99") (Frame)
+ # the handle follows the run's frames too (same canvas size here)
+ $expected = CanvasPoint "PreviewIntensityImage" 64 48 20 24
+ $centre = CentreOf "Source:Source 1"
+ $all = $win.FindAll([System.Windows.Automation.TreeScope]::Descendants, (New-Object System.Windows.Automation.PropertyCondition($A::AutomationIdProperty, "Source:Source 1")))
+ Check "both pictures carry the source marker" ($all.Count -eq 2) ("found " + $all.Count)
+ $second = $all[1].Current.BoundingRectangle
+ Check "the intensity picture's marker sits at the source too" ([math]::Abs(($second.Left + $second.Width / 2) - $expected[0]) -lt 3 -and [math]::Abs(($second.Top + $second.Height / 2) - $expected[1]) -lt 3) ("marker {0:0},{1:0} expected {2:0},{3:0}" -f ($second.Left + $second.Width / 2), ($second.Top + $second.Height / 2), $expected[0], $expected[1])
+ # ------------------------------------------------------------ live: an edit after the run
+ # both pictures compared below are taken with the marker focused, so its highlight is the same in both
+ FocusOn "Source:Source 1"
+ Start-Sleep -Milliseconds 300
+ $stored = FieldHash
+ Key $VK_RIGHT 200
+ Check "moving the source marks the run stale" (WaitFor { (RunStatus) -like "*edited since*" } 3000) (RunStatus)
+ Check "the shown frame is recomputed from scratch before any run" (WaitFor { (FieldHash) -ne $stored } 6000 200)
+ Check "the stored run is redone automatically after the edit" (WaitFor { (RunStatus) -like "Completed:*" -and (RunStatus) -notlike "*edited since*" } 20000 200) (RunStatus)
+ Check "the preview kept its position through the re-run" ((Frame) -eq "99 / 99") (Frame)
+ Key $VK_LEFT 200
+ Check "moving it back: stale, then re-run" ((WaitFor { (RunStatus) -like "*edited since*" } 3000) -and (WaitFor { (RunStatus) -like "Completed:*" -and (RunStatus) -notlike "*edited since*" } 20000 200)) (RunStatus)
+ Start-Sleep -Milliseconds 800
+ Check "the re-run reproduces the original frame (same picture)" ((FieldHash) -eq $stored) ("{0} vs {1}" -f (FieldHash).Substring(0, 8), $stored.Substring(0, 8))
+ FocusOn "PreviewPlay"
+ Key $VK_SPACE 100
+ $moving = WaitFor { $p = Position; $p -gt 0 -and $p -lt 99 } 3000 20
+ $live = LiveOn
+ Key $VK_SPACE 200
+ Check "Space plays the stored frames from the start (live off)" ($moving -and -not $live) (Frame)
+ # a second F5 replaces the run and its frames
+ Key $VK_F5 200
+ Check "second run completes" (WaitFor { (RunStatus) -like "Completed:*" } 30000) (RunStatus)
+ Start-Sleep -Milliseconds 500
+ Check "the new run was followed to its last frame" ((Frame) -eq "99 / 99") ("live {0}, {1}" -f (LiveOn), (Frame))
+ Check "the app never took the foreground" ((Foreground) -ne "APP") (Foreground)
+}
+finally {
+ Stop-App
+}
+
+# ---------------------------------------------------------------- a long run: pause, resume, stop
+Start-App $Exe (Join-Path $PSScriptRoot "tiny_long.wdproj")
+try {
+ Check "long project loaded: 2000 frames" ((Frame) -eq "0 / 1999") (Frame)
+ FocusOn "PreviewPlay"
+ Key $VK_F5 200
+ Check "F5: running" (WaitFor { (RunStatus) -like "Running:*" } 10000) (RunStatus)
+ Start-Sleep -Milliseconds 1500
+ $f1 = Position
+ Start-Sleep -Milliseconds 1500
+ $f2 = Position
+ Check "live preview advances while the run is in progress" ((LiveOn) -and $f2 -gt $f1) ("{0} -> {1}" -f $f1, $f2)
+ Key $VK_F6 200
+ Check "F6 pauses" (WaitFor { (RunStatus) -like "Paused:*" } 5000) (RunStatus)
+ $held = RunStatus
+ Start-Sleep -Milliseconds 800
+ Check "paused run holds its step count" ((RunStatus) -eq $held) (RunStatus)
+ Key $VK_F6 200
+ Check "F6 resumes" (WaitFor { (RunStatus) -like "Running:*" } 5000) (RunStatus)
+ Key $VK_ESCAPE 200
+ Check "Esc stops the run" (WaitFor { (RunStatus) -like "Stopped:*" } 10000) (RunStatus)
+ Start-Sleep -Milliseconds 500
+ $last = Position
+ Check "the frames computed so far stay, the preview on the newest one, Live off" (-not (LiveOn) -and $last -gt 0 -and (Frame) -eq ("{0} / {0}" -f $last)) (Frame)
+ Key $VK_HOME 500
+ Check "Home scrubs back to frame 0 of the partial run" ((Frame) -eq ("0 / {0}" -f $last)) (Frame)
+ # ------------------------------------------------------------ an edit during an automatic re-run stops it
+ FocusOn "PreviewTimeline"
+ Key $VK_HOME 100; Key $VK_PRIOR 50; Key $VK_PRIOR 50; Key $VK_PRIOR 300 # frame 30 of the 40 that exist
+ Check "scrubbed to frame 30 of the stopped run" ((Position) -eq 30) (Frame)
+ FocusOn "Source:Source 1"
+ Key $VK_RIGHT 200
+ Check "an edit after the stopped run starts an automatic re-run" (WaitFor { (RunStatus) -like "Running:*" } 6000 100) (RunStatus)
+ Check "the position stayed at frame 30 and Live is off" ((Position) -eq 30 -and -not (LiveOn)) (Frame)
+ Key $VK_RIGHT 100
+ Check "another edit stops the automatic run at once" (WaitFor { (RunStatus) -like "Stopped:*" } 3000 50) (RunStatus)
+ Check "the cancelled run does not pull the position back" ((Position) -eq 30) (Frame)
+ Check "and a fresh automatic run starts after the quiet period" (WaitFor { (RunStatus) -like "Running:*" } 6000 100) (RunStatus)
+ Check "the position is still frame 30" ((Position) -eq 30) (Frame)
+ Key $VK_ESCAPE 300
+ Key $VK_LEFT 50; Key $VK_LEFT 300
+ Key $VK_ESCAPE 100
+ Check "the app never took the foreground" ((Foreground) -ne "APP") (Foreground)
+}
+finally {
+ Stop-App
+ Write-Output ("{0} failure(s)" -f $script:failures)
+}
+exit $script:failures
diff --git a/_tools/ui_check/tiny.wdproj b/_tools/ui_check/tiny.wdproj
new file mode 100644
index 0000000..4ef039c
--- /dev/null
+++ b/_tools/ui_check/tiny.wdproj
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project Version="1" Seed="12345">
+ <Description>Harness project: a 64 x 48 canvas, 200 steps, a frame every 2 steps, one continuous source.</Description>
+ <Scene Width="64" Height="48" DampingEdge="4" />
+ <Simulation Steps="200" VisualizeEvery="2" />
+ <Display>
+ <Field ColorScheme="Default_Field" BlackLevel="-0.05" />
+ <Intensity ColorScheme="Default_intensity" />
+ </Display>
+ <Source Name="Source 1" X="20" Y="24" Frequency="120" />
+</Project>
diff --git a/_tools/ui_check/tiny_long.wdproj b/_tools/ui_check/tiny_long.wdproj
new file mode 100644
index 0000000..baf50d1
--- /dev/null
+++ b/_tools/ui_check/tiny_long.wdproj
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project Version="1" Seed="12345">
+ <Description>Harness project: the tiny canvas run for 2 000 000 steps on the CPU (minutes), a frame every 1000 steps, to pause and stop.</Description>
+ <Scene Width="64" Height="48" DampingEdge="4" />
+ <Simulation Steps="2000000" VisualizeEvery="1000" />
+ <Display>
+ <Field ColorScheme="Default_Field" BlackLevel="-0.05" />
+ <Intensity ColorScheme="Default_intensity" />
+ </Display>
+ <Source Name="Source 1" X="20" Y="24" Frequency="120" />
+</Project>