pcmmix(1)
π pcmmix β PCM mixer π
okay bestie, so this is pcmmix(1) from the hxtools collection, and it's literally the cutest little audio-blender you've ever met. she takes two or more input streams and mixes them together. that's it, that's the job, and she eats every time. β¨
πΈ SYNTAX πΈ
pcmmix [-ap] [-t p/q] file...
yeah that's the whole thing. give her some files, she gives you a blend. π«Ά
π DESCRIPTION π
so here's the tea: pcmmix will mix two or more input streams together. those streams are assumed to be LE16 PCM, and they gotta have the same number of channels β no mismatched-channels nonsense in this house, okay? π
and she's flexible about how she mixes, because she can do it in either arpeggiated mode or polyphonic mode. two whole vibes, one tiny tool. main character energy fr fr. π
β¨ OPTIONS β¨
-aβ select arpeggio mode. πΉ little sparkly notes hopping around one at a time.-pβ select polyphony mode. πΆ everybody plays at once, all together, no waiting.-rrate β input sample rate. the default is48000. β±οΈ-tp/q β this one defines the length of one arpeggio block, and inside that block, data from all the input sources gets round-robined. you give it asp/qseconds. the default is80/1086. π
ngl the -t thing is the spicy one β that fraction is literally controlling how long each source gets to shine before the next one steals the aux cord. π₯
π EXAMPLES π
- Entertainer from FOG:
pcmmix -t 160/1086 <(bsvplay --pianoman entrtan1.mus) <(bsvplay --pianoman entrtan2.mus) <(bsvplay --pianoman entrtan3.mus) <(bsvplay --pianoman entrtan4.mus) | aplay -fcd -r48000 -c1
- IHOLD from FOG:
pcmmix -t 80/1086 <(bsvplay --pianoman ihold1.mus) <(bsvplay --pianoman ihold2.mus) <(bsvplay --pianoman ihold3.mus) <(bsvplay --pianoman ihold4.mus) | aplay -fcd -r48000 -c1
see how she's using process substitution to feed her four streams at once? iconic. no temp files, no mess, just vibes. π¦
π SEE ALSO π
that's the whole page bestie, go make some cursed little mashups, i believe in you π
this little love letter to PCM comes from hxtools, dated 2020-07-11. slay, stay mixed, periodt. π β¨π
π¦ where this page comes from
- debian bookworm: hxtools 20221119-1 Β· MIT
- debian trixie: hxtools 20231224-2+b2 Β· MIT
- opensuse-leap 16.0: hxtools-man 20231224-bp160.1.12 Β· GPL-2.0-or-later AND WTFPL
- ubuntu jammy: hxtools 20211204-1 Β· GPL-2.0-or-later OR GPL-2+3 OR WTFPL
- ubuntu noble: hxtools 20231224-2ubuntu1 Β· MIT
- ubuntu questing: hxtools 20231224-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms