Csound Csound-dev Csound-tekno Search About

massign problem

Date2017-06-22 03:46
FromBill Alves
Subjectmassign problem
I am trying to read in a midi file that I generated using Finale 2012 on OS-X 10.8.3. At first I get the usual message:

midi channel 1 using instr 1
midi channel 2 using instr 2
midi channel 3 using instr 3...

etc. corresponding to my massign statements.

But then after "Reading MIDI file 'myfile.mid'..." and other messages, I get the following on the console:

midi channel 1 now using instr 1
midi channel 3 now using instr 1
midi channel 2 now using instr 1
midi channel 4 now using instr 1
midi channel 5 now using instr 1
midi channel 6 now using instr 1
midi channel 7 now using instr 1

I am using Csoundqt 0.9.3 and Csound 6.09 (I first had the problem in 6.08).

I tried resetting the assignments by calling an instrument with the massigns in it, but the same thing happens. Thanks for your help.

—
Bill Alves
Professor of Music, The Claremont Colleges
Harvey Mudd College
301 Platt Blvd. Claremont CA 91711
http://www.billalves.com/
http://pages.hmc.edu/alves/

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

Date2017-06-22 15:07
FromJacques Leplat
SubjectRe: massign problem
Hello Bill,

I wonder if there are “Program Change” channel messages in your MIDI file which cause this to happen.

Best regards,

Jacques


> On 22 Jun 2017, at 03:46, Bill Alves  wrote:
> 
> I am trying to read in a midi file that I generated using Finale 2012 on OS-X 10.8.3. At first I get the usual message:
> 
> midi channel 1 using instr 1
> midi channel 2 using instr 2
> midi channel 3 using instr 3...
> 
> etc. corresponding to my massign statements.
> 
> But then after "Reading MIDI file 'myfile.mid'..." and other messages, I get the following on the console:
> 
> midi channel 1 now using instr 1
> midi channel 3 now using instr 1
> midi channel 2 now using instr 1
> midi channel 4 now using instr 1
> midi channel 5 now using instr 1
> midi channel 6 now using instr 1
> midi channel 7 now using instr 1
> 
> I am using Csoundqt 0.9.3 and Csound 6.09 (I first had the problem in 6.08).
> 
> I tried resetting the assignments by calling an instrument with the massigns in it, but the same thing happens. Thanks for your help.
> 
> —
> Bill Alves
> Professor of Music, The Claremont Colleges
> Harvey Mudd College
> 301 Platt Blvd. Claremont CA 91711
> http://www.billalves.com/
> http://pages.hmc.edu/alves/
> 
> 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

Date2017-06-22 17:31
FromBill Alves
SubjectRe: massign problem
Hi Jacques,

Thanks for your response. I did not insert any program change messages, and when I play the midi file in finale, it sends the messages over the correct channels. Also, I don't understand how a program change could change the channel assignment. Does anyone know under what circumstances this "now using instr" message is generated in Csound? Thanks again.

Bill

On Jun 22, 2017, at 7:07 AM, Jacques Leplat <jleplat@J3LTD.COM> wrote:

Hello Bill,

I wonder if there are “Program Change” channel messages in your MIDI file which cause this to happen.

Best regards,

Jacques


On 22 Jun 2017, at 03:46, Bill Alves <alves@G.HMC.EDU> wrote:

I am trying to read in a midi file that I generated using Finale 2012 on OS-X 10.8.3. At first I get the usual message:

midi channel 1 using instr 1
midi channel 2 using instr 2
midi channel 3 using instr 3...

etc. corresponding to my massign statements.

But then after "Reading MIDI file 'myfile.mid'..." and other messages, I get the following on the console:

midi channel 1 now using instr 1
midi channel 3 now using instr 1
midi channel 2 now using instr 1
midi channel 4 now using instr 1
midi channel 5 now using instr 1
midi channel 6 now using instr 1
midi channel 7 now using instr 1

I am using Csoundqt 0.9.3 and Csound 6.09 (I first had the problem in 6.08).

I tried resetting the assignments by calling an instrument with the massigns in it, but the same thing happens. Thanks for your help.


