Add man pages for executables
And correct a small bug in the jack client
This commit is contained in:
parent
213647d154
commit
eadb1b4beb
7 changed files with 80 additions and 4 deletions
|
|
@ -1,14 +1,22 @@
|
|||
string(TIMESTAMP MAN_TODAY "%Y-%m-%d")
|
||||
|
||||
if(SFIZZ_JACK)
|
||||
add_executable(sfizz_jack MidiHelpers.h jack_client.cpp)
|
||||
target_link_libraries(sfizz_jack PRIVATE sfizz::import sfizz::sfizz sfizz::jack sfizz::spin_mutex absl::flags_parse)
|
||||
sfizz_enable_lto_if_needed(sfizz_jack)
|
||||
configure_file(sfizz_jack.man.in sfizz_jack.man @ONLY)
|
||||
install(TARGETS sfizz_jack DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
COMPONENT "jack" OPTIONAL)
|
||||
install(FILES ${PROJECT_BINARY_DIR}/clients/sfizz_jack.man DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
|
||||
RENAME sfizz_jack COMPONENT "jack" OPTIONAL)
|
||||
endif()
|
||||
|
||||
if(SFIZZ_RENDER)
|
||||
add_executable(sfizz_render MidiHelpers.h sfizz_render.cpp)
|
||||
target_link_libraries(sfizz_render PRIVATE sfizz::internal sfizz::fmidi sfizz::cxxopts st_audiofile_formats)
|
||||
sfizz_enable_lto_if_needed(sfizz_render)
|
||||
configure_file(sfizz_render.man.in sfizz_render.man @ONLY)
|
||||
install(TARGETS sfizz_render DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT "render" OPTIONAL)
|
||||
install(FILES ${PROJECT_BINARY_DIR}/clients/sfizz_render.man DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
|
||||
RENAME sfizz_render COMPONENT "render" OPTIONAL)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -369,7 +369,7 @@ int main(int argc, char** argv)
|
|||
jack_free(systemPorts);
|
||||
}
|
||||
|
||||
if (filesToParse[0]) {
|
||||
if (!filesToParse.empty() && filesToParse[0]) {
|
||||
loadInstrument(filesToParse[0]);
|
||||
}
|
||||
|
||||
|
|
|
|||
37
clients/sfizz_jack.man.in
Normal file
37
clients/sfizz_jack.man.in
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
.TH sfizz_jack 1 "@MAN_TODAY@" "@CMAKE_PROJECT_VERSION@" "sfizz_jack man page"
|
||||
.SH NAME
|
||||
sfizz_jack \- Launch a sfizz instance as a JACK client
|
||||
.SH SYNOPSIS
|
||||
sfizz_jack [FILE] [OPTIONS...]
|
||||
.SH DESCRIPTION
|
||||
sfizz_jack wraps the sfizz SFZ library in a JACK client that can be controlled by a text interface.
|
||||
.SH OPTIONS
|
||||
.IP FILE
|
||||
An optional SFZ file name to load at firsts
|
||||
.IP "--client_name"
|
||||
Name for the JACK client
|
||||
.IP "--num_voices NUMBER"
|
||||
Change the maximum polyphony
|
||||
.IP "--preload_size NUMBER"
|
||||
Bytes to preload in cache for samples
|
||||
.IP "--state"
|
||||
Output the state in the JACK loop
|
||||
.IP "--jack_autoconnect"
|
||||
Autoconnect the JACK outputs
|
||||
.SH TEXT INTERFACE
|
||||
It is possible it interact with the JACK client through the standard input.
|
||||
The possible commands are
|
||||
.IP "load_instrument FILE"
|
||||
Load an instrument
|
||||
.IP "set_preload_size NUMBER"
|
||||
Set the number of bytes to preload in cache for samples
|
||||
.IP "set_voices NUMBER"
|
||||
Change the maximum polyphony
|
||||
.IP quit
|
||||
Quit
|
||||
.SH SEE ALSO
|
||||
sfizz_render(1)
|
||||
.SH BUGS
|
||||
See the main repository at @SFIZZ_REPOSITORY@.
|
||||
.SH AUTHOR
|
||||
Contributors can be seen on the main repository at @SFIZZ_REPOSITORY@.
|
||||
30
clients/sfizz_render.man.in
Normal file
30
clients/sfizz_render.man.in
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
.TH sfizz_render 1 "@MAN_TODAY@" "@CMAKE_PROJECT_VERSION@" "sfizz_render man page"
|
||||
.SH NAME
|
||||
sfizz_render \- Render a MIDI file as a WAV file using an SFZ instrument description.
|
||||
.SH SYNOPSIS
|
||||
sfizz_render --sfz FILE --wav FILE --midi FILE [OPTIONS...]
|
||||
.SH DESCRIPTION
|
||||
sfizz_render wraps the sfizz SFZ library and can be used to render midi file as sound files using an SFZ description file and its associated samples.
|
||||
.SH OPTIONS
|
||||
.IP "-b, --blocksize NUMBER"
|
||||
Block size for the sfizz callbacks
|
||||
.IP "-s, --samplerate NUMBER"
|
||||
Output sample rate
|
||||
.IP "-q, --quality NUMBER"
|
||||
Resampling quality, like the SFZ sample_quality opcode. A value of 1 will use a linear interpolation of source samples, while higher value will use increasingly better algorithms.
|
||||
.IP "-p, --polyphony NUMBER"
|
||||
Maximum polyphony
|
||||
.IP "-v, --verbose"
|
||||
Verbose output
|
||||
.IP "--log PREFIX"
|
||||
Produce logs
|
||||
.IP "--use-eot"
|
||||
End the rendering at the last End of Track Midi message
|
||||
.IP "-h, --help"
|
||||
Show help
|
||||
.SH SEE ALSO
|
||||
sfizz_jack(1)
|
||||
.SH BUGS
|
||||
See the main repository at @SFIZZ_REPOSITORY@.
|
||||
.SH AUTHOR
|
||||
Contributors can be seen on the main repository at @SFIZZ_REPOSITORY@.
|
||||
|
|
@ -8,7 +8,7 @@ set(LV2PLUGIN_VERSION_MICRO 0)
|
|||
set(LV2PLUGIN_NAME "sfizz")
|
||||
set(LV2PLUGIN_COMMENT "SFZ sampler")
|
||||
set(LV2PLUGIN_URI "http://sfztools.github.io/sfizz")
|
||||
set(LV2PLUGIN_REPOSITORY "https://github.com/sfztools/sfizz")
|
||||
set(LV2PLUGIN_REPOSITORY SFIZZ_REPOSITORY)
|
||||
set(LV2PLUGIN_AUTHOR "SFZTools")
|
||||
set(LV2PLUGIN_EMAIL "paul@ferrand.cc")
|
||||
if(SFIZZ_USE_VCPKG)
|
||||
|
|
|
|||
|
|
@ -129,6 +129,9 @@ if(USE_LIBCPP)
|
|||
add_link_options(-lc++abi) # New command on CMake master, not in 3.12 release
|
||||
endif()
|
||||
|
||||
set(SFIZZ_REPOSITORY https://github.com/sfztools/sfizz)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
# Don't show build information when building a different project
|
||||
function(show_build_info_if_needed)
|
||||
if(CMAKE_PROJECT_NAME STREQUAL "sfizz")
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
include(GNUInstallDirs)
|
||||
|
||||
set(FAUST_FILES
|
||||
sfizz/dsp/filters/filters_modulable.dsp
|
||||
sfizz/dsp/filters/rbj_filters.dsp
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue