[Csnd] simple vco2 question
Date | 2017-11-18 10:37 |
From | Richard |
Subject | [Csnd] simple vco2 question |
This is driving me... Why does this simple alwayson instr not work?
instr vco kamp init .5 koct invalue "vcooct" ; octave kwave invalue "vcoout" ; waveform kwavetrig changed kwave kocttrig changed koct ikwaveform init 0 if (kwavetrig ==1 || kocttrig ==1) then reinit REINIT_VCO endif REINIT_VCO: if (kwave==1) then kwaveform = 0 ;SAW elseif (kwave==2) then kwaveform = 2 ; SQUARE elseif (kwave==3) then kwaveform = 12 ; TRIANGEL endif kfreq = p4 kamp = p5 printk2 kamp ;avco vco2 kamp, kfreq, i(kwaveform) ;avco vco2 kamp, kfreq avco vco2 .4, kfreq ; NO sound, only when I use the following line I get sound... ;avco vco2 .4,440 outs avco, avco rireturn endin
Richard |
Date | 2017-11-18 18:41 |
From | Steven Yi |
Subject | Re: [Csnd] simple vco2 question |
Could you try either: avco vco2 .4, p4 or kfreq init p4 and see what the results of either is? (Making some guesses; if neither fixes it, could you post a full CSD to test with?) On Sat, Nov 18, 2017 at 5:37 AM, Richard |
Date | 2017-11-18 20:26 |
From | Richard |
Subject | Re: [Csnd] simple vco2 question |
Attachments | Teisco100f.csd |
Neither of these works. Here's the full csd. It is a QtCsound project to emulate my first synthesizer, the Teisco (Kawai) 100F, as you can see in the GUI part. I just started off to make the VCO part work... Richard On 18/11/17 19:41, Steven Yi wrote: > avco vco2 .4, p4 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-18 20:58 |
From | Steven Yi |
Subject | Re: [Csnd] simple vco2 question |
I took a look, the problem is that you are using massign to make the keys retrigger instrument 1. If you change it to: massign 0, 2 so that Midi keys route to insttrument vco (which, gets assigned to 2 in this case) then sound comes out fine. On Sat, Nov 18, 2017 at 3:26 PM, Richard |
Date | 2017-11-18 22:10 |
From | Richard |
Subject | Re: [Csnd] simple vco2 question |
Thanks Steven! On 18/11/17 21:58, Steven Yi wrote: > I took a look, the problem is that you are using massign to make the > keys retrigger instrument 1. If you change it to: > > massign 0, 2 > > so that Midi keys route to insttrument vco (which, gets assigned to 2 > in this case) then sound comes out fine. > > On Sat, Nov 18, 2017 at 3:26 PM, Richard |
Date | 2017-11-19 12:12 |
From | Richard |
Subject | Re: [Csnd] simple vco2 question |
Another problem, why do I get this message (mostly when I change the wave form, but also just when playing: i2 2.00000 rtevent: T 1.922 TT 1.922 M: 0.20054 rtevent: T 2.424 TT 2.424 M: 0.18865 midiKeyCps: pfield: 4 value: 130 midiVelocity: pfield: 5 value: 36 INIT ERROR in instr 2: vco2: insufficient required arguments avco vco2 #k7 kfreq #i8 0 0 0 WARNING: Excess channels ignored The vco code is now: instr vco kfreq = p4 kamp = p5
kwavetrig changed gkwave kocttrig changed gkoct
if (kwavetrig ==1 || kocttrig ==1) then reinit REINIT_VCO endif REINIT_VCO: if (gkwave==1) then kwaveform = 0 ;SAW elseif (gkwave==2) then kwaveform = 2 ; SQUARE elseif (gkwave==3) then kwaveform = 12 ; TRIANGEL endif printk2 kwaveform kenv madsr 0.1, 0.8, 0.8, 0.5 avco vco2 kenv*kamp/127, kfreq, i(kwaveform) rireturn outs avco*gkVolume, avco*gkVolume endin On 18/11/17 21:58, Steven Yi wrote:
I took a look, the problem is that you are using massign to make the keys retrigger instrument 1. If you change it to: massign 0, 2 so that Midi keys route to insttrument vco (which, gets assigned to 2 in this case) then sound comes out fine. On Sat, Nov 18, 2017 at 3:26 PM, Richard <zappfinger@gmail.com> wrote:Neither of these works. Here's the full csd. It is a QtCsound project to emulate my first synthesizer, the Teisco (Kawai) 100F, as you can see in the GUI part. I just started off to make the VCO part work... Richard On 18/11/17 19:41, Steven Yi wrote:avco vco2 .4, p4Csound 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 hereCsound 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-19 16:09 |
From | Richard |
Subject | Re: [Csnd] simple vco2 question |
I have reproduced this problem with a simple csd. Next notes all complain about insufficient arguments:
<CsoundSynthesizer> <CsOptions> -M1 -odac3 </CsOptions> <CsInstruments> 0dbfs = 1
instr 1 kwaveform = 0 kwave = p6 kwavetrig changed kwave
if (kwave==1) then kwaveform = 0 ;SAW elseif (kwave==2) then kwaveform = 2 ; SQUARE elseif (kwave==3) then kwaveform = 12 ; TRIANGEL endif
if kwavetrig = 1 then reinit REINIT_VCO endif
REINIT_VCO: ;kfreq = p4 ;kamp = p5 kkey init 0 ;initialize key number kvel init 0 ;initialize velocity midinoteonkey kkey, kvel avco vco2 kvel/127, cpsmidinn(kkey), i(kwaveform) rireturn outs avco*kvel, avco*kvel endin </CsInstruments> <CsScore> i 1 0 1 62 100 1 i 1 1 1 64 100 2 i 1 2 1 62 100 3 i 1 3 1 64 100 1 </CsScore> </CsoundSynthesizer> On 18/11/17 21:58, Steven Yi wrote:
I took a look, the problem is that you are using massign to make the keys retrigger instrument 1. If you change it to: massign 0, 2 so that Midi keys route to insttrument vco (which, gets assigned to 2 in this case) then sound comes out fine. On Sat, Nov 18, 2017 at 3:26 PM, Richard <zappfinger@gmail.com> wrote:Neither of these works. Here's the full csd. It is a QtCsound project to emulate my first synthesizer, the Teisco (Kawai) 100F, as you can see in the GUI part. I just started off to make the VCO part work... Richard On 18/11/17 19:41, Steven Yi wrote:avco vco2 .4, p4Csound 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 hereCsound 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 |