Skip to content

Commit e9286cb

Browse files
Merge pull request #9 from andrewmcgivery/feature/customsoundscapes
Creating custom soundscapes
2 parents f1d83fe + 68f936c commit e9286cb

File tree

13 files changed

+542
-19
lines changed

13 files changed

+542
-19
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ In the settings screen you can select which Soundscape you would like to play an
1616

1717
![Settings screen](settings.png)
1818

19+
### Custom Soundscapes
20+
21+
A custom soundscape is a playlist of youtube links that you can customize to create your own ambiance. These are created within the settings screen. You can create as many custom soundscapes as you want and each custom soundscape can have as many tracks as you want.
22+
23+
Additionally, when listening to a custom soundscape, you can use the new "next" and "previous" buttons to switch tracks.
24+
25+
![Screenshot of custom soundscapes list](screenshot3.png)
26+
![Screenshot of editing a custom soundscape](screenshot4.png)
27+
![Screenshot of soundscapes player while playing a custom soundscape](screenshot5.png)
28+
1929
## Requesting New Soundscapes
2030

2131
Have an idea for a new Soundscape? [Open an issue](https://github.com/andrewmcgivery/obsidian-soundscapes/issues/new) and link a Youtube video and why we should add it!
@@ -24,6 +34,8 @@ Have an idea for a new Soundscape? [Open an issue](https://github.com/andrewmcgi
2434

2535
This plugin makes use of the Youtube IFrame API and includes that script as a result. Youtube videos are loaded in the background.
2636

37+
Additionally, the plugin makes a call to this github repository occasionally to check if there is a new version.
38+
2739
## Credits
2840

2941
- [Lofi beats](https://www.youtube.com/watch?v=jfKfPfyJRdk)

esbuild.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import builtins from "builtin-modules";
44
import { sassPlugin } from "esbuild-sass-plugin";
55
import copyStaticFiles from "esbuild-copy-static-files";
66
import path from "path";
7+
import packageJson from "./package.json" assert { type: "json" };
78

89
const banner = `/*
910
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
@@ -55,6 +56,7 @@ const context = await esbuild.context({
5556
outdir: outdir,
5657
define: {
5758
"process.env.NODE_ENV": prod ? '"production"' : '"development"',
59+
"process.env.PLUGIN_VERSION": `"${packageJson.version}"`,
5860
},
5961
});
6062

0 commit comments

Comments
 (0)