NiCMidi 1.1.0
A MIDI library derived from J.D.Koftinoff jdksmidi
MIDISequencerGUINotifierText Class Reference

A MIDISequencerGUINotifier which sends text messages to a std::ostream (std::cout as default). More...

#include <notifier.h>

Inheritance diagram for MIDISequencerGUINotifierText:
MIDISequencerGUINotifier

Public Member Functions

 MIDISequencerGUINotifierText (const MIDISequencer *seq=0, std::ostream &os=std::cout)
 The constructor. More...
 
unsigned char GetStartFrom () const
 Gets the numbering of measures and beats. More...
 
bool SetStartFrom (unsigned char c)
 Sets the numbering of measures and beats (starting from 0 or from 1) More...
 
virtual void Notify (const MIDISequencerGUIEvent &ev)
 Notifies the event ev, printing to it a readable event description. More...
 
- Public Member Functions inherited from MIDISequencerGUINotifier
 MIDISequencerGUINotifier (const MIDISequencer *seq=0)
 The constructor. More...
 
virtual void SetSequencer (const MIDISequencer *seq)
 This sets the sequencer which generates messages sent to the GUI. More...
 
virtual bool GetEnable () const
 Returns the enable/disable status. More...
 
virtual void SetEnable (bool f)
 Sets message sending on/off. More...
 

Detailed Description

A MIDISequencerGUINotifier which sends text messages to a std::ostream (std::cout as default).

Examples
test_recorder.cpp, test_recorder2.cpp, test_sequencer.cpp, and test_stepsequencer.cpp.

Constructor & Destructor Documentation

◆ MIDISequencerGUINotifierText()

MIDISequencerGUINotifierText::MIDISequencerGUINotifierText ( const MIDISequencer seq = 0,
std::ostream &  os = std::cout 
)
inline

The constructor.

Parameters
seqthe sequencer from which messages originate
osthe std::ostream which will print the messages

Member Function Documentation

◆ GetStartFrom()

unsigned char MIDISequencerGUINotifierText::GetStartFrom ( ) const
inline

Gets the numbering of measures and beats.

See SetStartFromone().

Returns
0 or 1.

◆ SetStartFrom()

bool MIDISequencerGUINotifierText::SetStartFrom ( unsigned char  c)

Sets the numbering of measures and beats (starting from 0 or from 1)

Parameters
c0 or 1.
Returns
true if the parameter is correct, false otherwise

◆ Notify()

virtual void MIDISequencerGUINotifierText::Notify ( const MIDISequencerGUIEvent ev)
virtual

Notifies the event ev, printing to it a readable event description.

Implements MIDISequencerGUINotifier.


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