tag on insert

Hi

On one of my systems running mairlist, i have it running so that when i insert a track that doesnt have cue in, fade out, cue out set, it sets these tags when inserting files to the playlist, from either the browser or explorer.

However, its not doing this for me on another version!

i cant seem to find an option to get it to this and cant find any mention in the wiki.

i have got the auto-determine options ticked for cue in/out, fade out for new items.

Any ideas what i could have missed out?

thanks.

No idea how or why but its not working.

all i did was re-download the latest edition, i.e. update.

I am confident that it was updated enought to do this, as its not been that long.

Anyways, im all happy now.

Cheers ;D

Just a word of warning (I think Cad has mentioned this, too) - Watch out when you automatically set your CueOut points as the duration between the FadeOut and the CueOut then becomes the FadeDuration for that item regardless of your Global Setting. I now only set CueIn and FadeOut markers on new items for this very reason - I find that my Global Fade duration of 1500 is good enough for most segueways and News/Travel/Talky Beds have a specific setting of 500mS as they work in conjuntion with a Tag/Outro ID so need an almost instant fade.

Anyway, if you want to blank the CueOut markers as part of a script, you can use this line of code:

CurrentPlaylist.GetItem(i).GetCuePosition(ptCueOut).SetValue(0);

Ahh thats interesting. if i just untick the option of auto-determine cue out, it will work properly wont it?

Yes, that’s right. The only time you would want to set a CueOut (I suppose) is a long track with various songs on it and you only want (for example) the 1st one to play.

OK, just tried as you said.

If i load it from an explorer window it loads with the tags i.e. the ramp is shown.

Therefore it must be something to do with the database. Any ideas? i have done the re-scan so for some reason its not working as it should so it seems. surely i dont have to do a complete rescan by ditching the current cache file??

Thanks

In the absence of an alternative (Cad, Torben?) - perhaps you could rename the file so that you can restore it after, then load mAirList and see if you get any changes.

OR… copy a few (say, 50) of the affected files to a new folder and make a new OnTheFly connection (deleting the other) and see if they read - that’d be quicker :wink:

AHEM! The word is segue (and yes, it is pronounced ‘seg-way’), from the Italian verb ‘to follow.’

Hence ‘a segue,’ ‘I’ve segued those tracks together,’ ‘we’ve got a great 1974 segue coming up,’ and so on.

Sorry, but mis-spellings of ‘segue’ are a pet hate of mine!

But apart from ‘delete OnTheFlyCache.mlp,’ I don’t have any bright ideas about this.

BFN
CAD

Fank yoo, Cad :wink:

Your thoughts please…

When inserting a file from explorer windows into mairlist, i have managed to get it so that when you insert it, it automatically looks and sets the cue in, fade out, cue out positions… However, it isn’t saving those points as a .mmd file.

Is there a way of getting it to do so?

Currently, i am using a script that worked fine for the first 13000 tracks and has created all the .mmd files in the right place and is all good. Now it just won’t work. what i get is the following message

Runtime error (52,1) cannot create file “FILE LOCATION” . The directory or file cannot be created

Please help me out here, its driving me nuts!!!

Thanks

In Notepad, look at the script (turn on the Status Bar option) and find Line52… Then paste it here for us :wink:

Chances are that you’ve left a path in from one of my icon locations - and it doesn’t match your hard-drive layout.

Its really odd that it stopped working as i didnt change anything between adding the first half of my database in and tagging and then adding the second half…

I am using the following script:

// Set Item Attributes
// Remove the comments to perform a task
// by Charlie Davy, revised August 2008

// Drag all common items into a Playlist and run this script
// Enable CueStart and FadeOut options for this to top and tail your audio
// which will ensure smooth automation overlaps
// -40dB is suggested for CueIn
// -13dB is suggested for FadeOut

var
i: integer;

begin
for i := 0 to CurrentPlaylist.GetCount - 1 do

// If EndType is empty, assume it’s a new file and give it an EndType of T(emporary)
// Comment this line out to set EndTypes of all items in the Playlist
if CurrentPlaylist.GetItem(i).GetEndType = ‘’ then

begin

// Set End Type to temporary - useful to indicate an automatically generated CueOut
// that may require manual intervention at some point
CurrentPlaylist.GetItem(i).SetEndType(‘t’);

// Main Section

// Set Playlist Icon - adjust your icon locations to suit
// many icons available at www.iconarchive.com
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\mAirList\icons\Icon - Advert.ico’);
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\mAirList\icons\Icon - Control.ico’);
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\mAirList\icons\Icon - Ident.ico’);
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\mAirList\icons\Icon - Pre Rec.ico’);
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\mAirList\icons\Icon - Promo.ico’);
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\mAirList\icons\Icon - Voicetrack.ico’);
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\mAirList\icons\Icon - Song.ico’);

