You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ A Python package to render note block songs to a variety of audio formats.
4
4
5
5
## Overview
6
6
7
-
nbswave is a Python package aimed at rendering note block songs from [Open Note Block Studio](https://opennbs.org/) to audio tracks.
7
+
nbswave is a Python package aimed at rendering note block songs from [Open Note Block Studio](https://opennbs.org/) to audio tracks. Supports many common audio formats, both for loading custom sounds as well as exporting tracks.
8
8
9
9
## Setup
10
10
@@ -27,7 +27,15 @@ from nbswave import *
27
27
render_audio("song.nbs", "output.mp3")
28
28
```
29
29
30
-
The output format will be detected automatically based on the file extension.
30
+
The output format will be detected automatically based on the file extension. You can still specify it explicitly if you'd like:
31
+
32
+
```python
33
+
from nbswave import*
34
+
35
+
render_audio("song.nbs", "output", format='wav')
36
+
```
37
+
38
+
> Compatibility with audio formats depends on your FFmpeg configuration.
0 commit comments