mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 19:23:59 +00:00
Smooth callbacks
This commit is contained in:
parent
80d43bc102
commit
f31c878e9b
|
@ -28,7 +28,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- (VLPlaybackEditable *)initWithView:(VLSheetView *)view;
|
- (VLPlaybackEditable *)initWithView:(VLSheetView *)view;
|
||||||
- (void) userEvent:(VLMIDIUserEvent *)event;
|
- (void) userEvent:(NSValue *)event;
|
||||||
- (void) highlightCursor;
|
- (void) highlightCursor;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -45,8 +45,9 @@
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) userEvent:(VLMIDIUserEvent *)event
|
- (void) userEvent:(NSValue *)ev
|
||||||
{
|
{
|
||||||
|
VLMIDIUserEvent * event = (VLMIDIUserEvent *)[ev pointerValue];
|
||||||
if (event->fPitch) {
|
if (event->fPitch) {
|
||||||
fNotePitch = event->fPitch;
|
fNotePitch = event->fPitch;
|
||||||
fNoteMeasure = event->fMeasure;
|
fNoteMeasure = event->fMeasure;
|
||||||
|
@ -96,7 +97,9 @@ VLSequenceCallback(
|
||||||
MusicTimeStamp inEventTime, const MusicEventUserData *inEventData,
|
MusicTimeStamp inEventTime, const MusicEventUserData *inEventData,
|
||||||
MusicTimeStamp inStartSliceBeat, MusicTimeStamp inEndSliceBeat)
|
MusicTimeStamp inStartSliceBeat, MusicTimeStamp inEndSliceBeat)
|
||||||
{
|
{
|
||||||
[(id)inClientData userEvent:(VLMIDIUserEvent *)inEventData];
|
[(id)inClientData performSelectorOnMainThread:@selector(userEvent:)
|
||||||
|
withObject:[NSValue valueWithPointer:inEventData]
|
||||||
|
waitUntilDone:NO];
|
||||||
}
|
}
|
||||||
|
|
||||||
@implementation VLSheetView (Selection)
|
@implementation VLSheetView (Selection)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user