Csound Csound-dev Csound-tekno Search About

Fractional tempi

Date2016-09-26 22:04
FromDavid Bellows
SubjectFractional tempi
In my Csound files (.csd) I set the tempo in the header like:

-t 90

It seems to work fine. One thing it won't do (Csound 6.04) is let me
use fractional tempi like 90.3 or whatever. I know the difference is
very subtle but Csound otherwise allows for tons of very subtle
differences so I was kind of surprised by this. I was wondering if
there was a reason for this or if maybe something was wrong on my end?
When I try to use a fractional tempo it comes back as an error.

I know I can change the durations if I want these fractional BPMs but
it's just nicer to have it in the tempo indicator.

Thanks for any information,
David Bellows

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

Date2016-09-26 22:24
FromSteven Yi
SubjectRe: Fractional tempi
Hi David,

I think you may have the syntax incorrect for t-statements:

1. The statement should begin with "t" and not "-t".
2. The values that follow should be in pairs. For example, "t 0 60 4
90" would read as "at beat 0, tempo is 60, and at beat 4, tempo is
90".

This should be documented in the manual:

http://csound.github.io/docs/manual/t.html

steven


On Mon, Sep 26, 2016 at 5:04 PM, David Bellows  wrote:
> In my Csound files (.csd) I set the tempo in the header like:
>
> -t 90
>
> It seems to work fine. One thing it won't do (Csound 6.04) is let me
> use fractional tempi like 90.3 or whatever. I know the difference is
> very subtle but Csound otherwise allows for tons of very subtle
> differences so I was kind of surprised by this. I was wondering if
> there was a reason for this or if maybe something was wrong on my end?
> When I try to use a fractional tempo it comes back as an error.
>
> I know I can change the durations if I want these fractional BPMs but
> it's just nicer to have it in the tempo indicator.
>
> Thanks for any information,
> David Bellows
>
> 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

Date2016-09-26 22:47
FromDavid Bellows
SubjectRe: Fractional tempi
Hi Steven,

I am using the -t option in my  section as mentioned here:
http://csound.github.io/docs/manual/CommandFlags.html#FlagsMinusLowerT
and as I mentioned above it seems to work like I expect it to except
with fractional tempi. It's entirely possible I've completely
misunderstood the point of that command.

That said, moving it down to the score section like in your link the
fractional values now work. I now have code to rewrite!

So I guess the problem is solved.

Thank you very much!
Dave



On Mon, Sep 26, 2016 at 2:24 PM, Steven Yi  wrote:
> Hi David,
>
> I think you may have the syntax incorrect for t-statements:
>
> 1. The statement should begin with "t" and not "-t".
> 2. The values that follow should be in pairs. For example, "t 0 60 4
> 90" would read as "at beat 0, tempo is 60, and at beat 4, tempo is
> 90".
>
> This should be documented in the manual:
>
> http://csound.github.io/docs/manual/t.html
>
> steven
>
>
> On Mon, Sep 26, 2016 at 5:04 PM, David Bellows  wrote:
>> In my Csound files (.csd) I set the tempo in the header like:
>>
>> -t 90
>>
>> It seems to work fine. One thing it won't do (Csound 6.04) is let me
>> use fractional tempi like 90.3 or whatever. I know the difference is
>> very subtle but Csound otherwise allows for tons of very subtle
>> differences so I was kind of surprised by this. I was wondering if
>> there was a reason for this or if maybe something was wrong on my end?
>> When I try to use a fractional tempo it comes back as an error.
>>
>> I know I can change the durations if I want these fractional BPMs but
>> it's just nicer to have it in the tempo indicator.
>>
>> Thanks for any information,
>> David Bellows
>>
>> 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

Date2016-09-26 22:56
FromJohn ff
SubjectRe: Fractional tempi

It is entirely possible that the argument decode does not accept floats. Will look

Sent from TypeApp

On 26 Sep 2016, at 22:47, David Bellows <davebellows@GMAIL.COM> wrote:
Hi Steven,

I am using the -t option in my <CsOptions> section as mentioned here:
http://csound.github.io/docs/manual/CommandFlags.html#FlagsMinusLowerT
and as I mentioned above it seems to work like I expect it to except
with fractional tempi. It's entirely possible I've completely
misunderstood the point of that command.

That said, moving it down to the score section like in your link the
fractional values now work. I now have code to rewrite!

So I guess the problem is solved.

Thank you very much!
Dave



On Mon, Sep 26, 2016 at 2:24 PM, Steven Yi <stevenyi@gmail.com> wrote:
Hi David,

I think you may have the syntax incorrect for t-statements:

1. The statement should begin with "t" and not "-t".
2. The values that follow should be in pairs. For example, "t 0 60 4
90" would read as "at beat 0, tempo is 60, and at beat 4, tempo is
90".

This should be documented in the manual:

http://csound.github.io/docs/manual/t.html

steven


On Mon, Sep 26, 2016 at 5:04 PM, David Bellows <davebellows@gmail.com> wrote:
In my Csound files (.csd) I set the tempo in the header like:

-t 90

It seems to work fine. One thing it won't do (Csound 6.04) is let me
use fractional tempi like 90.3 or whatever. I know the difference is
very subtle but Csound otherwise allows for tons of very subtle
differences so I was kind of surprised by this. I was wondering if
there was a reason for this or if maybe something was wrong on my end?
When I try to use a fractional tempo it comes back as an error.

I know I can change the durations if I want these fractional BPMs but
it's just nicer to have it in the tempo indicator.

Thanks for any information,
David Bellows

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=CSOU ND
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

Date2016-09-27 14:17
FromSteven Yi
SubjectRe: Fractional tempi
Hi Dave,

