Quick reference for input port properties (Idea)

This is a great idea (set of ideas) ! Definitely there should be a formal feature request to VCV - it really belongs as part of the core VCV platform. It would be great to have extensive pop-up help for each module / port / control / light. Getting people to read manuals is like pulling teeth. But having built in help is the lowest barrier possible for self education.

My hunch is Andrew would not put this in VCV 2. But maybe it can be incorporated into VCV 3, which is actively being worked on. In the mean time your plugin can be invaluable until then (maybe for ever if Andrew declines to implement).

Some things to think about:

  • Where is the info stored? Perhaps a JSON file with well documented structure. Ideally it should be part of each plugin distribution, something each developer can provide. But also something that can be provided by third parties in cases where the developer fails to do so. Then there is the question of what do do if the developer provides a bare bones file that is missing important information, and someone prepares a better, more complete version. Should there be a way to select which version to display?

  • Some modules are exceptionally complex, and descriptions could become quite long. The pop up should be scrollable, perhaps resizable. Perhaps also an option to open in a separate window that persists. For really long descriptions hierarchical pop-ups could be used. The main pop up could have a link that when selected opens a child modal popup above.

  • Some controls / ports change their function depending on how other options are configured. The description could list all the possibilities. But it would be cool if the module could inform which description is relevant at the time so the correct info would be displayed, along with some indication that the functionality is changeable.

Thanks. A few things from having built it.

It doesn’t have to be in the core. What I have now is a single module with no inputs or outputs. You drop it into a patch and it intercepts option-click anywhere on any module, then shows help for whatever was under the cursor — a port, a knob, a light, or the title bar. No changes to Rack were needed. If Andrew builds it into VCV 3 the module becomes unnecessary; until then it works on 2. I’m happy to write it up as a feature request once the data format has settled, since a request is easier to judge with a working implementation and a populated database behind it.

Where the data lives. One JSON file per plugin, keyed by module slug and by port and parameter index. A public repository, starting from what I have, with makers submitting pull requests for their own plugins, and the help module shipping the latest database at each build. Andrew could take the repository over if he wanted it.

Two things make review practical. Every field carries a citation — a file and line in the maker’s source, or an address in the binary. A claim that a jack takes ±5V can’t be reviewed; “Foo.cpp:123 clamps it to ±5V” can be checked in seconds. And because the claims are checkable, the review is largely mechanical, so pull requests don’t need a maintainer reading code all day. It’s mechanical enough to automate: a submission cites the file and line, so an AI tool can be pointed at the source and asked whether each claim holds, and report the ones that don’t. Most of the library is published with source, so that covers the bulk of it; entries derived from a binary still need a person, or the maker’s own word.

On expecting makers to supply it. VCV already asks developers for one piece of structured metadata that bears on ports: the Polyphonic tag in the plugin manifest. Checked against the code across the whole library — my own analysis, against the current versions — 342 modules are polyphonic and carry no tag, and another 11 are tagged Polyphonic with no polyphony anywhere in the build. So third-party data isn’t a fallback, it’s the main path, and the merge question you raise is the central one. My answer is provenance per field rather than per file: where a maker’s manual and their code disagree I keep both values side by side, so a consumer can take the maker’s polyphony and someone else’s voltage range and still know which came from where. In the pop-up the maker’s own value is what shows, with the disagreement noted on the line and the other value a click away, so the display stays short without hiding that a second reading exists.

Versioning. Descriptions are keyed to port indices, which are positions in an enum. A maker who inserts a jack in the middle shifts every index after it, and every description then points at the wrong control with nothing looking broken. The database has to record the version it was written against, and the help module has to check it.

Relating code to the panel. The code knows a jack as index 3; the panel knows it as a hole at a position; nothing connects the two. I instantiate every module once, record every widget’s position from the running Rack, and draw the indices onto the panel artwork. That picture is what lets you say “the jack printed CLOCK is input 7”. It also catches index order not matching panel order — reversed rows, scattered enums, and ports that are declared but have no widget, which no cable can ever reach.

