Csound Csound-dev Csound-tekno Search About

[Csnd] MIDI RPN/NRPN handling

Date2019-03-10 23:32
FromPete Goodeve
Subject[Csnd] MIDI RPN/NRPN handling
AttachmentsNone  

Date2019-03-10 23:57
FromVictor Lazzarini
SubjectRe: [Csnd] MIDI RPN/NRPN handling
I did not know Csound could handle these, and so I googled it, getting this


not sure if this ever made it to the sources. I can't check it right now. My hunch is that
it didn't. There does not seem to be
anything in the manual about it, beyond
the capability of sending nrpns out.

To be honest, I actually don't know much
about it. Justin might still be around in this
list to advise.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 10 Mar 2019, at 23:32, Pete Goodeve <pete.goodeve@computer.org> wrote:

Hi,
It seems as if the handling of RPN and NRPN setting is
rather broken.

I had a need to implement fine tuning. [I have an unfortunate
fondness for trying to play along with the oldies on Caroline
Flashback (:-)), and many of the oldest are not at standard pitch.]

So to handle the relevant controller messages, I tried the obvious:

   kcc101 ctrl7 1, 101, 0, 127
   kcc100 ctrl7 1, 100, 0, 127
   kcc6 ctrl7 1, 6, 0, 127
   ....

and expected to decode the result.  (101 should be 0, 100 => 1,
and 6 the desired tuning.)  However, none of the statements
returned anything, and instead I got the error "Unknown drum
param..."!

Investigating the source, it does some strange things.
For a start, RPN and NRPN are not distinguished at all!   They
set the same variables and follow the same path.  Then it
fails to recognize any of the standard RPN codes, except for
Pitch Bend Sensitivity. OTOH it carefully decodes some GS NRPNs
and stores their values -- as controllers above 127.  Retrieving
the stored values doesn't seem to be possible -- ctrl7 for example
won't accept controllers above 127.

I eventually got myself a tuning function by using midiin, which does
seem to respond to every message -- though I still see that error
complaint.

I can't really see why ctrl7 et al shouldn't also return any controller
they might be set to.  Expect the user to know what they want.
In any case, the RPN/NRPN code should surely be revised.

Thanks,

   -- Pete --

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-03-11 00:54
FromPete Goodeve
SubjectRe: [Csnd] MIDI RPN/NRPN handling
AttachmentsNone  

Date2019-03-11 01:54
FromJustin Smith
SubjectRe: [Csnd] MIDI RPN/NRPN handling
This was a long time ago, and I am not sure of the status of the
feature. I assume I'd find the quality of the code embarrassing if I
read it today.

My patch was made by reverse engineering the output of some sliders
set to produce nrpn, and I would not be surprised if the behavior
misses big parts of the spec. I do hazily recall that at one point I
was able to use nrpn inputs despite the drum param error messages, but
it's been long enough that I'm unsure.

I'd be happy to answer specific questions about the patch, and it
would be great to get nrpn input that actually followed the spec
instead of just happening to work with my workflow.

On Sun, Mar 10, 2019 at 5:54 PM Pete Goodeve  wrote:
>
> On Sun, Mar 10, 2019 at 11:57:44PM +0000, Victor Lazzarini wrote:
> > I did not know Csound could handle these, and so I googled it, getting this
> >
> > http://csound.1045644.n5.nabble.com/patches-for-NRPN-input-td3413369.html
> >
> > not sure if this ever made it to the sources. I can't check it right now. My hunch is that
> > it didn't. There does not seem to be
> > anything in the manual about it, beyond
> > the capability of sending nrpns out.
>
> Thanks for the link.  It's a bit hard to figure out, because the
> patch doesn't include any file names.  AND it seems to be
> reversed!  The *result* of the patch would be the current
> code, but obviously his intent was to add an 'nrpnin' opcode
> and so on, which are not there.
>
> It looks as his code was pretty specialized.  It doesn't seem
> to take account of the common RPNs either.
>
> I'll have to try to stir myself to be able to compile Csound
> again.  If I do, I can have a go at sorting it out.
>
> Thanks,
>
>         -- Pete --
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-03-11 06:32
Frompete.goodeve@COMPUTER.ORG
SubjectRe: [Csnd] MIDI RPN/NRPN handling
AttachmentsNone  

Date2019-03-11 10:42
FromEd Cashin
SubjectRe: [Csnd] MIDI RPN/NRPN handling
Would it be too crazy to just go fully general and have a rawmidiin opcode that returns an array of bytes?

On Mon, Mar 11, 2019 at 2:32 AM <pete.goodeve@computer.org> wrote:
Thanks for picking up, Justin.

It looks like your patch was fairly device speciific, and it still didin't handle
the regular RPNs I'm interested in.  If we do anything I figure it should be
as general as possible, giving the user all the info neded and letting them
decide on action.  I strongly believe that the current controller opcodes
should respond for all controller numbers, and not arbitrarily block some.

Currently, for instance, all CCs above 111 (I think) are blocked.  Long ago
I wanted to respond to "All Sounds Off" (CC120), but it never worked.
Just recently I discovered that Csound *will* respond to "All Notes Off" (123)
but my software just sends CC120 which I always thought was more logical!
123 is the only one special cased, and it acts directly, rather than being
passed to the user.   Similarly, the RPN and NRPN controllers (98...101 and 6)
are blocked.

In addition to revising things so that ctrl7 and so on handle all controllers,
how about something like this?

Add "rpnin" and "nrpnin" opcodes like yours, but rather than having them
respond to particular codes, let them return everything relevant -- the
selector numbers (from RPN:101/100 or NRPN:98/99) and the data entry
value (controller 6).  e.g.:

        kmsb, klsb, kval rpnin

or maybe:

        kval rpnin kmsb, klsb

Not sure which format would be more useful, but how does the general
idea sound?

Cheers,

        -- Pete --


On Sun, Mar 10, 2019 at 06:54:21PM -0700, Justin Smith wrote:
> This was a long time ago, and I am not sure of the status of the
> feature. I assume I'd find the quality of the code embarrassing if I
> read it today.
>
> My patch was made by reverse engineering the output of some sliders
> set to produce nrpn, and I would not be surprised if the behavior
> misses big parts of the spec. I do hazily recall that at one point I
> was able to use nrpn inputs despite the drum param error messages, but
> it's been long enough that I'm unsure.
>
> I'd be happy to answer specific questions about the patch, and it
> would be great to get nrpn input that actually followed the spec
> instead of just happening to work with my workflow.
>
> On Sun, Mar 10, 2019 at 5:54 PM Pete Goodeve <pete.goodeve@computer.org> wrote:
> >
> > On Sun, Mar 10, 2019 at 11:57:44PM +0000, Victor Lazzarini wrote:
> > > I did not know Csound could handle these, and so I googled it, getting this
> > >
> > > http://csound.1045644.n5.nabble.com/patches-for-NRPN-input-td3413369.html
> > >
> > > not sure if this ever made it to the sources. I can't check it right now. My hunch is that
> > > it didn't. There does not seem to be
> > > anything in the manual about it, beyond
> > > the capability of sending nrpns out.
> >
> > Thanks for the link.  It's a bit hard to figure out, because the
> > patch doesn't include any file names.  AND it seems to be
> > reversed!  The *result* of the patch would be the current
> > code, but obviously his intent was to add an 'nrpnin' opcode
> > and so on, which are not there.
> >
> > It looks as his code was pretty specialized.  It doesn't seem
> > to take account of the common RPNs either.
> >
> > I'll have to try to stir myself to be able to compile Csound
> > again.  If I do, I can have a go at sorting it out.
> >
> > Thanks,
> >
> >         -- Pete --
> >
> > Csound mailing list
> > Csound@listserv.heanet.ie
> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> > Send bugs reports to
> >         https://github.com/csound/csound/issues
> > Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
--
  Ed Cashin <ecashin@noserose.net>
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-03-11 14:05
Fromjoachim heintz
SubjectRe: [Csnd] MIDI RPN/NRPN handling
https://csound.com/docs/manual/midiin.html ?

