Skip to content

Commit

Permalink
move examples and main to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
spessasus committed Jun 23, 2024
1 parent a0a88a3 commit 788b100
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
content='width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'>
<meta http-equiv='X-UA-Compatible' content='ie=edge'>
<title>SpessaSynth advanced example</title>
<link rel='icon' href='../src/website/favicon.ico'>
<link rel='icon' href='../../src/website/favicon.ico'>
<style>
* {
font-family: "Noto Sans Light", "Open Sans Light", sans-serif;
Expand Down
6 changes: 3 additions & 3 deletions examples/advanced_demo.js → docs/examples/advanced_demo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// import the modules
import { MIDI } from '../src/spessasynth_lib/midi_parser/midi_loader.js'
import { Sequencer } from '../src/spessasynth_lib/sequencer/sequencer.js'
import { Synthetizer } from '../src/spessasynth_lib/synthetizer/synthetizer.js'
import { MIDI } from '../../src/spessasynth_lib/midi_parser/midi_loader.js'
import { Sequencer } from '../../src/spessasynth_lib/sequencer/sequencer.js'
import { Synthetizer } from '../../src/spessasynth_lib/synthetizer/synthetizer.js'

// load the soundfont
fetch("../soundfonts/SGM.sf3").then(async response => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta name='viewport'
content='width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'>
<meta http-equiv='X-UA-Compatible' content='ie=edge'>
<link rel='icon' href='../src/website/favicon.ico'>
<link rel='icon' href='../../src/website/favicon.ico'>
<title>SpessaSynth render audio to file example</title>
<style>
* {
Expand Down
6 changes: 3 additions & 3 deletions examples/offline_audio.js → docs/examples/offline_audio.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// import the modules
import { MIDI } from '../src/spessasynth_lib/midi_parser/midi_loader.js'
import { Synthetizer } from '../src/spessasynth_lib/synthetizer/synthetizer.js'
import { audioBufferToWav } from '../src/spessasynth_lib/utils/buffer_to_wav.js'
import { MIDI } from '../../src/spessasynth_lib/midi_parser/midi_loader.js'
import { Synthetizer } from '../../src/spessasynth_lib/synthetizer/synthetizer.js'
import { audioBufferToWav } from '../../src/spessasynth_lib/utils/buffer_to_wav.js'

// load the soundfont
fetch("../soundfonts/SGM.sf3").then(async response => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta name='viewport'
content='width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'>
<meta http-equiv='X-UA-Compatible' content='ie=edge'>
<link rel='icon' href='../src/website/favicon.ico'>
<link rel='icon' href='../../src/website/favicon.ico'>
<title>SpessaSynth simple example</title>
<style>
* {
Expand Down
6 changes: 3 additions & 3 deletions examples/simple_demo.js → docs/examples/simple_demo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// import the modules
import { MIDI } from '../src/spessasynth_lib/midi_parser/midi_loader.js'
import { Sequencer } from '../src/spessasynth_lib/sequencer/sequencer.js'
import { Synthetizer } from '../src/spessasynth_lib/synthetizer/synthetizer.js'
import { MIDI } from '../../src/spessasynth_lib/midi_parser/midi_loader.js'
import { Sequencer } from '../../src/spessasynth_lib/sequencer/sequencer.js'
import { Synthetizer } from '../../src/spessasynth_lib/synthetizer/synthetizer.js'

// load the soundfont
fetch("../soundfonts/SGM.sf3").then(async response => {
Expand Down
2 changes: 1 addition & 1 deletion examples/visualizer.html → docs/examples/visualizer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta name='viewport'
content='width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'>
<meta http-equiv='X-UA-Compatible' content='ie=edge'>
<link rel='icon' href='../src/website/favicon.ico'>
<link rel='icon' href='../../src/website/favicon.ico'>
<title>SpessaSynth visualization example</title>
<style>
* {
Expand Down
6 changes: 3 additions & 3 deletions examples/visualizer.js → docs/examples/visualizer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// import the modules
import { MIDI } from '../src/spessasynth_lib/midi_parser/midi_loader.js'
import { Sequencer } from '../src/spessasynth_lib/sequencer/sequencer.js'
import { Synthetizer } from '../src/spessasynth_lib/synthetizer/synthetizer.js'
import { MIDI } from '../../src/spessasynth_lib/midi_parser/midi_loader.js'
import { Sequencer } from '../../src/spessasynth_lib/sequencer/sequencer.js'
import { Synthetizer } from '../../src/spessasynth_lib/synthetizer/synthetizer.js'

// load the soundfont
fetch("../soundfonts/SGM.sf3").then(async response => {
Expand Down
9 changes: 5 additions & 4 deletions index.html → docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<meta name='keywords' content='midi, soundfont, sf2, synth, player, sf3, soundfont player, soundfont player online'>

<title>SpessaSynth SoundFont MIDI Player Online</title>
<link rel="stylesheet" href='src/website/css/style.css'>
<link rel='icon' type='image/png' href='src/website/favicon.ico'>
<link rel='manifest' href='src/website/manifest.json'>
<link rel="stylesheet" href='../src/website/css/style.css'>
<link rel='icon' type='image/png' href='../src/website/favicon.ico'>
<link rel='manifest' href='../src/website/manifest.json'>
<style>
#github_page{
color: yellowgreen;
Expand Down Expand Up @@ -60,6 +60,7 @@ <h1 id="title" translate-path='locale.demoTitleMessage'>SpessaSynth: Online Demo
</div>
</div>

<script type="module" src='src/website/demo_main.js'></script>
<!-- here the magic happens ;) -->
<script type="module" src='../src/website/demo_main.js'></script>
</body>
</html>

0 comments on commit 788b100

Please sign in to comment.