Csound Csound-dev Csound-tekno Search About

[Csnd] accelerando

Date2013-03-24 08:11
FromStefan Thomas
Subject[Csnd] accelerando
Dear community,
if I would like to create a acellerando, starting from e.g. p3=0 to p3=1 in e.g. 5 notes, how could I do that in a musically way, or, what could be a formula for that?

Date2013-03-24 12:32
FromRichard Dobson
SubjectRe: [Csnd] accelerando
On 24/03/2013 08:11, Stefan Thomas wrote:
> Dear community,
> if I would like to create a acellerando, starting from e.g. p3=0 to p3=1
> in e.g. 5 notes, how could I do that in a musically way, or, what could
> be a formula for that?

Have you tried the score tempo statement? You can specify time-stamped 
changes.

Richard Dobson


Date2013-03-24 13:03
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] accelerando
Are you asking whether an accelerando should be linear or exponential?

> On 24/03/2013 08:11, Stefan Thomas wrote:
>> Dear community,
>> if I would like to create a acellerando, starting from e.g. p3=0 to p3=1
>> in e.g. 5 notes, how could I do that in a musically way, or, what could
>> be a formula for that?
>
> Have you tried the score tempo statement? You can specify time-stamped
> changes.
>
> Richard Dobson
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>
>



Date2013-03-24 15:35
FromStefan Thomas
SubjectRe: [Csnd] accelerando
The tempo-statement, I guess, can't be used, when I want to use different accelerandos in different voices.
I would like to use exponential acellerandos.

2013/3/24 Richard Dobson <richarddobson@blueyonder.co.uk>
On 24/03/2013 08:11, Stefan Thomas wrote:
Dear community,
if I would like to create a acellerando, starting from e.g. p3=0 to p3=1
in e.g. 5 notes, how could I do that in a musically way, or, what could
be a formula for that?

Have you tried the score tempo statement? You can specify time-stamped changes.

Richard Dobson



Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2013-03-24 16:08
FromRuben Sverre Gjertsen
SubjectRe: [Csnd] accelerando

If you use Open Music to generate the scores, you can calculate accelerando curves there, then export with the OM2Csound library. I find that the easiest.
Ruben


Den 24. mars 2013 kl. 16.35 skrev Stefan Thomas:

The tempo-statement, I guess, can't be used, when I want to use different accelerandos in different voices.
I would like to use exponential acellerandos.

2013/3/24 Richard Dobson <richarddobson@blueyonder.co.uk>
On 24/03/2013 08:11, Stefan Thomas wrote:
Dear community,
if I would like to create a acellerando, starting from e.g. p3=0 to p3=1
in e.g. 5 notes, how could I do that in a musically way, or, what could
be a formula for that?

Have you tried the score tempo statement? You can specify time-stamped changes.

Richard Dobson



Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2013-03-24 18:02
FromTarmo Johannes
SubjectRe: [Csnd] accelerando

Calculating accelerando of tempo to time intervals in seconds is a bit complicated matter but there have been some discussion about it in the list:

 

http://csound.1045644.n5.nabble.com/The-math-behind-gradual-tempo-changes-td3350632.html

 

http://csound.1045644.n5.nabble.com/Calculating-Seconds-to-Beats-in-TimeWarp-td1098542.html

 

from the latter thead have look to the formulas by Istvan Varga in his attached files timeconv.txt and the accompaning python files

 

hope it helps further.

 

best!

 

tarmo

 

--------

 

copy of the text file:

 

beat: time in beats

time: time in seconds
tempo: beats per minute
btime: 60 / tempo

beat0: time in beats at beginning of segment
beat1: time in beats at end of segment
time0: time in seconds at beginning of segment
time1: time in seconds at end of segment
btime0: (60 / tempo) at beginning of segment
btime1: (60 / tempo) at end of segment

========================================================================

BEAT => TIME

x = beat - beat0
btime(x) = btime0 + ((btime1 - btime0) * x / (beat1 - beat0))
time(x) = time0 + (btime0 * x) + (0.5 * (btime1 - btime0) * x * x / (beat1 - beat0))

========================================================================

TIME => BEAT

a = 0.5 * (btime1 - btime0) / (beat1 - beat0)
b = btime0
c = time0 - time
x = (sqrt(b*b - 4*a*c) - b) / (2 * a)
beat = x + beat0

 

 

 

On Sunday 24 March 2013 17:08:20 Ruben Sverre Gjertsen wrote:


If you use Open Music to generate the scores, you can calculate accelerando curves there, then export with the OM2Csound library. I find that the easiest.

Ruben



Den 24. mars 2013 kl. 16.35 skrev Stefan Thomas:

The tempo-statement, I guess, can't be used, when I want to use different accelerandos in different voices.
I would like to use exponential acellerandos.

2013/3/24 Richard Dobson <richarddobson@blueyonder.co.uk>

On 24/03/2013 08:11, Stefan Thomas wrote:

Dear community,
if I would like to create a acellerando, starting from e.g. p3=0 to p3=1
in e.g. 5 notes, how could I do that in a musically way, or, what could
be a formula for that?


Have you tried the score tempo statement? You can specify time-stamped changes.

Richard Dobson



Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"






Date2013-03-24 19:38
FromStefan Thomas
SubjectRe: [Csnd] accelerando
Dear Tarmo,
thanks for the script.
I don't know, what to do with the tempo-parameter in the python scripts.
How can I do e.g. an strong accelerando from beat 0 to beat 2 in e.g. 4 steps? I would like to calculate when the single notes start.

2013/3/24 Tarmo Johannes <tarmo.johannes@otsakool.edu.ee>

Calculating accelerando of tempo to time intervals in seconds is a bit complicated matter but there have been some discussion about it in the list:

 

http://csound.1045644.n5.nabble.com/The-math-behind-gradual-tempo-changes-td3350632.html

 

http://csound.1045644.n5.nabble.com/Calculating-Seconds-to-Beats-in-TimeWarp-td1098542.html

 

from the latter thead have look to the formulas by Istvan Varga in his attached files timeconv.txt and the accompaning python files

 

hope it helps further.

 

best!

 

tarmo

 

--------

 

copy of the text file:

 

beat: time in beats

time: time in seconds
tempo: beats per minute
btime: 60 / tempo

beat0: time in beats at beginning of segment
beat1: time in beats at end of segment
time0: time in seconds at beginning of segment
time1: time in seconds at end of segment
btime0: (60 / tempo) at beginning of segment
btime1: (60 / tempo) at end of segment

========================================================================

BEAT => TIME

x = beat - beat0
btime(x) = btime0 + ((btime1 - btime0) * x / (beat1 - beat0))
time(x) = time0 + (btime0 * x) + (0.5 * (btime1 - btime0) * x * x / (beat1 - beat0))

========================================================================

TIME => BEAT

a = 0.5 * (btime1 - btime0) / (beat1 - beat0)
b = btime0
c = time0 - time
x = (sqrt(b*b - 4*a*c) - b) / (2 * a)
beat = x + beat0

 

 

 

On Sunday 24 March 2013 17:08:20 Ruben Sverre Gjertsen wrote:


If you use Open Music to generate the scores, you can calculate accelerando curves there, then export with the OM2Csound library. I find that the easiest.

Ruben



Den 24. mars 2013 kl. 16.35 skrev Stefan Thomas:

The tempo-statement, I guess, can't be used, when I want to use different accelerandos in different voices.
I would like to use exponential acellerandos.

2013/3/24 Richard Dobson <richarddobson@blueyonder.co.uk>

On 24/03/2013 08:11, Stefan Thomas wrote:

Dear community,
if I would like to create a acellerando, starting from e.g. p3=0 to p3=1
in e.g. 5 notes, how could I do that in a musically way, or, what could
be a formula for that?


Have you tried the score tempo statement? You can specify time-stamped changes.

Richard Dobson



Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"







Date2013-03-24 19:59
FromRuben Sverre Gjertsen
SubjectRe: [Csnd] accelerando
Hi,

I have an Open Music function that does this, called time-scaler:
It's a bit complicated to write a simple formula with the recursion, but it works.

Inputs are: 
List of chordseqs
Scaling factor MinMax, ex. (.5 1)
bpf tempo curve
Resolution, ex. 1000 

Output:
List of chordseqs

An accelerando split in 1000 or 10000 intervals would be quite smooth.
This would be better for the Open Music forum though.

Best
Ruben


Den 24. mars 2013 kl. 20.38 skrev Stefan Thomas:

Dear Tarmo,
thanks for the script.
I don't know, what to do with the tempo-parameter in the python scripts.
How can I do e.g. an strong accelerando from beat 0 to beat 2 in e.g. 4 steps? I would like to calculate when the single notes start.

2013/3/24 Tarmo Johannes <tarmo.johannes@otsakool.edu.ee>
Calculating accelerando of tempo to time intervals in seconds is a bit complicated matter but there have been some discussion about it in the list:

 

 

 

from the latter thead have look to the formulas by Istvan Varga in his attached files timeconv.txt and the accompaning python files

 

hope it helps further.

 

best!

 

tarmo

 

--------

 

copy of the text file:

 

beat: time in beats
time: time in seconds
tempo: beats per minute
btime: 60 / tempo

beat0: time in beats at beginning of segment
beat1: time in beats at end of segment
time0: time in seconds at beginning of segment
time1: time in seconds at end of segment
btime0: (60 / tempo) at beginning of segment
btime1: (60 / tempo) at end of segment

========================================================================

BEAT => TIME

x = beat - beat0
btime(x) = btime0 + ((btime1 - btime0) * x / (beat1 - beat0))
time(x) = time0 + (btime0 * x) + (0.5 * (btime1 - btime0) * x * x / (beat1 - beat0))

========================================================================

TIME => BEAT

a = 0.5 * (btime1 - btime0) / (beat1 - beat0)
b = btime0
c = time0 - time
x = (sqrt(b*b - 4*a*c) - b) / (2 * a)
beat = x + beat0

 

 

 

On Sunday 24 March 2013 17:08:20 Ruben Sverre Gjertsen wrote:


If you use Open Music to generate the scores, you can calculate accelerando curves there, then export with the OM2Csound library. I find that the easiest.
Ruben


Den 24. mars 2013 kl. 16.35 skrev Stefan Thomas:

The tempo-statement, I guess, can't be used, when I want to use different accelerandos in different voices.
I would like to use exponential acellerandos.

2013/3/24 Richard Dobson <richarddobson@blueyonder.co.uk>
On 24/03/2013 08:11, Stefan Thomas wrote:
Dear community,
if I would like to create a acellerando, starting from e.g. p3=0 to p3=1
in e.g. 5 notes, how could I do that in a musically way, or, what could
be a formula for that?

Have you tried the score tempo statement? You can specify time-stamped changes.

Richard Dobson



Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"








Date2013-03-24 20:00
FromStefan Thomas
SubjectRe: [Csnd] accelerando
Dear Ruben,
looks interesting, thanks!

2013/3/24 Ruben Sverre Gjertsen <ruben.gjertsen@grieg.uib.no>
Hi,

I have an Open Music function that does this, called time-scaler:
It's a bit complicated to write a simple formula with the recursion, but it works.

Inputs are: 
List of chordseqs
Scaling factor MinMax, ex. (.5 1)
bpf tempo curve
Resolution, ex. 1000 

Output:
List of chordseqs

An accelerando split in 1000 or 10000 intervals would be quite smooth.
This would be better for the Open Music forum though.

Best
Ruben


Den 24. mars 2013 kl. 20.38 skrev Stefan Thomas:

Dear Tarmo,
thanks for the script.
I don't know, what to do with the tempo-parameter in the python scripts.
How can I do e.g. an strong accelerando from beat 0 to beat 2 in e.g. 4 steps? I would like to calculate when the single notes start.

2013/3/24 Tarmo Johannes <tarmo.johannes@otsakool.edu.ee>
Calculating accelerando of tempo to time intervals in seconds is a bit complicated matter but there have been some discussion about it in the list:

 

 

 

from the latter thead have look to the formulas by Istvan Varga in his attached files timeconv.txt and the accompaning python files

 

hope it helps further.

 

best!

 

tarmo

 

--------

 

copy of the text file:

 

beat: time in beats
time: time in seconds
tempo: beats per minute
btime: 60 / tempo

beat0: time in beats at beginning of segment
beat1: time in beats at end of segment
time0: time in seconds at beginning of segment
time1: time in seconds at end of segment
btime0: (60 / tempo) at beginning of segment
btime1: (60 / tempo) at end of segment

========================================================================

BEAT => TIME

x = beat - beat0
btime(x) = btime0 + ((btime1 - btime0) * x / (beat1 - beat0))
time(x) = time0 + (btime0 * x) + (0.5 * (btime1 - btime0) * x * x / (beat1 - beat0))

========================================================================

TIME => BEAT

a = 0.5 * (btime1 - btime0) / (beat1 - beat0)
b = btime0
c = time0 - time
x = (sqrt(b*b - 4*a*c) - b) / (2 * a)
beat = x + beat0

 

 

 

On Sunday 24 March 2013 17:08:20 Ruben Sverre Gjertsen wrote:


If you use Open Music to generate the scores, you can calculate accelerando curves there, then export with the OM2Csound library. I find that the easiest.
Ruben


Den 24. mars 2013 kl. 16.35 skrev Stefan Thomas:

The tempo-statement, I guess, can't be used, when I want to use different accelerandos in different voices.
I would like to use exponential acellerandos.

2013/3/24 Richard Dobson <richarddobson@blueyonder.co.uk>
On 24/03/2013 08:11, Stefan Thomas wrote:
Dear community,
if I would like to create a acellerando, starting from e.g. p3=0 to p3=1
in e.g. 5 notes, how could I do that in a musically way, or, what could
be a formula for that?

Have you tried the score tempo statement? You can specify time-stamped changes.

Richard Dobson



Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"