Csound Csound-dev Csound-tekno Search About

[Csnd] metro as trigger - question

Date2017-11-14 22:13
FromMatihuelo
Subject[Csnd] metro as trigger - question
Hello everyone,

I want to use metro to trigger a schedkwhen opcode but the frequency values
smaller than 1 don't seem to work in the following lines. I think this might
be related with the
loop in the score section, but I can't seem to solve it. 

Any suggestions?

Thanks a lot,

Matias

----



-odac -d



sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1

instr 1

ktrig		metro	.2
ifrq		=		200

schedkwhen ktrig, 0, 0, 2, 0, 2, ifrq

endin


instr 2

kenv		expon		1, p3, .0001
aSig		poscil	.75*kenv, p4

outs		aSig, aSig

endin



{1000 X
i1	$X 1
}






--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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

Date2017-11-15 00:29
FromIain McCurdy
SubjectRe: [Csnd] metro as trigger - question

Your score loop is generating a stream of note events for instrument 1, each of duration of one second and spaced apart by one second so we wouldn't expect more that one trigger per note to come from metro if the frequency is less than 1. If you just want a stream of rapid note events why note just get instr 1 to play a single long note and let metro/schedkwhen do the rest?  


Iain




From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Matihuelo <matias.hancke@GMAIL.COM>
Sent: 14 November 2017 22:13
To: CSOUND@LISTSERV.HEANET.IE
Subject: [Csnd] metro as trigger - question
 
Hello everyone,

I want to use metro to trigger a schedkwhen opcode but the frequency values
smaller than 1 don't seem to work in the following lines. I think this might
be related with the
loop in the score section, but I can't seem to solve it.

Any suggestions?

Thanks a lot,

Matias

----

<CsoundSynthesizer>
<CsOptions>
-odac -d
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1

instr 1

ktrig           metro   .2
ifrq            =               200

schedkwhen ktrig, 0, 0, 2, 0, 2, ifrq

endin


instr 2

kenv            expon           1, p3, .0001
aSig            poscil  .75*kenv, p4

outs            aSig, aSig

endin

</CsInstruments>
<CsScore>
{1000 X
i1      $X 1
}
</CsScore>
</CsoundSynthesizer>




--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html



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

Date2017-11-15 14:18
FromMatías Hancke
SubjectRe: [Csnd] metro as trigger - question
Hi Iain,

That was very helpful, thank you - I was misunderstanding how the { - } statement works.
The thing is that I want to  be able to edit the code while Csound is running; that’s why I don’t want long notes.

Thanks again,

Matias




On 15. Nov 2017, at 01:29, Iain McCurdy <i_mccurdy@HOTMAIL.COM> wrote:

Your score loop is generating a stream of note events for instrument 1, each of duration of one second and spaced apart by one second so we wouldn't expect more that one trigger per note to come from metro if the frequency is less than 1. If you just want a stream of rapid note events why note just get instr 1 to play a single long note and let metro/schedkwhen do the rest?  

Iain



From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Matihuelo <matias.hancke@GMAIL.COM>
Sent: 14 November 2017 22:13
To: CSOUND@LISTSERV.HEANET.IE
Subject: [Csnd] metro as trigger - question
 
Hello everyone,

I want to use metro to trigger a schedkwhen opcode but the frequency values
smaller than 1 don't seem to work in the following lines. I think this might
be related with the
loop in the score section, but I can't seem to solve it. 

Any suggestions?

Thanks a lot,

Matias

----

<CsoundSynthesizer>
<CsOptions>
-odac -d
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1

instr 1

ktrig           metro   .2
ifrq            =               200

schedkwhen ktrig, 0, 0, 2, 0, 2, ifrq

endin


instr 2

kenv            expon           1, p3, .0001
aSig            poscil  .75*kenv, p4

outs            aSig, aSig

endin

</CsInstruments>
<CsScore>
{1000 X
i1      $X 1
}
</CsScore>
</CsoundSynthesizer>




--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html



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 tohttps://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2017-11-15 23:14
Fromthorin kerr
SubjectRe: [Csnd] metro as trigger - question
If you want to edit your trigger instrument while it is running, then instead of metro you could use a pattern like this:

instr 1

schedule 2, 0, 1, 200

schedule p1, 0.5, 1 ;p2 controls your tempo
endin

;;then just use a single score event (i1 0 1) to get things started.



