Re: [fluid-dev] fluid_sequencer_send_at ignoring time when not using an audio driver

2012-06-19 Thread Raja Mukherji
On Tue 19 Jun 2012 22:26:07 IST, Pedro Lopez-Cabanillas wrote: Hi, I don't have time to write another test program version. Anyway, I don't see why fluid_synth_write_float() should impose any limit on the buffer size. But I finally did, and attached is a third test. It uses libsndfile directl

Re: [fluid-dev] fluid_sequencer_send_at ignoring time when not using an audio driver

2012-06-19 Thread Pedro Lopez-Cabanillas
Hi, > I don't have > time to write another test program version. Anyway, I don't see why > fluid_synth_write_float() should impose any limit on the buffer size. But I finally did, and attached is a third test. It uses libsndfile directly, so you need to link against it in addition to fluidsynth.

Re: [fluid-dev] fluid_sequencer_send_at ignoring time when not using an audio driver

2012-06-19 Thread Pedro Lopez-Cabanillas
On Tue, Jun 19, 2012 at 10:17 AM, Raja Mukherji wrote: > On Tue 19 Jun 2012 08:09:34 IST, David Henningsson wrote: > >> >>> Ok, the problem can be reproduced in your second example file by setting >>> "audio.period-size" to 3 * sample_rate (rendering a 3 second block at a >>> time). After checkin

Re: [fluid-dev] fluid_sequencer_send_at ignoring time when not using an audio driver

2012-06-19 Thread Raja Mukherji
On Tue 19 Jun 2012 08:09:34 IST, David Henningsson wrote: On 06/18/2012 01:04 AM, Raja Mukherji wrote: Sorry, there are things that I don't understand in your pseudocode. For instance, how is calculated TIME_STEP in the call to fluid_synth_write_float() ? maybe you wanted to use FRAME_STEP inste

Re: [fluid-dev] fluid_sequencer_send_at ignoring time when not using an audio driver

2012-06-19 Thread David Henningsson
On 06/18/2012 01:04 AM, Raja Mukherji wrote: Sorry, there are things that I don't understand in your pseudocode. For instance, how is calculated TIME_STEP in the call to fluid_synth_write_float() ? maybe you wanted to use FRAME_STEP instead ? Yup, I meant to write FRAME_STEP instead of TIME_ST

Re: [fluid-dev] fluid_sequencer_send_at ignoring time when not using an audio driver

2012-06-17 Thread Raja Mukherji
Sorry, there are things that I don't understand in your pseudocode. For instance, how is calculated TIME_STEP in the call to fluid_synth_write_float() ? maybe you wanted to use FRAME_STEP instead ? Yup, I meant to write FRAME_STEP instead of TIME_STEP. On 17/06/12 21:04, Pedro Lopez-Cabanillas

Re: [fluid-dev] fluid_sequencer_send_at ignoring time when not using an audio driver

2012-06-17 Thread Pedro Lopez-Cabanillas
On Sunday 17 June 2012, Raja Mukherji wrote: > I'm not using > fluid_sequencer_register_client and a callback to add new events, > instead I'm adding events using fluid_sequencer_send_at and then > directly calling fluid_synth_write_float in effectively one large loop. [...] > I have found a workin

Re: [fluid-dev] fluid_sequencer_send_at ignoring time when not using an audio driver

2012-06-17 Thread Pedro Lopez-Cabanillas
On Sunday 17 June 2012, you wrote: > On Sun 17 Jun 2012 13:02:39 IST, Pedro Lopez-Cabanillas wrote: > > On Thursday 14 June 2012, Raja Mukherji wrote: > >> I'm not sure if I'm doing something wrong but it seems as though > >> fluid_sequencer_send_at is ignoring the time parameter. > >> > >> I'm tr

Re: [fluid-dev] fluid_sequencer_send_at ignoring time when not using an audio driver

2012-06-17 Thread Raja Mukherji
On Sun 17 Jun 2012 13:02:39 IST, Pedro Lopez-Cabanillas wrote: On Thursday 14 June 2012, Raja Mukherji wrote: I'm not sure if I'm doing something wrong but it seems as though fluid_sequencer_send_at is ignoring the time parameter. I'm trying to use fluid_synth_write_float to render music to a

Re: [fluid-dev] fluid_sequencer_send_at ignoring time when not using an audio driver

2012-06-17 Thread Pedro Lopez-Cabanillas
On Thursday 14 June 2012, Raja Mukherji wrote: > I'm not sure if I'm doing something wrong but it seems as though > fluid_sequencer_send_at is ignoring the time parameter. > > I'm trying to use fluid_synth_write_float to render music to a buffer > that I can then encode and stream to a browser. He