Skip to content

Commit

Permalink
make 0.5hz cps the default (#931)
Browse files Browse the repository at this point in the history
* 0.5 default cps

* 1 -> 0.5 cps defaults

* start moving examples to 2Hz

* more 2Hz doc edits

* small tweaks

* format

* adapt cycles page

* adapt pitch page

* tonal page

* accumulation

* synth page

* adapt conditional-modifiers

* audio effects page

* adapt signals doc

* fix: errors for signals

* adapt signals page

* start time modifiers

* adapt time modifiers

* adapt factories

* hydra + pattern intro

* adapt mini notation page

* start recipes

* adapt recipes page

* use code_v1 table

* delete old dbdump + add new csv based tool

* fix: tests

* fix: cpm

* shuffle featured patterns

* fix: snapshot

---------

Co-authored-by: Felix Roos <flix91@gmail.com>
  • Loading branch information
yaxu and felixroos committed Jan 22, 2024
1 parent 46c2c72 commit 6422047
Show file tree
Hide file tree
Showing 40 changed files with 3,851 additions and 2,385 deletions.
4 changes: 3 additions & 1 deletion packages/codemirror/highlight.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,16 @@ const visibleMiniLocations = StateField.define({
// this is why we need to find a way to update the existing decorations, showing the ones that have an active range
const haps = new Map();
for (let hap of e.value.haps) {
if (!hap.context?.locations || !hap.whole) {
continue;
}
for (let { start, end } of hap.context.locations) {
let id = `${start}:${end}`;
if (!haps.has(id) || haps.get(id).whole.begin.lt(hap.whole.begin)) {
haps.set(id, hap);
}
}
}

visible = { atTime: e.value.atTime, haps };
}
}
Expand Down

0 comments on commit 6422047

Please sign in to comment.