On 11/03/19 11:42, Ed Cashin wrote:
> Would it be too crazy to just go fully general and have a rawmidiin
> opcode that returns an array of bytes?
>
> On Mon, Mar 11, 2019 at 2:32 AM  > wrote:
>
>     Thanks for picking up, Justin.
>
>     It looks like your patch was fairly device speciific, and it still
>     didin't handle
>     the regular RPNs I'm interested in.  If we do anything I figure it
>     should be
>     as general as possible, giving the user all the info neded and
>     letting them
>     decide on action.  I strongly believe that the current controller
>     opcodes
>     should respond for all controller numbers, and not arbitrarily block
>     some.
>
>     Currently, for instance, all CCs above 111 (I think) are blocked.
>     Long ago
>     I wanted to respond to "All Sounds Off" (CC120), but it never worked.
>     Just recently I discovered that Csound *will* respond to "All Notes
>     Off" (123)
>     but my software just sends CC120 which I always thought was more
>     logical!
>     123 is the only one special cased, and it acts directly, rather than
>     being
>     passed to the user.   Similarly, the RPN and NRPN controllers
>     (98...101 and 6)
>     are blocked.
>
>     In addition to revising things so that ctrl7 and so on handle all
>     controllers,
>     how about something like this?
>
>     Add "rpnin" and "nrpnin" opcodes like yours, but rather than having them
>     respond to particular codes, let them return everything relevant -- the
>     selector numbers (from RPN:101/100 or NRPN:98/99) and the data entry
>     value (controller 6).  e.g.:
>
>             kmsb, klsb, kval rpnin
>
>     or maybe:
>
>             kval rpnin kmsb, klsb
>
>     Not sure which format would be more useful, but how does the general
>     idea sound?
>
>     Cheers,
>
>             -- Pete --
>
>
>     On Sun, Mar 10, 2019 at 06:54:21PM -0700, Justin Smith wrote:
>     > This was a long time ago, and I am not sure of the status of the
>     > feature. I assume I'd find the quality of the code embarrassing if I
>     > read it today.
>     >
>     > My patch was made by reverse engineering the output of some sliders
>     > set to produce nrpn, and I would not be surprised if the behavior
>     > misses big parts of the spec. I do hazily recall that at one point I
>     > was able to use nrpn inputs despite the drum param error messages, but
>     > it's been long enough that I'm unsure.
>     >
>     > I'd be happy to answer specific questions about the patch, and it
>     > would be great to get nrpn input that actually followed the spec
>     > instead of just happening to work with my workflow.
>     >
>     > On Sun, Mar 10, 2019 at 5:54 PM Pete Goodeve
>     > wrote:
>     > >
>     > > On Sun, Mar 10, 2019 at 11:57:44PM +0000, Victor Lazzarini wrote:
>     > > > I did not know Csound could handle these, and so I googled it,
>     getting this
>     > > >
>     > > >
>     http://csound.1045644.n5.nabble.com/patches-for-NRPN-input-td3413369.html
>     > > >
>     > > > not sure if this ever made it to the sources. I can't check it
>     right now. My hunch is that
>     > > > it didn't. There does not seem to be
>     > > > anything in the manual about it, beyond
>     > > > the capability of sending nrpns out.
>     > >
>     > > Thanks for the link.  It's a bit hard to figure out, because the
>     > > patch doesn't include any file names.  AND it seems to be
>     > > reversed!  The *result* of the patch would be the current
>     > > code, but obviously his intent was to add an 'nrpnin' opcode
>     > > and so on, which are not there.
>     > >
>     > > It looks as his code was pretty specialized.  It doesn't seem
>     > > to take account of the common RPNs either.
>     > >
>     > > I'll have to try to stir myself to be able to compile Csound
>     > > again.  If I do, I can have a go at sorting it out.
>     > >
>     > > Thanks,
>     > >
>     > >         -- Pete --
>     > >
>     > > Csound mailing list
>     > > Csound@listserv.heanet.ie 
>     > > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>     > > Send bugs reports to
>     > >         https://github.com/csound/csound/issues
>     > > Discussions of bugs and features can be posted here
>     >
>     > Csound mailing list
>     > Csound@listserv.heanet.ie 
>     > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>     > Send bugs reports to
>     >         https://github.com/csound/csound/issues
>     > Discussions of bugs and features can be posted here
>
>     Csound mailing list
>     Csound@listserv.heanet.ie 
>     https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>     Send bugs reports to
>             https://github.com/csound/csound/issues
>     Discussions of bugs and features can be posted here
>
> --
>   Ed Cashin >
> Csound mailing list Csound@listserv.heanet.ie
> 
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features
> can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-03-11 14:15
FromEd Cashin
SubjectRe: [Csnd] MIDI RPN/NRPN handling
That one isn’t fully general, because, for example, you cannot receive MIDI clock messages. A fully general one would expose everything to csound code.

On Mon, Mar 11, 2019 at 10:05 AM joachim heintz <jh@joachimheintz.de> wrote:
https://csound.com/docs/manual/midiin.html ?

