Quantcast

[Csnd] rhythm off by one

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Csnd] rhythm off by one

C. R. Craig
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
[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

test_metro.csd (546 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] rhythm off by one

forrest
Does that metro trigger when kx == 0?

On Wed, May 10, 2017 at 12:45 PM, C. R. Craig <[hidden email]> 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
[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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] rhythm off by one

C. R. Craig
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 <[hidden email]> wrote:

Does that metro trigger when kx == 0?

On Wed, May 10, 2017 at 12:45 PM, C. R. Craig <[hidden email]> 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
[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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] rhythm off by one

C. R. Craig
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 <[hidden email]> 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 <[hidden email]> wrote:

Does that metro trigger when kx == 0?

On Wed, May 10, 2017 at 12:45 PM, C. R. Craig <[hidden email]> 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
[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
Loading...