Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
# Changelog

## [1.2.0] - 2026-11-19

### Added
- **Scope only:** a new header button hides the header and controls so only the display is left. Move the mouse over it to get the button that brings them back. Saved with the project.
- **Hex codes:** every color in Settings has a #RRGGBB box next to its swatch. The short #RGB form works too.
- **Random colors:** a dice button in Settings gives sidechains 1–3 new colors that are easy to see on the current theme and easy to tell apart.

### Changed
- The window now resizes up to 7680 × 4320 (it stopped at 3000 × 1600), so it can fill a 4K or 8K screen or a super-ultrawide, even at 100% display scaling.
- It also goes much smaller, down to 240 × 110 (it stopped at 760 × 360). The header and footer drop less-used controls as it shrinks, and Settings closes when the window gets smaller than it.
- Every layer now starts at 100% opacity (sidechain layers used to start at 85%). Projects where you changed the opacity keep it.
- The zoom readout no longer sits under the resize corner.

### Fixed
- The window now reopens at the size you left it, in the same session and in saved projects. It used to open at 760 × 360 every time. New instances still start at 760 × 360.

## [1.1.0] - 2026-11-18

### Added
- **Sidechain layers:** three optional sidechain inputs, each drawn as its own coloured layer with the same tempo sync as the main input.
- **Sidechain layers:** three optional sidechain inputs, each drawn as its own colored layer with the same tempo sync as the main input.
- **Layer chips** in the header to show or hide each layer. They also show which inputs are connected.
- **Settings panel** (gear button):
- Theme.
- Colour picker and opacity for every layer and for the Hold trace.
- Color picker and opacity for every layer and for the Hold trace.
- Display options: hover readout, play cursor, 0 dB markers, main layer on top.
- An About section.
- **Themes:** Graphite, Midnight, Phosphor, Daylight.
Expand Down
108 changes: 99 additions & 9 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,39 @@ The product page is https://claeslanng.shop/smartscope/ (repo `claeslanng/claesl
- **Display-only low-pass** (zero-phase, run forwards and backwards), which also redraws
while stopped. It never touches the audio.
- **Hold:** a snapshot drawn as a reference trace.
- **Three optional stereo sidechain inputs**, drawn as coloured layers above the main
- **Three optional stereo sidechain inputs**, drawn as colored layers above the main
trace (an option puts the main trace on top). Header chips show and hide them.
- **Settings panel (gear button):** theme (Graphite, Midnight, Phosphor, Daylight), a
colour and opacity per layer and for Hold, display toggles, and About. Everything is
saved in the project (the `UI` ValueTree child; the theme index is a state property).
color (swatch + picker, plus a #RRGGBB hex box) and opacity per layer and for Hold,
display toggles, and About. Everything is saved in the project (the `UI` ValueTree
child; the theme index is a state property). Needs at least 760 × 352: the editor closes
it below that and grays out the gear.
- **Every layer defaults to 100% opacity** (`UISettings::defaultOpacity`).
- **Random colors (dice button in Settings), like FL Studio's color dice:** sidechains
1-3 only, never Main. Hues about a third of the wheel apart (at least 72°), saturated
but not neon, contrast ≥ 3:1 against the theme's scope background, and clear of the
Main and Hold hues. `UISettings::randomSidechainColours`; RenderTest checks the rules.
- **Scope only (corners button in the header):** hides header and footer, the scope fills
the window. A small button in the top-left corner (over the empty bit left of the ruler)
appears for 2.5 s after the mouse moves and brings everything back. Saved in the
project (`scopeOnly`). No keyboard shortcut: the scope deliberately never takes keyboard
focus, so FL keeps its keys.
- **Branding:** "CLAES LANNG PLUGINS" under the logo, in About, and as COMPANY_NAME.
Plugin codes: manufacturer `Clng`, plugin `Smsc`. Don't change them, or saved
projects won't find the plugin.
- **The plugin never changes the audio** (pass-through, zero latency).
- **US spelling in anything people read** ("color", "colored", "gray"): UI text, tooltips,
README, changelog, product page. Code identifiers keep JUCE's `Colour`.

## Code map

```
Source/PluginProcessor.* capture: tempo sync, window buffer per layer (main + 3 sidechains)
Source/ScopeView.* drawing, grid, zoom/scroll, display low-pass, hold, clip markers
Source/PluginEditor.* window, header (logo, status, layer chips, ?, gear), footer, look-and-feel
Source/SettingsPanel.* settings overlay and colour pickers
Source/Themes.h colour themes
Source/UISettings.h saved display preferences (colours, opacity, visibility, toggles)
Source/SettingsPanel.* settings overlay and color pickers
Source/Themes.h color themes
Source/UISettings.h saved display preferences (colors, opacity, visibility, toggles)
Tests/RenderTest.cpp offline sync checks with a fake host + PNG renders of the UI
```

Expand Down Expand Up @@ -84,9 +98,85 @@ release, update the version on the product page in `claeslanng/claeslanng.github

- **v2: inter-instance overlay.** Show another instance's signal (e.g. the kick track)
behind this one without sidechain routing, like Scyllascope's overlays.
- **Real FL Studio screenshots on the product page.** The README's top image is now a
real FL Studio screenshot (`docs/images/fl-studio.png`, added by hand, not written by
RenderTest). The other README images and the product page still use synthetic renders.
- **Real screenshots.** The product page now uses real FL Studio captures only (since
2026-11-19, done in the website conversation): `main.webp`, `zoom.webp`, four
`theme-*.webp`, `settings.webp`, plus `main-share.jpg` for social previews and a short
demo video (`drag-loop.mp4`). They're lossless WebP at full size, in
`assets/img/smartscope/` in the site repo, framed by a 1 px outline instead of soft
shadows (the owner found those low quality). In this repo, the README's
`docs/images/fl-studio.png` (top image) and `docs/images/fullscreen.png` ("Make it big")
are real captures added by hand. `zoom.png`, `themes.png` and `settings.png` are still
RenderTest renders fed with made-up audio. The next item replaces both kinds.

- **RenderTest renders the website screenshots (after 1.2.0).** The owner doesn't want
to capture everything by hand for every release. **Don't start this until the 1.2.0
features are finished** (the owner's call). Full plan:
`smartscope-website-handoff.md` from the website conversation, and the site repo's
CLAUDE.md.
- **Test audio:** on the **`screenshot-audio`** branch, in `Tests/audio/` (not merged;
merge it first when this starts). Both files are 4 bars at 128 BPM (7.5 s), 44.1 kHz
stereo, and start on the downbeat at the same sample. A README there says they're
under the repo's AGPLv3, and the owner knows the repo is public.
- `Smartscope Audio-Visual Test - Kick 1.wav`: one kick per beat, about 175 ms long,
16-bit. It goes into **sidechain 1**.
- `Smartscope Audio-Visual Test - Bass 1.wav`: the bass with sidechain ducking
already applied, coming back about 4 ms after each kick ends. 24-bit. It goes into
the **main input**. (This is the second, tighter take.)
- **How:** load both WAVs in RenderTest and run them through the processor with the
fake playhead playing at 128 BPM, so the window buffers fill as in FL. Render at
**2× scale** (`createComponentSnapshot (bounds, true, 2.0f)`) at a window size that
gives about **2280 × 784 px**, the shape of the current site images. Play cursor
off; there's no mouse, so there's no hover readout. Layer opacity at 100%.
- **Keep it in the RenderTest target.** The shipping VST3 gets no hidden mode, and its
audio path isn't touched.
- **Output:** lossless PNGs in a folder of their own (e.g. `docs/images/site/`) or as
an Actions artifact. The website side converts them to WebP and swaps them in.

| File | Settings |
|---|---|
| `site_main.png` | Graphite, length 1/2, playing, SC 1 kick orange, main bass light gray |
| `site_zoom.png` | The first ~14 ms of a kick, about Zoom x68 |
| `site_theme_graphite.png` | Orange kick, light gray bass (the defaults) |
| `site_theme_midnight.png` | Cyan kick (about `#40D0FF`), white bass |
| `site_theme_phosphor.png` | Amber kick (about `#FFC23D`), phosphor-green bass (about `#6CFF8A`) |
| `site_theme_daylight.png` | Near-black bass, deep blue (`#2563EB`) or red (`#E5484D`) kick; pale colors get lost on the light background |
| `site_settings.png` | Settings open, Graphite, **no audio behind it**, 2× so the text is sharp |
| `site_drag_####.png` | Frames for the demo video (below) |

The four theme shots use the same audio, view and position, so only the look
changes. The site names the colors in the captions, so people know the colors are
chosen separately from the theme.
- **Demo video frames:** about Zoom x27 on a two-bar window, playback stopped, a
scripted smooth pan of exactly **one beat** (468.75 ms at 128 BPM). Every beat has the
same kick, so the last frame matches the first and the video loops without a seam
(the current one needed a blend). 30 or 60 fps at 2×. The website side encodes a
muted H.264 MP4.
- **Page text is tied to the images.** If renders show something different, the site
text has to change too: the main caption (kick on SC 1 orange over the bass gray,
half a bar), the zoom text ("first 14 ms… zoomed in 68 times", "the bass (white)
hasn't started yet"), the video text (x27, two bars, stopped, kick to kick), and the
features list.
- **Later, optional:** a GitHub Actions job runs RenderTest on each release and pushes
the images (and the version number) into `claeslanng/claeslanng.github.io`. It needs a
token or deploy key with write access there, added by the owner as a repo secret.
- **Until then, hand captures:** enlarge the window to about 2000 px wide (or Windows
scaling 200%), press Hold, turn off the play cursor, keep the mouse out, and capture
just the plugin without FL's frame. Send PNGs attached in the chat, not Gyazo links.
For video, use the Snipping Tool's video mode at full size, starting and ending on the
same view.
- **Same approach later for PitchScope**, whose site images are small 840 px JPEGs.

## Selling points the owner wants promoted

- **Any size** (240 × 110 up to 7680 × 4320, `minWidth`/`maxWidth` etc. in PluginEditor.h):
detach it in FL (the menu item is called **Detached**, under the arrow at the top left
of the plugin window) and give it a whole second monitor, TV or tablet, or shrink it to
a strip. Pairs with **Scope only**. Keep the README "Make it big" section and the
product page's matching section in step with the limits.
- **Small-window layout:** header drops status, then logo, then chips become dots, then
`?`. Footer controls have priorities in `layoutFooter` (labels go first, then zoom,
low-pass slider, gain, < >, low-pass; length box and Hold stay). The footer hides when
the scope would get under 80 px. RenderTest checks nothing overlaps at 640/480/340/240.

## Verified in FL Studio (2026-11-19, v1.1.0)

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.22)

project(Smartscope VERSION 1.1.0)
project(Smartscope VERSION 1.2.0)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
34 changes: 25 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<p align="center">
<img src="docs/images/fl-studio.png" width="900" alt="Two Smartscope windows in FL Studio: a drums track with kick, clap and perc on three sidechain layers, and a bass track with the kick on sidechain 2">
<br><sub>In FL Studio. Top: drums, with the kick (orange), clap (blue) and a perc hit (purple) on sidechains 1 to 3. Bottom: the bass (grey) with the kick on sidechain 2 (blue).</sub>
<br><sub>In FL Studio. Top: drums, with the kick (orange), clap (blue) and a perc hit (purple) on sidechains 1 to 3. Bottom: the bass (gray) with the kick on sidechain 2 (blue).</sub>
</p>

---
Expand All @@ -38,26 +38,41 @@ The plugin passes audio through unchanged, so it's safe on any track or on the m
| **Window length** | 1/16, 1/8, 1/4, 1/2, 1 bar, 2 bars, 4 bars. |
| **Phase-friendly scale** | One combined trace (L+R) on a linear scale with dB labels. You can see polarity, so it's obvious when kick and bass push against each other. |
| **Sample-level zoom** | Zoom right in to individual samples. The grid switches from note values to milliseconds. |
| **Sidechain layers** | Route up to three other tracks into Smartscope and see each as its own coloured layer. Typical use: kick over bass. |
| **Sidechain layers** | Route up to three other tracks into Smartscope and see each as its own colored layer. Typical use: kick over bass. |
| **Display low-pass** | Shows only the low end. It doesn't touch the audio, adds no phase shift or delay, and redraws instantly even when playback is stopped. |
| **Hold** | Keeps a snapshot as a reference trace. Nudge the bass, then compare. |
| **0 dB markers** | Red ticks show where the signal goes above 0 dBFS. |
| **Hover readout** | Time from the start of the window in ms, plus the sample's value, sign and level. |
| **Themes and colours** | Four themes, plus your own colour and opacity for every layer. Saved with the project. |
| **Themes and colors** | Four themes, plus your own color (picker or #RRGGBB hex code) and opacity for every layer. A dice button gives the sidechain layers random colors that stay easy to see. Saved with the project. |
| **Any size** | Drag the corner from a 240 × 110 strip up to 7680 × 4320. Detach the window and give it a whole second monitor, a TV or a tablet, or tuck it into a corner. The controls make room as it shrinks, and the size is saved with the project. |
| **Scope only** | One click hides the header and controls so only the display is left. |

<p align="center">
<img src="docs/images/zoom.png" width="900" alt="Zoomed in: the bass starts about 18 ms after the kick">
<br><sub>Zoomed in: the bass (grey) starts about 18 ms after the kick (orange).</sub>
<br><sub>Zoomed in: the bass (gray) starts about 18 ms after the kick (orange).</sub>
</p>

## Make it big

Smartscope resizes freely, up to 7680 × 4320. In FL Studio, choose **Detached** in the plugin window's menu (the small arrow at the top left), drag the window to another screen, and pull the corner until it fills it. A second monitor, a TV or a tablet set up as an extra display all work. The grid adds 1/32 lines and finer dB labels as there's room, and the size is saved with the project.

For the cleanest picture, click the **corners button** in the header (next to **?**). The header and controls disappear and only the display is left. Move the mouse over it and a small button appears in the top-left corner to bring them back. This is saved with the project too.

It also goes small, down to 240 × 110. As the window shrinks, the status text, the logo and the less-used controls step aside, the layer chips become colored dots, and below about 760 × 350 Settings closes (the gear is grayed out until there's room again).

<p align="center">
<img src="docs/images/fullscreen.png" width="900" alt="Smartscope filling a second monitor in FL Studio, showing the kick (blue) over the bass (gray)">
<br><sub>Smartscope filling a second monitor: the kick on sidechain 2 (blue) over the bass (gray).</sub>
</p>

## Sidechain layers in FL Studio

1. Put Smartscope on the mixer track you want to look at, for example the bass.
2. Select the source track, for example the kick. Then right-click the small arrow under Smartscope's track and choose **Sidechain to this track**.
3. In Smartscope's plugin window, click FL's gear (*Detailed settings*), open **Processing**, and under *Connections* set **Sidechain 1** to the source track's number.
4. The **SC 1** chip in Smartscope's header lights up and the kick appears as a coloured layer. Repeat for Sidechain 2 and 3.
4. The **SC 1** chip in Smartscope's header lights up and the kick appears as a colored layer. Repeat for Sidechain 2 and 3.

Click a chip in the header to show or hide that layer. Colours and opacity are in **Settings**.
Click a chip in the header to show or hide that layer. Colors and opacity are in **Settings**.

## Mouse

Expand All @@ -81,7 +96,8 @@ When the transport is stopped, the scope free-runs at the project tempo while th

The gear button opens **Settings**:
- Theme.
- Colour picker and opacity for each layer and for the Hold trace.
- Color picker, hex code (#RRGGBB) and opacity for each layer and for the Hold trace. Every layer starts at 100% opacity.
- **Random colors** (the dice): new colors for sidechains 1–3, spread around the color wheel and bright enough to read on the current theme. Click again for another set; **Reset colors** goes back to the defaults.
- Display options: hover readout, play cursor, 0 dB markers, main layer on top.

<p align="center">
Expand Down Expand Up @@ -123,8 +139,8 @@ Source/
PluginProcessor.* audio capture: tempo sync, window buffer, sidechain layers
ScopeView.* waveform drawing, grid, zoom, display low-pass, hold
PluginEditor.* window, header and footer controls, look-and-feel
SettingsPanel.* themes, layer colours, display options, about
Themes.h colour themes
SettingsPanel.* themes, layer colors, display options, about
Themes.h color themes
UISettings.h saved display preferences
Tests/RenderTest.cpp offline sync checks and UI renders
docs/images/ screenshots used in this README
Expand Down
Loading
Loading