Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

score durations #647

Open
tjingboem opened this issue Oct 16, 2022 · 2 comments
Open

score durations #647

tjingboem opened this issue Oct 16, 2022 · 2 comments

Comments

@tjingboem
Copy link
Member

put something somewhere somehow in the manual regarding this:

I should have completed: it will run forever like in the first example.

Why?

1 - in the first example, there is no numeric score, Csound runs forever. The scheduled instr 1  with p3=-1 will
run forever.

2 - in the second example, the first instr 1 with p3=-1 instance is immediately replaced by the instance with p3=1

3 - in the third example, the score runs to the end before any performance can be run.

4 - in the fourth example the score requires to run an f statement at time z (which is the end of times as far as we are concerned)
so Csound has to run until then. The i1 0 -1 then turns instrument 1 indefinitely on. 

========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 16 Oct 2022, at 16:39, Victor Lazzarini <[[email protected]](mailto:[email protected])> wrote:
>
> If you run one single instance of instr 1 with -1 it will run until Csound stops running. So the CSD
>
> <CsoundSynthesizer>
> <CsOptions>
> -odac
> </CsOptions>
> <CsInstruments>
> instr 1
> out oscili(0dbfs, A4)
> endin
> schedule(1,0,-1)
> </CsInstruments>
> <CsScore>
> </CsScore>
> </CsoundSynthesizer>
>
> Will run forever playing a 440Hz sine wave at full amplitude. But in this one
>
> <CsoundSynthesizer>
> <CsOptions>
> -odac
> </CsOptions>
> <CsInstruments>
> instr 1
> out oscili(0dbfs, A4)
> endin
> schedule(1,0,-1)
> schedule(1,0,1)
> </CsInstruments>
> <CsScore>
> </CsScore>
> </CsoundSynthesizer>
>
> the second instance will take over and run for 1 second.
>
> Equally
>
> <CsoundSynthesizer>
> <CsOptions>
> -odac
> </CsOptions>
> <CsInstruments>
> instr 1
> out oscili(0dbfs, A4)
> endin
> </CsInstruments>
> <CsScore>
> i1 0 -1
> </CsScore>
> </CsoundSynthesizer>
>
> will not even run because the performance will end immediately. But if you add f0 z
>
>
> <CsoundSynthesizer>
> <CsOptions>
> -odac
> </CsOptions>
> <CsInstruments>
> instr 1
> out oscili(0dbfs, A4)
> endin
> </CsInstruments>
> <CsScore>
> f0 z
> i1 0 -1
> </CsScore>
> </CsoundSynthesizer>
>
> ========================
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
@csounder
Copy link

csounder commented Oct 16, 2022 via email

@tjingboem
Copy link
Member Author

tjingboem commented Oct 16, 2022

The best place to integrate this knowledge would be the on the manual page of the 'i statement': https://csound.com/manual/i.html

Look into: links from
f0 z
always on
turnon
p3 with -1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants