| 1 |
.\" Copyright © 2018 mirabilos <[email protected]> |
| 2 |
.\" |
| 3 |
.\" This manual page is provided under the same terms as the tool it describes. |
| 4 |
.Dd March 5, 2018 |
| 5 |
.Dt SF3CONVERT 1 |
| 6 |
.Os Debian |
| 7 |
.Sh NAME |
| 8 |
.Nm sf3convert |
| 9 |
.Nd SoundFont conversion utility |
| 10 |
.Sh SYNOPSIS |
| 11 |
.Nm |
| 12 |
.Op Fl cdsxz |
| 13 |
.Op Fl a Ar ampl |
| 14 |
.Op Fl p Ar pres |
| 15 |
.Op Fl S Ar number |
| 16 |
.Op Fl q Ar qual |
| 17 |
.Ar infile |
| 18 |
.Op Ar outfile |
| 19 |
.Sh DESCRIPTION |
| 20 |
The |
| 21 |
.Nm |
| 22 |
utility converts an SF2 format SoundFont; it can compress it |
| 23 |
into SF3, encode as C for embedding into a binary, or as XML. |
| 24 |
.Pp |
| 25 |
The options are as follows: |
| 26 |
.Bl -tag -width xxx |
| 27 |
.It Fl a Ar ampl |
| 28 |
Set the pre-compression amplification to |
| 29 |
.Ar ampl |
| 30 |
.Pq default \-1.0 |
| 31 |
dB. |
| 32 |
.It Fl c |
| 33 |
Output C code. |
| 34 |
.It Fl d |
| 35 |
Dump presets. |
| 36 |
.It Fl p Ar pres |
| 37 |
Append |
| 38 |
.Ar pres |
| 39 |
to the list of presets. |
| 40 |
.It Fl q Ar qual |
| 41 |
Set the Vorbis quality to |
| 42 |
.Ar qual |
| 43 |
.Pq default 0.3 . |
| 44 |
.It Fl S Ar number |
| 45 |
Use |
| 46 |
.Ar number |
| 47 |
as the OGG stream serial number instead of a time-based random one. |
| 48 |
.It Fl s |
| 49 |
Create a small soundfont (one instrument/preset), pan to 0. |
| 50 |
.It Fl x |
| 51 |
Output XML. |
| 52 |
.It Fl z |
| 53 |
Compress the soundfont. |
| 54 |
.El |
| 55 |
.Pp |
| 56 |
The |
| 57 |
.Fl c , |
| 58 |
.Fl d |
| 59 |
and |
| 60 |
.Fl z |
| 61 |
options are mutually exclusive. |
| 62 |
XML output needs |
| 63 |
.Fl z |
| 64 |
but does not seem to compress. |
| 65 |
.Sh CAVEATS |
| 66 |
Raising the quality to 0.6 might be necessary to avoid artifacts; |
| 67 |
this however increases the size of the generated SF3 by about a third |
| 68 |
(to about fifteen percent of the SF2 size). |
| 69 |
.Pp |
| 70 |
There is no formal specification of the SF3 format yet. |
| 71 |
Differences: |
| 72 |
.Bl -bullet |
| 73 |
.It |
| 74 |
The samples' waveform data is stored using the OGG container |
| 75 |
format with the Vorbis codec. |
| 76 |
(Other codecs supporting the OGG container could be used, |
| 77 |
but the current code uses OGG Vorbis.) |
| 78 |
.It |
| 79 |
Loop start and end are stored based on the beginning of the |
| 80 |
corresponding sample, not based on the beginning of the |
| 81 |
.Li smpl |
| 82 |
chunk. |
| 83 |
.It |
| 84 |
24-bit mode is disabled. |
| 85 |
.It |
| 86 |
Sample links are removed. |
| 87 |
.El |
| 88 |
.Pp |
| 89 |
Note that this list is |
| 90 |
.Em incomplete . |