Csound Csound-dev Csound-tekno Search About

Re: Midictrl vs. Ctrl7

Date2005-10-25 22:02
FromIstvan Varga
SubjectRe: Midictrl vs. Ctrl7
Art Hunkins wrote:

> Of course my answer to your question is "all of them."

It does not make much sense to read a controller on all channels
at once with a single opcode call; or do you expect the 16 values
to be averaged somehow ?

Date2005-10-25 22:04
From"Art Hunkins"
SubjectRe: Midictrl vs. Ctrl7
Of course my answer to your question is "all of them." Much like if notes
were coming in on all channels they would all end up being read by i100.

I think we'd both agree that neither of these situations make good sense,
and that in *both* cases the attempted pairing of instrument numbers with
input channels is ambiguous.

Yes, ctrl7 eliminates the ambiguity; so much so that I never use midictrl,
and indeed even thought it was broken! It's hard enough keeping
midi-triggered *notes*, channels and instruments paired correctly.

For midi-note input it would really be better to abandon the
channel/instrument convention and add an explicit channel variable to midi
opcodes. This would free input to be used with any given instrument number
(much like ctrl7). However, I fear this would break things, so..... I guess
matters should stay as they are.

Art Hunkins

----- Original Message -----
From: "Istvan Varga" 
To: 
Sent: Tuesday, October 25, 2005 4:04 PM
Subject: Re: [Csnd] Midictrl vs. Ctrl7


> Art Hunkins wrote:
>
> > OK, I appreciate what you are saying now. We have the problem of
"channel
> > clog." All sixteen channels are being occupied by instrument 1(-16), and
> > there is no channel left for any controller messages not destined for
> > instrument 1(-16).
>
> Of course, we can modify the example as shown below
>
> sr = 44100
> ksmps = 10
> nchnls = 1
>
> instr 100
> kctl  midictrl 7
> printk2 kctl
> endin
>
> so that now all MIDI channels use instr 100, but when instr 100 is
> triggered from the score, which one of the 16 channels should be read
> by midictrl ?
> Anyway, what I am trying to explain is that when midictrl is used
> in a score note, there is no universally reliable and unambiguous
> way to select the correct channel number. That is why you should
> use ctrl7 instead in non-MIDI activated notes. One could try to
> implement obscure heuristics in midictrl to attempt to guess the
> channel number, but it would not always work, and is just not really
> worth the effort.
> --
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk