Jamoma API  0.6.0.a19
TTMidiOutput.h
1 /*
2  * Midi Output Object
3  * Copyright © 2011, Timothy Place
4  *
5  * License: This code is licensed under the terms of the "New BSD License"
6  * http://creativecommons.org/licenses/BSD/
7  */
8 
9 #ifndef __TT_MIDIOUTPUT_H__
10 #define __TT_MIDIOUTPUT_H__
11 
12 #include "TTDSP.h"
13 #include "TTGraph.h"
14 #include "portmidi.h"
15 
16 
17 /** TTMidiOutput sends MIDI to an external device.
18  It is a wrapper around the PortMidi library.
19  */
20 
23 
24 public:
25 
26  TTSymbol mDevice; ///< attr: selected device name
27  const PmDeviceInfo* mDeviceInfo; ///< selected device info struct
28  PmDeviceID mID; ///< selected device ID number
29  PortMidiStream* mStream; ///< a descriptor for a MIDI device that is opened when the device is set
30 
31  TTErr dictionary(const TTValue& aDictionary, TTValue&);
32  TTErr getAvailableDeviceNames(const TTValue&, TTValue& returnedDeviceNames);
33  TTErr setDevice(TTValue& newDeviceName);
34 
35 };
36 
37 
38 #endif // __TT_MIDIOUTPUT_H__
TTSymbol mDevice
attr: selected device name
Definition: TTMidiOutput.h:26
Jamoma Asynchronous Object Graph Layer.
TTDataObjectBase is the base class for all data generating and processing objects.
const PmDeviceInfo * mDeviceInfo
selected device info struct
Definition: TTMidiOutput.h:27
Jamoma DSP Library.
#define TTCLASS_SETUP(className)
TODO Doxygen: need more comments here.
Definition: TTFoundation.h:54
PortMidiStream * mStream
a descriptor for a MIDI device that is opened when the device is set
Definition: TTMidiOutput.h:29
The TTSymbol class is used to represent a string and efficiently pass and compare that string...
Definition: TTSymbol.h:26
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
Definition: TTBase.h:342
TTMidiOutput sends MIDI to an external device.
Definition: TTMidiOutput.h:21
PmDeviceID mID
selected device ID number
Definition: TTMidiOutput.h:28
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34