VocalEasel/Tests/TVLLilypond.mm

28 lines
720 B
Plaintext
Raw Permalink Normal View History

2006-10-22 07:16:29 +00:00
/*
* TVLLilypond.mm
* Vocalese
*
* Created by Matthias Neeracher on 12/19/05.
* Copyright 2006 __MyCompanyName__. All rights reserved.
*
*/
#include "VLModel.h"
#include "VLDocument.h"
int main(int, char *const argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
VLDocument * doc = [[VLDocument alloc] init];
NSString * file = [NSString stringWithUTF8String:argv[1]];
NSError * err;
2006-10-23 07:42:53 +00:00
[doc readFromURL:[NSURL fileURLWithPath:file] ofType:@"VLNativeType" error:&err];
2006-10-22 07:16:29 +00:00
[doc writeToURL:[NSURL fileURLWithPath:
[[file stringByDeletingPathExtension]
stringByAppendingPathExtension:@"ly"]]
2006-10-23 07:42:53 +00:00
ofType:@"VLLilypondType" error:&err];
2006-10-22 07:16:29 +00:00
[pool release];
exit(0);
}