-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathNoteBase.h
executable file
·69 lines (54 loc) · 1.85 KB
/
NoteBase.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//
// NoteBase.h
// Señor Staff
//
// Created by Konstantine Prevas on 7/31/06.
// Copyright 2006 Konstantine Prevas. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <AudioToolbox/AudioToolbox.h>
@class KeySignature;
@class Staff;
@interface NoteBase : NSObject {
int duration;
BOOL dotted;
Staff *staff;
}
- (int)getDuration;
- (BOOL)getDotted;
- (void)setDuration:(int)_duration;
//- (void)setDotted:(BOOL)_dotted;
//- (void)setDottedSilently:(BOOL)_dotted;
- (Staff *)getStaff;
- (void)setStaff:(Staff *)_staff;
- (NSUndoManager *)undoManager;
//- (void)sendChangeNotification;
- (float)getEffectiveDuration;
- (BOOL)canBeInChord;
//- (BOOL)isTriplet;
//- (BOOL)isPartOfFullTriplet;
//- (NSArray *)getContainingTriplet;
//
//- (BOOL)isDrawBars;
//
//- (float)addToMIDITrack:(MusicTrack *)musicTrack atPosition:(float)pos
// withKeySignature:(KeySignature *)sig accidentals:(NSMutableDictionary *)accidentals
// transpose:(int)transposition onChannel:(int)channel;
//- (void)addToLilypondString:(NSMutableString *)string accidentals:(NSMutableDictionary *)accidentals;
//- (void)addNoteToLilypondString:(NSMutableString *)string accidentals:(NSMutableDictionary *)accidentals;
//- (void)addDurationToLilypondString:(NSMutableString *)string;
//- (void)addToMusicXMLString:(NSMutableString *)string accidentals:(NSMutableDictionary *)accidentals;
//- (void)addDurationToMusicXMLString:(NSMutableString *)string;
//
//- (void)transposeBy:(int)numLines;
//- (void)transposeBy:(int)numHalfSteps oldSignature:(KeySignature *)oldSig newSignature:(KeySignature *)newSig;
- (void)prepareForDelete;
- (NSArray *)subtractDuration:(float)maxDuration;
- (BOOL)tryToFill:(float)maxDuration;
- (void)tieTo:(NoteBase *)note;
- (NoteBase *)getTieTo;
- (void)tieFrom:(NoteBase *)note;
- (NoteBase *)getTieFrom;
//- (Class)getViewClass;
//- (Class)getControllerClass;
@end