pcmmix(1)

πŸ“¦
this version Β· 2 versions
, in debian bookworm, debian trixie, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing

πŸ’– 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.
  • -r rate β€” input sample rate. the default is 48000. ⏱️
  • -t p/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 as p/q seconds. the default is 80/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 πŸ“

  1. 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
  1. 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