Hey, let’s say I have a bunch of directories, 01…99. I want to add them to “Collection”, so I drag and drop 01…99. First and foremost, these playlists are added randomly. They do not maintain the ordering I add them. So, I’m trying to work around that and I add them manually. One by one, all 100 of them…
So, I get 01…10 added by dragging them into “Collection”. Now when I add anything else to “Collection”, I get a random chance at whether or not Engine DJ Desktop puts the new playlist at the top, or at the bottom of the list of playlists.
Please, just put it at the bottom. New playlists get created below old playlists. Or, if you decide they should go up top, okay, put them up top. But please do it consistently and not randomly.
This only happens when trying to add to the Collection directly. By creating a Playlist within the Collection, and adding directories to the Playlist, importing acts as I’d expect.
Just a heads up for anybody else having these issues.
Screenshots of your issue might help people better understand what you’re talking about.
Working with databases, namely in a warehouse environment I always tell people that numbered locations should be one character more than the digits they want to use, so you would never use 01-99 it would be 001-099.
Yep. This is how sorting works in computers. It generally has to do with how the tables are coded and what is being sorted.
Incoming nerdy
When you sort a text-based field computers tend to default to a lexicographic sort. It looks at the characters in numbers column by column as text, and doesn’t do integer sorts. If there is a numeric field, it will do a numeric sort.
The following simple script creates a database with a simple table and adds to that table.
rm -f database.db tmp.sql
sqlite3 database.db "CREATE TABLE Track (
id INTEGER PRIMARY KEY AUTOINCREMENT,
filename TEXT,
path TEXT
);"
x=0
while [[ x -lt 100 ]]; do
filename="${x} song.m4a"
path="/${x}/${filename}"
query="insert into TRACK (filename, path) values('${filename}', '${path}');"
echo ${query} >> tmp.sql
x=$((x + 1))
done
sqlite3 database.db < tmp.sql
Hahaha I didn’t know that level of detail @djliquidice but did understand the part around it being read as text so all the 2s go before all the 3s etc, regardless of the actual number.
I go into details because much of how computers work is baked into how Engine works and non-technical folks get frustrated when the software doesn’t operate as they expect.
On Reddit, I replied to this one post where a DJ is unhappy with Engine’s inability to find duplicates. The person downloads music files more than once on different days and puts those files in different directories. They expect engine to detect those duplicate files.
They follow a very lazy approach to file management and expect the software to clean up after them. With little bit of knowledge on how computers work, we can manage our expectations of what software can do.
My 3 man team at work will be 1 as of next Friday, yours truly. I’m starting to think they are the lucky ones walking away with a years pay and new opportunities.
For DJing, the ‘bot DJ’ will be a regular thing in smaller venues and events within 5yrs I’d say, each time the next ‘auto’ whatever is implemented it’s one more nail in the coffin… don’t those new entry level Pioneer controllers do BPM shift mixes purely by sliding the Crossfader? Sliding the Crossfader is the easiest thing to automate.
This is how 9/10 DJ approach library management, for them the program is as good as how much it can compensate for convulted workflows (missing or duplicated files), garbage in tags (issues with cover artwork or nonstandard tags) and as a consequence of having too much tracks in the library - how software can help them plan a playlist (how well smart playlist work, colorcoding, etc).
I must be the 1/10 then. I mean I do have duplicates, but I take 100% ownership in my mistakes. I take zero ownership where silly games are played by publishers (republishing tracks, etc.)
Thanks for the input. I’m super familiar with sorting, leading zeros, etc.
The behavior I was expecting can be seen if you create a playlist, and add files/directories to that playlist. They are all added in the order that I add them, and new playlists are created at the bottom. This works fine for me and I’ll just create a top-level Playlist on my thumb drives to store the actual playlists, no problem.
I mostly didn’t delete this post in case someone else ran into the same issue, where they are adding directly to the Collection, and seeing odd/random placement of newly added Playlists. That way if they search and see this problem I was facing, they can see that by adding a playlist to their collection and adding to that instead, the desired behavior will be seen.
It is odd to me that there is different behavior when adding to Collection vs Playlist within, but I’m not going to stress about it.