From c5cc33339eda814a93afc2259e2c7840301b3142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20G=C3=BCdelh=C3=B6fer?= Date: Mon, 23 Dec 2024 17:52:30 +0100 Subject: [PATCH] Add attribution links for P function --- packages/web/src/lib/hydra-wrapper.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/web/src/lib/hydra-wrapper.ts b/packages/web/src/lib/hydra-wrapper.ts index 639bf93c..9ea71177 100644 --- a/packages/web/src/lib/hydra-wrapper.ts +++ b/packages/web/src/lib/hydra-wrapper.ts @@ -68,6 +68,9 @@ export class HydraWrapper { // Enable using strudel style mini-patterns for argument control on Hydra. // strudel needs to be loaded first, otherwise this will cause warnings, and rendering will not // include the mini-pattern. + // Inspired by + // - https://github.com/atfornes/Hydra-strudel-extension/blob/51a93496b1b05ea00c08d1dec10e046aa3769c93/hydra-strudel.js#L72 + // - https://github.com/tidalcycles/strudel/blob/26cc7e2920e32ec01bf22e1dae8ced716462a158/packages/hydra/hydra.mjs#L50 window.P = (pattern: any) => { return () => { // parse using the strudel mini parser