On 11/13/2013 11:23 PM, Иван Заярный wrote:
> I am trying to generate sound from  midi file from arbitrary  positions.
> For examle: I want to skip first 3 seconds of melody and start sound
> generation from 3 second.
> 
> For generating sound from mid i am using next functions
> :fluid_player_play, fast_render_loop functions.
> 
> How Can i change start playing position of melody to generate sound data
> from with position?
> 
> Or maybe exist another way of changing start sound generating position
> in midi file?

What you're trying to do is tricky, because at a certain point in time
there might be ongoing sounds. E g, if you start rendering at 00:03,
maybe a piano note was started at 00:02 (a second earlier) and still
sounding.

To do this right, I think you have to render 3 seconds of audio data and
throw away the result.

// David


_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to