fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] fluid-dev Digest, Vol 127, Issue 5


From: David Henningsson
Subject: Re: [fluid-dev] fluid-dev Digest, Vol 127, Issue 5
Date: Sat, 16 Nov 2013 23:06:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

On 11/16/2013 08:45 PM, Иван Заярный wrote:
> 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?

If you want to hack FluidSynth, look at the msec calcluation in
fluid_sample_timer_process, fluid_synth.c.

Sending an "all sounds off" command might come in handy too if you don't
want to hear all the notes in the first few seconds.

> 
> 
> 2013/11/14 <address@hidden
> <mailto:address@hidden>>
> 
>     Send fluid-dev mailing list submissions to
>             address@hidden <mailto:address@hidden>
> 
>     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
>             address@hidden
>     <mailto:address@hidden>
> 
>     You can reach the person managing the list at
>             address@hidden <mailto:address@hidden>
> 
>     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: ???? ??????? <address@hidden <mailto:address@hidden>>
>     To: address@hidden <mailto:address@hidden>
>     Subject: [fluid-dev]  How render midi from arbitrary position?
>     Message-ID:
>            
>     <address@hidden
>     <mailto:address@hidden>>
>     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 <address@hidden <mailto:address@hidden>>
>     To: FluidSynth mailing list <address@hidden
>     <mailto:address@hidden>>
>     Subject: Re: [fluid-dev] How render midi from arbitrary position?
>     Message-ID: <address@hidden
>     <mailto:address@hidden>>
>     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" <address@hidden <mailto:address@hidden>>
>     To: <address@hidden <mailto:address@hidden>>
>     Subject: [fluid-dev] Default sustain behaviour question
>     Message-ID: <address@hidden
>     <http://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 <address@hidden>
>     To: FluidSynth mailing list <address@hidden
>     <mailto:address@hidden>>
>     Subject: Re: [fluid-dev] Default sustain behaviour question
>     Message-ID: <address@hidden>
>     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
>     > address@hidden <mailto:address@hidden>
>     > 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
>     address@hidden <mailto:address@hidden>
>     https://lists.nongnu.org/mailman/listinfo/fluid-dev
> 
> 
>     End of fluid-dev Digest, Vol 127, Issue 5
>     *****************************************
> 
> 
> 
> 
> _______________________________________________
> fluid-dev mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/fluid-dev
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]