Csound Csound-dev Csound-tekno Search About

[Csnd] detect tempo from instrument

Date2011-11-08 11:14
FromTarmo Johannes
Subject[Csnd] detect tempo from instrument
Hello,

if I set a tempo in the score with t statement and then want to make metro  beat the exact beats, how do I find out about the tempo that is valid in the according sction of the score?

like

instr 1
	ktempo 
	metro ktempo/60
endin



t 0 40
i 1 0 8
s

t 0 120
i1 0 8
s



I know there is opcode tempoval but t it is said to work only if the tempo is set by the -t flag in the command line.



thanks!

tarmo


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"

Date2011-11-08 12:07
FromTarmo Johannes
SubjectRe: [Csnd] detect tempo from instrument
don't bother,

I found it out, it is the

ksig miditempo

have a good day!
tarmo

On Tuesday, November 08, 2011 01:14:32 PM Tarmo Johannes wrote:
> Hello,
> 
> if I set a tempo in the score with t statement and then want to make metro  beat the exact beats, how do I find out about the tempo that is valid in the according sction of the score?
> 
> like
> 
> instr 1
> 	ktempo 
> 	metro ktempo/60
> endin
> 
> 
> 
> t 0 40
> i 1 0 8
> s
> 
> t 0 120
> i1 0 8
> s
> 
> 
> 
> I know there is opcode tempoval but t it is said to work only if the tempo is set by the -t flag in the command line.
> 
> 
> 
> thanks!
> 
> tarmo
> 
> 
> 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"
> 
> 


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"

Date2011-11-08 17:01
Fromjoachim heintz
SubjectRe: [Csnd] detect tempo from instrument
another choice should be tempoval.
ciao -
	joachim

Am 08.11.2011 13:07, schrieb Tarmo Johannes:
> don't bother,
> 
> I found it out, it is the
> 
> ksig miditempo
> 
> have a good day!
> tarmo
> 
> On Tuesday, November 08, 2011 01:14:32 PM Tarmo Johannes wrote:
>> Hello,
>>
>> if I set a tempo in the score with t statement and then want to make metro  beat the exact beats, how do I find out about the tempo that is valid in the according sction of the score?
>>
>> like
>>
>> instr 1
>> 	ktempo 
>> 	metro ktempo/60
>> endin
>>
>> 
>>
>> t 0 40
>> i 1 0 8
>> s
>>
>> t 0 120
>> i1 0 8
>> s
>>
>> 
>>
>> I know there is opcode tempoval but t it is said to work only if the tempo is set by the -t flag in the command line.
>>
>>
>>
>> thanks!
>>
>> tarmo
>>
>>
>> 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"
>>
>>
> 
> 
> 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"
> 
> 


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"

Date2011-11-20 00:34
FromTarmo Johannes
SubjectRe: [Csnd] detect tempo from instrument
hello,

still, is there a way to find out what is the tempo of a moment if a t statement in the score is doing accelrando (or ritardando)?

like

t 0 60 10 120 

And I want to be aware of the tempo of the moment in the orchestra?

Or is it only possibly to do by using 

something like

ktempo line 60, 10, 120
tempo ktempo, 60


( I am working on a multi-channel sound and/or light metronome)

Steven, can you tell, how is the use of the tempo track solved in Blue? Can I read the state of the tempo line within an csound instrument?

thank you,
tarmo


On Tuesday 08 November 2011 19:01:32 joachim heintz wrote:
> another choice should be tempoval.
> ciao -
> 	joachim
> 
> Am 08.11.2011 13:07, schrieb Tarmo Johannes:
> > don't bother,
> > 
> > I found it out, it is the
> > 
> > ksig miditempo
> > 
> > have a good day!
> > tarmo
> > 
> > On Tuesday, November 08, 2011 01:14:32 PM Tarmo Johannes wrote:
> >> Hello,
> >>
> >> if I set a tempo in the score with t statement and then want to make metro  beat the exact beats, how do I find out about the tempo that is valid in the according sction of the score?
> >>
> >> like
> >>
> >> instr 1
> >> 	ktempo 
> >> 	metro ktempo/60
> >> endin
> >>
> >> 
> >>
> >> t 0 40
> >> i 1 0 8
> >> s
> >>
> >> t 0 120
> >> i1 0 8
> >> s
> >>
> >> 
> >>
> >> I know there is opcode tempoval but t it is said to work only if the tempo is set by the -t flag in the command line.
> >>
> >>
> >>
> >> thanks!
> >>
> >> tarmo
> >>
> >>
> >> 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"
> >>
> >>
> > 
> > 
> > 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"
> > 
> > 
> 
> 
> 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"
> 
> 


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"

Date2011-11-20 01:00
FromSteven Yi
SubjectRe: [Csnd] detect tempo from instrument
Hi Tarmo,

Csound will process the score with the t-statement but does so before
running; it actually adjusts the times of the notes.  So, by the time
csound is actually running the score, there is no concept of
t-statement anymore, as the score is pre-adjusted.  It's for this
reason that live notes passed to csound do not get affected by any
t-statement that might be in the pre-written score.

blue does not offer any thing at the moment to have a way to read the
tempo that was used during the t-statement, but I imagine it could.
It would essentially use the same technique that one could do by hand,
which would be to create an instrument that generates what the score
tempo would be.  For example, for a t-statement like such:

t0 60 5 120

you could create an instrument like:

instr tempo
istartTempo = p4
iendTempo = p5
ktempo line p4, p3, p5
chnset "tempo", ktempo
endin

then write a score that matches the tempos in the t-statement

i "tempo" 0 5 60 120

that should then itself get processed by the t-statement, but would
give you the original times when read with chnset.

I haven't tried this, I imagine that would work fine.  If you give it
a go, I'd love to know if it works. :P  Also, if it does work, I'll
add it to blue to automatically generate that instrument and set of
notes to have as a default feature.

Thanks!
steven

On Sun, Nov 20, 2011 at 12:34 AM, Tarmo Johannes  wrote:
> hello,
>
> still, is there a way to find out what is the tempo of a moment if a t statement in the score is doing accelrando (or ritardando)?
>
> like
>
> t 0 60 10 120
>
> And I want to be aware of the tempo of the moment in the orchestra?
>
> Or is it only possibly to do by using
>
> something like
>
> ktempo line 60, 10, 120
> tempo ktempo, 60
>
>
> ( I am working on a multi-channel sound and/or light metronome)
>
> Steven, can you tell, how is the use of the tempo track solved in Blue? Can I read the state of the tempo line within an csound instrument?
>
> thank you,
> tarmo
>
>
> On Tuesday 08 November 2011 19:01:32 joachim heintz wrote:
>> another choice should be tempoval.
>> ciao -
>>       joachim
>>
>> Am 08.11.2011 13:07, schrieb Tarmo Johannes:
>> > don't bother,
>> >
>> > I found it out, it is the
>> >
>> > ksig miditempo
>> >
>> > have a good day!
>> > tarmo
>> >
>> > On Tuesday, November 08, 2011 01:14:32 PM Tarmo Johannes wrote:
>> >> Hello,
>> >>
>> >> if I set a tempo in the score with t statement and then want to make metro  beat the exact beats, how do I find out about the tempo that is valid in the according sction of the score?
>> >>
>> >> like
>> >>
>> >> instr 1
>> >>    ktempo 
>> >>    metro ktempo/60
>> >> endin
>> >>
>> >> 
>> >>
>> >> t 0 40
>> >> i 1 0 8
>> >> s
>> >>
>> >> t 0 120
>> >> i1 0 8
>> >> s
>> >>
>> >> 
>> >>
>> >> I know there is opcode tempoval but t it is said to work only if the tempo is set by the -t flag in the command line.
>> >>
>> >>
>> >>
>> >> thanks!
>> >>
>> >> tarmo
>> >>
>> >>
>> >> 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"
>> >>
>> >>
>> >
>> >
>> > 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"
>> >
>> >
>>
>>
>> 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"
>>
>>
>
>
> 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"
>
>


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"