Length and hierarchy. The popup shows one control, not the module, so length is rarely the problem — the mean entry is about 17 lines, and each line belongs to a different control. A scrollable popup covers the outliers. Resizing and a version that stays on screen rather than dismissing are both reasonable and cost little, so I’ll add them. I don’t think a hierarchy is needed. If a second level is ever wanted it isn’t for long text, it’s for the module-level material — the notes and the context menu items — which belongs to the module rather than to any control, and that’s a section rather than a tree.

Controls that change meaning with a setting. I’d document all the states and what switches between them, rather than having the module resolve to the current one. If the help only describes what the control is doing at that moment, the reader has no way to discover it does anything else. Keeping it static also removes the version-sensitive runtime path. Module-wide variation goes in the title-bar popup; a single control’s variants go in its own line, naming the switch. The aim is a clue that a variation exists, not a replacement for the manual.

Resolving at runtime is possible, for what it’s worth — another plugin can read a module’s parameters directly, and its menu state through dataToJson. I’d still list all the states.

Rack already has tooltips, since every configParam name becomes one. A good deal of what I found while building this was tooltips that were empty, copied from a neighbouring control, or describing a control the code no longer has — which is how I ended up reading the code instead.

A closing note, and a strange coincidence — or perhaps not one. In the 90s I was group program manager for Microsoft Excel, and I invented tooltips and gave them that name. Thirty years later, here I am doing much the same thing again. I suppose I’m just someone who doesn’t like being left guessing about what something does :slight_smile:

@Alphagem-O — to your points. Yes to bringing in @Cella; duplicated effort helps nobody and the data is more useful the fewer copies of it there are. On verbose external versions: the repository is that version. Each entry holds more than the pop-up displays — the citation, the provenance, the states of a control that vary — so the box is a view onto the data rather than the whole of it, and anyone wanting to dig deeper reads the record. On your two threads: I’ll do that, one for consent and one for contributions, once the repository is public, so that people arriving at either thread have something concrete to look at.

On what is in the current release: most of it is there in the Clarity plugin now. I am still making passes over the data and reviewing it for correctness as carefully as I can with AI assistance, and a reviewed, more complete version should go up later today. I am also moving it out of Clarity — it is becoming a separate module called simply Help, rather than a feature of a module that does other things.

I think that is a great idea. That way, if one does not need the clarify features (‘yet’, as is in my case :wink: ) one can still use this, as it adds context when one needs it.

Also the test gear is very cool, though I have my scaling in Rack set to that tooltips in high contrast dark mode look readable to me, but the fact it is so flexible makes it very cool. A scope on any channel, easy peasy. etc. A very cool concept that I see myself using while I patch.

I agree that much, if not all of this should be in Rack native as of V3… It would make Rack much more accessible and feature many more niceties in the way you patch with it.

Thanks. Help is now its own plugin, with a single module that has no inputs or outputs. Option-click any port, knob, switch, light or module title to see its help, as far as the database covers that module.

Release: Release v2.0.0 · chrisgr99/DreamerHelp · GitHub Repository: GitHub - chrisgr99/DreamerHelp: In-rack help for VCV Rack: option-click any control for a note saying what it does · GitHub

If you use the Test Gear module, update the DreamerDevelopment plugin that contains it to version 2.0.9. Earlier versions intercept option-click on ports, so Help does not open there: Release v2.0.9 · chrisgr99/DreamerDevelopment · GitHub

The database covers 4,189 modules across 376 plugins, which is the free library I have installed. Most paid plugins have no entries yet.

Each module has a line per control, notes that apply to the whole module, and its context menu. The notes include what a module needs before it does anything, such as a file, a clock, an expander or a level that starts at zero. For each port it also records polyphony, voltage range, whether it’s read as a level or an edge, what a negative voltage does, and what an unpatched port reads.

