Csound Csound-dev Csound-tekno Search About

Re: [Csnd] loscil loop points

Date2018-01-30 10:40
FromJoel Ramsbottom
SubjectRe: [Csnd] loscil loop points
I'm not getting sound yet. What kind of input is used for p3 in the score statement any?
My code looks somewhat like the following is this correct?

orc
			instr 	106					
a1, a2 loscil  10000, 1, 5, 1, 1  ;sample-based looping oscillator
ilen = ftlen 5
isr = ftsr(5)
p3 = ilen/isr
		out 	a1, a2
		endin
sco
i100 0 ?

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

Date2018-01-30 10:59
FromHlöðver Sigurðsson
SubjectRe: [Csnd] loscil loop points
The idea I had in mind with p3 is that you may want to send score events and play a sample only once, like pressing a key on a keyboard. But if you're looking to do an instrument that's running indefinetely, then you shouldn't put p3 there in the orchestra(your instrument). p3 = x is just replaceing the value of the p3 the score event was sending, I use it a lot when playing sample banks where the 1 sample is 0.5 sec mixed with 3 sec samples, and beforehand I don't know for how long the instrument needs to be running for the whole sample to get played troug, therefore I set the p3.

How are you going to trigger the instrument from pd, you want a button to play a sample once, or do you want maybe some sliders to modify k-rate values and loop the sample while the instrument is running indefinitely?

On 30 January 2018 at 11:40, Joel Ramsbottom <joel.ramsbottom@hotmail.co.uk> wrote:
I'm not getting sound yet. What kind of input is used for p3 in the score statement any?
My code looks somewhat like the following is this correct?

orc
                        instr   106
a1, a2 loscil  10000, 1, 5, 1, 1  ;sample-based looping oscillator
ilen = ftlen 5
isr = ftsr(5)
p3 = ilen/isr
                out     a1, a2
                endin
sco
i100 0 ?

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