Glad that worked out for you!  I see now what you mean about -t and
CsOptions and I had not realized you were talking about that.  As John
points out, there seems to be an issue with accepting floats.  I saw
in argdecode that there is:

              sscanf(s, "%d%n", &val, &n); /* use this tempo .. */

John: Perhaps we need to use %g ? I have perhaps a related issue
popping up now with Blue changes that I'll post to the developer's
list in a moment.

steven

On Mon, Sep 26, 2016 at 5:56 PM, John ff  wrote:
> It is entirely possible that the argument decode does not accept floats.
> Will look
>
> Sent from TypeApp
>
> On 26 Sep 2016, at 22:47, David Bellows  wrote:
>>
>> Hi Steven,
>>
>> I am using the -t option in my  section as mentioned here:
>> http://csound.github.io/docs/manual/CommandFlags.html#FlagsMinusLowerT
>> and as I mentioned above it seems to work like I expect it to except
>> with fractional tempi. It's entirely possible I've completely
>> misunderstood the point of that command.
>>
>> That said, moving it down to the score section like in your link the
>> fractional values now work. I now have code to rewrite!
>>
>> So I guess the problem is solved.
>>
>> Thank you very much!
>> Dave
>>
>>
>>
>> On Mon, Sep 26, 2016 at 2:24 PM, Steven Yi  wrote:
>>>
>>>  Hi David,
>>>
>>>  I think you may have the syntax incorrect for t-statements:
>>>
>>>  1. The statement should begin
>>> with "t" and not "-t".
>>>  2. The values that follow should be in pairs. For example, "t 0 60 4
>>>  90" would read as "at beat 0, tempo is 60, and at beat 4, tempo is
>>>  90".
>>>
>>>  This should be documented in the manual:
>>>
>>>  http://csound.github.io/docs/manual/t.html
>>>
>>>  steven
>>>
>>>
>>>  On Mon, Sep 26, 2016 at 5:04 PM, David Bellows 
>>> wrote:
>>>>
>>>>  In my Csound files (.csd) I set the tempo in the header like:
>>>>
>>>>  -t 90
>>>>
>>>>  It seems to work fine. One thing it won't do (Csound 6.04) is let me
>>>>  use fractional tempi like 90.3 or whatever. I know the difference is
>>>>  very subtle but Csound otherwise allows for tons of very subtle
>>>>  differences so I was kind of surprised by this. I was wondering if
>>>>  there was a reason for this or if maybe something was wrong on
>>>> my end?
>>>>  When I try to use a fractional tempo it comes back as an error.
>>>>
>>>>  I know I can change the durations if I want these fractional BPMs but
>>>>  it's just nicer to have it in the tempo indicator.
>>>>
>>>>  Thanks for any information,
>>>>  David Bellows
>>>>
>>>>  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

Date2016-09-27 14:40
FromJohn ff
SubjectRe: Fractional tempi

Yes will change as soon as I get the computer on

Sent from TypeApp

On 27 Sep 2016, at 14:18, Steven Yi <stevenyi@GMAIL.COM> wrote:
Hi Dave,

Glad that worked out for you! I see now what you mean about -t and
CsOptions and I had not realized you were talking about that. As John
points out, there seems to be an issue with accepting floats. I saw
in argdecode that there is:

sscanf(s, "%d%n", &val, &n); /* use this tempo .. */

John: Perhaps we need to use %g ? I have perhaps a related issue
popping up now with Blue changes that I'll post to the developer's
list in a moment.

steven

On Mon, Sep 26, 2016 at 5:56 PM, John ff <jpff@codemist.co.uk> wrote:
It is entirely possible that the argument decode does not accept floats.
Will look

Sent from TypeApp

On 26 Sep 2016, at 22:47, David Bellows <davebellows@GMAIL.COM> wrote:

Hi Steven,

I am using the -t option in my <CsOptions> section as mentioned here:
http://csound.github.io/docs/manual/CommandFlags.html#FlagsMinusLowerT
and as I mentioned above it seems to work like I expect it to except
with fractional tempi. It's entirely possible I've completely
misunderstood the point of that command.

That said, moving it down to the score section like in your link the
fractional values now work. I now have code to rewrite!

So I guess the problem is solved.

Thank you very much!
Dave



On Mon, Sep 26, 2016 at 2:24 PM, Steven Yi <stevenyi@ gmail.com> wrote:

Hi David,

I think you may have the syntax incorrect for t-statements:

1. The statement should begin
with "t" and not "-t".
2. The values that follow should be in pairs. For example, "t 0 60 4
90" would read as "at beat 0, tempo is 60, and at beat 4, tempo is
90".

This should be documented in the manual:

http://csound.github.io/docs/manual/t.html

steven


On Mon, Sep 26, 2016 at 5:04 PM, David Bellows <davebellows@gmail.com>
wrote:

In my Csound files (.csd) I set the tempo in the header like:

-t 90

It seems to work fine. One thing it won't do (Csound 6 .04) is let me
use fractional tempi like 90.3 or whatever. I know the difference is
very subtle but Csound otherwise allows for tons of very subtle
differences so I was kind of surprised by this. I was wondering if
there was a reason for this or if maybe something was wrong on
my end?
When I try to use a fractional tempo it comes back as an error.

I know I can change the durations if I want these fractional BPMs but
it's just nicer to have it in the tempo indicator.

Thanks for any information,
David Bellows

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.c om/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

Date2016-09-27 15:00
Fromjpff
SubjectRe: Fractional tempi
I have made the change including fix to OPARMS.  Also changed settempo to 
reflect  this

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

Date2016-09-27 16:59
FromSteven Yi
SubjectRe: Fractional tempi
Thanks!

On Tue, Sep 27, 2016 at 10:00 AM, jpff  wrote:
> I have made the change including fix to OPARMS.  Also changed settempo to
> reflect  this
>
>
> 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