Csound Csound-dev Csound-tekno Search About

[Cs-dev] fast forward function?

Date2006-03-09 23:16
FromRory Walsh
Subject[Cs-dev] fast forward function?
Hi everyone, I'm aware that there is a score rewind function, however I 
could not find a score fast forward function, is there one? And if so 
what is it's name? Cheers,
Rory.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-03-09 23:33
FromIstvan Varga
SubjectRe: [Cs-dev] fast forward function?
AttachmentsNone  

Date2006-03-10 00:04
FromRory Walsh
SubjectRe: [Cs-dev] fast forward function?
Thanks Istvan, I remember seeing that function before but had forgotten 
the name of it, cheers.
Rory.

Istvan Varga wrote:
> On Friday 10 March 2006 00:16, Rory Walsh wrote:
> 
>> Hi everyone, I'm aware that there is a score rewind function, however I 
>> could not find a score fast forward function, is there one? And if so 
>> what is it's name?
> 
> You can set the current score time (i.e. seek to any position) with
> csoundSetScoreOffsetSeconds(), and, for forward seek only, also by
> creating an 'a' real time event. Setting the playback time also works
> on MIDI files, by the way. Note that these really work as a "fast
> forward" so the next call to perform will take a longer time to
> execute. If you skip the beginning of a note, that note is not
> triggered.
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-03-10 00:28
FromRory Walsh
SubjectRe: [Cs-dev] fast forward function?
I just tried that but I am not doing it right it seems. I'm just 
wondering when is the correct time to call the function? For the moment 
I create an instance of csound, I compile is with csoundCompile(), then 
I start the thread with csoundCreateThread(), it plays and I reset the 
csound. I then try csoundSetScoreOffset(), recompile and restart the 
thread. Should I be compiling first before any call is made to 
csoundSetScoreOffset()? I would try this but from the way I have 
implemented my program it's not so straightforward so perhaps you can 
give me a heads-up before I go rearranged the order in which I execute 
my API calls. Thanks again,

Rory.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-03-10 10:33
FromIstvan Varga
SubjectRe: [Cs-dev] fast forward function?
AttachmentsNone  

Date2006-03-10 17:24
FromRory Walsh
SubjectRe: [Cs-dev] fast forward function?
I wasn't aware of the -+skip_seconds, this seems like it might be best 
and easiest way for me to do what I want. Cheers,
Rory.

Istvan Varga wrote:
> If you reset, set the score offset, and then recompile, then the score
> offset is lost because the compile also implies reset unless you call
> csoundPreCompile() first (which also resets by the way). So, you can
> either set the score offset between calling csoundPreCompile() and
> csoundCompile() (in this case, it may be overridden by the
> -+skip_seconds command line flag), or directly after csoundCompile(),
> or after any perform calls that returned zero.
> Note that if you are performing in a separate thread, then setting the
> offset (and in fact, most other Csound API calls using that particular
> instance) while the thread is running should be done from the thread.
> 
> On Friday 10 March 2006 01:28, Rory Walsh wrote:
> 
>> I just tried that but I am not doing it right it seems. I'm just 
>> wondering when is the correct time to call the function? For the moment 
>> I create an instance of csound, I compile is with csoundCompile(), then 
>> I start the thread with csoundCreateThread(), it plays and I reset the 
>> csound. I then try csoundSetScoreOffset(), recompile and restart the 
>> thread. Should I be compiling first before any call is made to 
>> csoundSetScoreOffset()? I would try this but from the way I have 
>> implemented my program it's not so straightforward so perhaps you can 
>> give me a heads-up before I go rearranged the order in which I execute 
>> my API calls. Thanks again,
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-03-10 17:56
FromRory Walsh
SubjectRe: [Cs-dev] fast forward function?
Or maybe not. At the moment I have an instrument that plays a sound 
using soundin, this sound is then being written to a delay line. I would 
like to skip forward until just after the sound has been written to the 
delay line and then start the playback? Otherwise I have to listen to 
the first 30 seconds of the piece over and over again. I guess this 
means that I will need to use csoundSetScoreOffset after all. Thanks 
again for all the help,

Rory.


Rory Walsh wrote:
> I wasn't aware of the -+skip_seconds, this seems like it might be best 
> and easiest way for me to do what I want. Cheers,
> Rory.
> 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-03-10 18:04
FromRory Walsh
SubjectRe: [Cs-dev] fast forward function?
Now I get it. That won't work either. So does any one know a way to do 
what I want?

Rory.

Rory Walsh wrote:
> Or maybe not. At the moment I have an instrument that plays a sound 
> using soundin, this sound is then being written to a delay line. I would 
> like to skip forward until just after the sound has been written to the 
> delay line and then start the playback? Otherwise I have to listen to 
> the first 30 seconds of the piece over and over again. I guess this 
> means that I will need to use csoundSetScoreOffset after all. Thanks 
> again for all the help,
> 
> Rory.
> 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-03-10 18:37
FromRory Walsh
SubjectRe: [Cs-dev] fast forward function?
Duh! Kindly disregard the question and let's pretend I didn't ask....

Rory.

Rory Walsh wrote:
> Now I get it. That won't work either. So does any one know a way to do 
> what I want?
> 
> Rory.
> 
> Rory Walsh wrote:
>> Or maybe not. At the moment I have an instrument that plays a sound 
>> using soundin, this sound is then being written to a delay line. I 
>> would like to skip forward until just after the sound has been written 
>> to the delay line and then start the playback? Otherwise I have to 
>> listen to the first 30 seconds of the piece over and over again. I 
>> guess this means that I will need to use csoundSetScoreOffset after 
>> all. Thanks again for all the help,
>>
>> Rory.
>>
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live 
> webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net