File: sonivoxrender.1

package info (click to toggle)
sonivox 4.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 26,676 kB
  • sloc: ansic: 77,919; python: 8,597; cpp: 356; asm: 281; xml: 28; makefile: 5
file content (190 lines) | stat: -rw-r--r-- 5,054 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
.\" Automatically generated by Pandoc 2.14.0.3
.\"
.TH "SONIVOXRENDER" "1" "February 14, 2026" "sonivox 4.0.1.0" "Sonivox MIDI File Renderer"
.hy
.SH NAME
.PP
\f[B]sonivoxrender\f[R] \[em] Render MIDI song files into raw PCM audio
.SH SYNOPSIS
.PP
\f[B]sonivoxrender\f[R] [\f[B]-h|--help\f[R]] [\f[B]-v|--version\f[R]]
[\f[B]-d|--dls\f[R] \f[I]soundfont\f[R]] [\f[B]-r|--reverb\f[R]
\f[I]0..4\f[R]] [\f[B]-w|--wet\f[R] \f[I]0..32767\f[R]]
[\f[B]-n|--dry\f[R] \f[I]0..32767\f[R]] [\f[B]-c|--chorus\f[R]
\f[I]0..4\f[R]] [\f[B]-l|--level\f[R] \f[I]0..32767\f[R]]
[\f[B]-g|--gain\f[R] \f[I]0..196\f[R]] [\f[B]-V|--Verbosity\f[R]
\f[I]0..5\f[R]] [\f[B]-R|--reverb-post-mix\f[R]]
[\f[B]-C|--chorus-post-mix\f[R]] [\f[B]-s|--sndlib\f[R] \f[I]1..3\f[R]]
\f[I]song_file\f[R]
.SH DESCRIPTION
.PP
This program is a MIDI file renderer based on the sonivox synthesizer
library.
It reads .MID (Standard MIDI Files), .RMI (RIFF-RMID), and .XMF
(Extensible Music Files) file formats, and writes an audio stream to the
standard output as raw 16 bit stereo PCM samples.
.SS Options
.TP
-h, --help
Prints brief usage information.
.TP
-v, --version
Prints the version numbers.
.TP
-d, --dls \f[I]soundfont\f[R]
Optional DLS or SF2 soundfont file name.
If not provided, it uses an internal embedded soundfont.
.TP
-r, --reverb \f[I]reverb_preset\f[R]
Reverb preset between 0 and 4: 0=no, 1=large hall, 2=hall, 3=chamber,
4=room.
.TP
-w, --wet \f[I]reverb_wet\f[R]
Reverb wet level between 0 and 32767.
.TP
-n, --dry \f[I]reverb_dry\f[R]
Reverb dry level between 0 and 32767.
.TP
-c, --chorus \f[I]chorus_preset\f[R]
Chorus preset between 0 and 4: 0=no, 1..4=presets.
.TP
-l, --level \f[I]chorus_level\f[R]
Chorus level between 0 and 32767.
.TP
-g, --gain \f[I]master_gain\f[R]
Master gain between 0 and 196, default is 100 (+0dB).
The number is relative to 100, in 1dB increments, e.g.\ 120 = +20dB, 80
= -20dB.
.TP
-V, --Verbosity \f[I]verbosity\f[R]
Verbosity level between 0 and 5, where 0=no, 1..5=severity levels.
.TP
-R, --reverb-post-mix
Ignore CC91 reverb send level.
The reverb effect will apply to mixed output audio, which is the old
behavior.
.TP
-C, --chorus-post-mix
Ignore CC93 chorus send level.
See also \f[B]--reverb-post-mix\f[R].
.TP
-s, --sndlib \f[I]index\f[R]
EAS sound library to use:
.RS
.IP \[bu] 2
1: wt_200k_G (default) - WT-only bank, used in Android devices.
Also named \[lq]Common\[rq].
Support 22050 Hz and 44100 Hz sample rates, 8-bit and 16-bit samples.
.IP \[bu] 2
2: GMdblib-3 - FM-only bank.
Support all sample rates.
Sample bit depth does not matter here.
.IP \[bu] 2
3: hybrid_22khz_mcu - Hybrid bank.
Use WT synth for drums and FM for melodic instruments.
This bank is a combination of \f[C]GMdblib-3\f[R] and
\f[C]Sonic_20Khz_Drums\f[R].
Support 22050 Hz sample rate and 8-bit samples only.
.PP
\f[B]Note:\f[R] This option does not affect DLS/SF2.
They will always use the DLS synth engine.
If the selected sound library is not compatible with the build
configuration, the program will fail with an error message.
.RE
.SS Arguments
.TP
\f[I]song_file\f[R]
Input [\f[B]MID|RMI|XMF\f[R]] file name.
.SH EXAMPLES
.PP
The following examples assume the default option USE_44KHZ=ON, which
means an output sample rate = 44100 Hz.
.PP
Example 1: Render a MIDI file and save the rendered audio as a raw audio
file:
.IP
.nf
\f[C]
$ sonivoxrender ants.mid > ants.pcm
\f[R]
.fi
.PP
Example 2: pipe the rendered audio thru the Linux ALSA \f[B]aplay\f[R]
utility:
.IP
.nf
\f[C]
$ sonivoxrender ants.mid | aplay -c 2 -f S16_LE -r 44100
\f[R]
.fi
.PP
is equivalent to:
.IP
.nf
\f[C]
$ sonivoxrender ants.mid | aplay -f cd
\f[R]
.fi
.PP
Example 3: pipe the rendered audio thru the \f[B]lame\f[R] utility
creating a MP3 file:
.IP
.nf
\f[C]
$ sonivoxrender ants.mid | lame -r -s 44100 - ants.mp3
\f[R]
.fi
.PP
Example 4: pipe the rendered audio thru the \f[B]sox\f[R] utility
creating a WAV file:
.IP
.nf
\f[C]
$ sonivoxrender ants.mid | sox -t s16 -c 2 -r 44100 - ants.wav
\f[R]
.fi
.PP
Example 5: pipe the rendered audio thru the PulseAudio\[cq]s
\f[B]pacat\f[R] utility:
.IP
.nf
\f[C]
$ sonivoxrender ants.mid | pacat
\f[R]
.fi
.PP
Example 6: pipe the rendered audio thru the PipeWire\[cq]s
\f[B]pw-play\f[R] utility:
.IP
.nf
\f[C]
$ sonivoxrender ants.mid | pw-play --rate 44100 -
\f[R]
.fi
.PP
Example 7: pipe the rendered audio thru the FFmpeg\[cq]s
\f[B]ffplay\f[R] utility:
.IP
.nf
\f[C]
$ sonivoxrender ants.mid | ffplay -i - -f s16le -ar 44.1k -ac 2 -nodisp -autoexit -loglevel quiet
\f[R]
.fi
.PP
Example 8: pipe the rendered audio thru the \f[B]mpv\f[R] media player:
.IP
.nf
\f[C]
$ sonivoxrender ants.mid | mpv --demuxer=rawaudio -demuxer-rawaudio-format=s16le --demuxer-rawaudio-rate=44100 --demuxer-rawaudio-channels=2 --no-video -
\f[R]
.fi
.SH BUGS
.PP
See Tickets at GitHub <https://github.com/EmbeddedSynth/sonivox/issues/>
.SH LICENSE AND COPYRIGHT
.PP
Licensed under the Apache License, Version 2.0
.PP
Copyright (c) 2022-2026 Pedro L\['o]pez-Cabanillas and contributors
.SH AUTHORS
Pedro L\['o]pez-Cabanillas <plcl@users.sf.net>.