From a9827d2477d00eafcdc6a640a47396925b071dc6 Mon Sep 17 00:00:00 2001 From: Pepper Date: Sun, 1 Nov 2015 01:39:27 -0400 Subject: need to test --- src/ladspa_run_synth.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ladspa_run_synth.c') diff --git a/src/ladspa_run_synth.c b/src/ladspa_run_synth.c index 26416a9..115c4f5 100644 --- a/src/ladspa_run_synth.c +++ b/src/ladspa_run_synth.c @@ -107,6 +107,11 @@ void ladspa_run_sample_callback(event_table_t *event_table, void *userdata){ } /* Write the audio */ +//here it writes to file, and it has a buffer sf_output, most likely filled from plugin. anyway, tempo problem, if it doesn't pick correct note duration it must be something +//with either reading tempo/setting tempo settings to player, or calulcations of time then it calulate each note. I don't think so...it's because it doesn't do the +//calculations gradually, seems to do them all at the end (like a final loop) and whatever the last tempo was, it uses that for the whole piece, you know what I mean? +//well it's not how send_events works, it send events one by one, so it should work fine. how did you test tempo? ok I'm going to make some perfect test-cases, sound good? yep +// if ((items_written = sf_writef_float(outfile, sf_output, nframes)) != nframes) { -- cgit v1.2.3-70-g09d2