Muvicado HD
Loading...
Searching...
No Matches
NotePaletteArea Class Reference

Renders a grid of pads mapped to MIDI notes and forwards interactions. More...

#include <NotePaletteArea.h>

Inheritance diagram for NotePaletteArea:
Collaboration diagram for NotePaletteArea:

Instance Methods

(void) - setNoteBeingPlayed:
 Sets the note to highlight within the palette grid.
(id) - initWithFrame: [implementation]
(void) - awakeFromNib [implementation]
(void) - drawRect: [implementation]
(void) - doit: [implementation]
(void) - mouseDown: [implementation]
 Forwards to doit: to process hit and selection.
(void) - mouseDragged: [implementation]
 Forwards to doit: to process hit and selection.
(void) - mouseMoved: [implementation]
 Displays hover feedback via superclass logic.
(void) - mouseUp: [implementation]
 Restores focus to the PlayArea window after interaction.
(void) - dealloc [implementation]
Instance Methods inherited from PadView
(Controller *) - makeController
(Controller *) - getController
(void) - refresh
(void) - addPad:
(void) - addElement:
(NSPoint) - localPointForEvent:
(Pad *) - testForPadHitWithPoint:
(void) - startPad:
(void) - stopPad:
(void) - doPad:
(void) - doAction:
(Pad *) - findPadForNote:
(NSMutableArray *) - findPadsForNote:
(NSMutableArray *) - selectedPads
(NSMutableArray *) - unselectedPads
(void) - selectAllPadsForCurrentLayer
(void) - setAllPadsToSelected:
(void) - selectAllPads
(void) - deselectAllPads
(void) - deletePad:
(void) - randomColors
(void) - setSeeThru:
(void) - duplicateSelectedPads
(NSPoint) - snapGridWithX:Y:
(NSPoint) - snapGridWithPoint:
(void) - nullSweep
(int) - numSelectedPads
(Pad *) - getSingleSelectedPad
(NSMutableArray *) - getElementBag
(void) - setNoteOfSelectedPads:
(void) - setNoteOfSingleSelectedPad:
(void) - setMarquee:
(void) - showMarquee
(void) - hideMarquee
(void) - selectPadsIntersectingWithRect:onLayer:
(void) - doCutElements
(void) - doCopyElements
(void) - doPasteElements
(void) - doDeleteElements
(void) - doSelectAllElements
(bool) - shouldDrawPad: [implementation]
(BOOL) - acceptsFirstMouse: [implementation]
(BOOL) - mouseDownCanMoveWindow [implementation]
(void) - dummy [implementation]
(NSMutableArray *) - findPadsForSelected: [implementation]
(BOOL) - acceptsFirstResponder [implementation]
(BOOL) - becomeFirstResponder [implementation]
(BOOL) - resignFirstResponder [implementation]
(void) - rightMouseDown: [implementation]
(void) - otherMouseDown: [implementation]
(void) - rightMouseUp: [implementation]
(void) - otherMouseUp: [implementation]
(void) - scrollWheel: [implementation]
(void) - rightMouseDragged: [implementation]
(void) - otherMouseDragged: [implementation]
(void) - mouseEntered: [implementation]
(void) - mouseExited: [implementation]
(void) - keyUp: [implementation]
(void) - tabletPoint: [implementation]
(void) - tabletProximity: [implementation]
(void) - cursorUpdate: [implementation]
(void) - noResponderFor: [implementation]
(BOOL) - isFlipped [implementation]
(void) - setNoteOfPad:fromPad: [implementation]
(IBAction) - doOpen:
(IBAction) - doSave:
(IBAction) - doSaveAs:
(IBAction) - doImport:
(IBAction) - doExport:
(BOOL) - getPointFromXYPair [implementation]
(void) - parser:didStartElement:namespaceURI:qualifiedName:attributes: [implementation]
(void) - parser:parseErrorOccurred: [implementation]
(void) - parser:didEndElement:namespaceURI:qualifiedName: [implementation]
(void) - alertDidEnd:returnCode:contextInfo: [implementation]
(void) - parseXMLFile: [implementation]
(void) - openXmlPanelDidEnd:returnCode:contextInfo: [implementation]
(void) - openXMLFile [implementation]
(void) - setCurrentFile: [implementation]
(void) - parseMvFile: [implementation]
(void) - openMvPanelDidEnd:returnCode:contextInfo: [implementation]
(void) - openMvFile [implementation]
(NSString *) - panel:userEnteredFilename:confirmed: [implementation]
(void) - saveXMLFile: [implementation]
(void) - saveXmlPanelDidEnd:returnCode:contextInfo: [implementation]
(void) - saveXMLFile [implementation]
(BOOL) - saveMvToFile: [implementation]
(void) - saveMvPanelDidEnd:returnCode:contextInfo: [implementation]
(void) - saveMvFile [implementation]

