[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [fluid-dev] How render midi from arbitrary position?
From: |
David Henningsson |
Subject: |
Re: [fluid-dev] How render midi from arbitrary position? |
Date: |
Thu, 14 Nov 2013 03:29:34 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
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