// If you want to colour an item, enable this line:
//CurrentPlaylist.GetItem(i).SetColored(true);

// Suggested Colours:

// Adverts and Promos
//CurrentPlaylist.GetItem(i).SetColor($80FF80);

//CurrentPlaylist.GetItem(i).SetArtist(‘Voicetrack’);
//CurrentPlaylist.GetItem(i).SetComment(‘This item can be overlayed with a song intro.’);

// Beds
//CurrentPlaylist.GetItem(i).SetColor($FFFF00);

// Jingles
//CurrentPlaylist.GetItem(i).SetColor($00FFFF);

// Pre Rec
//CurrentPlaylist.GetItem(i).SetColor($9EE0D3);

// VoiceTracks
//CurrentPlaylist.GetItem(i).SetColor($D3E09E);
//CurrentPlaylist.GetItem(i).SetColor($FF80FF);

// If you have made a mess of your Cue Points or you want the CueOut removed,
// you may find these lines useful
//CurrentPlaylist.GetItem(i).GetCuePosition(ptFadeOut).SetValue(0);
//CurrentPlaylist.GetItem(i).GetCuePosition(ptCueOut).SetValue(0);

CurrentPlaylist.GetItem(i).SaveMMD;

end;
end.

Is there not an option so that when an item is added to the playlist it works out the cue in/fade out settings and automatically saves them to mmd? this is ultimately what i want to happen, just it doesnt currently, which is why im turning to scripting.

thanks

The icon paths are all commented out which is OK, I can’t a problem.

mAirList will set the CueIn/FadeOut points when loading a playlist or dragging from the Browser, but to save - you’d need to run the script… Just the following would be needed:

[code]// Set Item Attributes
// Remove the comments to perform a task
// by Charlie Davy, revised August 2008

// Drag all common items into a Playlist and run this script
// Enable CueStart and FadeOut options for this to top and tail your audio
// which will ensure smooth automation overlaps
// -40dB is suggested for CueIn
// -13dB is suggested for FadeOut

var
i: integer;

begin
for i := 0 to CurrentPlaylist.GetCount - 1 do

// If EndType is empty, assume it’s a new file and give it an EndType of T(emporary)
// Comment this line out to set EndTypes of all items in the Playlist
if CurrentPlaylist.GetItem(i).GetEndType = ‘’ then

begin

// Set End Type to temporary - useful to indicate an automatically generated CueOut
// that may require manual intervention at some point
CurrentPlaylist.GetItem(i).SetEndType(‘t’);

// Save MMD Data File
CurrentPlaylist.GetItem(i).SaveMMD;

end;
end.
[/code]

i have just copied and created a new script, straight from what you posted and i still get the same error message.

Could it be that the MMD folder in mAirListConfig is not set correctly ?

Remember that if you’re using an INI file from somebody else (like me), the folders may not match, especially if you are using Vista… I’ve recently moved mAirList into C:\mAirList so that I can switch configs using the EXE switch :slight_smile:

… just incase it helps, i have taken away the central mmd folder to see whether that was a problem, and all it did was change the error message to show the path of the file, which is where it would put the mmd file…

Therefore, it is something else that is causing a problem…

Here is a copy of my mairlist.ini just in case you can spot the problem?!

