FSK_MOD(1)

πŸ‘‘ FSK_MOD(1) β€” the user-commands girlies' manual πŸ’…

okay bestie, so fsk_mod is a diagnostic tool for the codec2 library, and its whole job is: take a codec2 bit file and turn it into a raw horus modem signal file. that's it. that's the gig. iconic behaviour, honestly. ✨


🌸 SYNOPSIS 🌸

fsk_mod usage: Mode SampleFreq SymbolFreq TxFreq1 TxFreqSpace
InputOneBitPerCharFile OutputModRawFile

seven arguments, no flags, no --help, no vibes-based guessing. she wants exactly what she wants. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

she reads in a set of bits to modulate from a file β€” that file is passed in as a parameter, so you gotta hand it over β€” and then she writes modulated output to another file. read bits, make signal, write file. main character pipeline, periodt. πŸ’–


✨ OPTIONS ✨

no -a, no --verbose, no --dry-run bestie β€” this tool does positional arguments only. seven of them, in order, and if you get the order wrong that's a you problem (respectfully 🫢):

  • Mode β€” the first argument, and she's an integer. 2 gives you a 2FSK modem, 4 gives you a 4FSK modem. that's the whole menu, don't go inventing a 3. πŸ’€
  • SampleFreq β€” second argument, an integer that says what the sample rate is.
  • SymbolFreq β€” third argument, an integer. yes queen, just an integer. πŸ’…
  • TxFreq1 β€” fourth argument, an integer.
  • TxFreqSpace β€” fifth argument, an integer.
  • InputOneBitPerCharFile β€” sixth argument, the file name of a file with codec2 encoded bits. and here's the cute part: if you pass "-" then the input is taken from stdin instead. pipe it in, diva. 🌈
  • OutputModRawFile β€” seventh argument, the file name of a file to be created with modem sample data. and again: if you pass "-" then the output is sent to stdout. so you can chain her into other stuff like the tech genius she is. 🧚
ngl, "-" for stdin on input and "-" for stdout on output means you can absolutely do a full pipe situation and feel very powerful about it. lowkey obsessed. πŸ”₯

πŸ‘€ SEE ALSO πŸ‘€

go read these too, bestie, they're all in the same friend group:


and that's the page!! this one's from the fsk_mod user-commands manual, dated 2020-12-04, filed under FSK_MOD(1) β€” so if you're reading this in some far-future terminal, yes, she's vintage, and yes, she still slays. mwah πŸ’–βœ¨πŸŽ€