Csound Csound-dev Csound-tekno Search About

rhythm off by one

Date2017-05-10 20:45
From"C. R. Craig"
Subjectrhythm off by one
Attachmentstest_metro.csd  
I figured this out once before, but didn’t make note of it, so now I can’t recall how I did it. The attached code attempts to create a rhythm [3,3,2]. What actually is played is [3,2,3]. Could someone tell me what I’m doing wrong?

Thanks,
Robert


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-05-10 21:03
FromForrest Curo
SubjectRe: rhythm off by one
Does that metro trigger when kx == 0?

On Wed, May 10, 2017 at 12:45 PM, C. R. Craig <robert@craig-woods.net> wrote:
I figured this out once before, but didn’t make note of it, so now I can’t recall how I did it. The attached code attempts to create a rhythm [3,3,2]. What actually is played is [3,2,3]. Could someone tell me what I’m doing wrong?

Thanks,
Robert


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-05-10 21:31
From"C. R. Craig"
SubjectRe: rhythm off by one
I inserted a print statement in the if…endif block, and it does trigger when kx is equal to 0.

Looking more closely at the output, the trigger does not fire at time = 0, I was mistaken in thinking that was instrument 1 that was being allocated, it’s actually instrument 2.


SECTION 1:
new alloc for instr 2:
  rtevent:   T  0.000 TT  0.000 M:  0.00000
new alloc for instr 1:
  rtevent:   T  0.600 TT  0.600 M:  0.98901
  rtevent:   T  1.000 TT  1.000 M:  0.98901
new alloc for instr 1:
c  rtevent:   T  1.600 TT  1.600 M:  0.99375
  rtevent:   T  2.200 TT  2.200 M:  0.98901
  rtevent:   T  2.600 TT  2.600 M:  0.98901
  rtevent:   T  3.200 TT  3.200 M:  0.99375
  rtevent:   T  3.800 TT  3.800 M:  0.98901

Thanks,
Robert

On May 10, 2017, at 1:03 PM, Forrest Curo <treegestalt@GMAIL.COM> wrote:

Does that metro trigger when kx == 0?

On Wed, May 10, 2017 at 12:45 PM, C. R. Craig <robert@craig-woods.net> wrote:
I figured this out once before, but didn’t make note of it, so now I can’t recall how I did it. The attached code attempts to create a rhythm [3,3,2]. What actually is played is [3,2,3]. Could someone tell me what I’m doing wrong?

Thanks,
Robert


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-05-10 21:37
From"C. R. Craig"
SubjectRe: rhythm off by one
What is misleading is that the output sounds beginning at time = 0 . . .

I can make it work the way I want by notating the array 2,3,3 instead of 3,3,2. Sub-optimal solution, however.

Thanks,
Robert

On May 10, 2017, at 1:31 PM, C. R. Craig <robert@CRAIG-WOODS.NET> wrote:

I inserted a print statement in the if…endif block, and it does trigger when kx is equal to 0.

Looking more closely at the output, the trigger does not fire at time = 0, I was mistaken in thinking that was instrument 1 that was being allocated, it’s actually instrument 2.


SECTION 1:
new alloc for instr 2:
  rtevent:   T  0.000 TT  0.000 M:  0.00000
new alloc for instr 1:
  rtevent:   T  0.600 TT  0.600 M:  0.98901
  rtevent:   T  1.000 TT  1.000 M:  0.98901
new alloc for instr 1:
c  rtevent:   T  1.600 TT  1.600 M:  0.99375
  rtevent:   T  2.200 TT  2.200 M:  0.98901
  rtevent:   T  2.600 TT  2.600 M:  0.98901
  rtevent:   T  3.200 TT  3.200 M:  0.99375
  rtevent:   T  3.800 TT  3.800 M:  0.98901

Thanks,
Robert

On May 10, 2017, at 1:03 PM, Forrest Curo <treegestalt@GMAIL.COM> wrote:

Does that metro trigger when kx == 0?

On Wed, May 10, 2017 at 12:45 PM, C. R. Craig <robert@craig-woods.net> wrote:
I figured this out once before, but didn’t make note of it, so now I can’t recall how I did it. The attached code attempts to create a rhythm [3,3,2]. What actually is played is [3,2,3]. Could someone tell me what I’m doing wrong?

Thanks,
Robert


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