On 16 Nov 2017 1:18 AM, "Matías Hancke" <matias.hancke@gmail.com> wrote:
Hi Iain,

That was very helpful, thank you - I was misunderstanding how the { - } statement works.
The thing is that I want to  be able to edit the code while Csound is running; that’s why I don’t want long notes.

Thanks again,

Matias




On 15. Nov 2017, at 01:29, Iain McCurdy <i_mccurdy@HOTMAIL.COM> wrote:

Your score loop is generating a stream of note events for instrument 1, each of duration of one second and spaced apart by one second so we wouldn't expect more that one trigger per note to come from metro if the frequency is less than 1. If you just want a stream of rapid note events why note just get instr 1 to play a single long note and let metro/schedkwhen do the rest?  

Iain



From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Matihuelo <matias.hancke@GMAIL.COM>
Sent: 14 November 2017 22:13
To: CSOUND@LISTSERV.HEANET.IE
Subject: [Csnd] metro as trigger - question
 
Hello everyone,

I want to use metro to trigger a schedkwhen opcode but the frequency values
smaller than 1 don't seem to work in the following lines. I think this might
be related with the
loop in the score section, but I can't seem to solve it. 

Any suggestions?

Thanks a lot,

Matias

----

<CsoundSynthesizer>
<CsOptions>
-odac -d
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1

instr 1

ktrig           metro   .2
ifrq            =               200

schedkwhen ktrig, 0, 0, 2, 0, 2, ifrq

endin


instr 2

kenv            expon           1, p3, .0001
aSig            poscil  .75*kenv, p4

outs            aSig, aSig

endin

</CsInstruments>
<CsScore>
{1000 X
i1      $X 1
}
</CsScore>
</CsoundSynthesizer>




--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
This forum is an archive for the mailing list csound@listserv.heanet.ie (more options) Messages posted here will be sent to this mailing list.



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
csound - Main repository for Csound ... Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the ...


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 tohttps://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
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

Date2017-11-16 17:00
FromMatías Hancke
SubjectRe: [Csnd] metro as trigger - question
Thanks Thorin, that’s very useful!

Matias



On 16. Nov 2017, at 00:14, thorin kerr <thorin.kerr@GMAIL.COM> wrote:

If you want to edit your trigger instrument while it is running, then instead of metro you could use a pattern like this:

instr 1

schedule 2, 0, 1, 200

schedule p1, 0.5, 1 ;p2 controls your tempo
endin

;;then just use a single score event (i1 0 1) to get things started.



On 16 Nov 2017 1:18 AM, "Matías Hancke" <matias.hancke@gmail.com> wrote:
Hi Iain,

That was very helpful, thank you - I was misunderstanding how the { - } statement works.
The thing is that I want to  be able to edit the code while Csound is running; that’s why I don’t want long notes.

Thanks again,

Matias




On 15. Nov 2017, at 01:29, Iain McCurdy <i_mccurdy@HOTMAIL.COM> wrote:

Your score loop is generating a stream of note events for instrument 1, each of duration of one second and spaced apart by one second so we wouldn't expect more that one trigger per note to come from metro if the frequency is less than 1. If you just want a stream of rapid note events why note just get instr 1 to play a single long note and let metro/schedkwhen do the rest?  

Iain



From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Matihuelo <matias.hancke@GMAIL.COM>
Sent: 14 November 2017 22:13
To: CSOUND@LISTSERV.HEANET.IE
Subject: [Csnd] metro as trigger - question
 
Hello everyone,

I want to use metro to trigger a schedkwhen opcode but the frequency values
smaller than 1 don't seem to work in the following lines. I think this might
be related with the
loop in the score section, but I can't seem to solve it. 

Any suggestions?

Thanks a lot,

Matias

----

<CsoundSynthesizer>
<CsOptions>
-odac -d
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1

instr 1

ktrig           metro   .2
ifrq            =               200

schedkwhen ktrig, 0, 0, 2, 0, 2, ifrq

endin


instr 2

kenv            expon           1, p3, .0001
aSig            poscil  .75*kenv, p4

outs            aSig, aSig

endin

</CsInstruments>
<CsScore>
{1000 X
i1      $X 1
}
</CsScore>
</CsoundSynthesizer>




--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
This forum is an archive for the mailing list csound@listserv.heanet.ie (more options) Messages posted here will be sent to this mailing list.



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
csound - Main repository for Csound ... Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the ...


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 tohttps://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
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