Skip to content

Commit

Permalink
Merge branch 'patternuary' of https://github.com/edcrub/strudel into …
Browse files Browse the repository at this point in the history
…patternuary
  • Loading branch information
edcrub committed Feb 3, 2024
2 parents 7f55080 + af1e324 commit db0f243
Show file tree
Hide file tree
Showing 97 changed files with 5,362 additions and 3,015 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

[![Strudel test status](https://github.com/tidalcycles/strudel/actions/workflows/test.yml/badge.svg)](https://github.com/tidalcycles/strudel/actions)

An experiment in making a [Tidal](https://github.com/tidalcycles/tidal/) using web technologies. This software is slowly stabilising, but please continue to tread carefully.
An experiment in making a [Tidal](https://github.com/tidalcycles/tidal/) using web technologies. This software is a bit more stable now, but please continue to tread carefully.

- Try it here: <https://strudel.cc>
- Docs: <https://strudel.cc/learn>
- Technical Blog Post: <https://loophole-letters.vercel.app/strudel>
- 1 Year of Strudel Blog Post: <https://loophole-letters.vercel.app/strudel1year>
- 2 Years of Strudel Blog Post: <https://strudel.cc/blog/#year-2>

## Running Locally

Expand Down
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
2 changes: 1 addition & 1 deletion packages/codemirror/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@strudel/codemirror",
"version": "0.11.0",
"version": "1.0.0",
"description": "Codemirror Extensions for Strudel",
"main": "index.mjs",
"publishConfig": {
Expand Down
Loading

0 comments on commit db0f243

Please sign in to comment.