H2CLI(1)
β¨ H2CLI(1) β the h2cli manual, but make it cute β¨
okay so bestie, welcome to h2cli, a CLI version of the advanced drum machine Hydrogen π (yes that's the H2CLI(1) page you're reading, we're just vibing here)
πΈ NAME πΈ
h2cli β a CLI version of the advanced drum machine Hydrogen. periodt.
π SYNOPSIS π
h2cli options
π¦ DESCRIPTION π¦
so basically, h2cli does not start up the GUI of Hydrogen. instead it lets you do some batch processing using its core. it can be used in two different ways:
- exporting a song into an audio file
- checking, extracting, installing, or upgrading an existing drumkit
two modes, both iconic, no cap π
π OPTIONS π
-d,--driver=[AUDIO_DRIVER]β use the selected audio driver. the description of this option in the--helpoutput contains all audio drivers available on your system. (iykyk, go check--helpfor your local lineup β¨)-s,--song=FILEβ load a song (*.h2song) at startup. alternatively, you can just pass the filename without this option. lowkey convenient fr fr-p,--playlist=FILEβ load a playlist (*.h2playlist) at startup. π§-k,--kit=DRUMKIT_NAMEβ load a drumkit at startup. π₯-o,--outfile=PATHβ destination file (export). where your masterpiece lands π-r,--rate=INTβ set bitrate while exporting a song.-b,--bits=INTβ set bit depth while exporting a song.--compression-level=DOUBLEβ trade-off between max. quality (0.0) and max. compression (1.0) while exporting a song.-I,--interpolation=INTβ type of interpolation used during resampling (if required) while exporting a song. available options are0(linear) [default],1(cosine),2(third),3(cubic), and4(hermite). the math is mathing β¨-i,--install=FILEβ install a drumkit (*.h2drumkit).-c,--check=FILEβ validates a drumkit (*.h2drumkit) against the current drumkit format.-l,--legacy-check=FILEβ validates a drumkit (*.h2drumkit) against the current as well as legacy drumkit formats. extra thorough, we love that π«Ά-u,--upgrade=FILEβ upgrades a drumkit. the provided file can be either an absolute path to a folder containing a drumkit, an absolute path to a drumkit file (drumkit.xml) itself, or an absolute path to a compressed drumkit (*.h2drumkit). if no target folder was specified using the-toption, a backup of the drumkit is created and the original one is upgraded in place. if a compressed drumkit is provided as first argument, the upgraded drumkit will be compressed as well.-x,--extract=FILEβ extracts the content of a drumkit (*.h2drumkit). if no target is specified using the-toption, this command behaves like--install.-t,--target=FOLDERβ target folder the extracted (-x) or upgraded (-u) drumkit will be stored in. the folder is created if it does not exists yet. bestie it will literally make the folder for you π-O,--osc-port=PORTβ use custom OSC port.-P,--data=PATHβ use an alternate system data path.--user-data=PATHβ use an alternate user data path.
the default one is $HOME/.hydrogen.
--config=PATHβ use an alternate config path.
the default one is $HOME/.hydrogen/hydrogen.conf.
-V,--verbose=[LEVEL]β print a lot of debugging info π
level, if present, may be None, Error, Warning, Info, or Debug.
-L,--log-file=FILEβ use custom log file.-T,--log-timestampsβ add timestamps to all log messages.-v,--versionβ show version info.-h,--helpβ show this help message. your bestie when you're lost π
π FILES π
for a comprehensive list of files, configuration, and environmental variables, please see the man page of hydrogen itself. (not me redirecting you, but like, genuinely, that's where the full tea is β)
π EXAMPLES π
exporting a song into an audio file
h2cli -s /usr/share/hydrogen/data/demo_songs/GM_kit_demo1.h2song
-d GMRockKit -d auto -o ./example.wav
check the format of a drumkit
h2cli -c /usr/share/hydrogen/data/drumkits/GMRockKit
π BUGS & FEATURES REQUEST π
if you find any bug or if you would like to propose a new feature, please report it to https://github.com/hydrogen-music/hydrogen/issues β the devs wanna hear from you, fr fr π«Ά
π§ AUTHORS π§
the hydrogen development team. see complete list at Hydrogen's "About" Dialog. you can contact them at <hydrogen-devel@lists.sourceforge.net>.
subscription to the mailing list can be done here:
http://lists.sourceforge.net/lists/listinfo/hydrogen-devel .
β SEE ALSO β
- the main graphical application β
hydrogen(1) - a player Hydrogen-based songs on the command line β
h2player(1)
π COPYRIGHT AND LICENSE π
Copyright (C) 2002-2008 Alessandro Cominu
Copyright (C) 2008-2025 The hydrogen development team
Hydrogen is free software; you can redistribute it and/or modify it under the terms of the GPL version 2 or later. slay π
and that's the whole page bestie π this was Hydrogen 1.2.6, dated July 29, 2025 β and yeah, the manual page itself is literally called H2CLI(1). go make some beats ππ₯
π¦ where this page comes from
- ubuntu resolute: hydrogen 1.2.6+dfsg-1 Β· GPL-2.0-or-later
- ubuntu stonking: hydrogen 1.2.6+dfsg-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms