-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ea14ea
commit 935df95
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -192,6 +192,13 @@ export class StrudelSession { | |
pattern = this.allTransform(pattern); | ||
} | ||
|
||
// fix `pattern.fmap is not a function` exception, | ||
// which happens when the pattern is the hubda function. | ||
// TODO: figure out why this is happening, that sounds like a bug with the nudel std lib. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
TristanCacqueray
Author
Collaborator
|
||
if (typeof pattern === 'function') { | ||
return; | ||
} | ||
|
||
// fft wiring | ||
if (this.enableAutoAnalyze) { | ||
pattern = pattern.fmap((value) => { | ||
|
pretty sure its because the returned pattern is now a non-pattern when you don't use
$:
for example...
an empty strudel pane with
silence
will throw the erroran empty strudel pane with
$: silence
will not throw the errorI think we should make the std lib end with something like
silence
to avoid this error. although we would need to do it in a way that doesn't break things like hydra when used within that. maybe just ending the file withwindow.silence
or something