Csound Csound-dev Csound-tekno Search About

[Csnd] Clarifications about "vco2init" and "vco2ft"

Date2013-05-10 01:13
FromRodolfo Cangiotti
Subject[Csnd] Clarifications about "vco2init" and "vco2ft"
Hi all,
as Justin Smith (I always say thanks (: ) suggested me, I started to use
some opcodes of the "vco" branch to generate complex waveforms without
falling in aliasing.
More precisely, I started a project using "vco2init" and "vco2ft" to
generate only some frequency-related function tables to use with a simple
sound generator opcode as "oscilikt"
I started compiling this project in this way:

[...]
gisine			/ftgen/ 1, 0, 16384, 10, 1
gitriangle		/ftgen/ 2, 0, 16384, 7, 0, 4096, 1, 8192, -1, 4096, 0
gisquare		/ftgen/ 3, 0, 16384, 7, 1, 8192, 1, 0, -1, 8192, -1
gisawtooth		/ftgen/ 4, 0, 16384, 7, 1, 16384, -1

gitriangleinit	/vco2init/ -2, 102, 1.01, 16384, 16384, 2
gisquareinit		/vco2init/ -3, 103, 1.01, 16384, 16384, 3
gisawtoothinit	/vco2init/ -4, 104, 1.01, 16384, 16384, 4

instr 1

ktriangle 		/vco2ft/ kcps, -2
ksquare 		/vco2ft/ kcps, -3
ksawtooth 		/vco2ft/ kcps, -4
[...]

Using a condition with "if" and "then", when I set "kfn = gisine", the
oscillator works properly while when I set "kfn = ktriangle" or "= ksquare",
the oscillator generates always a sawtooth waveform, corresponding to
"ksawtooth".
I sincerely can't understand why it happens and I wait for clarifications
from those who regurarly work with this opcodes.



--
View this message in context: http://csound.1045644.n5.nabble.com/Clarifications-about-vco2init-and-vco2ft-tp5723089.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-05-10 09:36
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] Clarifications about "vco2init" and "vco2ft"
>
> Using a condition with "if" and "then", when I set "kfn = gisine", the
> oscillator works properly while when I set "kfn = ktriangle" or "=
> ksquare",
> the oscillator generates always a sawtooth waveform, corresponding to
> "ksawtooth".
> I sincerely can't understand why it happens and I wait for clarifications
> from those who regurarly work with this opcodes.
>

You do not send the critical bit!  if-then-... semantics is not the same
as commoner languages and we really need to see how you made the
conditions etc.

I may be wrong but I suspect the i-rate/k-rate problem rather than vco*

==John ff


Date2013-05-10 12:27
FromRodolfo Cangiotti
Subject[Csnd] Re: Clarifications about "vco2init" and "vco2ft"
I compiled the conditions in this way:

[...]
/if/ (kftable == 0) /then/
kfn = gisine
/elseif/ (kftable == 1) /then/
kfn = ktriangle
/elseif/ (kftable == 2) /then/
kfn = ksquare
/elseif/ (kftable == 3) /then/
kfn = ksawtooth
/endif/
[...]

"kftable" is controlled by a Menu widget.
If you think it is useful, I can directly upload here the entire project.



--
View this message in context: http://csound.1045644.n5.nabble.com/Clarifications-about-vco2init-and-vco2ft-tp5723089p5723103.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-05-10 12:50
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] Re: Clarifications about "vco2init" and "vco2ft"
OK that looks kinda correct (but I not no default value)

Yes we really need to see the .csd or orc/sco I think

> I compiled the conditions in this way:
>
> [...]
> /if/ (kftable == 0) /then/
> kfn = gisine
> /elseif/ (kftable == 1) /then/
> kfn = ktriangle
> /elseif/ (kftable == 2) /then/
> kfn = ksquare
> /elseif/ (kftable == 3) /then/
> kfn = ksawtooth
> /endif/
> [...]
>
> "kftable" is controlled by a Menu widget.
> If you think it is useful, I can directly upload here the entire project.
>
>
>
> --
> View this message in context:
> http://csound.1045644.n5.nabble.com/Clarifications-about-vco2init-and-vco2ft-tp5723089p5723103.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>
>



Date2013-05-10 14:41
FromRodolfo Cangiotti
Subject[Csnd] Re: Clarifications about "vco2init" and "vco2ft"
jpff wrote
> Yes, we really need to see the .csd or orc/sco, I think.

Ok, here is the full project:
Synth_Project.csd
  

I compiled it using CsoundQT v.0.7.0 with Csound v.5.19.



--
View this message in context: http://csound.1045644.n5.nabble.com/Clarifications-about-vco2init-and-vco2ft-tp5723089p5723111.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-05-10 19:37
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] Re: Clarifications about "vco2init" and "vco2ft"
Sorry I cannot help -- The csound bit runs but nothing happens as I do not
have csoundqt so no idea what is supposed to happen.  I hope some one else
can look at it

> jpff wrote
>> Yes, we really need to see the .csd or orc/sco, I think.
>
> Ok, here is the full project:
> Synth_Project.csd
> 
>
> I compiled it using CsoundQT v.0.7.0 with Csound v.5.19.
>
>
>
> --
> View this message in context:
> http://csound.1045644.n5.nabble.com/Clarifications-about-vco2init-and-vco2ft-tp5723089p5723111.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>
>



Date2013-05-10 23:35
FromRodolfo Cangiotti
Subject[Csnd] Re: Clarifications about "vco2init" and "vco2ft"
Anyway, thank you very much.

I hope and wait for a help from a CsoundQT user.



--
View this message in context: http://csound.1045644.n5.nabble.com/Clarifications-about-vco2init-and-vco2ft-tp5723089p5723138.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-05-23 16:33
FromRodolfo Cangiotti
Subject[Csnd] Re: Clarifications about "vco2init" and "vco2ft"
I take this topic back to your attention because, despite I have read the
Csound manual several times and I have seen other projects compiled with
these Opcodes (for ex. the ones made by McCurdy), I still didn't undestand
precisely where I have made mistake compiling.
However, using Graphwiz, I realized that only one function table is able to
send values to the oscillator.

I attach the graph:
 

I hope this graph is useful to better understand the error.
Greetings.



--
View this message in context: http://csound.1045644.n5.nabble.com/Clarifications-about-vco2init-and-vco2ft-tp5723089p5723832.html
Sent from the Csound - General mailing list archive at Nabble.com.