Auto Cue positions -> MMD files (script)

Hi all

I’m using version 2.1.x (latest release) and I’ve enabled auto determine cue, fade and end positions in the configuration window.

Everytime I load an M3U playlist (plain text file with only the locations of the audio files), it takes a rather long time before all items are imported.

This doesn’t happen when i turn off the funtion to auto determine cue points for new added files, but then each file has to have a corresponding MMD file that already includes the mix vallues for that audio item… Otherwise files would be played from the first to the last frame (including silences at the beginning or end).

So, here’s my question. Let’s say I load all my files in the playlist window. Could there be a script that scans all these files and saves the auto in and out markers to individual MMD files???

I find the auto cue function within mAirList doing a very good job, so it’s not a must for a user to set mix points manually for all songs. (only ramp cues should be done manually).
But loading M3U-playlists and letting mAirList auto-cue things “on the fly” isn’t a good thing, it takes several seconds before the playlist is actually loaded and usable.

But, with auto cueing turned off in the configuration window and all songs having a script generated MMD file, things should work great :slight_smile:

I once got a script that did this, writing to the on the fly-database, but that only worked when dragging a file from the database window into the playlist, not when loading an M3U list.

Best regards!

[code]var i: integer;

begin
for i := 0 to CurrentPlaylist.GetCount - 1 do
CurrentPlaylist.GetItem(i).SaveMMD;
end.[/code]

(not tested)

This indeed creates MMD files, but without auto cue information.
This is what’s inside one of the MMD files:

KINGS OF TOMORROW Finally 1873240816 C:\Temp\MUZIEK\DE MAXX 5 - 2\08 - KINGS OF TOMORROW - Finally.mp3

I’ll try to enable the auto cue determine function in the mAirList configuration, and let then this script do its job… I’ll inform if that worked :slight_smile:

Yes, auto cue must still be enabled when running the script. You can turn it off afterwards.

Thanks, Torben!

First I’ve loaded all tracks in the playlist with auto cue enabled (takes some time, but only has to be done ONCE).
Then I’ve launched the script and this is what one of the auto created MMD files contains now:

KINGS OF TOMORROW Finally 1873240816 2440136 1848931179 1870041043 C:\Temp\MUZIEK\DE MAXX 5 - 2\08 - KINGS OF TOMORROW - Finally.mp3

Then I turned off auto cue in the config and when I now load an M3U playlist, it loads fast AND mAirlist uses the MMD data to play the list.

That’s exactly what I was looking for :slight_smile:

Thanks again!

Surely if you now leave auto cue on with the MMD’s there mAirlist will use whats in the MMD and not auto scan them? That means you could leave it on, just incase you put in a file that doesnt have a cue set?

I presume this works like that Torben?

No, not yet. At the moment, the auto cue is determined even if an MMD file is present (and possibly later overwritten with the information from the MMD).

I will change the behavior in one of the upcoming versions, so that no attempt is made to determine auto cue when an MMD file is found.

Torben

Ah right i see! That might explain why when I save my PFL MMD with auto cue on - it seems a little different when i load it again!