On 11/03/19 11:42, Ed Cashin wrote:
> Would it be too crazy to just go fully general and have a rawmidiin
> opcode that returns an array of bytes?
>
> On Mon, Mar 11, 2019 at 2:32 AM <pete.goodeve@computer.org
> <mailto:pete.goodeve@computer.org>> wrote:
>
>     Thanks for picking up, Justin.
>
>     It looks like your patch was fairly device speciific, and it still
>     didin't handle
>     the regular RPNs I'm interested in.  If we do anything I figure it
>     should be
>     as general as possible, giving the user all the info neded and
>     letting them
>     decide on action.  I strongly believe that the current controller
>     opcodes
>     should respond for all controller numbers, and not arbitrarily block
>     some.
>
>     Currently, for instance, all CCs above 111 (I think) are blocked.
>     Long ago
>     I wanted to respond to "All Sounds Off" (CC120), but it never worked.
>     Just recently I discovered that Csound *will* respond to "All Notes
>     Off" (123)
>     but my software just sends CC120 which I always thought was more
>     logical!
>     123 is the only one special cased, and it acts directly, rather than
>     being
>     passed to the user.   Similarly, the RPN and NRPN controllers
>     (98...101 and 6)
>     are blocked.
>
>     In addition to revising things so that ctrl7 and so on handle all
>     controllers,
>     how about something like this?
>
>     Add "rpnin" and "nrpnin" opcodes like yours, but rather than having them
>     respond to particular codes, let them return everything relevant -- the
>     selector numbers (from RPN:101/100 or NRPN:98/99) and the data entry
>     value (controller 6).  e.g.:
>
>             kmsb, klsb, kval rpnin
>
>     or maybe:
>
>             kval rpnin kmsb, klsb
>
>     Not sure which format would be more useful, but how does the general
>     idea sound?
>
>     Cheers,
>
>             -- Pete --
>
>
>     On Sun, Mar 10, 2019 at 06:54:21PM -0700, Justin Smith wrote:
>     > This was a long time ago, and I am not sure of the status of the
>     > feature. I assume I'd find the quality of the code embarrassing if I
>     > read it today.
>     >
>     > My patch was made by reverse engineering the output of some sliders
>     > set to produce nrpn, and I would not be surprised if the behavior
>     > misses big parts of the spec. I do hazily recall that at one point I
>     > was able to use nrpn inputs despite the drum param error messages, but
>     > it's been long enough that I'm unsure.
>     >
>     > I'd be happy to answer specific questions about the patch, and it
>     > would be great to get nrpn input that actually followed the spec
>     > instead of just happening to work with my workflow.
>     >
>     > On Sun, Mar 10, 2019 at 5:54 PM Pete Goodeve
>     <pete.goodeve@computer.org <mailto:pete.goodeve@computer.org>> wrote:
>     > >
>     > > On Sun, Mar 10, 2019 at 11:57:44PM +0000, Victor Lazzarini wrote:
>     > > > I did not know Csound could handle these, and so I googled it,
>     getting this
>     > > >
>     > > >
>     http://csound.1045644.n5.nabble.com/patches-for-NRPN-input-td3413369.html
>     > > >
>     > > > not sure if this ever made it to the sources. I can't check it
>     right now. My hunch is that
>     > > > it didn't. There does not seem to be
>     > > > anything in the manual about it, beyond
>     > > > the capability of sending nrpns out.
>     > >
>     > > Thanks for the link.  It's a bit hard to figure out, because the
>     > > patch doesn't include any file names.  AND it seems to be
>     > > reversed!  The *result* of the patch would be the current
>     > > code, but obviously his intent was to add an 'nrpnin' opcode
>     > > and so on, which are not there.
>     > >
>     > > It looks as his code was pretty specialized.  It doesn't seem
>     > > to take account of the common RPNs either.
>     > >
>     > > I'll have to try to stir myself to be able to compile Csound
>     > > again.  If I do, I can have a go at sorting it out.
>     > >
>     > > Thanks,
>     > >
>     > >         -- Pete --
>     > >
>     > > Csound mailing list
>     > > Csound@listserv.heanet.ie <mailto:Csound@listserv.heanet.ie>
>     > > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>     > > Send bugs reports to
>     > >         https://github.com/csound/csound/issues
>     > > Discussions of bugs and features can be posted here
>     >
>     > Csound mailing list
>     > Csound@listserv.heanet.ie <mailto:Csound@listserv.heanet.ie>
>     > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>     > Send bugs reports to
>     >         https://github.com/csound/csound/issues
>     > Discussions of bugs and features can be posted here
>
>     Csound mailing list
>     Csound@listserv.heanet.ie <mailto:Csound@listserv.heanet.ie>
>     https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>     Send bugs reports to
>             https://github.com/csound/csound/issues
>     Discussions of bugs and features can be posted here
>
> --
>   Ed Cashin <ecashin@noserose.net <mailto:ecashin@noserose.net>>
> Csound mailing list Csound@listserv.heanet.ie
> <mailto:Csound@listserv.heanet.ie>
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features
> can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
--
  Ed Cashin <ecashin@noserose.net>
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-03-11 23:19
FromPete Goodeve
SubjectRe: [Csnd] MIDI RPN/NRPN handling
AttachmentsNone  

Date2019-03-11 23:51
FromPete Goodeve
SubjectRe: [Csnd] MIDI RPN/NRPN handling
AttachmentsNone  

Date2019-03-13 09:19
FromAnders Genell
SubjectRe: [Csnd] MIDI RPN/NRPN handling
I would also appreciate being able to receive midi clock if that would be possible. There is already support for sending midi clock using the mclock opcode, so receiving the clock would be nicely symmetrical.
Also, if it would be possible, perhaps the functionality of mclock could be more generalized, so that the frequency could be varied at k.-rate, and some special value (like a negative number) would make mclock send one single clock message, so that external sequencers could be stepped at varying intervals using e.g. the poisson opcode. Just a thought...

Regards,
Anders 

On Tue, Mar 12, 2019 at 12:51 AM Pete Goodeve <pete.goodeve@computer.org> wrote:
On Sun, Mar 10, 2019 at 11:32:20PM -0700, I wrote:
> how about something like this?
>
> Add "rpnin" and "nrpnin" opcodes like yours, but rather than having them
> respond to particular codes, let them return everything relevant -- the
> selector numbers (from RPN:101/100 or NRPN:98/99) and the data entry
> value (controller 6).  e.g.:
>
>       kmsb, klsb, kval rpnin
>
> or maybe:
>
>       kval rpnin kmsb, klsb

I wasn't thinking hard enough there.  Of course the above would need
a channel parameter too.  And I think they should probably be
'rpn7' -- and 'rpn14' and so on.  And should there should be parallels to
'midic7' like 'midirpn7'?  (Maybe not.)

So:

        kmsb, klsb, kval rpn7 ichan

or something.

I also forgot to note that there is one RPN that it does recognize
(and has to!)  the Pitch Bend Range, which affects 'cpsmidib' and
similar.

        -- Pete --

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-03-13 09:40
FromVictor Lazzarini
SubjectRe: [Csnd] MIDI RPN/NRPN handling
We will need to see whether all of this is supported by the underlying MIDI backends. Then we will
probably need to modify the MIDI ports/implementation. I think it only supports channel messages 
at the moment. It is probably a big job.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 13 Mar 2019, at 09:19, Anders Genell  wrote:
> 
> I would also appreciate being able to receive midi clock if that would be possible. There is already support for sending midi clock using the mclock opcode, so receiving the clock would be nicely symmetrical.
> Also, if it would be possible, perhaps the functionality of mclock could be more generalized, so that the frequency could be varied at k.-rate, and some special value (like a negative number) would make mclock send one single clock message, so that external sequencers could be stepped at varying intervals using e.g. the poisson opcode. Just a thought...
> 
> Regards,
> Anders 
> 
> On Tue, Mar 12, 2019 at 12:51 AM Pete Goodeve  wrote:
> On Sun, Mar 10, 2019 at 11:32:20PM -0700, I wrote:
> > how about something like this?
> > 
> > Add "rpnin" and "nrpnin" opcodes like yours, but rather than having them
> > respond to particular codes, let them return everything relevant -- the
> > selector numbers (from RPN:101/100 or NRPN:98/99) and the data entry
> > value (controller 6).  e.g.:
> > 
> >       kmsb, klsb, kval rpnin
> > 
> > or maybe:
> > 
> >       kval rpnin kmsb, klsb
> 
> I wasn't thinking hard enough there.  Of course the above would need
> a channel parameter too.  And I think they should probably be
> 'rpn7' -- and 'rpn14' and so on.  And should there should be parallels to
> 'midic7' like 'midirpn7'?  (Maybe not.)
> 
> So:
> 
>         kmsb, klsb, kval rpn7 ichan
> 
> or something.
> 
> I also forgot to note that there is one RPN that it does recognize
> (and has to!)  the Pitch Bend Range, which affects 'cpsmidib' and
> similar. 
> 
>         -- Pete --
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-03-13 11:42
FromAnders Genell
SubjectRe: [Csnd] MIDI RPN/NRPN handling
Csound8 then? ;-)

Regards,
Anders

> 13 mars 2019 kl. 10:40 skrev Victor Lazzarini :
> 
> We will need to see whether all of this is supported by the underlying MIDI backends. Then we will
> probably need to modify the MIDI ports/implementation. I think it only supports channel messages 
> at the moment. It is probably a big job.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952 
> 
>> On 13 Mar 2019, at 09:19, Anders Genell  wrote:
>> 
>> I would also appreciate being able to receive midi clock if that would be possible. There is already support for sending midi clock using the mclock opcode, so receiving the clock would be nicely symmetrical.
>> Also, if it would be possible, perhaps the functionality of mclock could be more generalized, so that the frequency could be varied at k.-rate, and some special value (like a negative number) would make mclock send one single clock message, so that external sequencers could be stepped at varying intervals using e.g. the poisson opcode. Just a thought...
>> 
>> Regards,
>> Anders 
>> 
>> On Tue, Mar 12, 2019 at 12:51 AM Pete Goodeve  wrote:
>>> On Sun, Mar 10, 2019 at 11:32:20PM -0700, I wrote:
>>> how about something like this?
>>> 
>>> Add "rpnin" and "nrpnin" opcodes like yours, but rather than having them
>>> respond to particular codes, let them return everything relevant -- the
>>> selector numbers (from RPN:101/100 or NRPN:98/99) and the data entry
>>> value (controller 6).  e.g.:
>>> 
>>>      kmsb, klsb, kval rpnin
>>> 
>>> or maybe:
>>> 
>>>      kval rpnin kmsb, klsb
>> 
>> I wasn't thinking hard enough there.  Of course the above would need
>> a channel parameter too.  And I think they should probably be
>> 'rpn7' -- and 'rpn14' and so on.  And should there should be parallels to
>> 'midic7' like 'midirpn7'?  (Maybe not.)
>> 
>> So:
>> 
>>        kmsb, klsb, kval rpn7 ichan
>> 
>> or something.
>> 
>> I also forgot to note that there is one RPN that it does recognize
>> (and has to!)  the Pitch Bend Range, which affects 'cpsmidib' and
>> similar. 
>> 
>>        -- Pete --
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-03-14 03:53
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] MIDI RPN/NRPN handling
Do we support Ableton Link.  If not, we should. That's a clock that many of my students could really use... and me too.

Dr. Richard Boulanger
Professor
Electronic Production and Design
Berklee College of Music

On Mar 13, 2019, at 5:19 AM, Anders Genell <anders.genell@gmail.com> wrote:

I would also appreciate being able to receive midi clock if that would be possible. There is already support for sending midi clock using the mclock opcode, so receiving the clock would be nicely symmetrical.
Also, if it would be possible, perhaps the functionality of mclock could be more generalized, so that the frequency could be varied at k.-rate, and some special value (like a negative number) would make mclock send one single clock message, so that external sequencers could be stepped at varying intervals using e.g. the poisson opcode. Just a thought...

Regards,
Anders 

On Tue, Mar 12, 2019 at 12:51 AM Pete Goodeve <pete.goodeve@computer.org> wrote:
On Sun, Mar 10, 2019 at 11:32:20PM -0700, I wrote:
> how about something like this?
>
> Add "rpnin" and "nrpnin" opcodes like yours, but rather than having them
> respond to particular codes, let them return everything relevant -- the
> selector numbers (from RPN:101/100 or NRPN:98/99) and the data entry
> value (controller 6).  e.g.:
>
>       kmsb, klsb, kval rpnin
>
> or maybe:
>
>       kval rpnin kmsb, klsb

I wasn't thinking hard enough there.  Of course the above would need
a channel parameter too.  And I think they should probably be
'rpn7' -- and 'rpn14' and so on.  And should there should be parallels to
'midic7' like 'midirpn7'?  (Maybe not.)

So:

        kmsb, klsb, kval rpn7 ichan

or something.

I also forgot to note that there is one RPN that it does recognize
(and has to!)  the Pitch Bend Range, which affects 'cpsmidib' and
similar.

        -- Pete --

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-03-14 03:57
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] MIDI RPN/NRPN handling
Improving our MIDI is important.  Especially improving out ability to sync with a DAW running softsynths.  My students are always asking how to sync their Csound LFO with the LFOs on their softsynths or syncing the delay times of Csound with the effects and delays in their tracks.

Dr. Richard Boulanger
Professor
Electronic Production and Design
Berklee College of Music

On Mar 13, 2019, at 11:53 PM, Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:

Do we support Ableton Link.  If not, we should. That's a clock that many of my students could really use... and me too.

Dr. Richard Boulanger
Professor
Electronic Production and Design
Berklee College of Music

On Mar 13, 2019, at 5:19 AM, Anders Genell <anders.genell@gmail.com> wrote:

I would also appreciate being able to receive midi clock if that would be possible. There is already support for sending midi clock using the mclock opcode, so receiving the clock would be nicely symmetrical.
Also, if it would be possible, perhaps the functionality of mclock could be more generalized, so that the frequency could be varied at k.-rate, and some special value (like a negative number) would make mclock send one single clock message, so that external sequencers could be stepped at varying intervals using e.g. the poisson opcode. Just a thought...

Regards,
Anders 

On Tue, Mar 12, 2019 at 12:51 AM Pete Goodeve <pete.goodeve@computer.org> wrote:
On Sun, Mar 10, 2019 at 11:32:20PM -0700, I wrote:
> how about something like this?
>
> Add "rpnin" and "nrpnin" opcodes like yours, but rather than having them
> respond to particular codes, let them return everything relevant -- the
> selector numbers (from RPN:101/100 or NRPN:98/99) and the data entry
> value (controller 6).  e.g.:
>
>       kmsb, klsb, kval rpnin
>
> or maybe:
>
>       kval rpnin kmsb, klsb

I wasn't thinking hard enough there.  Of course the above would need
a channel parameter too.  And I think they should probably be
'rpn7' -- and 'rpn14' and so on.  And should there should be parallels to
'midic7' like 'midirpn7'?  (Maybe not.)

So:

        kmsb, klsb, kval rpn7 ichan

or something.

I also forgot to note that there is one RPN that it does recognize
(and has to!)  the Pitch Bend Range, which affects 'cpsmidib' and
similar.

        -- Pete --

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-03-14 04:00
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] MIDI RPN/NRPN handling
Ableton Link is more important than NRPNs.  They "were" cool and promising about 10 years ago.  

And...

Now there is MIDI 2.0 just ratified.  Anything in there for us to consider supporting.

Dr. Richard Boulanger
Professor
Electronic Production and Design
Berklee College of Music

On Mar 13, 2019, at 11:57 PM, Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:

Improving our MIDI is important.  Especially improving out ability to sync with a DAW running softsynths.  My students are always asking how to sync their Csound LFO with the LFOs on their softsynths or syncing the delay times of Csound with the effects and delays in their tracks.

Dr. Richard Boulanger
Professor
Electronic Production and Design
Berklee College of Music

On Mar 13, 2019, at 11:53 PM, Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:

Do we support Ableton Link.  If not, we should. That's a clock that many of my students could really use... and me too.

Dr. Richard Boulanger
Professor
Electronic Production and Design
Berklee College of Music

On Mar 13, 2019, at 5:19 AM, Anders Genell <anders.genell@gmail.com> wrote:

I would also appreciate being able to receive midi clock if that would be possible. There is already support for sending midi clock using the mclock opcode, so receiving the clock would be nicely symmetrical.
Also, if it would be possible, perhaps the functionality of mclock could be more generalized, so that the frequency could be varied at k.-rate, and some special value (like a negative number) would make mclock send one single clock message, so that external sequencers could be stepped at varying intervals using e.g. the poisson opcode. Just a thought...

Regards,
Anders 

On Tue, Mar 12, 2019 at 12:51 AM Pete Goodeve <pete.goodeve@computer.org> wrote:
On Sun, Mar 10, 2019 at 11:32:20PM -0700, I wrote:
> how about something like this?
>
> Add "rpnin" and "nrpnin" opcodes like yours, but rather than having them
> respond to particular codes, let them return everything relevant -- the
> selector numbers (from RPN:101/100 or NRPN:98/99) and the data entry
> value (controller 6).  e.g.:
>
>       kmsb, klsb, kval rpnin
>
> or maybe:
>
>       kval rpnin kmsb, klsb

I wasn't thinking hard enough there.  Of course the above would need
a channel parameter too.  And I think they should probably be
'rpn7' -- and 'rpn14' and so on.  And should there should be parallels to
'midic7' like 'midirpn7'?  (Maybe not.)

So:

        kmsb, klsb, kval rpn7 ichan

or something.

I also forgot to note that there is one RPN that it does recognize
(and has to!)  the Pitch Bend Range, which affects 'cpsmidib' and
similar.

        -- Pete --

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-03-14 05:29
FromAnders Genell
SubjectRe: [Csnd] MIDI RPN/NRPN handling
I believe Michael Gogins created som Ableton Link opcodes a while back. Don’t know if they are in the base Csound repository, or exclusive to Michael’s extended one. 

Regards,
Anders

14 mars 2019 kl. 04:53 skrev Dr. Richard Boulanger <rboulanger@berklee.edu>:

Do we support Ableton Link.  If not, we should. That's a clock that many of my students could really use... and me too.

Dr. Richard Boulanger
Professor
Electronic Production and Design
Berklee College of Music

On Mar 13, 2019, at 5:19 AM, Anders Genell <anders.genell@gmail.com> wrote:

I would also appreciate being able to receive midi clock if that would be possible. There is already support for sending midi clock using the mclock opcode, so receiving the clock would be nicely symmetrical.
Also, if it would be possible, perhaps the functionality of mclock could be more generalized, so that the frequency could be varied at k.-rate, and some special value (like a negative number) would make mclock send one single clock message, so that external sequencers could be stepped at varying intervals using e.g. the poisson opcode. Just a thought...

Regards,
Anders 

On Tue, Mar 12, 2019 at 12:51 AM Pete Goodeve <pete.goodeve@computer.org> wrote:
On Sun, Mar 10, 2019 at 11:32:20PM -0700, I wrote:
> how about something like this?
>
> Add "rpnin" and "nrpnin" opcodes like yours, but rather than having them
> respond to particular codes, let them return everything relevant -- the
> selector numbers (from RPN:101/100 or NRPN:98/99) and the data entry
> value (controller 6).  e.g.:
>
>       kmsb, klsb, kval rpnin
>
> or maybe:
>
>       kval rpnin kmsb, klsb

I wasn't thinking hard enough there.  Of course the above would need
a channel parameter too.  And I think they should probably be
'rpn7' -- and 'rpn14' and so on.  And should there should be parallels to
'midic7' like 'midirpn7'?  (Maybe not.)

So:

        kmsb, klsb, kval rpn7 ichan

or something.

I also forgot to note that there is one RPN that it does recognize
(and has to!)  the Pitch Bend Range, which affects 'cpsmidib' and
similar.

        -- Pete --

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-03-14 06:31
FromMichael Gogins
SubjectRe: [Csnd] MIDI RPN/NRPN handling
There are Ableton Link opcodes in the csound-extended packages for Linux and Android. They used to be in the Windows installer, I don't know if they still are.

Regards, 
Mike

On Thu, Mar 14, 2019, 16:53 Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:
Do we support Ableton Link.  If not, we should. That's a clock that many of my students could really use... and me too.

Dr. Richard Boulanger
Professor
Electronic Production and Design
Berklee College of Music

On Mar 13, 2019, at 5:19 AM, Anders Genell <anders.genell@gmail.com> wrote:

I would also appreciate being able to receive midi clock if that would be possible. There is already support for sending midi clock using the mclock opcode, so receiving the clock would be nicely symmetrical.
Also, if it would be possible, perhaps the functionality of mclock could be more generalized, so that the frequency could be varied at k.-rate, and some special value (like a negative number) would make mclock send one single clock message, so that external sequencers could be stepped at varying intervals using e.g. the poisson opcode. Just a thought...

Regards,
Anders 

On Tue, Mar 12, 2019 at 12:51 AM Pete Goodeve <pete.goodeve@computer.org> wrote:
On Sun, Mar 10, 2019 at 11:32:20PM -0700, I wrote:
> how about something like this?
>
> Add "rpnin" and "nrpnin" opcodes like yours, but rather than having them
> respond to particular codes, let them return everything relevant -- the
> selector numbers (from RPN:101/100 or NRPN:98/99) and the data entry
> value (controller 6).  e.g.:
>
>       kmsb, klsb, kval rpnin
>
> or maybe:
>
>       kval rpnin kmsb, klsb

I wasn't thinking hard enough there.  Of course the above would need
a channel parameter too.  And I think they should probably be
'rpn7' -- and 'rpn14' and so on.  And should there should be parallels to
'midic7' like 'midirpn7'?  (Maybe not.)

So:

        kmsb, klsb, kval rpn7 ichan

or something.

I also forgot to note that there is one RPN that it does recognize
(and has to!)  the Pitch Bend Range, which affects 'cpsmidib' and
similar.

        -- Pete --

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-03-14 10:04
FromEd Cashin
SubjectRe: [Csnd] MIDI RPN/NRPN handling
Classic hardware synths and sequencers will know nothing of Ableton or MIDI 2.0. I agree that new technologies are important, but MIDI 1.0 will be a lingua franca for a while.

On Thu, Mar 14, 2019 at 12:00 AM Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:
Ableton Link is more important than NRPNs.  They "were" cool and promising about 10 years ago.  

And...

Now there is MIDI 2.0 just ratified.  Anything in there for us to consider supporting.


Dr. Richard Boulanger
Professor
Electronic Production and Design
Berklee College of Music

On Mar 13, 2019, at 11:57 PM, Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:

Improving our MIDI is important.  Especially improving out ability to sync with a DAW running softsynths.  My students are always asking how to sync their Csound LFO with the LFOs on their softsynths or syncing the delay times of Csound with the effects and delays in their tracks.

Dr. Richard Boulanger
Professor
Electronic Production and Design
Berklee College of Music

On Mar 13, 2019, at 11:53 PM, Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:

Do we support Ableton Link.  If not, we should. That's a clock that many of my students could really use... and me too.

Dr. Richard Boulanger
Professor
Electronic Production and Design
Berklee College of Music

On Mar 13, 2019, at 5:19 AM, Anders Genell <anders.genell@gmail.com> wrote:

I would also appreciate being able to receive midi clock if that would be possible. There is already support for sending midi clock using the mclock opcode, so receiving the clock would be nicely symmetrical.
Also, if it would be possible, perhaps the functionality of mclock could be more generalized, so that the frequency could be varied at k.-rate, and some special value (like a negative number) would make mclock send one single clock message, so that external sequencers could be stepped at varying intervals using e.g. the poisson opcode. Just a thought...

Regards,
Anders 

On Tue, Mar 12, 2019 at 12:51 AM Pete Goodeve <pete.goodeve@computer.org> wrote:
On Sun, Mar 10, 2019 at 11:32:20PM -0700, I wrote:
> how about something like this?
>
> Add "rpnin" and "nrpnin" opcodes like yours, but rather than having them
> respond to particular codes, let them return everything relevant -- the
> selector numbers (from RPN:101/100 or NRPN:98/99) and the data entry
> value (controller 6).  e.g.:
>
>       kmsb, klsb, kval rpnin
>
> or maybe:
>
>       kval rpnin kmsb, klsb

I wasn't thinking hard enough there.  Of course the above would need
a channel parameter too.  And I think they should probably be
'rpn7' -- and 'rpn14' and so on.  And should there should be parallels to
'midic7' like 'midirpn7'?  (Maybe not.)

So:

        kmsb, klsb, kval rpn7 ichan

or something.

I also forgot to note that there is one RPN that it does recognize
(and has to!)  the Pitch Bend Range, which affects 'cpsmidib' and
similar.

        -- Pete --

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
--
  Ed Cashin <ecashin@noserose.net>
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-03-14 13:43
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] MIDI RPN/NRPN handling
For sure, the Ableton Link opcodes need to be in ther main Csound and a more complete MIDI support needs to be considered and (hopefully) included in Csound 7.  (please)

Best and thanks to all the developers!

-dB
_____________________________________________
Dr. Richard Boulanger
Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
______________________________________________
OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger)
______________________________________________


On Thu, Mar 14, 2019 at 2:31 AM Michael Gogins <michael.gogins@gmail.com> wrote:
There are Ableton Link opcodes in the csound-extended packages for Linux and Android. They used to be in the Windows installer, I don't know if they still are.

Regards, 
Mike

On Thu, Mar 14, 2019, 16:53 Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:
Do we support Ableton Link.  If not, we should. That's a clock that many of my students could really use... and me too.

Dr. Richard Boulanger
Professor
Electronic Production and Design
Berklee College of Music

On Mar 13, 2019, at 5:19 AM, Anders Genell <anders.genell@gmail.com> wrote:

I would also appreciate being able to receive midi clock if that would be possible. There is already support for sending midi clock using the mclock opcode, so receiving the clock would be nicely symmetrical.
Also, if it would be possible, perhaps the functionality of mclock could be more generalized, so that the frequency could be varied at k.-rate, and some special value (like a negative number) would make mclock send one single clock message, so that external sequencers could be stepped at varying intervals using e.g. the poisson opcode. Just a thought...

Regards,
Anders 

On Tue, Mar 12, 2019 at 12:51 AM Pete Goodeve <pete.goodeve@computer.org> wrote:
On Sun, Mar 10, 2019 at 11:32:20PM -0700, I wrote:
> how about something like this?
>
> Add "rpnin" and "nrpnin" opcodes like yours, but rather than having them
> respond to particular codes, let them return everything relevant -- the
> selector numbers (from RPN:101/100 or NRPN:98/99) and the data entry
> value (controller 6).  e.g.:
>
>       kmsb, klsb, kval rpnin
>
> or maybe:
>
>       kval rpnin kmsb, klsb

I wasn't thinking hard enough there.  Of course the above would need
a channel parameter too.  And I think they should probably be
'rpn7' -- and 'rpn14' and so on.  And should there should be parallels to
'midic7' like 'midirpn7'?  (Maybe not.)

So:

        kmsb, klsb, kval rpn7 ichan

or something.

I also forgot to note that there is one RPN that it does recognize
(and has to!)  the Pitch Bend Range, which affects 'cpsmidib' and
similar.

        -- Pete --

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-03-14 13:57
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] MIDI RPN/NRPN handling
By the way, my modern "classic" modular system (on which I will be premiering a new work at ICSC 2019 in Italy) includes a number of MIDI modules (from Mutable, 2p, and Intellijel - with clock, etc); a MIDI MPE module (from Expert Sleepers); an SPDIF module (from expert sleepers); an OSC module (from Instruo); BioSensing Modules (from Instruo and ADDAC); and a BrainWave module (from SoundMachines).  And so... I would maintain that these "classic" tools do in fact interface with the latest developments in MIDI, Sensor, and Controller technology. And, they all connect quite beautifully and seamlessly with my many older and newer DAWS.  The question is always: Does Csound connect and integrate as well and what is missing? The ability to sync clock is pretty crucial "ensemble" playing. (Of course one can bounce and align things after the fact.) . Still, I always want to make sure, and brag about the fact, that "Csound can do that!".  ((( I was super excited and going on and on with all the Abelton users at Berklee (there are hundreds per semester) about out Csound supported LINK ))) I have not checked lately if it is still there in the latest Csound that I am running and teaching with (on the Mac) here at Berklee.

Sending my best to you all and my gratitude as well.

-dB
_____________________________________________
Dr. Richard Boulanger
Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
______________________________________________
OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger)
______________________________________________


On Thu, Mar 14, 2019 at 9:43 AM Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:
For sure, the Ableton Link opcodes need to be in ther main Csound and a more complete MIDI support needs to be considered and (hopefully) included in Csound 7.  (please)

Best and thanks to all the developers!

-dB
_____________________________________________
Dr. Richard Boulanger
Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
______________________________________________
OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger)
______________________________________________


On Thu, Mar 14, 2019 at 2:31 AM Michael Gogins <michael.gogins@gmail.com> wrote:
There are Ableton Link opcodes in the csound-extended packages for Linux and Android. They used to be in the Windows installer, I don't know if they still are.

