Csound Csound-dev Csound-tekno Search About

Fw: [Csnd] MIDI Input NRPN conversion opcode?

Date2005-09-30 17:58
From"Art Hunkins"
SubjectFw: [Csnd] MIDI Input NRPN conversion opcode?
AttachmentsNRPNTest2.csd  
A followup to my email of yesterday (see below):

The attached simple .csd attempts to use ctrl14 to enable a Studiomix slider
broadcasting on channel 16 at NRPN 3500 (range = 0 to 16383) to control the
amp of an lfo.

It doesn't work - either in CsoundAV, flCsound or MyCsound4, or the Gogins
or Varga Csound5. No sound.

AV offers no message; all other Csounds tested give the output error
"unknown drum param nos, msb27 lsb 44". This shows the expected data are
getting through (27 & 44 show the correct address, 3500, and "drum param"
suggests channel 16).

Is there some other unit generator (than ctrl14) that can do this, or what
am I missing?

And what is ctrl14 designed to do if not this?

Art Hunkins

----- Original Message -----
From: "Art Hunkins" 
To: 
Sent: Thursday, September 29, 2005 11:40 PM
Subject: [Csnd] MIDI Input NRPN conversion opcode?


> I had thought that ctrl14 would take 14-bit NRPN values, converting them
to
> 0-127 range (or whatever else) for controller purposes. But apparently
not.
>
> Is there any equivalent to the nrpn opcode that goes in the other
direction?
>
> (I think this was perhaps the gist of a suggestion less than a week ago on
> this list.) I have further suggestions if Csound currently lacks this
> capability. Indeed, a number of "dedicated" control surfaces (such as
> Studiomix) put out slider data in NPRN (14-bit) format (Native Instruments
> 4Control is another, I think), and it would be very handy for Csound
> *directly* to be able handle such a data format.
>
> Art Hunkins
>
> --
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2005-09-30 18:47
FromAnthony Kozar
SubjectRe: MIDI Input NRPN conversion opcode?
I am not a Midi expert but I am under the impression that 14-bit controllers
and NRPN messages are not necessarily the same thing.

14-bit controllers are usually two 7-bit controllers from the usual
controller set (ctrl ids 0-120ish) that are combined for the purpose of
sending higher-resolution messages, right?  Usually the pair of controllers
have IDs that are 32 apart, I think.

NRPN messages are arbitrary messages that a particular device may send but
have not been previously defined by the Midi standard and therefore are not
likely to be understood by any other device.

So, if your external Midi device is sending NRPNs, then I do not think that
ctrl14 is at all the correct opcode to use.  It is designed to handle pairs
of 7-bit controllers as described above.  I am not aware of any opcode for
receiving NRPNs (but then I was not aware of the existing nrpn opcode for
sending them either; so, take this all with a grain of salt :)

Anthony Kozar
anthonykozar AT sbcglobal DOT net
http://akozar.spymac.net/

 
Art Hunkins wrote on 9/30/05 12:58 PM:

> Is there some other unit generator (than ctrl14) that can do this, or what
> am I missing?
> 
> And what is ctrl14 designed to do if not this?
> 
> Art Hunkins
> 
> ----- Original Message -----
> From: "Art Hunkins" 
> To: 
> Sent: Thursday, September 29, 2005 11:40 PM
> Subject: [Csnd] MIDI Input NRPN conversion opcode?

> I had thought that ctrl14 would take 14-bit NRPN values, converting them to
> 0-127 range (or whatever else) for controller purposes. But apparently not.
> 
> Is there any equivalent to the nrpn opcode that goes in the other direction?
> 
> (I think this was perhaps the gist of a suggestion less than a week ago on
> this list.) I have further suggestions if Csound currently lacks this
> capability. Indeed, a number of "dedicated" control surfaces (such as
> Studiomix) put out slider data in NPRN (14-bit) format (Native Instruments
> 4Control is another, I think), and it would be very handy for Csound
> *directly* to be able handle such a data format.