Playable audio from fout opcode
Date | 2017-05-01 22:11 |
From | Sam Smalley |
Subject | Playable audio from fout opcode |
So I'm trying to use fout to output each instrument's audio separately. As practice I set up a simple sin instrument, however the outputted file does not have any audio. Is this a header issue? Are the parameters that I've used for fout incorrect? Here's the code in question: |
Date | 2017-05-01 23:28 |
From | Emmett Palaima |
Subject | Re: Playable audio from fout opcode |
You are giving the file the .wav extension, but giving fout a value of 0 for iformat (2nd argument), which signifies a headerless (raw audio) file format. Try changing iformat to 2 or greater. Also take a look at the --wave and --aiff headers. Not sure if those are what you need, but try those if changing iformat alone does not work. On Mon, May 1, 2017 at 5:11 PM, Sam Smalley <ssmalley@berklee.edu> wrote: So I'm trying to use fout to output each instrument's audio separately. As practice I set up a simple sin instrument, however the outputted file does not have any audio. Is this a header issue? Are the parameters that I've used for fout incorrect? Here's the code in question: |