github ouestlabs/audio-ui @audio-ui/react@0.6.0

latest release: @audio-ui/core@0.12.0
one hour ago

Minor Changes

  • 318749a: PianoRoll: scales and note edits. @audio-ui/core/pitch gets the scales (SCALES, inScale, nearestInScale, scalePitchClasses), and @audio-ui/core/piano-roll the edits a toolbar or a menu applies to a selection: splitNotes (at a time, or at every grid line to chop), chopNotes, joinNotes, legatoNotes, reverseNotes, invertNotes, stretchNotes, fitNotesToScale, rampVelocity and humanizeNotes. The roll takes a scale, marking its rows with data-in-scale, and folded="scale" keeps only those rows and the ones carrying notes.

    PianoRoll: a note can be deactivated (muted) and given a chance to play, shown as data-muted on a note and its velocity bar and as the --piano-roll-chance CSS variable; toggleMuted, setChance and selectionSpan go with them. The root says when notes are selected (data-has-selection), and the new PianoRoll.SelectionSpan shades the time the selection covers in the grid, the velocity lane or a ruler.

    PianoRoll: the velocity lane takes a level ("velocity" or "chance") so the same bars edit each note's chance, and in draw mode a drag across it paints the bars to the pointer's height; Cmd/Ctrl + drag on a velocity bar sets the note's new deviation, shown as --piano-roll-deviation. drawStyle="paint" paints a note per grid cell as the pointer drags, on the first pitch with Alt. PianoRoll.StretchHandle, inside a SelectionSpan, stretches the selection in time. Core adds changeLevel, setDeviation, deleteTime, insertTime, duplicateTime and findNotes, and stretchNotes takes an anchor. The roll's Cmd/Ctrl shortcuts leave Shift combinations to the editor around it.

Patch Changes

  • Updated dependencies [318749a]
    • @audio-ui/core@0.12.0

Don't miss a new audio-ui release

NewReleases is sending notifications on new releases.