mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 11:14:00 +00:00
28 lines
706 B
Plaintext
28 lines
706 B
Plaintext
|
/*
|
||
|
* 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;
|
||
|
[doc readFromURL:[NSURL fileURLWithPath:file] ofType:@"Song" error:&err];
|
||
|
[doc writeToURL:[NSURL fileURLWithPath:
|
||
|
[[file stringByDeletingPathExtension]
|
||
|
stringByAppendingPathExtension:@"ly"]]
|
||
|
ofType:@"Lilypond" error:&err];
|
||
|
[pool release];
|
||
|
|
||
|
exit(0);
|
||
|
}
|