Skip to content

Commit 7cefb74

Browse files
committed
retire xxx_midi62_xxx
1 parent 6f6d1ac commit 7cefb74

File tree

1 file changed

+0
-58
lines changed

1 file changed

+0
-58
lines changed

vssMsg.c++

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
1-
#include <iostream>
2-
#include <cctype>
3-
#include <cerrno>
4-
#include <csignal>
51
#include <cstdio>
6-
#include <cstdlib>
72
#include <cstring>
83

9-
#include <fcntl.h>
10-
#include <sys/stat.h>
11-
#include <sys/types.h>
12-
13-
#include "platform.h"
144
#include "vssMsg.h"
155

166
static float vhnote;
@@ -32,56 +22,8 @@ float HnoteFromAckNote()
3222
return vhnote;
3323
}
3424

35-
#ifdef xxx_midi62_xxx
36-
#include "vssMidicore.h"
37-
38-
static VSSMDevent vrgvssmdevent[100]; // match vssMidicore.c++'s size;;
39-
static int vcvssmdevent;
40-
static void AckMidi(int cb, char* pb)
41-
{
42-
vcvssmdevent = cb;
43-
memcpy(vrgvssmdevent, pb, vcvssmdevent * sizeof(VSSMDevent));
44-
}
45-
VSSMDevent* MidiMsgsFromAckMidi(float* pcvssmdevent)
46-
{
47-
*pcvssmdevent = vcvssmdevent;
48-
return vrgvssmdevent;
49-
}
50-
#endif
51-
5225
void clientMessageCall(char* Message)
5326
{
54-
#ifdef xxx_midi62_xxx
55-
// format of string: "AckMidiInputMsg 5 00ff00ff00",
56-
// but the hex digits are 012345689:;<=>? for consecutive ASCIIness.
57-
if (!strncmp(Message, "AckMidiInputMsg ", 16))
58-
{
59-
// decode args from ascii to binary
60-
int cb = atoi(Message += 16);
61-
if (cb < 0 || cb > 10000)
62-
{
63-
LError:
64-
cerr << "Internal syntax error in AckMidiInputMsg\n";
65-
return;
66-
}
67-
char* pch = strchr(Message, ' ') + 1;
68-
int ib, bHi, bLo;
69-
char pb[10000];
70-
for (ib=0; ib<cb; ib++)
71-
{
72-
bHi = *(pch++) - '0';
73-
bLo = *(pch++) - '0';
74-
if (bHi < 0 || bHi >= 16 || bLo < 0 || bLo >= 16)
75-
goto LError;
76-
pb[ib] = bHi<<4 + bLo;
77-
}
78-
AckMidi(cb, pb);
79-
return;
80-
//;; CEntry.c++, look for "AckMidiInputMsg"
81-
}
82-
else
83-
#endif
84-
8527
if (!strncmp(Message, "AckNoteMsg ", 11))
8628
{
8729
float z = 0.;

0 commit comments

Comments
 (0)