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-
Csound mailing list
[hidden email]
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
/* Joe */ |
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 . <[hidden email]> wrote: > > <midi.csd> Csound mailing list [hidden email] 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 |
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 <[hidden email]> wrote: I think the problem is ktim. You need to set the itime parameter to 0. |
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 . <[hidden email]> 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 <[hidden email]> 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 . <[hidden email]> wrote: > > > > <midi.csd> > > Csound mailing list > [hidden email] > 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 [hidden email] 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 [hidden email] 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 |
forgive me, but where is the itime parameter? /* Joe */ On Thu, Mar 15, 2018 at 10:08 AM, Victor Lazzarini <[hidden email]> wrote: yep, to 0. The if … then controls the printing so, the itime parameter should be 0 |
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 . <[hidden email]> wrote: > > forgive me, but where is the itime parameter? > > /* Joe */ > > On Thu, Mar 15, 2018 at 10:08 AM, Victor Lazzarini <[hidden email]> 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 . <[hidden email]> 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 <[hidden email]> 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 . <[hidden email]> wrote: > > > > > > <midi.csd> > > > > Csound mailing list > > [hidden email] > > 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 [hidden email] 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 > [hidden email] > 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 [hidden email] 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 [hidden email] 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 |
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 <[hidden email]> 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 . <[hidden email]> wrote: >> >> forgive me, but where is the itime parameter? >> >> /* Joe */ >> >> On Thu, Mar 15, 2018 at 10:08 AM, Victor Lazzarini <[hidden email]> 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 . <[hidden email]> 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 <[hidden email]> 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 . <[hidden email]> wrote: >>>> >>>> <midi.csd> >>> >>> Csound mailing list >>> [hidden email] >>> 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 [hidden email] 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 >> [hidden email] >> 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 [hidden email] 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 > [hidden email] > 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 [hidden email] 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 |
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 <[hidden email]> wrote: and to note: I’d changed massign and pgmassign. That makes it do what you want it to do (I think), not triggering |
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
Csound mailing list [hidden email] 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 |
sorry Victor, the last message you sent was blank. /* Joe */ On Fri, Mar 16, 2018 at 11:50 AM, Victor Lazzarini <[hidden email]> wrote:
|
In reply to this post by confused
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
|
Free forum by Nabble | Edit this page |