Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: make soundfont base url configurable #1040

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fnordomat
Copy link

No description provided.

soundfontUrl: 'https://felixroos.github.io/webaudiofontdata/sound'
}

export const fontloaderConfigMap = persistentMap('strudel-config-fontloader', defaultFontloaderConfig);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if a persistentMap is best. wouldn't a simple global variable be enough? it would make sure the default fallback is used in the next session, so there is no hidden state stored in the browser. The fact that an alternative url is used would be visible in the code at all times

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're right, I'll change that.

@felixroos
Copy link
Collaborator

thanks! i guess this one's ready now?

@felixroos
Copy link
Collaborator

@fnordomat ok to merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants