Csound Csound-dev Csound-tekno Search About

Re: [Csnd] simple vco2 question

Date2017-11-18 23:54
FromPartev Barr Sarkissian
SubjectRe: [Csnd] simple vco2 question

I don't see an envelope generator. Is that intentional?


-PBS

=========================================

--- zappfinger@GMAIL.COM wrote:

From: Richard <zappfinger@GMAIL.COM>
To: CSOUND@LISTSERV.HEANET.IE
Subject: [Csnd] simple vco2 question
Date: Sat, 18 Nov 2017 11:37:06 +0100

This is driving me...

Why does this simple alwayson instr not work?
Does it have to do with reinit?

instr vco
kfreq init 440

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

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
 

Netscape.  Just the Net You Need.
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-19 07:05
FromRichard
SubjectRe: [Csnd] simple vco2 question

In the widget of the csd I sent there are 2 envelope generators, they can be triggered by keyboard or LFO.
The code was not yet implement though.

Richard


On 19/11/17 00:54, Partev Barr Sarkissian wrote:

I don't see an envelope generator. Is that intentional?


-PBS

=========================================

--- zappfinger@GMAIL.COM wrote:

From: Richard <zappfinger@GMAIL.COM>
To: CSOUND@LISTSERV.HEANET.IE
Subject: [Csnd] simple vco2 question
Date: Sat, 18 Nov 2017 11:37:06 +0100

This is driving me...

Why does this simple alwayson instr not work?
Does it have to do with reinit?

instr vco
kfreq init 440

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

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
 

Netscape.  Just the Net You Need.
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