Submissions from 2015-12-12 to 2015-12-13 (1 total)

made another example to test playing audio from actual raw audio files.

input format:

  • headerless
  • mono audio
  • IEEE 32bit single precision float
  • must already have the samplerate jackd will be using when playing

see jack_example_rawPCM.moon

was actually pretty easy after I found out where my pointer calculations were messed up and that I was accidentally dealing with stereo input data all the time. also, I like how LuaJIT lets you just cast a whole binary file into a float pointer…


next I'll try to get some code to resample on the fly, then I'll start with the actual modular program, so any new features can be just dropped in as moonscript modules.