Bill Alves
Professor of Music, The Claremont Colleges
Harvey Mudd College
301 Platt Blvd. Claremont CA 91711
http://www.billalves.com/
http://pages.hmc.edu/alves/

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

Bill Alves
Professor of Music, The Claremont Colleges
Harvey Mudd College
301 Platt Blvd. Claremont CA 91711
http://pages.hmc.edu/alves/
http://www.billalves.com/


Date2017-06-22 17:47
Fromjpff
SubjectRe: massign problem
Comes from getting a program chage message
Oters may uderstad MIDI


     case PROGRAM_TYPE:                  /* PROGRAM CHANGE */
       chn->pgmno = mep->dat1;
       if (chn->insno <= 0)              /* ignore if channel is muted */
         break;
       n = (int16) chn->pgm2ins[mep->dat1];      /* program change -> INSTR 
*/
       if (n > 0 &&
           n <= csound->engineState.maxinsno &&  /* if corresp instr exists 
*/
           csound->engineState.instrtxtp[n] != NULL) {   /* assign as insno 
*/
         chn->insno = n;                         /* else ignore prog. 
change */
         csound->Message(csound, Str("midi channel %d now using instr 
%d\n"),
                                 mep->chan + 1, chn->insno);
       }
       break;


On Thu, 22 Jun 2017, Bill Alves wrote:

> Hi Jacques,
> Thanks for your response. I did not insert any program change messages, and
> when I play the midi file in finale, it sends the messages over the correct
> channels. Also, I don't understand how a program change could change the
> channel assignment. Does anyone know under what circumstances this "now using
> instr" message is generated in Csound? Thanks again.
> 
> Bill
> 
> On Jun 22, 2017, at 7:07 AM, Jacques Leplat  wrote:
>
>       Hello Bill,
>
>       I wonder if there are “Program Change” channel messages in your
>       MIDI file which cause this to happen.
>
>       Best regards,
>
>       Jacques
> 
>
>             On 22 Jun 2017, at 03:46, Bill Alves 
>             wrote:
>
>             I am trying to read in a midi file that I generated
>             using Finale 2012 on OS-X 10.8.3. At first I get the
>             usual message:
>
>             midi channel 1 using instr 1
>             midi channel 2 using instr 2
>             midi channel 3 using instr 3...
>
>             etc. corresponding to my massign statements.
>
>             But then after "Reading MIDI file 'myfile.mid'..." and
>             other messages, I get the following on the console:
>
>             midi channel 1 now using instr 1
>             midi channel 3 now using instr 1
>             midi channel 2 now using instr 1
>             midi channel 4 now using instr 1
>             midi channel 5 now using instr 1
>             midi channel 6 now using instr 1
>             midi channel 7 now using instr 1
>
>             I am using Csoundqt 0.9.3 and Csound 6.09 (I first had
>             the problem in 6.08).
>
>             I tried resetting the assignments by calling an
>             instrument with the massigns in it, but the same thing
>             happens. Thanks for your help.
>
>             —
>             Bill Alves
>             Professor of Music, The Claremont Colleges
>             Harvey Mudd College
>             301 Platt Blvd. Claremont CA 91711
>             http://www.billalves.com/
>             http://pages.hmc.edu/alves/
>
>             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
> 
> 
> Bill Alves
> Professor of Music, The Claremont Colleges
> Harvey Mudd College
> 301 Platt Blvd. Claremont CA 91711
> http://pages.hmc.edu/alves/
> http://www.billalves.com/
> 
> 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

Date2017-06-22 18:13
FromJacques Leplat
SubjectRe: massign problem
Hello Bill,

It’s possible that the MIDI file has program change messages at the start, to assign instrument numbers to MIDI channels. That would have been generated by Finale.

On 22 Jun 2017, at 17:31, Bill Alves <alves@G.HMC.EDU> wrote:

Hi Jacques,

Thanks for your response. I did not insert any program change messages, and when I play the midi file in finale, it sends the messages over the correct channels. Also, I don't understand how a program change could change the channel assignment. Does anyone know under what circumstances this "now using instr" message is generated in Csound? Thanks again.

Bill

On Jun 22, 2017, at 7:07 AM, Jacques Leplat <jleplat@J3LTD.COM> wrote:

Hello Bill,

I wonder if there are “Program Change” channel messages in your MIDI file which cause this to happen.

Best regards,

Jacques


On 22 Jun 2017, at 03:46, Bill Alves <alves@G.HMC.EDU> wrote:

I am trying to read in a midi file that I generated using Finale 2012 on OS-X 10.8.3. At first I get the usual message:

midi channel 1 using instr 1
midi channel 2 using instr 2
midi channel 3 using instr 3...

etc. corresponding to my massign statements.

But then after "Reading MIDI file 'myfile.mid'..." and other messages, I get the following on the console:

midi channel 1 now using instr 1
midi channel 3 now using instr 1
midi channel 2 now using instr 1
midi channel 4 now using instr 1
midi channel 5 now using instr 1
midi channel 6 now using instr 1
midi channel 7 now using instr 1

I am using Csoundqt 0.9.3 and Csound 6.09 (I first had the problem in 6.08).

I tried resetting the assignments by calling an instrument with the massigns in it, but the same thing happens. Thanks for your help.


Bill Alves
Professor of Music, The Claremont Colleges
Harvey Mudd College
301 Platt Blvd. Claremont CA 91711
http://www.billalves.com/
http://pages.hmc.edu/alves/

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

Bill Alves
Professor of Music, The Claremont Colleges
Harvey Mudd College
301 Platt Blvd. Claremont CA 91711
http://pages.hmc.edu/alves/
http://www.billalves.com/

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


Date2017-06-22 18:56
FromBill Alves
SubjectRe: massign problem
Thanks Jacques and John,

You are quite right. I was able to bring the midi file over to a sequencer and saw that finale had indeed inserted program change messages at the beginning of each track. I guess I was unaware that program change messages automatically caused Csound to switch instruments, but now I know. Thanks very much for your help!

Bill

On Jun 22, 2017, at 10:13 AM, Jacques Leplat <jleplat@J3LTD.COM> wrote:

Hello Bill,

It’s possible that the MIDI file has program change messages at the start, to assign instrument numbers to MIDI channels. That would have been generated by Finale.

On 22 Jun 2017, at 17:31, Bill Alves <alves@G.HMC.EDU> wrote:

Hi Jacques,

Thanks for your response. I did not insert any program change messages, and when I play the midi file in finale, it sends the messages over the correct channels. Also, I don't understand how a program change could change the channel assignment. Does anyone know under what circumstances this "now using instr" message is generated in Csound? Thanks again.

Bill

On Jun 22, 2017, at 7:07 AM, Jacques Leplat <jleplat@J3LTD.COM> wrote:

Hello Bill,

I wonder if there are “Program Change” channel messages in your MIDI file which cause this to happen.

Best regards,

Jacques


On 22 Jun 2017, at 03:46, Bill Alves <alves@G.HMC.EDU> wrote:

I am trying to read in a midi file that I generated using Finale 2012 on OS-X 10.8.3. At first I get the usual message:

midi channel 1 using instr 1
midi channel 2 using instr 2
midi channel 3 using instr 3...

etc. corresponding to my massign statements.

But then after "Reading MIDI file 'myfile.mid'..." and other messages, I get the following on the console:

midi channel 1 now using instr 1
midi channel 3 now using instr 1
midi channel 2 now using instr 1
midi channel 4 now using instr 1
midi channel 5 now using instr 1
midi channel 6 now using instr 1
midi channel 7 now using instr 1

I am using Csoundqt 0.9.3 and Csound 6.09 (I first had the problem in 6.08).

I tried resetting the assignments by calling an instrument with the massigns in it, but the same thing happens. Thanks for your help.


Bill Alves
Professor of Music, The Claremont Colleges
Harvey Mudd College
301 Platt Blvd. Claremont CA 91711
http://www.billalves.com/
http://pages.hmc.edu/alves/

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

Bill Alves
Professor of Music, The Claremont Colleges
Harvey Mudd College
301 Platt Blvd. Claremont CA 91711
http://pages.hmc.edu/alves/
http://www.billalves.com/

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

Bill Alves
Professor of Music, The Claremont Colleges
Harvey Mudd College
301 Platt Blvd. Claremont CA 91711
http://pages.hmc.edu/alves/
http://www.billalves.com/