It is pre-release. I have spot-checked it but not verified every module, so there will be errors. Corrections are welcome, especially from makers about their own modules.

The data is now one YAML file per plugin, named by plugin slug, rather than the JSON I mentioned earlier. YAML is easier to write by hand, and a Python script converts it to JSON at build time.

I’m proposing that corrections and additions come in as pull requests to the repository, rather than as posts that I transcribe. That avoids errors from copying. Automatic checks confirm that each file parses, matches the schema, and cites a source for every fact: a file and line in the code, or a manual page. Where a plugin has no public source, voltage ranges are left out and the file says so.

Tomorrow I’ll start a thread called “VCV Help Repository” to discuss the Help plugin and the contribution process, and I’ll propose a submission format there.

That’s pretty cool. Was it to your knowledge the first program with tooltips?

Oh, you’re not alone Chris, believe me…

Thank you for the pre-release! This is an amazing, inconspicuous module that I will likely use quite often.

I installed the module and it seems to be working very nicely so far.

I noticed that the font in the pop-ups is rather small and longer text may be hard to read. Custom scalability (within limits) would be very nice to have. This should probably also include a scroll bar as was suggested earlier. It’s really a minor point at this stage, but I thought I’d just mention it if it can enhance user experience

With Dreamer Help loaded, ALT+Drag to pan the canvas stops working. Turning Dreamer Help off bring canvas pan back. Is this intended?

OK, I got the ball rolling with first issue filed on Github. Thanks for this plugin, It will surely be of great help.

@LarsBjerregaard Yes, Excel was the first app with tooltips. Apple had an earlier feature called Balloon Help, but it showed a large block of text, and you had to switch into a mode to see it.

In Excel we were adding toolbars for the first time, and I wanted a way to teach people what each button did without getting in their way. My idea was a short description that appeared when the pointer paused over a button. It stayed hidden while the pointer was moving across the toolbar. I prototyped that behaviour in Visual Basic first. The first tooltips were lemon yellow, the same yellow as the Post-it notes I used to add comments to documents. The name came from their first use, as tips on toolbar buttons.

I later managed the Office core design group and added tooltips to every toolbar button in Office and Windows. Apple later adopted them too.

@Alphagem-O Thanks for the reports on font size, scrolling, and Alt-drag panning stopping while Help is loaded. @fractalgee Thanks for filing the issue about long titles running off the panel. I’ll look into all of these today.

All good, maybe auto-size the panel horizontally with the width of the tittle?

Dreamer Help 2.0.1 is out: Release v2.0.1 · chrisgr99/DreamerHelp · GitHub

Thanks for the reports. All three are fixed.

Fixed

  • Option-drag pans the rack again.
  • Long control and module names wrap to a second line instead of running off the edge of the note.
  • A note taller than the window is clamped to the window height and scrolls, with a scroll bar and a chevron at the bottom.
  • The panel lettering was missing and is now back.

Added

  • A speech button on the panel, which lights when on. With it on, click any line of an open note to hear it. Speech uses the system voice. Windows and Linux are supported but untested. Where no voice is available, nothing is spoken.
  • Note text size, from 80 to 250 percent, in the right-click menu. The setting is stored per user, not in the patch, so it also applies in patches other people made.
  • An entry for the Help module itself.

Changed

  • Help on/off is now a lit push button, and the panel is 4 HP.

Downloads for all four platforms are on the release page. It is still a pre-release.

@fractalgee Some titles are too long to fit on one line at any reasonable note width, so I wrapped them instead of widening the note.

Kudos, high praise, much respect for all the work you have been doing with Clarity, Test Gear, Help. I am going to list things I don’t like or think should be improved, but don’t take offense. Calling out all the things I like and am impressed with would be exhaustive to write, and to read!