Regards, 
Mike

On Thu, Mar 14, 2019, 16:53 Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:
Do we support Ableton Link.  If not, we should. That's a clock that many of my students could really use... and me too.

Dr. Richard Boulanger
Professor
Electronic Production and Design
Berklee College of Music

On Mar 13, 2019, at 5:19 AM, Anders Genell <anders.genell@gmail.com> wrote:

I would also appreciate being able to receive midi clock if that would be possible. There is already support for sending midi clock using the mclock opcode, so receiving the clock would be nicely symmetrical.
Also, if it would be possible, perhaps the functionality of mclock could be more generalized, so that the frequency could be varied at k.-rate, and some special value (like a negative number) would make mclock send one single clock message, so that external sequencers could be stepped at varying intervals using e.g. the poisson opcode. Just a thought...

Regards,
Anders 

On Tue, Mar 12, 2019 at 12:51 AM Pete Goodeve <pete.goodeve@computer.org> wrote:
On Sun, Mar 10, 2019 at 11:32:20PM -0700, I wrote:
> how about something like this?
>
> Add "rpnin" and "nrpnin" opcodes like yours, but rather than having them
> respond to particular codes, let them return everything relevant -- the
> selector numbers (from RPN:101/100 or NRPN:98/99) and the data entry
> value (controller 6).  e.g.:
>
>       kmsb, klsb, kval rpnin
>
> or maybe:
>
>       kval rpnin kmsb, klsb

I wasn't thinking hard enough there.  Of course the above would need
a channel parameter too.  And I think they should probably be
'rpn7' -- and 'rpn14' and so on.  And should there should be parallels to
'midic7' like 'midirpn7'?  (Maybe not.)

So:

        kmsb, klsb, kval rpn7 ichan

or something.

I also forgot to note that there is one RPN that it does recognize
(and has to!)  the Pitch Bend Range, which affects 'cpsmidib' and
similar.

        -- Pete --

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-03-14 16:37
FromEd Cashin
SubjectRe: [Csnd] MIDI RPN/NRPN handling
This csound community is just the best. :) It is really inspiring when highly technical subjects are discussed with so much enthusiasm, mutual respect, and civility.

I think we agree. (I use eurorack and am jealous of your cutting-edge classic modules, but I was talking about 1990’s stuff like my Roland JV-880.) Supporting technologies the make csound useful in more workflows is appealing.

On Thu, Mar 14, 2019 at 9:58 AM Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:
By the way, my modern "classic" modular system (on which I will be premiering a new work at ICSC 2019 in Italy) includes a number of MIDI modules (from Mutable, 2p, and Intellijel - with clock, etc); a MIDI MPE module (from Expert Sleepers); an SPDIF module (from expert sleepers); an OSC module (from Instruo); BioSensing Modules (from Instruo and ADDAC); and a BrainWave module (from SoundMachines).  And so... I would maintain that these "classic" tools do in fact interface with the latest developments in MIDI, Sensor, and Controller technology. And, they all connect quite beautifully and seamlessly with my many older and newer DAWS.  The question is always: Does Csound connect and integrate as well and what is missing? The ability to sync clock is pretty crucial "ensemble" playing. (Of course one can bounce and align things after the fact.) . Still, I always want to make sure, and brag about the fact, that "Csound can do that!".  ((( I was super excited and going on and on with all the Abelton users at Berklee (there are hundreds per semester) about out Csound supported LINK ))) I have not checked lately if it is still there in the latest Csound that I am running and teaching with (on the Mac) here at Berklee.

Sending my best to you all and my gratitude as well.

-dB
_____________________________________________
Dr. Richard Boulanger
Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
______________________________________________
OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger)
______________________________________________


On Thu, Mar 14, 2019 at 9:43 AM Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:
For sure, the Ableton Link opcodes need to be in ther main Csound and a more complete MIDI support needs to be considered and (hopefully) included in Csound 7.  (please)

Best and thanks to all the developers!

-dB
_____________________________________________
Dr. Richard Boulanger
Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
______________________________________________
OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger)
______________________________________________


On Thu, Mar 14, 2019 at 2:31 AM Michael Gogins <michael.gogins@gmail.com> wrote:
There are Ableton Link opcodes in the csound-extended packages for Linux and Android. They used to be in the Windows installer, I don't know if they still are.

Regards, 
Mike

On Thu, Mar 14, 2019, 16:53 Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:
Do we support Ableton Link.  If not, we should. That's a clock that many of my students could really use... and me too.

Dr. Richard Boulanger
Professor
Electronic Production and Design
Berklee College of Music

On Mar 13, 2019, at 5:19 AM, Anders Genell <anders.genell@gmail.com> wrote:

I would also appreciate being able to receive midi clock if that would be possible. There is already support for sending midi clock using the mclock opcode, so receiving the clock would be nicely symmetrical.
Also, if it would be possible, perhaps the functionality of mclock could be more generalized, so that the frequency could be varied at k.-rate, and some special value (like a negative number) would make mclock send one single clock message, so that external sequencers could be stepped at varying intervals using e.g. the poisson opcode. Just a thought...

Regards,
Anders 

On Tue, Mar 12, 2019 at 12:51 AM Pete Goodeve <pete.goodeve@computer.org> wrote:
On Sun, Mar 10, 2019 at 11:32:20PM -0700, I wrote:
> how about something like this?
>
> Add "rpnin" and "nrpnin" opcodes like yours, but rather than having them
> respond to particular codes, let them return everything relevant -- the
> selector numbers (from RPN:101/100 or NRPN:98/99) and the data entry
> value (controller 6).  e.g.:
>
>       kmsb, klsb, kval rpnin
>
> or maybe:
>
>       kval rpnin kmsb, klsb

I wasn't thinking hard enough there.  Of course the above would need
a channel parameter too.  And I think they should probably be
'rpn7' -- and 'rpn14' and so on.  And should there should be parallels to
'midic7' like 'midirpn7'?  (Maybe not.)

So:

        kmsb, klsb, kval rpn7 ichan

or something.

I also forgot to note that there is one RPN that it does recognize
(and has to!)  the Pitch Bend Range, which affects 'cpsmidib' and
similar.

        -- Pete --

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
--
  Ed Cashin <ecashin@noserose.net>
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-03-14 17:11
Fromjohn
SubjectRe: [Csnd] MIDI RPN/NRPN handling
There are sources for some ableton link opciodes in the master tree; also 
examples in the manual tree but no manual page.



On Wed, 13 Mar 2019, Dr. Richard Boulanger wrote:

