RangeEncoder Class Reference
[RangeEncoder]

#include <Encoders.hh>

Inheritance diagram for RangeEncoder:
Encoder Encoder CCEncoder CCEncoder CharEncoder EnumEncoder MDAssignMachineEncoder MDFXEncoder MDKitSelectEncoder MDLFOEncoder MDMuteGroupEncoder MDParamSelectEncoder MDPatternSelectEncoder MDTrackFlashEncoder MDTrigGroupEncoder MidiTrackEncoder NotePitchEncoder TempoEncoder TempoEncoder VarRangeEncoder

List of all members.

Public Member Functions

 RangeEncoder (int _max=127, int _min=0, const char *_name=NULL, int init=0, encoder_handle_t _handler=NULL)
void initRangeEncoder (int _max=128, int _min=0, const char *_name=NULL, int init=0, encoder_handle_t _handler=NULL)
virtual int update (encoder_t *enc)
 RangeEncoder (uint8_t _max=127, uint8_t _min=0)
void handle (uint8_t val)
void update (encoder_t *enc)

Public Attributes

int min
int max
uint8_t min
uint8_t max

Detailed Description

Encoder with minimum and maximum value.


Constructor & Destructor Documentation

RangeEncoder::RangeEncoder ( uint8_t  _max = 127,
uint8_t  _min = 0 
) [inline]

Member Function Documentation

void RangeEncoder::handle ( uint8_t  val  )  [inline, virtual]

Reimplemented from Encoder.

Reimplemented in CCEncoder, and TempoEncoder.

void RangeEncoder::update ( encoder_t enc  )  [virtual]

Updates the value of an encoder according to the movements of the hardware (recorded in the encoder_t structure). The default handler adds the normal increment, and handles pressing down the encoder according to pressmode and fastmode.

Reimplemented from Encoder.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Tue Dec 1 21:01:21 2009 for Mididuino Framework by  doxygen 1.6.1