[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] MIDI sensory overload?



Hi,

when working on my performance (and unfortunately also while doing the
performance :( ) I noted a problem with the MIDIIn triggering some
routines and sending messages to the server.

The setup was as follows:

I had a cv-to-midi box to which some sensors were connected that send
out a lot of data, so near the top midi-bandwidth.

the MIDIIn responder had a dictionary of functions mapped to the
control numbers. For the sensors that caused problems, I tried to use
a counting routine to keep the rate of sending messages to the server
down.
The messages sent were changing some of the arguments of Synths
running (changing the arguments per group).
However, the problem was, that as soon as I started the server and the
MIDI responder, the server created more and more synths on the server,
which should not happen, as the sensors did not cause to create more
synths on the servers.
Also, I did not hear any sound, just when starting the whole patch,
when the problem occurred.
It   seems as if the sclang got confused with its routines (others
that were running) due to the high data rate with which MIDI-messages
were coming in.
The problem does not always occur (typically it gave problems when the
performance should start, while working fine during the
soundcheck...).

I am looking into a way to work around the problem, but I am very
curious also as to what could cause the problem.

If necessary I can post the code that gives the problem (I would need
to do some work and tests to get to a slimmed down version, which
still gives the problems mentioned), but I fear it will be hard to
reproduce the problem, not having the sensors and the cv-to-midi-box
around...

I hope someone has some ideas as to what could be the real problem, or
some methods to track exactly what is happening in the sclang and on
the server (which routines are running, how many, which messages are
sent to the server, etc.), so I can get some more insight in what is
actually going on.

maybe relevant: I am working under Linux.

sincerely,
Marije