You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
v0.1.2
With an empty search, the reference lists its headings by use across the 186 songs in the score corpus. Temporal, tonal and audio come first. A search still opens on the best match.
Settings ▸ Reference has five switches, all on by default. Turn one off to hide a kind of entry from the reference and the editor suggestions. The kinds are OSC and SuperDirt-only controls, serial(), the FM routing matrix fmi11 to fmi88, the bind and join family, and pattern internals such as withHap. tag: search still lists a hidden kind, and Ctrl+D still opens its page. fadeInTime, chorus, oschost and oscport now carry the osc tag. dry, bus, busgain, octave, unit and phaserdepth play natively, so they lose the superdirt tag.
Pattern queries are faster. Cycle time arithmetic uses 64-bit math when numerators and denominators are below 2^31. Every operation used 128-bit math. s("[bd hh sd hh]*8").fast(2) queries 1.7 times faster over whole cycles and 1.65 times faster over a 25 millicycle live window, in a release build on one x86-64 desktop. Events stay the same.
Scores with several controls query faster. A control such as .gain(0.8) built a lookup table for each event, and only pick reads the table. Rustel now builds the table when a pick asks. s("[bd hh sd hh]*8").n(3).gain(0.8).pan(0.25).cutoff(800).room(0.3) queries 1.9 times faster in a release build on one x86-64 desktop. Events stay the same.
A host which builds rustel-core with no default features drops the scale table (244 KB compressed) and its decoder. The new tuning-list feature holds both and is on by default. Named scales are unknown in the smaller build, and a scale given as a frequency list works as before. A default build and every Rustel product build stay unchanged.
A build which never reads the reference text of the controls no longer links the text, about 230 KB uncompressed. The control registry reads a table of names and aliases, and only code which shows the text reads the full table. A product build is unchanged.
The new transpiler::on_caller_stack(work) runs every parse of work on the calling thread. Each parse spawned a thread with 256 MiB of stack. A host with no threads got a refusal diagnostic from every transpile call, and a host on a large stack of its own paid for a thread the host did not need. The nesting checks still run first, and the caller owns the stack size. Existing callers stay unchanged.
rustelup --branch main and rustelup --commit <hash> build rustel from source and install the binary. Use them to test a change before its release. The build needs git and rustup. Run the install command again to get the new rustelup.
rustelup keeps the backup of the previous binary when a restore fails and prints its path. The cleanup deleted the backup with the stage directory.
rustel play song.strudel plays a score, and the playing flags are in rustel play --help. rustel song.strudel is removed and stops with a tip for rustel play. play was a hidden alias of trace, so rustel play song.strudel ran with no sound.
rustel export accepts --prebake and is the one command for a bounce to a file. rustel play has no --export, --cycles, --until-silence, --silence-floor, --silence-hold or --sample-rate. The old --export wrote WAV only, with a default length of 2 seconds.
rustel-ext no longer turns the scale table on. A host which builds rustel-core with no default features keeps the table off and still gets the extension names. A default build stays unchanged.
Studio asks when it cannot save a score as you open or create another set. Enter retries the save, Del leaves the set without those edits, and Esc keeps the set. Before, the set stayed open with no way out, for example after its folder lost write permission.
Studio marks the cycle count of the arrange section in play. arrange([8, intro], [16, verse]) marks the 8 for 8 cycles, then the 16. An arrange call had no mark, so the score did not show your place in the song. Each event of a section carries one more source span. Sound and timing stay the same.
rustel studio my_folder, with no my_folder on disk, creates the set folder my_folder with a starter scene. File > Open set does the same with a typed path. A missing path that ends in .strudel still opens a starter score. If the parent folder is missing or locked, the launch stops and names the path. Before, Studio opened my_folder as a score in the parent folder. The set panel never listed it, and with / as the parent each save failed with Permission denied (os error 13).
Two timing tests no longer fail on a loaded CI runner. The scheduler budget test measured the age of its own channel as wake jitter, 138 ms on one Windows runner. The studio handover test left 50 ms for a late wake of the MIDI sender thread and now leaves 200 ms.
A score loads a helper script with await import('https://glossing.dev/scripts.js') when you trust the origin. rustel play song.strudel --allow-import-origin https://glossing.dev trusts one origin. In Studio, the first update names the origin on the footer and Settings ▸ Trust lists the origin. Enter trusts the origin, and Studio keeps the choice. Rustel fetches the script and runs the script as setup code before the score, in the score sandbox. No origin is trusted by default. Before, each import() stopped the score with dynamic import is disabled. See Script imports.
bus takes a name. .bus('drums'), bmod({ b: 'drums' }) and s("bus").n('drums') share one of the 16 buses, and a number still selects its own bus. Before, a name refused the voice with bus must be a finite number.
getTime(), getCps(), getRandsAtTime(time, n, seed) and getFrequencyFromValue(value) are available in scores and prebakes. Helper scripts written for the browser call them. addEventListener is accepted and does nothing.
A pattern made with mini('...') in a score no longer highlights the first characters of the score when its events play. The events carried positions inside the string, and Studio read them as positions in the score.
A slider move no longer silences the set when the score has a refused voice. The move asks the score again, and one refused voice refused the full update. The rollback then loaded the same score, and the set stayed silent. A refused voice is now skipped and logged, as on the first play.
In a split view, a click on the tab of a scene open in the other pane keeps the caret in your pane. The status line names the pane with the scene, and F10 moves the caret there. Before, the click moved the caret to the other pane.
rustel export, rustel render and rustel replay --export print each voice notice once, with the number of onsets. Before, an LFO on a target Rustel does not modulate, such as .lpenv(4).lfo({s:.7}), printed several JSON lines for each note. With --json, the records stay the same.
A score plays with the names from its own imports. Two helper scripts which both define .sc() no longer change each other. Before, the script loaded last gave its .sc() to every score, so a score sounded different after another scene played. A name from one script only stays available to every score, and an import in a prebake shares its names with every score.
.onSchedule(callback) is accepted and returns the pattern unchanged, the same as .onTrigger(). Rustel calls no playback callback. Before, a score with .onSchedule() stopped with an error.
isobite(structure) plays the next cycle of a pattern on each event of a structure. "<0 1 2 3 4 5>".isobite("[x - x*2]*2") plays "0 - [1 2] 3 - [4 5]". With a pattern and a structure of different lengths, the two shift against each other from cycle to cycle. cyclestruct and cycleStruct are the same function.
A search in the reference shows each function under the name you type. cycleS shows cycleStruct, with also: isobite on a line under the row, and Enter writes cycleStruct. The other names of each function are on this line, so the summary has the full width of the row. Before, the row showed the main name isobite and Enter wrote isobite. When two names differ only in case, the row shows the camelCase name. A capital in your search text puts the names with this capital first, so cycleS lists cycleStruct before cyclesPer and before the set tempo snippet.
Space stops a sample preview the first time, every time. On a loaded machine the engine's two-slot command queue held the studio's setup commands while the first Space queued the sound, the second Space's stop command was dropped, and the preview rang on with the status line still naming the sound. The stop now sets a flag the engine honours on its next turn, the same guarantee the transport's second Stop press has.
Sound changes
The stop fade runs for the full 10 ms. The fade ended after 128 frames, about 3 ms at 48 kHz, and left a click.
.pg(x) multiplies the postgain of each note by x. .accent(x) multiplies velocity and lpenv the same way. Before, both silenced the pattern with no error, because the multiplier held no events.
s("one") plays a constant signal, the source of a bus modulator: s("one").gain("0 1").bus(1).dry(0) moves the control another pattern reads with bmod({ b: 1 }). Before, the sound was unknown and the modulator voice was refused. A sample named one still plays as a sample.
An lpq slider moves the resonance of a note already sounding. It works like an lpf slider on the cutoff. An exact move takes 5 ms, and a smoothed mouse move takes 35 ms. Before, the new resonance reached only the next note, so a long note or a legato(2) pad kept the old value. A render does not change.