[General]
PlaylistCount=1
Locale=
CueInThreshold=-6.71
FadeOutThreshold=-6.71
CueOutThreshold=-14.08
[Playlist0]
PlayerCount=2
MaxHistoryCount=5
FontName=MS Sans Serif
FontSize=16
FontStyle=0
AllowAutomation=on
AutomationSinglePlayer=off
CleanUpHistory=off
CleanUpHistoryTop=off
DontSaveHistory=off
CleanUpNonPlayables=off
SaveEvents=off
UseRecycleBin=off
HandleFixedTime=on
LiveBacktiming=off
ColumnHeaders=on
ExtendedViewMode=on
SwapArtistTitle=on
Backtiming=off
ShowPosition=on
RampOverlay=off
EOFWarningOverlay=off
CommentButtons=on
Comments=off
Icons=off
IconClickPFL=off
PlayerColors=on
PlayerName=on
AlwaysShowDuration=off
AlwaysShowRamp=off
TimeInSeconds=on
RampInSeconds=on
TruncateTime=on
TruncateTimeTwoDigit=off
ScrollIntoView=on
SpacebarAutomationNext=off
EscapeAutomationBreak=off
EscapeAutomationStop=off
FixedItemColors=off
ControlBar=on
SeparateAutomationButtons=off
GraphicButtons=on
ToolbarBottom=on
AutomationFlash=off
ProgressBar=off
RampProgressBar=off
SplitProgressBar=off
BacktimingPrefixFixed="= "
BacktimingPrefixFixedSoft="~ "
BacktimingPrefixAbsolute=""
BacktimingPrefixRelative="+ "
NearestRamp=off
ProgressBarNearestRamp=off
BreakDuration=on
ShowEvents=on
ShowDuration=on
[Player0_0]
Name=A
Color=255
Device=BASS1044100
PFLDevice=BASS1044100
EOFWarning=10
DisplayMode=remain
AutoLoad=on
AutoLoadOnDemand=off
AutoLoadSingle=off
AutoLoadSpecial=off
AutoUnloadSTOP=on
AutoUnloadEOF=on
AutoStopOnEOF=on
AutoReleasePause=on
AutoPFLOff=off
AutoFadeOut=off
UseInAutomation=on
HistoryOnClose=on
Logging=on
DatabaseLogging=on
ShoutcastLogging=on
IndependentPFL=off
IndependentPFLEndMon=on
TimeInSeconds=on
RampInSeconds=off
TruncateTime=off
AdvancedPFL=on
PFLSaveButtons=off
ClickStart=off
FlashEOFWarning=on
ShowRampWhenIdle=off
NoButtonsInAutomation=on
ShowPFLButton=on
ShowStopButton=on
ShowPauseButton=on
ShowStartButton=on
ShowCloseButton=on
ProgressBar=on
RampProgressBar=on
SplitProgressBar=on
HistoryOnCloseLoaded=off
LoopAudio=off
HookMode=off
CueCategoryColors=on
ExpandCueCategories=off
SimpleCueList=off
CueInSeconds=on
CueMode=on
CueAlternatives=off
ShowLoopButton=on
ShowHookButton=on
ShowFadeOutButton=on
ProgressBarNearestRamp=off
ClickCommand=None
AutoStopPFL=off
PFLOutputPlayback=off
SwapArtistTitle=off
[Player0_1]
Name=B
Color=16711680
Device=BASS1044100
PFLDevice=BASS1044100
EOFWarning=10
DisplayMode=remain
AutoLoad=on
AutoLoadOnDemand=off
AutoLoadSingle=off
AutoLoadSpecial=off
AutoUnloadSTOP=on
AutoUnloadEOF=on
AutoStopOnEOF=on
AutoReleasePause=on
AutoPFLOff=off
AutoFadeOut=off
UseInAutomation=on
HistoryOnClose=on
Logging=on
DatabaseLogging=on
ShoutcastLogging=on
IndependentPFL=off
IndependentPFLEndMon=on
TimeInSeconds=on
RampInSeconds=off
TruncateTime=off
AdvancedPFL=on
PFLSaveButtons=off
ClickStart=off
FlashEOFWarning=on
ShowRampWhenIdle=off
NoButtonsInAutomation=on
ShowPFLButton=on
ShowStopButton=on
ShowPauseButton=on
ShowStartButton=on
ShowCloseButton=on
ProgressBar=on
RampProgressBar=on
SplitProgressBar=on
HistoryOnCloseLoaded=off
LoopAudio=off
HookMode=off
CueCategoryColors=on
ExpandCueCategories=off
SimpleCueList=off
CueInSeconds=on
CueMode=on
CueAlternatives=off
ShowLoopButton=on
ShowHookButton=on
ShowFadeOutButton=on
ProgressBarNearestRamp=off
ClickCommand=None
AutoStopPFL=off
PFLOutputPlayback=off
SwapArtistTitle=off
[ExtraPFL]
Device=BASS1044100
DisplayMode=remain
Color=255
EOFWarning=0
TimeInSeconds=on
RampInSeconds=off
TruncateTime=on
ProgressBar=on
RampProgressBar=on
SplitProgressBar=on
CueCategoryColors=on
ExpandCueCategories=off
SimpleCueList=off
CueInSeconds=on
CueMode=on
CueAlternatives=off
ProgressBarNearestRamp=off
SwapArtistTitle=off
[LogDatabase]
Enabled=off
Protocol=
Host=
Database=
User=
Password=
StartCommand=
StopCommand=
[Options]
Monitor=1
FadeOutDuration=2500
EndMonDuration=10000
ExtraFileExtensions=
MMDFolder=E:\MMD FILE
MemoryFileLimit=0
PriorityClass=1
StartNextEffectiveEnd=off
FadeOutEffectiveEnd=on
OnlyOneInstance=off
SplashScreen=on
[BASS.DLL]
PlaybackBuffer=500
NetworkBuffer=5000
NetworkPreBuffer=75
UpdatePeriod=100
ForceMultichannel1=off
ForceMultichannel2=off
DriverOptions=39559
IgnoreSpeakers1=off
IgnoreSpeakers2=off
[Engine]
StartOnAir=on
NoLoggingOffAir=on
UseRecycleBin=on
[FileImport]
AutoCueIn=on
AutoFadeOut=on
AutoCueOut=off
ImportComment=on
ImportTags=on
MP2OutroAsFadeOut=off
TildeAsStartNext=off
TildeAsOutro=off
TildeAsFadeOut=off
StripWhitespace=on
[MainWindow]
Maximized=on
RememberPosition=on
AutoHideProgressBar=off
ProgressBarIgnoreCartwall=on
StatusBar=on
SaveConfirmation=on
MinimizeToTray=off
mfoTrayStatusMessages=off
mfoOpenSavePlaylist=off
[ProgressBar]
ProgressBar=on
RampProgressBar=on
SplitProgressBar=off
UpdateInterval=100
ProgressBarNearestRamp=off
[MIDI]
Enabled=off
[Remote]
Enabled=off
Port=9300
Password=
[ScreenObjects]
Clock=on
LEDClock=off
Date=on
HourCountdown=on
RampCountdown=on
Logo=off
OnAirStatus=on
OnAirSwitch=off
LogoFilename=
[Browser]
SaveWithDesktop=off
SaveWithTemplate=on
KeepOpen=on
AlwaysShowRecycleBin=on
OldStyle=off
ResizablePanes=off
[SerialRemote]
Enabled=off
Port=1
BaudRate=38400
ByteSize=8
Parity=N
StopBits=1
RxBuffer=1024
TxBuffer=1024
DriverOptions=39441
[EnabledFeatures]
ExtraPFL=on
Properties=on
SaveToTag=on
SaveToMMD=on
SaveToDatabase=on
Mixdown=on
UserDefinedProperties=on
[Audimark]
Enabled=off
User=
Password=
RadioID=
Hash=
[Actions]
Menu=
[Repository]
HookOpener=
HookSweeper=
HookCloser=
[Logging]
Enabled=off
Logfile=%Y-%M-%D.LOG
Format=%h:%m:%s%tstarte%t%3
EndLogging=off
EndLogfile=%Y-%M-%D.LOG
EndFormat=%h:%m:%s%tstoppe%t%3
Shoutcast=off
ShoutcastURL=http://host:port/admin.cgi?pass=secret&mode=updinfo&song=$$$DATA$$$
ShoutcastFormat=%a - %b
[SAS]
Enabled=off
Port=1
BaudRate=38400
ByteSize=8
Parity=N
StopBits=1
RxBuffer=1024
TxBuffer=1024
[Cartwall]
Enabled=on
OwnWindow=on
PlayerCountX=5
PlayerCountY=5
EOFWarning=5
DefaultSet=
SaveWithDesktop=off
SaveWithTemplate=on
KeepOpen=on
Logging=on
DatabaseLogging=on
ShoutcastLogging=on
IndependentPFL=off
IndependentPFLEndMon=off
AutoPFLOff=off
AutoFadeOut=off
Toolbar=on
VisibleAtStartup=on
AlwaysShowButton=on
StandaloneStretch=on
Maximized=on
OpenAtStartup=on
AlwaysOnTop=off
RememberPosition=on
TimeInSeconds=on
RampInSeconds=off
TruncateTime=off
AdvancedPFL=off
PFLSaveButtons=off
FlashEOFWarning=on
ShowRampWhenIdle=off
SwapArtistTitle=off
CueCategoryColors=on
ExpandCueCategories=off
SimpleCueList=off
CueInSeconds=on
CueMode=on
CueAlternatives=off
ShowStartButton=off
ShowStopButton=off
ShowPauseButton=off
ShowCloseButton=off
ShowPFLButton=off
ShowLoopButton=off
ShowHookButton=off
ShowFadeOutButton=off
ProgressBar=off
RampProgressBar=off
SplitProgressBar=off
ProgressBarNearestRamp=off
DisplayMode=remain
ClickCommand=StartStop
[ActionScripts]
Item0=C:\Program Files\mAirList\scripts\Set_Item_Attributes.mls
Item1=C:\Program Files\mAirList\scripts\charlie_save.mls

Thanks for your help

Nothing immediatly obvious - I’ve never seen that error before so I assumed it refered to a folder location that wasn’t available - The MMD folder being the likely culprit, but alas no.

Your FadeOut setting at -6.71 is a little keen! Take care when playing audio that isn’t normalized or has really low volumes towards the end of the file as I’ve found that -13 can sometimes be too low… at -6dB, your Ads and Jingles will be very tight but music could sound quite nasty especially if you have a long GlobalFadeDuration like 2500 - 3000 set.

Just my 2p worth… it may sound fine your end :slight_smile:

yes, having seen your settings, i did think that. i never use automation really so not generally a problem, but best to have it tagged properly.

im just trying something i think might work. will let you know shortly

Ahh.

Its the actual hard-drive itself, just tried changing the location to a location not the hard-drive and it worked fine…

When i try and copy the files from the new location onto the hard-drive i get an error message about “the directory or file cannot be created”

Any ideas what this could be?

Sorry - what files are being copied and where are you seeing this error message ?