[Csnd] metro as trigger - question
Date | 2017-11-14 22:13 |
From | Matihuelo |
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 ---- |
Date | 2017-11-15 00:29 | |||||||
From | Iain McCurdy | |||||||
Subject | Re: [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 |
Date | 2017-11-15 14:18 | |||||||
From | Matías Hancke | |||||||
Subject | Re: [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
|
Date | 2017-11-15 23:14 | |||||||
From | thorin kerr | |||||||
Subject | Re: [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:
|
Date | 2017-11-16 17:00 | |||||||
From | Matías Hancke | |||||||
Subject | Re: [Csnd] metro as trigger - question | |||||||
Thanks Thorin, that’s very useful! Matias
|