How to write a leading apostrophe in Word

Disclaimer: I don’t work on the Office team. Word has a smart quotes feature where it will automagically transform straight “double quotes,” ‘single quotes,’ and greengrocer’s apostrophes into curly “double quotes,” ‘single quotes,’ and greengrocer’s apostrophes as you type.  You send a Unicode Character ‘APOSTROPHE’ (U+0027) to Word, and Word turns it into a Unicode Character ‘LEFT SINGLE…

4

Phase and stereo-to-mono downmix

Warning: trigonometry ahead. Last time we looked at how to downmix a stereo signal to mono (M = L/2 + R/2).  The resulting M signal can only be as powerful as the L and R signals if they are perfectly correlated (L = R); if the L and R signals are uncorrelated (no relationship between…

3

Perl script to parse MPEG audio header

I’ve written a perl script (attached) which will parse MPEG audio headers and display them in a human-readable format. For example, if you run it on ding.mpeg (also attached) you get this output: >perl mpegaudioheader.pl ding.mpeg Frame header: 11111111 111 (should be all ones) MPEG Audio version ID: 11 (MPEG version 1 (ISO/IEC 11172-3)) Layer…

1

optimal tic-tac-toe (XKCD)

Today’s XKCD strip purports to show a complete map of tic-tac-toe including optimal moves. I’m guessing the optimality of the move takes into account both the game-theoretic value of the move, assuming a perfect opponent: Good moves Preserves the win Preserves the draw “Preserves the loss” (every move in a lost position is of this type)…

1

Downmixing stereo to mono

Suppose you have a stereo stream that you want to downmix to mono.  Why would you do this?  Maybe you’re playing stereo music to a Bluetooth headset that is in a call, and thus in “headset / handsfree” mode.  Maybe you’re capturing from a stereo mic and you want to show a visualization based on a…

1