~ubuntu-branches/ubuntu/breezy/muse/breezy

« back to all changes in this revision

Viewing changes to synti/stklib/RtMidi.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2004-02-07 15:18:22 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040207151822-es27xxkzbcxkebjm
Tags: 0.6.3-1
* New upstream version.
* Added patches:
  + [10_alsa_init_fix] New, from upstream CVS.
    Initialize direction variable when setting Alsa parameters.
  + [10_canvas_translation_fix] New, from upstream CVS.
    Do not translate tooltips twice in canvas popup.
  + [10_checkbox_fix] New, from upstream CVS.
    Use proper set/test methods on metronome checkboxes.
  + [10_html_doc_cleanup] New.
    Fix links and HTML errors in documentation.
  + [20_allow_system_timer] New.
    The new upstream version fails by default if the real-time clock
    could not be accessed (usually the case when not running suid-root).
    This patch reverts the old behaviour of falling back to the more
    inaccurate system timer.
* Updated patches:
  + [11_PIC_fixes_fixup] Rediffed.
* Removed patches:
  + [20_no_atomic_asm] Merged upstream.
* debian/compat: Splice out debhelper compatibility level from rules file.
* debian/control: Build-depend on latest jack release by default.
  Closes: #228788
* debian/control: Bump standards version.
* debian/control: Use auto-generated debconf dependency via misc:Depends.
* debian/control: Minor tweaks to the long description.
* debian/control: Tighten fluidsynth build dependency to sane version.
* debian/muse.doc-base: New. Register HTML documentation with doc-base.
* debian/templates: Tiny rewording, and typo fix.
* debian/templates, debian/po/*: Switch to po-debconf for translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/******************************************/
2
 
/*
3
 
  RtMidi.cpp
4
 
  Realtime MIDI I/O Object for STK,
5
 
  by Gary P. Scavone, 1998-2000.
6
 
  Based in part on code by Perry
7
 
  Cook (SGI), Paul Leonard (Linux),
8
 
  the RoseGarden team (Linux), and
9
 
  Bill Putnam (Win95/NT).
10
 
 
11
 
  At the moment, this object only
12
 
  handles MIDI input, though MIDI
13
 
  output code can go here when someone
14
 
  decides they need it (and writes it).
15
 
 
16
 
  This object opens a MIDI input device
17
 
  and parses MIDI messages into a MIDI
18
 
  buffer.  Time stamp info is converted
19
 
  to deltaTime. MIDI data is stored as
20
 
  MY_FLOAT to conform with SKINI.
21
 
 
22
 
  An optional argument to the constructor
23
 
  can be used to specify a device or card.
24
 
  When no argument is given, a default
25
 
  device is opened or a list of available
26
 
  devices is printed to allow selection
27
 
  by the user.
28
 
*/
29
 
/******************************************/
30
 
 
31
 
#if !defined(__RtMidi_h)
32
 
#define __RtMidi_h
33
 
 
34
 
#include "Object.h"
35
 
#include "StkError.h"
36
 
 
37
 
class RtMidi : public Object
38
 
{
39
 
 protected:  
40
 
  int messageType;
41
 
  int channel;
42
 
  float byteTwo;
43
 
  float byteThree;
44
 
        MY_FLOAT deltaTime;
45
 
 public:
46
 
  RtMidi(int device = -1);
47
 
  ~RtMidi();
48
 
  void printMessage();
49
 
  int nextMessage();
50
 
  int getType();
51
 
  int getChannel();
52
 
  MY_FLOAT getByteTwo();
53
 
  MY_FLOAT getByteThree();
54
 
        MY_FLOAT getDeltaTime();
55
 
};
56
 
 
57
 
#if defined(__OS_Win_)
58
 
 
59
 
#include <windows.h>
60
 
#include <mmsystem.h>
61
 
 
62
 
static void CALLBACK midiInputCallback( HMIDIOUT hmin, UINT inputStatus, 
63
 
                        DWORD instancePtr, DWORD midiMessage, DWORD timestamp);
64
 
 
65
 
#endif
66
 
#endif