Protected Attributes

int noteBeingPlayed
IBOutlet PlayAreaplayArea
Protected Attributes inherited from PadView
NSMutableArray * elementBag
IBOutlet Controllercontroller
PadlastPad
PadlastPadPlayed
Boolean gridShow
int gridX
int gridY
int padLayer
NSMutableArray * _clipboard
BOOL _marqueeVisible
NSRect _marqueeSelectionBounds
int num_draws
BOOL _hasHitPad

Additional Inherited Members

Class Methods inherited from PadView
(NSPoint) + snap90Point:fromAnchor:

Detailed Description

Renders a grid of pads mapped to MIDI notes and forwards interactions.

Concrete implementation of NotePaletteArea rendering and interactions.

Highlights pads for the note currently being played and updates the attached PlayArea's selected pads with the chosen note/color.

Definition at line 20 of file NotePaletteArea.h.

Method Documentation

◆ awakeFromNib

- (void) awakeFromNib
implementation

Sizes the window to fit the palette grid content.

Definition at line 64 of file NotePaletteArea.m.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dealloc

- (void) dealloc
implementation

Releases resources before deallocation.

Reimplemented from PadView.

Definition at line 144 of file NotePaletteArea.m.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ doit:

- (void) doit: (NSEvent *) event
implementation

Hit-tests for a pad and forwards the note/color to the PlayArea.

Reimplemented from PadView.

Definition at line 108 of file NotePaletteArea.m.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawRect:

- (void) drawRect: (NSRect) dirtyRect
implementation

Fills background, draws pads, and outlines pads for the current note.

Reimplemented from PadView.

Definition at line 80 of file NotePaletteArea.m.

Here is the call graph for this function:

◆ initWithFrame:

- (id) initWithFrame: (NSRect) frame
implementation

Builds a grid of pads mapped to MIDI notes and stores them in the element bag. Note: playArea is typically set later via Interface Builder.

Reimplemented from PadView.

Definition at line 26 of file NotePaletteArea.m.

Here is the call graph for this function:

◆ mouseDown:

- (void) mouseDown: (NSEvent *) event
implementation

Forwards to doit: to process hit and selection.

Reimplemented from PadView.

Definition at line 123 of file NotePaletteArea.m.

Here is the call graph for this function:

◆ mouseDragged:

- (void) mouseDragged: (NSEvent *) event
implementation

Forwards to doit: to process hit and selection.

Reimplemented from PadView.

Definition at line 128 of file NotePaletteArea.m.

Here is the call graph for this function:

◆ mouseMoved:

- (void) mouseMoved: (NSEvent *) event
implementation

Displays hover feedback via superclass logic.

Reimplemented from PadView.

Definition at line 133 of file NotePaletteArea.m.

Here is the call graph for this function:

◆ mouseUp:

- (void) mouseUp: (NSEvent *) event
implementation

Restores focus to the PlayArea window after interaction.

Reimplemented from PadView.

Definition at line 138 of file NotePaletteArea.m.

Here is the call graph for this function:

◆ setNoteBeingPlayed:

- (void) setNoteBeingPlayed: (int) note

Sets the note to highlight within the palette grid.

Updates which note is highlighted in the palette.

Definition at line 75 of file NotePaletteArea.m.

Member Data Documentation

◆ noteBeingPlayed

- (int) noteBeingPlayed
protected

Currently highlighted MIDI note number.

Definition at line 22 of file NotePaletteArea.h.

◆ playArea

- (IBOutlet PlayArea*) playArea
protected

Owning play area used to propagate note/color changes.

Definition at line 24 of file NotePaletteArea.h.


The documentation for this class was generated from the following files: