Skip to content

Commit 8ab95b7

Browse files
authored
Add TypeScript (#10)
This pull request adds TypeScript to spessasynth_lib. Fixes #9. It also: - Redesigns Synthetizer (now WorkletSynthesizer) and Sequencer to work like with core - Renames "soundfont" to "sound bank" everywhere, like in core - Adds eslint and prettier, ensuring consistent code style * initial typescript * initial typescript (it's pain) * further typescript * worklet valid * it compiles * first example is working * typescript build files * update for core update * Properly implement all examples and core updates and wiki updates! * eslint stylistic & begin migration guide * migration guide * BasicSynthesizer To prepare WorkerSynthesizer * Rework effect processors * remove console.log * structure rework * initial worker synthesizer * workerSynthesizer renderAudio and example update * eslint tweaks * remove tempoChange event * better types * better audio to wav * Unified synthesizer core * SF2 write in worker synth * better MIDIDeviceHandler * writeDLS * midiData can be undefined! * write RMIDI! * better MIDI device handler * fix alt name * Compression quality in the function * better worker synth API * type tweaks * better pitch wheel * fix current time desync * fix deleting sound bank * sf2 extension * reference migration guide * automatic time adjustment * Latency selection for worker * copy tracks but without events * update for core! * rename the worklet file * LSB patch * Fix build on Windows * core fix * initial documentation * further documentation! * sequencer documentation! * finish docs!
1 parent 7d4e8b9 commit 8ab95b7

142 files changed

Lines changed: 10995 additions & 6594 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ body:
4242
description: Steps to reproduce the behavior.
4343
placeholder: |
4444
1. Load this MIDI...
45-
2. Load this soundfont
45+
2. Load this sf2/dls file
4646
3. Play '...'
4747
4. See error...
4848
validations:
@@ -62,6 +62,6 @@ body:
6262
- type: textarea
6363
attributes:
6464
label: Additional info
65-
description: Any additional info and attachments (screenshots, MIDIs, soundfonts, other environments) go here.
65+
description: Any additional info and attachments (screenshots, MIDIs, sf2/dls files, other environments) go here.
6666
validations:
6767
required: false

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ body:
2727
- type: textarea
2828
attributes:
2929
label: Additional info
30-
description: Any additional info and attachments (screenshots, MIDIs, soundfonts, other environments) go here.
30+
description: Any additional info and attachments (screenshots, MIDIs, sf2/dls files, other environments) go here.
3131
validations:
3232
required: false

.github/workflows/deploy.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,17 @@ jobs:
3636
python-version: '3.13'
3737
- name: Install Node dependencies
3838
run: npm ci
39+
- name: Install Python dependencies
40+
run: pip install -r docs/requirements.txt
3941
- name: Build Pages
4042
run: npm run build
4143
- name: Setup Pages
4244
uses: actions/configure-pages@v5
4345
- name: Upload artifact
4446
uses: actions/upload-pages-artifact@v3
4547
with:
46-
# Upload dist folder
47-
path: './dist'
48+
# Upload docs folder
49+
path: './docs'
4850
- name: Deploy to GitHub Pages
4951
id: deployment
5052
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ $RECYCLE.BIN/
6464

6565
# Windows shortcuts
6666
*.lnk
67-
/synthetizer/worklet_processor.min.js.map
67+
*.tgz
68+
/synthetizer/
6869
/spessasynth_lib.wiki/
6970
dist/
70-
synthetizer/
71-
*.tgz
72-
gh-pages/
71+
/gh-pages/

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLinters/eslint.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/prettier.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/spessasynth_lib.iml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"tabWidth": 4,
3+
"semi": true,
4+
"singleQuote": false,
5+
"trailingComma": "none",
6+
"endOfLine": "lf"
7+
}

0 commit comments

Comments
 (0)