Csound Csound-dev Csound-tekno Search About

[Csnd] midi to sco help

Date2018-03-15 02:41
From"Joe ."
Subject[Csnd] midi to sco help
Attachmentsmidi.csd  moveupal.mid  
Hey y'all. These are the files I'm working with, the file it writes out contains GB of information and crashes the system. Can't seem to find the bug. Help is appreciated. Thanks-

/* Joe */
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

Date2018-03-15 14:17
FromVictor Lazzarini
SubjectRe: [Csnd] midi to sco help
I think the problem is ktim. You need to set the itime parameter to 0.
========================
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 15 Mar 2018, at 02:41, Joe .  wrote:
> 
> 

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

Date2018-03-15 14:52
From"Joe ."
SubjectRe: [Csnd] midi to sco help
I took this from the fprintks demonstration page btw. What do you mean set itime to 0?

/* Joe */

On Thu, Mar 15, 2018 at 9:17 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
I think the problem is ktim. You need to set the itime parameter to 0.
========================
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 15 Mar 2018, at 02:41, Joe . <not007ful@GMAIL.COM> wrote:
>
> <midi.csd>

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

Date2018-03-15 15:08
FromVictor Lazzarini
SubjectRe: [Csnd] midi to sco help
yep, to 0. The if … then controls the printing so, the itime parameter should be 0
========================
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 15 Mar 2018, at 14:52, Joe .  wrote:
> 
> I took this from the fprintks demonstration page btw. What do you mean set itime to 0?
> 
> /* Joe */
> 
> On Thu, Mar 15, 2018 at 9:17 AM, Victor Lazzarini  wrote:
> I think the problem is ktim. You need to set the itime parameter to 0.
> ========================
> 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 15 Mar 2018, at 02:41, Joe .  wrote:
> >
> > 
> 
> 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

Date2018-03-16 03:38
From"Joe ."
SubjectRe: [Csnd] midi to sco help
forgive me, but where is the itime parameter?

/* Joe */

On Thu, Mar 15, 2018 at 10:08 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
yep, to 0. The if … then controls the printing so, the itime parameter should be 0
========================
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 15 Mar 2018, at 14:52, Joe . <not007ful@GMAIL.COM> wrote:
>
> I took this from the fprintks demonstration page btw. What do you mean set itime to 0?
>
> /* Joe */
>
> On Thu, Mar 15, 2018 at 9:17 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
> I think the problem is ktim. You need to set the itime parameter to 0.
> ========================
> 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 15 Mar 2018, at 02:41, Joe . <not007ful@GMAIL.COM> wrote:
> >
> > <midi.csd>
>
> 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

Date2018-03-16 08:30
FromVictor Lazzarini
SubjectRe: [Csnd] midi to sco help
Sorry I was thinking of printks. Actually this code works fine for me:

 
 
-n -T -F moveupal.mid 



  sr	    =  48000
  ksmps	    =  16
  nchnls    =  2 

	    ; assign all midi events to instr 1000
	    massign   0, 0
	    pgmassign	 0, 0

    instr 1000
  ktim	timeinsts
	
  kst, kch, kd1, kd2  midiin
if (kst != 0) then
;  p4 = MIDI event type   p5 = channel   p6= data1    p7= data2
	    fprintks  "MIDI2cs.sco", "i1\\t%f\\t%f\\t%d\\t%d\\t%d\\t%d\\n", ktim, 1/kr, kst, kch, kd1, kd2
	    ;printks  "i1\\t%f\\t%f\\t%d\\t%d\\t%d\\t%d\\n", 0, 1/kr, kst, kch, kd1, kd2
endif

    endin




i1000 0 10000
;e




========================
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 16 Mar 2018, at 03:38, Joe .  wrote:
> 
> forgive me, but where is the itime parameter?
> 
> /* Joe */
> 
> On Thu, Mar 15, 2018 at 10:08 AM, Victor Lazzarini  wrote:
> yep, to 0. The if … then controls the printing so, the itime parameter should be 0
> ========================
> 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 15 Mar 2018, at 14:52, Joe .  wrote:
> >
> > I took this from the fprintks demonstration page btw. What do you mean set itime to 0?
> >
> > /* Joe */
> >
> > On Thu, Mar 15, 2018 at 9:17 AM, Victor Lazzarini  wrote:
> > I think the problem is ktim. You need to set the itime parameter to 0.
> > ========================
> > 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 15 Mar 2018, at 02:41, Joe .  wrote:
> > >
> > > 
> >
> > 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

Date2018-03-16 08:34
FromVictor Lazzarini
SubjectRe: [Csnd] midi to sco help
and to note: I’d changed massign and pgmassign. That makes it do what you want it to do (I think), not triggering
any events, so everything is parsed by midiin instead.
========================
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 16 Mar 2018, at 08:30, Victor Lazzarini  wrote:
> 
> Sorry I was thinking of printks. Actually this code works fine for me:
> 
> 
>  
> -n -T -F moveupal.mid 
> 
> 
> 
>  sr	    =  48000
>  ksmps	    =  16
>  nchnls    =  2 
> 
> 	    ; assign all midi events to instr 1000
> 	    massign   0, 0
> 	    pgmassign	 0, 0
> 
>    instr 1000
>  ktim	timeinsts
> 	
>  kst, kch, kd1, kd2  midiin
> if (kst != 0) then
> ;  p4 = MIDI event type   p5 = channel   p6= data1    p7= data2
> 	    fprintks  "MIDI2cs.sco", "i1\\t%f\\t%f\\t%d\\t%d\\t%d\\t%d\\n", ktim, 1/kr, kst, kch, kd1, kd2
> 	    ;printks  "i1\\t%f\\t%f\\t%d\\t%d\\t%d\\t%d\\n", 0, 1/kr, kst, kch, kd1, kd2
> endif
> 
>    endin
> 
> 
> 
> 
> i1000 0 10000
> ;e
> 
> 
> 
> 
> ========================
> 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 16 Mar 2018, at 03:38, Joe .  wrote:
>> 
>> forgive me, but where is the itime parameter?
>> 
>> /* Joe */
>> 
>> On Thu, Mar 15, 2018 at 10:08 AM, Victor Lazzarini  wrote:
>> yep, to 0. The if … then controls the printing so, the itime parameter should be 0
>> ========================
>> 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 15 Mar 2018, at 14:52, Joe .  wrote:
>>> 
>>> I took this from the fprintks demonstration page btw. What do you mean set itime to 0?
>>> 
>>> /* Joe */
>>> 
>>> On Thu, Mar 15, 2018 at 9:17 AM, Victor Lazzarini  wrote:
>>> I think the problem is ktim. You need to set the itime parameter to 0.
>>> ========================
>>> 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 15 Mar 2018, at 02:41, Joe .  wrote:
>>>> 
>>>> 
>>> 
>>> 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


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

Date2018-03-16 16:34
From"Joe ."
SubjectRe: [Csnd] midi to sco help
Is there a way I can get it to output the actual duration into p3, instead of reading note on note off signals? I am trying to convert it to score, basically. Thanks.

/* Joe */

On Fri, Mar 16, 2018 at 3:34 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
and to note: I’d changed massign and pgmassign. That makes it do what you want it to do (I think), not triggering
any events, so everything is parsed by midiin instead.
========================
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 16 Mar 2018, at 08:30, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:
>
> Sorry I was thinking of printks. Actually this code works fine for me:
>
> <CsoundSynthesizer>
> <CsOptions>
> -n -T -F moveupal.mid
> </CsOptions>
> <CsInstruments>
>
>  sr       =  48000
>  ksmps            =  16
>  nchnls    =  2
>
>           ; assign all midi events to instr 1000
>           massign   0, 0
>           pgmassign    0, 0
>
>    instr 1000
>  ktim timeinsts
>
>  kst, kch, kd1, kd2  midiin
> if (kst != 0) then
> ;  p4 = MIDI event type   p5 = channel   p6= data1    p7= data2
>           fprintks  "MIDI2cs.sco", "i1\\t%f\\t%f\\t%d\\t%d\\t%d\\t%d\\n", ktim, 1/kr, kst, kch, kd1, kd2
>           ;printks  "i1\\t%f\\t%f\\t%d\\t%d\\t%d\\t%d\\n", 0, 1/kr, kst, kch, kd1, kd2
> endif
>
>    endin
>
>
> </CsInstruments>
> <CsScore>
> i1000 0 10000
> ;e
> </CsScore>
> </CsoundSynthesizer>
>
>
> ========================
> 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 16 Mar 2018, at 03:38, Joe . <not007ful@GMAIL.COM> wrote:
>>
>> forgive me, but where is the itime parameter?
>>
>> /* Joe */
>>
>> On Thu, Mar 15, 2018 at 10:08 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>> yep, to 0. The if … then controls the printing so, the itime parameter should be 0
>> ========================
>> 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 15 Mar 2018, at 14:52, Joe . <not007ful@GMAIL.COM> wrote:
>>>
>>> I took this from the fprintks demonstration page btw. What do you mean set itime to 0?
>>>
>>> /* Joe */
>>>
>>> On Thu, Mar 15, 2018 at 9:17 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>>> I think the problem is ktim. You need to set the itime parameter to 0.
>>> ========================
>>> 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 15 Mar 2018, at 02:41, Joe . <not007ful@GMAIL.COM> wrote:
>>>>
>>>> <midi.csd>
>>>
>>> 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


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

Date2018-03-16 16:50
FromVictor Lazzarini
SubjectRe: [Csnd] midi to sco help


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

On 16 Mar 2018, at 16:35, Joe . <not007ful@GMAIL.COM> wrote:

Is there a way I can get it to output the actual duration into p3, instead of reading note on note off signals? I am trying to convert it to score, basically. Thanks.

/* Joe */

On Fri, Mar 16, 2018 at 3:34 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
and to note: I’d changed massign and pgmassign. That makes it do what you want it to do (I think), not triggering
any events, so everything is parsed by midiin instead.
========================
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 16 Mar 2018, at 08:30, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:
>
> Sorry I was thinking of printks. Actually this code works fine for me:
>
> <CsoundSynthesizer>
> <CsOptions>
> -n -T -F moveupal.mid
> </CsOptions>
> <CsInstruments>
>
>  sr       =  48000
>  ksmps            =  16
>  nchnls    =  2
>
>           ; assign all midi events to instr 1000
>           massign   0, 0
>           pgmassign    0, 0
>
>    instr 1000
>  ktim timeinsts
>
>  kst, kch, kd1, kd2  midiin
> if (kst != 0) then
> ;  p4 = MIDI event type   p5 = channel   p6= data1    p7= data2
>           fprintks  "MIDI2cs.sco", "i1\\t%f\\t%f\\t%d\\t%d\\t%d\\t%d\\n", ktim, 1/kr, kst, kch, kd1, kd2
>           ;printks  "i1\\t%f\\t%f\\t%d\\t%d\\t%d\\t%d\\n", 0, 1/kr, kst, kch, kd1, kd2
> endif
>
>    endin
>
>
> </CsInstruments>
> <CsScore>
> i1000 0 10000
> ;e
> </CsScore>
> </CsoundSynthesizer>
>
>
> ========================
> 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 16 Mar 2018, at 03:38, Joe . <not007ful@GMAIL.COM> wrote:
>>
>> forgive me, but where is the itime parameter?
>>
>> /* Joe */
>>
>> On Thu, Mar 15, 2018 at 10:08 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>> yep, to 0. The if … then controls the printing so, the itime parameter should be 0
>> ========================
>> 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 15 Mar 2018, at 14:52, Joe . <not007ful@GMAIL.COM> wrote:
>>>
>>> I took this from the fprintks demonstration page btw. What do you mean set itime to 0?
>>>
>>> /* Joe */
>>>
>>> On Thu, Mar 15, 2018 at 9:17 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>>> I think the problem is ktim. You need to set the itime parameter to 0.
>>> ========================
>>> 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 15 Mar 2018, at 02:41, Joe . <not007ful@GMAIL.COM> wrote:
>>>>
>>>> <midi.csd>
>>>
>>> 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


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

Date2018-03-16 16:58
From"Joe ."
SubjectRe: [Csnd] midi to sco help
sorry Victor, the last message you sent was blank. 

/* Joe */

On Fri, Mar 16, 2018 at 11:50 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:


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

On 16 Mar 2018, at 16:35, Joe . <not007ful@GMAIL.COM> wrote:

Is there a way I can get it to output the actual duration into p3, instead of reading note on note off signals? I am trying to convert it to score, basically. Thanks.

/* Joe */

On Fri, Mar 16, 2018 at 3:34 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
and to note: I’d changed massign and pgmassign. That makes it do what you want it to do (I think), not triggering
any events, so everything is parsed by midiin instead.
========================
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 16 Mar 2018, at 08:30, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:
>
> Sorry I was thinking of printks. Actually this code works fine for me:
>
> <CsoundSynthesizer>
> <CsOptions>
> -n -T -F moveupal.mid
> </CsOptions>
> <CsInstruments>
>
>  sr       =  48000
>  ksmps            =  16
>  nchnls    =  2
>
>           ; assign all midi events to instr 1000
>           massign   0, 0
>           pgmassign    0, 0
>
>    instr 1000
>  ktim timeinsts
>
>  kst, kch, kd1, kd2  midiin
> if (kst != 0) then
> ;  p4 = MIDI event type   p5 = channel   p6= data1    p7= data2
>           fprintks  "MIDI2cs.sco", "i1\\t%f\\t%f\\t%d\\t%d\\t%d\\t%d\\n", ktim, 1/kr, kst, kch, kd1, kd2
>           ;printks  "i1\\t%f\\t%f\\t%d\\t%d\\t%d\\t%d\\n", 0, 1/kr, kst, kch, kd1, kd2
> endif
>
>    endin
>
>
> </CsInstruments>
> <CsScore>
> i1000 0 10000
> ;e
> </CsScore>
> </CsoundSynthesizer>
>
>
> ========================
> 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 16 Mar 2018, at 03:38, Joe . <not007ful@GMAIL.COM> wrote:
>>
>> forgive me, but where is the itime parameter?
>>
>> /* Joe */
>>
>> On Thu, Mar 15, 2018 at 10:08 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>> yep, to 0. The if … then controls the printing so, the itime parameter should be 0
>> ========================
>> 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 15 Mar 2018, at 14:52, Joe . <not007ful@GMAIL.COM> wrote:
>>>
>>> I took this from the fprintks demonstration page btw. What do you mean set itime to 0?
>>>
>>> /* Joe */
>>>
>>> On Thu, Mar 15, 2018 at 9:17 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>>> I think the problem is ktim. You need to set the itime parameter to 0.
>>> ========================
>>> 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 15 Mar 2018, at 02:41, Joe . <not007ful@GMAIL.COM> wrote:
>>>>
>>>> <midi.csd>
>>>
>>> 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


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

Date2018-03-16 17:02
FromVictor Lazzarini
SubjectRe: [Csnd] midi to sco help
If you only care about note on and off, then
place a timeinsts count,
and check for release (release opcode)
writing to file only once when release is reached to get the correct note duration.
You will probably need to set xtratim 1/kr


Use only one instrument and don’t use massigm or pgassign.

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

On 16 Mar 2018, at 16:35, Joe . <not007ful@GMAIL.COM> wrote:

Is there a way I can get it to output the actual duration into p3, instead of reading note on note off signals? I am trying to convert it to score, basically. Thanks.

/* Joe */

On Fri, Mar 16, 2018 at 3:34 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
and to note: I’d changed massign and pgmassign. That makes it do what you want it to do (I think), not triggering
any events, so everything is parsed by midiin instead.
========================
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 16 Mar 2018, at 08:30, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:
>
> Sorry I was thinking of printks. Actually this code works fine for me:
>
> <CsoundSynthesizer>
> <CsOptions>
> -n -T -F moveupal.mid
> </CsOptions>
> <CsInstruments>
>
>  sr       =  48000
>  ksmps            =  16
>  nchnls    =  2
>
>           ; assign all midi events to instr 1000
>           massign   0, 0
>           pgmassign    0, 0
>
>    instr 1000
>  ktim timeinsts
>
>  kst, kch, kd1, kd2  midiin
> if (kst != 0) then
> ;  p4 = MIDI event type   p5 = channel   p6= data1    p7= data2
>           fprintks  "MIDI2cs.sco", "i1\\t%f\\t%f\\t%d\\t%d\\t%d\\t%d\\n", ktim, 1/kr, kst, kch, kd1, kd2
>           ;printks  "i1\\t%f\\t%f\\t%d\\t%d\\t%d\\t%d\\n", 0, 1/kr, kst, kch, kd1, kd2
> endif
>
>    endin
>
>
> </CsInstruments>
> <CsScore>
> i1000 0 10000
> ;e
> </CsScore>
> </CsoundSynthesizer>
>
>
> ========================
> 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 16 Mar 2018, at 03:38, Joe . <not007ful@GMAIL.COM> wrote:
>>
>> forgive me, but where is the itime parameter?
>>
>> /* Joe */
>>
>> On Thu, Mar 15, 2018 at 10:08 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>> yep, to 0. The if … then controls the printing so, the itime parameter should be 0
>> ========================
>> 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 15 Mar 2018, at 14:52, Joe . <not007ful@GMAIL.COM> wrote:
>>>
>>> I took this from the fprintks demonstration page btw. What do you mean set itime to 0?
>>>
>>> /* Joe */
>>>
>>> On Thu, Mar 15, 2018 at 9:17 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>>> I think the problem is ktim. You need to set the itime parameter to 0.
>>> ========================
>>> 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 15 Mar 2018, at 02:41, Joe . <not007ful@GMAIL.COM> wrote:
>>>>
>>>> <midi.csd>
>>>
>>> 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


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