mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 19:23:59 +00:00
Rebuild music sequence on style change
This commit is contained in:
parent
c8e8a6eb4f
commit
16bbada3dc
|
@ -113,7 +113,7 @@
|
||||||
|
|
||||||
- (void)updateChangeCount:(NSDocumentChangeType)changeType
|
- (void)updateChangeCount:(NSDocumentChangeType)changeType
|
||||||
{
|
{
|
||||||
hasMusicSequence = true;
|
hasMusicSequence = false;
|
||||||
[validTmpFiles removeAllObjects];
|
[validTmpFiles removeAllObjects];
|
||||||
[super updateChangeCount:changeType];
|
[super updateChangeCount:changeType];
|
||||||
}
|
}
|
||||||
|
@ -319,6 +319,7 @@
|
||||||
playElements ^= [sender tag];
|
playElements ^= [sender tag];
|
||||||
[validTmpFiles removeObjectForKey:@"mma"];
|
[validTmpFiles removeObjectForKey:@"mma"];
|
||||||
[validTmpFiles removeObjectForKey:@"mid"];
|
[validTmpFiles removeObjectForKey:@"mid"];
|
||||||
|
hasMusicSequence = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) validateMenuItem:(NSMenuItem *)menuItem
|
- (BOOL) validateMenuItem:(NSMenuItem *)menuItem
|
||||||
|
@ -533,6 +534,7 @@
|
||||||
NSString * savedGroove = songGroove;
|
NSString * savedGroove = songGroove;
|
||||||
[validTmpFiles removeObjectForKey:@"mma"];
|
[validTmpFiles removeObjectForKey:@"mma"];
|
||||||
[validTmpFiles removeObjectForKey:@"mid"];
|
[validTmpFiles removeObjectForKey:@"mid"];
|
||||||
|
hasMusicSequence = false;
|
||||||
songGroove = groove;
|
songGroove = groove;
|
||||||
previewRange = sections;
|
previewRange = sections;
|
||||||
playElements |= kVLPlayGroovePreview;
|
playElements |= kVLPlayGroovePreview;
|
||||||
|
@ -541,6 +543,7 @@
|
||||||
songGroove = savedGroove;
|
songGroove = savedGroove;
|
||||||
[validTmpFiles removeObjectForKey:@"mma"];
|
[validTmpFiles removeObjectForKey:@"mma"];
|
||||||
[validTmpFiles removeObjectForKey:@"mid"];
|
[validTmpFiles removeObjectForKey:@"mid"];
|
||||||
|
hasMusicSequence = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (IBAction) stop:(id)sender
|
- (IBAction) stop:(id)sender
|
||||||
|
|
Loading…
Reference in New Issue
Block a user