> Do we support Ableton Link.  If not, we should. That's a clock that many of my
> students could really use... and me too.
> 
> Dr. Richard BoulangerProfessor
> Electronic Production and Design
> Berklee College of Music
> 
> On Mar 13, 2019, at 5:19 AM, Anders Genell  wrote:
>
>       I would also appreciate being able to receive midi clock if that
>       would be possible. There is already support for sending midi clock
>       using the mclock opcode, so receiving the clock would be nicely
>       symmetrical.Also, if it would be possible, perhaps the
>       functionality of mclock could be more generalized, so that the
>       frequency could be varied at k.-rate, and some special value (like
>       a negative number) would make mclock send one single clock
>       message, so that external sequencers could be stepped at varying
>       intervals using e.g. the poisson opcode. Just a thought...
> 
> Regards,
> Anders 
> 
> On Tue, Mar 12, 2019 at 12:51 AM Pete Goodeve
>  wrote:
>       On Sun, Mar 10, 2019 at 11:32:20PM -0700, I wrote:
>       > how about something like this?
>       >
>       > Add "rpnin" and "nrpnin" opcodes like yours, but rather
>       than having them
>       > respond to particular codes, let them return everything
>       relevant -- the
>       > selector numbers (from RPN:101/100 or NRPN:98/99) and the
>       data entry
>       > value (controller 6).  e.g.:
>       >
>       >       kmsb, klsb, kval rpnin
>       >
>       > or maybe:
>       >
>       >       kval rpnin kmsb, klsb
>
>       I wasn't thinking hard enough there.  Of course the above
>       would need
>       a channel parameter too.  And I think they should probably
>       be
>       'rpn7' -- and 'rpn14' and so on.  And should there should be
>       parallels to
>       'midic7' like 'midirpn7'?  (Maybe not.)
>
>       So:
>
>               kmsb, klsb, kval rpn7 ichan
>
>       or something.
>
>       I also forgot to note that there is one RPN that it does
>       recognize
>       (and has to!)  the Pitch Bend Range, which affects
>       'cpsmidib' and
>       similar.
>
>               -- Pete --
>
>       Csound mailing list
>       Csound@listserv.heanet.ie
>       https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>       Send bugs reports to
>               https://github.com/csound/csound/issues
>       Discussions of bugs and features can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features
> can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-03-14 17:29
Fromjohn
SubjectRe: [Csnd] MIDI RPN/NRPN handling
Sorry -- the bleton link opces are un the manual  -- i was wrong


On Wed, 13 Mar 2019, Dr. Richard Boulanger wrote:

> Do we support Ableton Link.  If not, we should. That's a clock that many of my
> students could really use... and me too.
> 
> Dr. Richard BoulangerProfessor
> Electronic Production and Design
> Berklee College of Music
> 
> On Mar 13, 2019, at 5:19 AM, Anders Genell  wrote:
>
>       I would also appreciate being able to receive midi clock if that
>       would be possible. There is already support for sending midi clock
>       using the mclock opcode, so receiving the clock would be nicely
>       symmetrical.Also, if it would be possible, perhaps the
>       functionality of mclock could be more generalized, so that the
>       frequency could be varied at k.-rate, and some special value (like
>       a negative number) would make mclock send one single clock
>       message, so that external sequencers could be stepped at varying
>       intervals using e.g. the poisson opcode. Just a thought...
> 
> Regards,
> Anders 
> 
> On Tue, Mar 12, 2019 at 12:51 AM Pete Goodeve
>  wrote:
>       On Sun, Mar 10, 2019 at 11:32:20PM -0700, I wrote:
>       > how about something like this?
>       >
>       > Add "rpnin" and "nrpnin" opcodes like yours, but rather
>       than having them
>       > respond to particular codes, let them return everything
>       relevant -- the
>       > selector numbers (from RPN:101/100 or NRPN:98/99) and the
>       data entry
>       > value (controller 6).  e.g.:
>       >
>       >       kmsb, klsb, kval rpnin
>       >
>       > or maybe:
>       >
>       >       kval rpnin kmsb, klsb
>
>       I wasn't thinking hard enough there.  Of course the above
>       would need
>       a channel parameter too.  And I think they should probably
>       be
>       'rpn7' -- and 'rpn14' and so on.  And should there should be
>       parallels to
>       'midic7' like 'midirpn7'?  (Maybe not.)
>
>       So:
>
>               kmsb, klsb, kval rpn7 ichan
>
>       or something.
>
>       I also forgot to note that there is one RPN that it does
>       recognize
>       (and has to!)  the Pitch Bend Range, which affects
>       'cpsmidib' and
>       similar.
>
>               -- Pete --
>
>       Csound mailing list
>       Csound@listserv.heanet.ie
>       https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>       Send bugs reports to
>               https://github.com/csound/csound/issues
>       Discussions of bugs and features can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features
> can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-03-14 21:50
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] MIDI RPN/NRPN handling
Thanks John,  I will be trying those out in the next few days.
- super happy that there is a manPage to get things going.

Best

RIck
_____________________________________________
Dr. Richard Boulanger
Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
______________________________________________
OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger)
______________________________________________


On Thu, Mar 14, 2019 at 1:30 PM john <jpff@codemist.co.uk> wrote:
Sorry -- the bleton link opces are un the manual  -- i was wrong


On Wed, 13 Mar 2019, Dr. Richard Boulanger wrote:

> Do we support Ableton Link.  If not, we should. That's a clock that many of my
> students could really use... and me too.
>
> Dr. Richard BoulangerProfessor
> Electronic Production and Design
> Berklee College of Music
>
> On Mar 13, 2019, at 5:19 AM, Anders Genell <anders.genell@gmail.com> wrote:
>
>       I would also appreciate being able to receive midi clock if that
>       would be possible. There is already support for sending midi clock
>       using the mclock opcode, so receiving the clock would be nicely
>       symmetrical.Also, if it would be possible, perhaps the
>       functionality of mclock could be more generalized, so that the
>       frequency could be varied at k.-rate, and some special value (like
>       a negative number) would make mclock send one single clock
>       message, so that external sequencers could be stepped at varying
>       intervals using e.g. the poisson opcode. Just a thought...
>
> Regards,
> Anders 
>
> On Tue, Mar 12, 2019 at 12:51 AM Pete Goodeve
> <pete.goodeve@computer.org> wrote:
>       On Sun, Mar 10, 2019 at 11:32:20PM -0700, I wrote:
>       > how about something like this?
>       >
>       > Add "rpnin" and "nrpnin" opcodes like yours, but rather
>       than having them
>       > respond to particular codes, let them return everything
>       relevant -- the
>       > selector numbers (from RPN:101/100 or NRPN:98/99) and the
>       data entry
>       > value (controller 6).  e.g.:
>       >
>       >       kmsb, klsb, kval rpnin
>       >
>       > or maybe:
>       >
>       >       kval rpnin kmsb, klsb
>
>       I wasn't thinking hard enough there.  Of course the above
>       would need
>       a channel parameter too.  And I think they should probably
>       be
>       'rpn7' -- and 'rpn14' and so on.  And should there should be
>       parallels to
>       'midic7' like 'midirpn7'?  (Maybe not.)
>
>       So:
>
>               kmsb, klsb, kval rpn7 ichan
>
>       or something.
>
>       I also forgot to note that there is one RPN that it does
>       recognize
>       (and has to!)  the Pitch Bend Range, which affects
>       'cpsmidib' and
>       similar.
>
>               -- Pete --
>
>       Csound mailing list
>       Csound@listserv.heanet.ie
>       https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>       Send bugs reports to
>               https://github.com/csound/csound/issues
>       Discussions of bugs and features can be posted here
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features
> can be posted here
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here