I will put notes for Clarity, Test Gear, and Help all in this post. Perhaps Clarity and Test Gear notes belong in a separate thread. Let me know if you prefer this info as GitHub Issues.

All my testing was on a Windows machine.

General

I think your modules would look better without the screws. As it is the screws currently overlap elements of your faceplate graphics. You could reformat your faceplates a bit to make the screws look better, but it seems simpler to just remove the screws.

Test Gear

  • I think Switch and Attenuverter would work well on outputs, not just inputs
  • Perhaps Switch should be renamed Mute?
  • Note is redundant with VCO. I think Note should be removed.
  • VCO is not really voltage controlled, so should it simply be called Oscillator, abbreviated Osc?
  • DC Level and Volt/Oct both do the same thing, but just use different scales. Perhaps combine them into one with an option to choose scale of Volts or Pitch (assuming 0V = C4, v/oct). Tool could be called Constant Voltage
  • It would be nice if Voltmeter Peak showed both min and max. Or allow user to select current, min, or max.
  • I struggled to configure Scope to work effectively with LFO signals. I couldn’t get the speed slow enough to be useful, but I think there are other issues. I’m just not sure what they are. Also resizing was very temperamental. I struggled to grab on to the edge to resize.
  • After attaching a test gear to a port, click and drag on the port no longer creates a cable. Once I click and drag away from the port, then subsequent click and drag operations successfully create a cable.

Help

  • Scroll sometimes appears when it is needed, sometimes doesn’t. I haven’t figured out a pattern yet.
  • Help does not recognize controls or ports on my Venom Envelope Factory that are not direct children of the faceplate. Envelope Factory hides stages that are not needed by placing all the controls and ports for a stage on a child faceplate that can be hidden or shown. These are the controls that are not being recognized by help.
  • It is possible to instantiate multiple audio readings that overlap. Ideally only one should be allowed at one time - starting a new one should terminate any prior reading.
  • Clicking on a line to speak seems counter-productive
    • If a user can see well enough to determine which line to click, then speak probably isn’t needed
    • If user can’t identify the line(s) to click, then it is kind of useless
  • I think if speak is enabled, then simply option clicking the module/control/port should automatically speak the entire help.
    • navigation options could be added to scroll forward, backward through individual lines, and/or stop the speaking
  • Help popup and speak could be totally separate options that can be enabled/disabled independently. Option clicking an item could then speak, or open the popup, or both.
  • Maybe allow the user to configure what key and mouse click combination is used to activate the help.
  • I am surprised the help must be compiled into the plugin. Maintenance seems untenable with the pace that new modules are being created. Wouldn’t it be better if each plugin help file was stored somewhere in the VCV installation and loaded on demand? Then users can add, correct help without recompilation
  • I really dislike the YMAL format you currently have. It is hard to correlate all the various attributes that are spread throughout the file to their corresponding control or port. It would be much easier to read and maintain if the file were arranged hierarchically. It would be much easier if all the module level attributes are collected in one place. Likewise, all the attributes for each control or port should be collected together.
  • Assuming you adopt a hierarchical structure, then I think JSON would be easier to maintain directly. There are plenty of text editors that can do bracket matching to assist. JSON would also be more conducive to on demand loading.

Dark

I like the concept, but I think there are issues with the execution. If these issues get resolved, then I definitely would use it!

  • I don’t understand why VCV modules that have light and dark themes still have some of the graphical components modified by Dark. For example, the VCV Audio module.
  • Some faceplate components don’t have enough contrast after Dark is applied. For example, the VCV Host has horizontal linework that gets lost after Dark is applied.

@DaveVenom Thanks for testing all four modules and for the detailed notes and suggestions. Good ideas. It’s great to have a second opinion on these things. I’m moving discussion of my modules to a single thread, Dreamer Development, and will answer your points there: Dreamer Development: Clarity, Test Gear, Dark, Help and MPX (latest: Help 2.0.1)