mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 11:14:00 +00:00
Reset song on mouse click
This commit is contained in:
parent
7831732497
commit
15d4100244
|
@ -86,6 +86,7 @@ enum {
|
||||||
- (void) setRepeatVolta:(int)repeatVolta;
|
- (void) setRepeatVolta:(int)repeatVolta;
|
||||||
|
|
||||||
- (void) playSong;
|
- (void) playSong;
|
||||||
|
- (void) endSong;
|
||||||
|
|
||||||
- (NSURL *) tmpURL;
|
- (NSURL *) tmpURL;
|
||||||
- (NSURL *) workURL;
|
- (NSURL *) workURL;
|
||||||
|
|
|
@ -490,6 +490,11 @@
|
||||||
[self setPlayElements:[self playElements]];
|
[self setPlayElements:[self playElements]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) endSong
|
||||||
|
{
|
||||||
|
musicSequence = nil;
|
||||||
|
}
|
||||||
|
|
||||||
- (void) playWithGroove:(NSString *)groove inSections:(NSRange)sections
|
- (void) playWithGroove:(NSString *)groove inSections:(NSRange)sections
|
||||||
{
|
{
|
||||||
NSString * savedGroove = songGroove;
|
NSString * savedGroove = songGroove;
|
||||||
|
|
|
@ -834,6 +834,8 @@ const float kSemiFloor = -1.0f*kLineH;
|
||||||
|
|
||||||
- (void) mouseDown:(NSEvent *)event
|
- (void) mouseDown:(NSEvent *)event
|
||||||
{
|
{
|
||||||
|
[[self document] endSong];
|
||||||
|
|
||||||
BOOL extend = ([event modifierFlags] & NSShiftKeyMask) != 0;
|
BOOL extend = ([event modifierFlags] & NSShiftKeyMask) != 0;
|
||||||
VLRegion region = [self findRegionForEvent:event];
|
VLRegion region = [self findRegionForEvent:event];
|
||||||
if (extend && [[self editTarget] canExtendSelection:region])
|
if (extend && [[self editTarget] canExtendSelection:region])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user