|
Muvicado HD
|
Renders a grid of pads mapped to MIDI notes and forwards interactions. More...
#include <NotePaletteArea.h>


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 PlayArea * | playArea |
| Protected Attributes inherited from PadView | |
| NSMutableArray * | elementBag |
| IBOutlet Controller * | controller |
| Pad * | lastPad |
| Pad * | lastPadPlayed |
| 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: |
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.
|
implementation |
Sizes the window to fit the palette grid content.
Definition at line 64 of file NotePaletteArea.m.


|
implementation |
Releases resources before deallocation.
Reimplemented from PadView.
Definition at line 144 of file NotePaletteArea.m.


|
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.


|
implementation |
Fills background, draws pads, and outlines pads for the current note.
Reimplemented from PadView.
Definition at line 80 of file NotePaletteArea.m.

|
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.

|
implementation |
Forwards to doit: to process hit and selection.
Reimplemented from PadView.
Definition at line 123 of file NotePaletteArea.m.

|
implementation |
Forwards to doit: to process hit and selection.
Reimplemented from PadView.
Definition at line 128 of file NotePaletteArea.m.

|
implementation |
Displays hover feedback via superclass logic.
Reimplemented from PadView.
Definition at line 133 of file NotePaletteArea.m.

|
implementation |
Restores focus to the PlayArea window after interaction.
Reimplemented from PadView.
Definition at line 138 of file NotePaletteArea.m.

| - (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.
|
protected |
Currently highlighted MIDI note number.
Definition at line 22 of file NotePaletteArea.h.
|
protected |
Owning play area used to propagate note/color changes.
Definition at line 24 of file NotePaletteArea.h.