David, thank you for answer. I understand that it can be hard generate sound from arbitrary position due ongoing sounds of previous notes.
I forgot to mention one assumption. In my case would be acceptably to cut off starting sounds. I make the assumption that melody starts from this new position(my offset from original position) and it has no previous sounds. For example: I want render from 00:03, so i cut off all notes before 00:03 Of course I can generate temporary melody file that starts from position that i want. But I think fluidSynth allow just change position from which midi render should start working. I've already tried change some position variables in fluid_player and fluidSynth, but that didn't change rendering position. If you know an easy way to change starting position of melody without changing original midi file. Could you help me and point to this way? 2013/11/14 <fluid-dev-requ...@nongnu.org> > Send fluid-dev mailing list submissions to > fluid-dev@nongnu.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.nongnu.org/mailman/listinfo/fluid-dev > or, via email, send a message with subject or body 'help' to > fluid-dev-requ...@nongnu.org > > You can reach the person managing the list at > fluid-dev-ow...@nongnu.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of fluid-dev digest..." > > > Today's Topics: > > 1. How render midi from arbitrary position? (???? ???????) > 2. Re: How render midi from arbitrary position? (David Henningsson) > 3. Default sustain behaviour question (Eric Gagnon) > 4. Re: Default sustain behaviour question (Aere Greenway) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 14 Nov 2013 02:23:14 +0400 > From: ???? ??????? <izayar...@gmail.com> > To: fluid-dev@nongnu.org > Subject: [fluid-dev] How render midi from arbitrary position? > Message-ID: > < > caga3l2eoysa9eu-cemw9znq0245hwwvghm5sbr1p7n-enci...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > 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? > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.nongnu.org/archive/html/fluid-dev/attachments/20131114/8ca4d76e/attachment.html > > > > ------------------------------ > > Message: 2 > Date: Thu, 14 Nov 2013 03:29:34 +0100 > From: David Henningsson <di...@ubuntu.com> > To: FluidSynth mailing list <fluid-dev@nongnu.org> > Subject: Re: [fluid-dev] How render midi from arbitrary position? > Message-ID: <5284358e.6010...@ubuntu.com> > Content-Type: text/plain; charset=UTF-8 > > 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 > > > > > ------------------------------ > > Message: 3 > Date: Thu, 14 Nov 2013 09:24:18 -0500 > From: "Eric Gagnon" <egag...@rogers.com> > To: <fluid-dev@nongnu.org> > Subject: [fluid-dev] Default sustain behaviour question > Message-ID: <003601cee145$3486b700$9d942500$@rogers.com> > Content-Type: text/plain; charset="us-ascii" > > Hello: > > > > I have a basic question about the default behaviour of the sustain > function. > I use the standard MIDI GM soundfont and select a wind instrument like 65 > Alto Sax. When I hold down the sustain pedal and play any note, the note > is > sustained indefinitely until I let got the sustain pedal. Is this the > expected behaviour? By contrast, an instrument like 0 Piano will simply > decay more slowly when the sustain pedal is pressed but will ultimately > still fade away. With a wind instrument, since the notes stay on, it > quickly becomes a very loud cacophony of notes unless you quickly let go of > the pedal. > > > > Is this a property of the soundfont or of the fluidsynth settings? What > changes to the fluidsynth settings would I need to make to have a similar > behaviour on the wind instruments than I get on other instruments (slow > fade)? > > > > Regards, > > > > EG > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.nongnu.org/archive/html/fluid-dev/attachments/20131114/44f141bc/attachment.html > > > > ------------------------------ > > Message: 4 > Date: Thu, 14 Nov 2013 09:16:27 -0700 > From: Aere Greenway <a...@dvorak-keyboards.com> > To: FluidSynth mailing list <fluid-dev@nongnu.org> > Subject: Re: [fluid-dev] Default sustain behaviour question > Message-ID: <5284f75b.9010...@dvorak-keyboards.com> > Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" > > On 11/14/2013 07:24 AM, Eric Gagnon wrote: > > > > Hello: > > > > I have a basic question about the default behaviour of the sustain > > function. I use the standard MIDI GM soundfont and select a wind > > instrument like 65 Alto Sax. When I hold down the sustain pedal and > > play any note, the note is sustained indefinitely until I let got the > > sustain pedal. Is this the expected behaviour? By contrast, an > > instrument like 0 Piano will simply decay more slowly when the sustain > > pedal is pressed but will ultimately still fade away. With a wind > > instrument, since the notes stay on, it quickly becomes a very loud > > cacophony of notes unless you quickly let go of the pedal. > > > > Is this a property of the soundfont or of the fluidsynth settings? > > What changes to the fluidsynth settings would I need to make to have a > > similar behaviour on the wind instruments than I get on other > > instruments (slow fade)? > > > > Regards, > > > > EG > > > > > > > > _______________________________________________ > > fluid-dev mailing list > > fluid-dev@nongnu.org > > https://lists.nongnu.org/mailman/listinfo/fluid-dev > EG: > > I think (and hope) it is the expected behavior. > > In performing with such an instrument sound (oboe, for example), I > sometimes use the sustain pedal to hold out a note while I shift my > hand(s) to a different area. So it is useful in that rare occasion. > > Usually though, the sustain pedal is not useful for such instrument sounds. > > -- > Sincerely, > Aere > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.nongnu.org/archive/html/fluid-dev/attachments/20131114/8816f21e/attachment.html > > > > ------------------------------ > > _______________________________________________ > fluid-dev mailing list > fluid-dev@nongnu.org > https://lists.nongnu.org/mailman/listinfo/fluid-dev > > > End of fluid-dev Digest, Vol 127, Issue 5 > ***************************************** >
_______________________________________________ fluid-dev mailing list fluid-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/fluid-dev