I want to write a programm for ear training with your
libary. I have problems with recording events from my
keyboard. For testing I used the demo code on the
midicpp homepage, while I can record events theres
always some kind of null event:
The democode, pressing no keys on the keyboard:
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
unknown type: *
can't convert this to string yet
The * is the value of ev.type, that I hacked into your
code (cout << "unknown type: " << ev.type << endl;)
putting this in an endless loop, and printing the pitch
if theres some gives me something like this:
0unknown type: *
unknown type: *
0unknown type: *
unknown type: *
0unknown type: *
unknown type: *
0unknown type: *
5149unknown type: *
0unknown type: *
4951unknown type: *
0unknown type: *
unknown type: *
0unknown type: *
unknown type: *
0unknown type: *
unknown type: *
0unknown type: *
4345unknown type: *
0unknown type: *
4345unknown type: *
0unknown type: *
unknown type: *
0unknown type: *
unknown type: *
0unknown type: *
While the real events also coming up, there always a
unknown type event, and the messages coming up very
fast and flooding the screen. I have an amd64-gentoo
system and a Roland Juno-D keyboard if that matters.
These unknown type events gives me some troubles, i.e.
they delay my real note events very often.
Some good informations about my system are here:
emerge info
-----------
Gentoo Base System version 1.12.0_pre9
Portage 2.0.53_rc7 (default-linux/amd64/2005.0, gcc-3.
4.4, glibc-2.3.5-r2, 2.6.13-gentoo-r4 x86_64)
=======================================================
==========
System uname: 2.6.13-gentoo-r4 x86_64 AMD Athlon(tm) 64
Processor 3000+
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2)
(default port 3632) [disabled]
dev-lang/python: 2.3.5, 2.4.2
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.
5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.20
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="-O2"
FEATURES="autoconfig distlocks sandbox sfperms strict"
LANG="de_DE"
LINGUAS="de"
MAKEOPTS="-j2"
Logged In: YES
user_id=1188446
Sorry I had submitted this but wasn't logged in. You can
reach me by mail also.
bmilde.