Hi,

This is why I thought of this "hack" using on_end... it would not guarantee
that there is no more non-blank afterward, but if there's a blank during,
say, the last 5 seconds of a file, it is likely we can safely eat it and
won't lose much. So I was thinking of something like :
output = on_end(5.,[eat_blank(source)], source)
But I don't know if on_end works that way, and can't figure out a working
syntax for on_end. If I try it the way described above, I get the following
error :
At line 61, char 18-19:
  this value has type
    float
  but it should be a subtype of
    (_,_)->_

I don't even know what's "a subtype of (_._)->_".

Of course in any case this would mean a 30 second blank at the end of a file
wouldn't be eaten, but such a case is unlikely to happen.

So do you think on_end could be used to limit the time of a track during
which a processing is in effect ? And if yes, how should I write the line ?

(Using 1.0.0-beta+svn (trunk/liquidsoap@rev8237) if that can help).

Azrael.

On Wed, Jun 15, 2011 at 4:02 PM, Samuel Mimram <[email protected]> wrote:

> Hi,
>
> Unfortunately, I don't think that there is currently a way to eat
> blanks only at the end of tracks: such an operator would need to
> decode the whole file and store it in memory in order to know, when it
> detects a blank, that there is no more non-blank coming afterwards...
>
> ++
>
> Sam.
>
>
> 2011/6/15 Kerozen <[email protected]>:
> > Hi everyone
> >
> > I'm trying to find a way to have eat_blank to only eat blank at the end
> of a
> > track, and never in the middle of it.
> >
> > I was wondering if I could use on_end to do so, and in that case, what
> would
> > the syntax look like ? (I can't seem to understand the syntax of on_end
> at
> > all). If on_end isn't appropriate, what would be an appropriate way to
> have
> > eat_blank never to eat the blank in the middle of a song ?
> >
> > Azrael.
> >
> >
> ------------------------------------------------------------------------------
> > EditLive Enterprise is the world's most technically advanced content
> > authoring tool. Experience the power of Track Changes, Inline Image
> > Editing and ensure content is compliant with Accessibility Checking.
> > http://p.sf.net/sfu/ephox-dev2dev
> > _______________________________________________
> > Savonet-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/savonet-users
> >
> >
>
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to