relative path in for fileSelectorWidget

View: New views
7 Messages — Rating Filter:   Alert me  

relative path in for fileSelectorWidget

by Atte :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I'd like to be able to use relative paths with the file selector widget
in BSB. If I for instance post a zip now with a project of mine that
uses a .wav, people have to edit the path to where they happened to
unzip the .wav...

Is this possible already with what we have?

--
peace, love & harmony
Atte

http://atte.dk       | http://myspace.com/attejensen
http://anagrammer.dk | http://modlys.dk

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluemusic-users mailing list
Bluemusic-users@...
https://lists.sourceforge.net/lists/listinfo/bluemusic-users

Re: relative path in for fileSelectorWidget

by Steven Yi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hmm... that's the way it is supposed to work, as long as the file is
in the same directory as the .blue file or within subdirectories of
the current path.  If it's not working then it's a bug.  If so, please
file a bug and I'll try to fix it tonight.

Thanks!
steven

On Fri, Feb 29, 2008 at 11:05 AM, Atte André Jensen
<atte.jensen@...> wrote:

> Hi
>
>  I'd like to be able to use relative paths with the file selector widget
>  in BSB. If I for instance post a zip now with a project of mine that
>  uses a .wav, people have to edit the path to where they happened to
>  unzip the .wav...
>
>  Is this possible already with what we have?
>
>  --
>  peace, love & harmony
>  Atte
>
>  http://atte.dk       | http://myspace.com/attejensen
>  http://anagrammer.dk | http://modlys.dk
>
>  -------------------------------------------------------------------------
>  This SF.net email is sponsored by: Microsoft
>  Defy all challenges. Microsoft(R) Visual Studio 2008.
>  http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>  _______________________________________________
>  Bluemusic-users mailing list
>  Bluemusic-users@...
>  https://lists.sourceforge.net/lists/listinfo/bluemusic-users
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluemusic-users mailing list
Bluemusic-users@...
https://lists.sourceforge.net/lists/listinfo/bluemusic-users

Re: relative path in for fileSelectorWidget

by Atte :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Steven Yi wrote:

> Hmm... that's the way it is supposed to work, as long as the file is
> in the same directory as the .blue file or within subdirectories of
> the current path.  If it's not working then it's a bug.  If so, please
> file a bug and I'll try to fix it tonight.

Hmm. I'm not sure what you mean or how it's supposed to work. But let's
test it. Here's a little something:

http://atte.dk/download/ambience.tgz

Could you try to download it, unpack it (also do a "oggdec train.ogg"),
open it and see if the first loooong sample plays for you. I expect not,
since the file selector is probably pointing to the location on my disc.
Or am I missing something?

--
peace, love & harmony
Atte

http://atte.dk       | http://myspace.com/attejensen
http://anagrammer.dk | http://modlys.dk

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluemusic-users mailing list
Bluemusic-users@...
https://lists.sourceforge.net/lists/listinfo/bluemusic-users

Re: relative path in for fileSelectorWidget

by Steven Yi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Atte,

Thanks for sending me this example.  I tested and yes it is broken.
=(  I will hopefully have a fix for it soon and will email when I have
it fixed up.

Thanks for bringing this up!
steven

On Fri, Feb 29, 2008 at 12:41 PM, Atte André Jensen
<atte.jensen@...> wrote:

> Steven Yi wrote:
>
>  > Hmm... that's the way it is supposed to work, as long as the file is
>  > in the same directory as the .blue file or within subdirectories of
>  > the current path.  If it's not working then it's a bug.  If so, please
>  > file a bug and I'll try to fix it tonight.
>
>  Hmm. I'm not sure what you mean or how it's supposed to work. But let's
>  test it. Here's a little something:
>
>  http://atte.dk/download/ambience.tgz
>
>  Could you try to download it, unpack it (also do a "oggdec train.ogg"),
>  open it and see if the first loooong sample plays for you. I expect not,
>  since the file selector is probably pointing to the location on my disc.
>  Or am I missing something?
>
>  --
>
>
> peace, love & harmony
>  Atte
>
>  http://atte.dk       | http://myspace.com/attejensen
>  http://anagrammer.dk | http://modlys.dk
>
>  -------------------------------------------------------------------------
>  This SF.net email is sponsored by: Microsoft
>  Defy all challenges. Microsoft(R) Visual Studio 2008.
>  http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>  _______________________________________________
>  Bluemusic-users mailing list
>  Bluemusic-users@...
>  https://lists.sourceforge.net/lists/listinfo/bluemusic-users
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluemusic-users mailing list
Bluemusic-users@...
https://lists.sourceforge.net/lists/listinfo/bluemusic-users

Re: relative path in for fileSelectorWidget

by Steven Yi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Atte,

I found the code and it was using absolute value always.  That
confused me until I looked around and realized it was that I had done
the relative path thing for AudioFile soundObjects.  Luckily it was
done at that time with a utility function and I was able to basically
add a couple lines of code and make use of it for the BSB
FileSelector.  The fix is now in CVS.

For older projects, you'll have to go into your instruments or effect
(or objectBuilder) and reselect the file to have it update to use the
relative file path.

Thanks for reporting this bug! (And of course, let me know if there's
any other bugs with this feature! =P )

steven


On Fri, Feb 29, 2008 at 7:19 PM, Steven Yi <stevenyi@...> wrote:

> Hi Atte,
>
>  Thanks for sending me this example.  I tested and yes it is broken.
>  =(  I will hopefully have a fix for it soon and will email when I have
>  it fixed up.
>
>  Thanks for bringing this up!
>  steven
>
>  On Fri, Feb 29, 2008 at 12:41 PM, Atte André Jensen
>
> <atte.jensen@...> wrote:
>
>
> > Steven Yi wrote:
>  >
>  >  > Hmm... that's the way it is supposed to work, as long as the file is
>  >  > in the same directory as the .blue file or within subdirectories of
>  >  > the current path.  If it's not working then it's a bug.  If so, please
>  >  > file a bug and I'll try to fix it tonight.
>  >
>  >  Hmm. I'm not sure what you mean or how it's supposed to work. But let's
>  >  test it. Here's a little something:
>  >
>  >  http://atte.dk/download/ambience.tgz
>  >
>  >  Could you try to download it, unpack it (also do a "oggdec train.ogg"),
>  >  open it and see if the first loooong sample plays for you. I expect not,
>  >  since the file selector is probably pointing to the location on my disc.
>  >  Or am I missing something?
>  >
>  >  --
>  >
>  >
>  > peace, love & harmony
>  >  Atte
>  >
>  >  http://atte.dk       | http://myspace.com/attejensen
>  >  http://anagrammer.dk | http://modlys.dk
>  >
>  >  -------------------------------------------------------------------------
>  >  This SF.net email is sponsored by: Microsoft
>  >  Defy all challenges. Microsoft(R) Visual Studio 2008.
>  >  http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>  >  _______________________________________________
>  >  Bluemusic-users mailing list
>  >  Bluemusic-users@...
>  >  https://lists.sourceforge.net/lists/listinfo/bluemusic-users
>  >
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluemusic-users mailing list
Bluemusic-users@...
https://lists.sourceforge.net/lists/listinfo/bluemusic-users

Re: relative path in for fileSelectorWidget

by Atte :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Steven Yi wrote:

> Thanks for reporting this bug! (And of course, let me know if there's
> any other bugs with this feature! =P )

It seems to work just great. Thanks for fixing this. It'll make it much
easier to share .blue files, which is A Good Thing.

--
peace, love & harmony
Atte

http://atte.dk       | http://myspace.com/attejensen
http://anagrammer.dk | http://modlys.dk

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluemusic-users mailing list
Bluemusic-users@...
https://lists.sourceforge.net/lists/listinfo/bluemusic-users

Re: relative path in for fileSelectorWidget

by Steven Yi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Awesome, thanks for confirming the fix!

On Fri, Feb 29, 2008 at 11:38 PM, Atte André Jensen
<atte.jensen@...> wrote:

> Steven Yi wrote:
>
>  > Thanks for reporting this bug! (And of course, let me know if there's
>  > any other bugs with this feature! =P )
>
>  It seems to work just great. Thanks for fixing this. It'll make it much
>  easier to share .blue files, which is A Good Thing.
>
>  --
>
>
> peace, love & harmony
>  Atte
>
>  http://atte.dk       | http://myspace.com/attejensen
>  http://anagrammer.dk | http://modlys.dk
>
>  -------------------------------------------------------------------------
>  This SF.net email is sponsored by: Microsoft
>  Defy all challenges. Microsoft(R) Visual Studio 2008.
>  http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>  _______________________________________________
>  Bluemusic-users mailing list
>  Bluemusic-users@...
>  https://lists.sourceforge.net/lists/listinfo/bluemusic-users
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluemusic-users mailing list
Bluemusic-users@...
https://lists.sourceforge.net/lists/listinfo/bluemusic-users
LightInTheBox - Buy quality products at wholesale price