Based upon the original code by Christoph, I have modified it to allow for full voicetracking within your Playlist. All info is contained in the script - Simply ensure that your “Artist” fields say Voicetrack. Any audio file over 90 seconds will be treated as a song and will be matched-up with the preceeding Voicetrack (subject to the song having a Ramp).
The only bug I’ve found is that a song with a CueIn set will crash the vocal. Have fun.
[code]// mAirTracking - Script to ease Voicetracking with mAirList
// written by Christoph Rothe and released under GPL
//
// v1.0 - initial Release
// v1.01- Bugfix
// v1.1 - modifications by Charlie Davy
// Voicetracks now play into songs - or rather, ANY audio track over 90 seconds
// Preparation
// All Voicetracks MUST contain “Voicetrack” in the Artist field. Or modify the settings below to suit your configuration
// Audio files over 90 seconds will be treated as a song. Change this if you wish.
// KNOWN BUG: A Voicetrack playing into a song with a Cue Point set will crash the vocal!
// ie: 10 second Voictrack, 5 second Ramp but a 1s CueIn will mean the Voicetrack finishes at 6 seconds into the file
var
i: integer;
voicetrack: integer;
song: integer;
begin
voicetrack:=-1;
song:=-1;
for i := 0 to CurrentPlaylist.GetCount - 1 do
begin
if CurrentPlaylist.GetItem(i).GetArtist = ‘Voicetrack’ then
begin
// Enable this for SystemLog
// SystemLog(‘Item ‘+inttostr(i)+’ is a Voicetrack’);
voicetrack:=i;
end else
if CurrentPlaylist.GetItem(i).GetDuration > 900000000 then
begin
// Enable this for SystemLog
//SystemLog('Item ‘+inttostr(i)+’ is a song by '+CurrentPlaylist.GetItem(i).GetArtist);
song:=i;
CurrentPlaylist.GetItem(voicetrack).GetCuePosition(ptStartNext).SetValue(CurrentPlaylist.GetItem(voicetrack).GetDuration-CurrentPlaylist.GetItem(song).GetCuePosition(ptRamp1).GetValue);
SystemLog(‘Success!’);
end else
begin
if (song >= 0) and (voicetrack >= 0) then
begin
end;
song:=-1;
voicetrack:=-1;
end;
end;
end.[/code]
This would be a good script to have enabled on your “Actions” button