Sigma Design Forums  

Go Back   Sigma Design Forums > Developer
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 11-05-2008, 06:22 PM
Thom Truscio Thom Truscio is offline
Member
 
Join Date: Mar 2007
Posts: 1
Default Music search (off topic)

I'm trying to use Sigmac to get a list of stuff in my "My Music" directory.

It's on my F drive and holds almost 700 DCs (WAV format)

if I use this:

$txgdir(smusic_dir,'*',#true)

I get a listing like this:

<>ac-dc
ac-dc
<>acoustic alchemy
acoustic alchemy
<>adrian belew
adrian belew
<>adrian legg
adrian legg
<>aerosmith
aerosmith
<>al di meola
al di meola

...where each "group is doubled with that "<>" heading of the group +
the actual group.

If I use this:

$txgdir(smusic_dir,#true)

I get an error where it can't find: "F:/My Music" or no such file.

Is there something I'm missing here?

Last edited by Thom Truscio : 11-05-2008 at 06:29 PM.
Reply With Quote
  #2  
Old 11-05-2008, 10:25 PM
Al Hart Al Hart is offline
ARRIS Development Team
 
Join Date: Jan 2007
Posts: 227
Default

I tried the following:

$txgdir('c:/aa', '*', #true)

then

:txli;;

from the prompt line and got a good list.

I also tried a folder with 1,100 files.

I did not try a mounted drive.

- Have you tried it on any other folders?

- Were any of the file names in the folder longer than 128 or 256 characters?

- What version of ARRIS are you using?
__________________
Al Hart
ARRIS Development Team
Reply With Quote
  #3  
Old 11-05-2008, 10:44 PM
Al Hart Al Hart is offline
ARRIS Development Team
 
Join Date: Jan 2007
Posts: 227
Default

When I first read your posting I assumed the files names were messed up. Were these the correct file names, and the onlu problem is the interspersed folder (<>) lines?

Is it possible that your folder contains a file and a folder for each song.

Try doing a DIR on it from a DOS prompt.

(Sometimes Windows combines things like this, and only shows one of them when displayed from Windows Explorer)
__________________
Al Hart
ARRIS Development Team
Reply With Quote
  #4  
Old 11-06-2008, 06:54 AM
Jim Bennett Jim Bennett is offline
Sigma Design
 
Join Date: Jan 2007
Location: Alexandria, LA
Posts: 135
Default

A similar search on my system lists just the directories (which contain the "<>" before the name). How do you have things organized? In my case it is a simple directory for the artist, a directory for each album under that, and then the collection of songs (in .mp3 format) inside that. Is there another file at the "artist" level?

One other side note - $txgdir has a 4th parameter which allows you to maintain the text case as it appears on the disk.

$txgdir('C:/Mp3 Music','*',#true,#true)

The default is #false which lists everything in lower case.

You can always filter at the time you read the list from the text file that $txgdir creates. For example you can read in only the lines that begin with "<>" and then strip off the "<>".
__________________
Jim Bennett
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 04:16 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.