Skip to content

Instantly share code, notes, and snippets.

@jan4984
Created July 20, 2018 06:58
Show Gist options
  • Save jan4984/0528810c86d87610661c5a593305b4b8 to your computer and use it in GitHub Desktop.
Save jan4984/0528810c86d87610661c5a593305b4b8 to your computer and use it in GitHub Desktop.
File.stream!("/home/jan/prjs/opus-codec-service/src/git.ogo.run/opuscodec/testprebuilts/far.opus.dong", [], 1) |> Enum.map(fn bl -> :binary.bin_to_list(bl) |> hd end) |> Enum.each(fn b -> if b >= 128 do IO.write "#{b-256}," else IO.write "#{b}," end end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment