WYSWYG editor for JUCE GUIs including Visualisers
Loading...
Searching...
No Matches
MidiDrumpadComponent Class Reference

#include <foleys_MidiDrumpadComponent.h>

Inherits Component, and Timer.

Classes

class  Pad
 

Public Types

enum  ColourIds {
  background = 0x2002200 , padFill , padOutline , padDownFill ,
  padDownOutline , touch
}
 

Public Member Functions

 MidiDrumpadComponent (juce::MidiKeyboardState &keyboardState)
 
 ~MidiDrumpadComponent () override
 
void paint (juce::Graphics &g) override
 
void resized () override
 
void setMatrix (int rows, int columns)
 Set the number of rows and columns.
 
void setRootNote (int noteNumber)
 Set the note number of the top left pad.
 
void timerCallback () override
 

Member Enumeration Documentation

◆ ColourIds

enum ColourIds
Enumerator
background 
padFill 
padOutline 
padDownFill 
padDownOutline 
touch 

Constructor & Destructor Documentation

◆ MidiDrumpadComponent()

◆ ~MidiDrumpadComponent()

~MidiDrumpadComponent ( )
override

Member Function Documentation

◆ paint()

void paint ( juce::Graphics & g)
override

◆ resized()

void resized ( )
override

◆ setMatrix()

void setMatrix ( int rows,
int columns )

Set the number of rows and columns.

The note numbers are ascending top left to bottom right.

Referenced by DrumpadItem::update().

◆ setRootNote()

void setRootNote ( int noteNumber)

Set the note number of the top left pad.

Referenced by DrumpadItem::update().

◆ timerCallback()

void timerCallback ( )
override

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