To display in vega lite for example.
Like in the Amiga Soundtracker samples:
Note: god is for macOs (brew install coreutils). Use plain od command for regular linux systems.
For example, on the Alien pcm file from the original Soundtracker sample pack:
$ god -vAn -td1 -w1 Alien | \
awk 'BEGIN {print "{\"values\": ["} NR > 1 {printf ", "} {print "{\"x\":"NR-1", \"y\": "$1"}"} END {print "]}"}'
See also: