Csound Csound-dev Csound-tekno Search About

[Csnd] How do I use the fof opcode?

Date2012-06-28 18:36
FromCacophony7
Subject[Csnd] How do I use the fof opcode?
I get some samples out of range and I hear this temporary flickering static.
I'm reading "Csound power!" and I've read up to page 150 something without
experimenting since page 115. I'm reading about formant synthesis on page
139 but I'm to lazy to type in all that code from 140 to 142 without knowing
what fof does.

are there any simple argument values that will make fof sound good?

--
View this message in context: http://csound.1045644.n5.nabble.com/How-do-I-use-the-fof-opcode-tp5713976.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-06-28 19:16
FromVictor Lazzarini
SubjectRe: [Csnd] How do I use the fof opcode?
Attachmentsfofex.csd  
For vocal simulations, you should use 1 fof for each formant and mix their signals.
Tune the formant frequencies to the vowels as per formant tables (you can see these in the Csound book, or else google for them),
ditto for bandwidths and amplitudes.

The fundamental frequency are the same, the pitch required. The other parameters can be like this:

katt = 0.007
kdur = 0.04
kdec  = 0.003

you can use  1/4 sine for rise and dec shapes (GEN09)

iolaps = 30

See an example attached.

Hope this helps. 

Victor







On 28 Jun 2012, at 18:36, Cacophony7 wrote:

> I get some samples out of range and I hear this temporary flickering static.
> I'm reading "Csound power!" and I've read up to page 150 something without
> experimenting since page 115. I'm reading about formant synthesis on page
> 139 but I'm to lazy to type in all that code from 140 to 142 without knowing
> what fof does.
> 
> are there any simple argument values that will make fof sound good?
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/How-do-I-use-the-fof-opcode-tp5713976.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"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




Date2012-07-01 18:18
FromDavid Mooney
SubjectRe: [Csnd] How do I use the fof opcode?
Doesn't the manual have a good tutorial for fof? (Not handy at this computer)

--David Mooney

On Thu, Jun 28, 2012 at 1:36 PM, Cacophony7  wrote:
> I get some samples out of range and I hear this temporary flickering static.
> I'm reading "Csound power!" and I've read up to page 150 something without
> experimenting since page 115. I'm reading about formant synthesis on page
> 139 but I'm to lazy to type in all that code from 140 to 142 without knowing
> what fof does.
>
> are there any simple argument values that will make fof sound good?
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/How-do-I-use-the-fof-opcode-tp5713976.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"
>



-- 
Opaque Melodies
http://opaquemelodies.com

Date2012-07-03 20:44
FromCacophony7
Subject[Csnd] Re: How do I use the fof opcode?
Thanks Victor! now hold on a second. I'm going to check out appendix D in the
canonical manual.


Victor Lazzarini wrote
> 
> For vocal simulations, you should use 1 fof for each formant and mix their
> signals.
> Tune the formant frequencies to the vowels as per formant tables (you can
> see these in the Csound book, or else google for them),
> ditto for bandwidths and amplitudes.
> 
> The fundamental frequency are the same, the pitch required. The other
> parameters can be like this:
> 
> katt = 0.007
> kdur = 0.04
> kdec  = 0.003
> 
> you can use  1/4 sine for rise and dec shapes (GEN09)
> 
> iolaps = 30
> 
> See an example attached.
> 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@.ac with body "unsubscribe csound"
> 
> 
> 
> 
> Hope this helps. 
> 
> Victor
> 


--
View this message in context: http://csound.1045644.n5.nabble.com/How-do-I-use-the-fof-opcode-tp5713976p5714034.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-07-03 20:48
FromCacophony7
Subject[Csnd] Re: How do I use the fof opcode?
I can't find appendix D in the canon manual!

--
View this message in context: http://csound.1045644.n5.nabble.com/How-do-I-use-the-fof-opcode-tp5713976p5714035.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-07-03 22:20
FromVictor
SubjectRe: [Csnd] Re: How do I use the fof opcode?
http://www.csounds.com/manual/html/MiscFormants.html



On 3 Jul 2012, at 20:48, Cacophony7  wrote:

> I can't find appendix D in the canon manual!
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/How-do-I-use-the-fof-opcode-tp5713976p5714035.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"
> 


Date2012-07-06 21:15
FromCacophony7
Subject[Csnd] Re: How do I use the fof opcode?
Okay I found appendix D, still didn't know what to do so I got off my ass and
typed in the code (about 50 lines) and the code works. Still don't know how
it works. Got anything less than 50 lines of code? I'm reading backwards
trying to figure out all these different types of synthesis.
Next I want to learn how to use granular synthesis with the grain opcode
(chances are, I want to learn granule too).

Getting a computer to pronounce a vowel sounds complicated. I wonder how do
you get it to pronounce constanants and code an entire speech from scratch.

--
View this message in context: http://csound.1045644.n5.nabble.com/How-do-I-use-the-fof-opcode-tp5713976p5714075.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-07-07 10:10
FromRory Walsh
SubjectRe: [Csnd] Re: How do I use the fof opcode?
The thing is that you need to produce several formants in order to
recreate something that come close to sounding like a human voice. So
not matter what way you attempt this you'll need to write some bloated
code. If you want something that's easy to tweak you can try taking a
look at the vowgen UDO by Isaac Wallis. It's very simple to use and
you should be able to get some really great sounds out of it in no
time at all.

Rory.

Date2012-07-07 10:32
Frompeiman khosravi
SubjectRe: [Csnd] How do I use the fof opcode?
Is your question "how do I make it sound good"? or "how do I imitate
the human voice"?

My answer is to the former!

You can created some interesting pulsar textures by using low
fundamental frequencies. You can start randomising this (and other)
variables using different random distribution patterns or just line
segments (I'd recommend the 'gaussi' opcode  to start with). Here is a
modified manual example which can be potentially interesting in a
musical context.

Best,
P



; Select audio/midi flags here according to platform
; Audio out   Audio in
-odac           -iadc    ;;;RT audio I/O
; For Non-realtime ouput leave only the line below:
; -o fof2.wav -W ;;; for file output any platform



sr = 48000
ksmps = 16
nchnls = 2

;By Andres Cabrera 2007

    instr 1            ;table-lookup vocal synthesis

kris init p12
kdur init p13
kdec init p14

iolaps init p15

ifna init 1  ; Sine wave
ifnb init 2  ; Straight line rise shape

itotdur init p3

kphs init 0  ; No phase modulation (constant kphs)


kfund  line p4, p3, p5
kform  line p6, p3, p7
koct   line p8, p3, p9
kband  line p10, p3, p11
kgliss line p16, p3, p17

kenv linen 5000, 0.02, p3, 0.02  ;to avoid clicking

aout    fof2    kenv, kfund, kform, koct, kband, kris, kdur, kdec, iolaps, \
      ifna, ifnb, itotdur, kphs, kgliss

idelt	= (1/p4)*p18
aout	delay	aout, idelt
	outch p18, aout
    endin



f1 0 32768 10 1
f2 0 32768 7 0 32768 1

;              kfund1  kfund2  kform1  kform2  koct1  koct2  kband1
kband2 kris  kdur  kdec  iolaps  kgliss1 kgliss2 channel#
i1    0      20   200     10       1000     5000  0      0      100
 100     0.005  0.01  0.005  20       0        0        1  0
i1    0      20   200     10       2000     5000  0      0      100
 100     0.005  0.01  0.005  20       0        0        2   .5
i1    0      20   200     10       3000     5000  0      0      100
 100     0.005  0.01  0.005  20       0        0        1   0
i1    0      20   200     10       4000     5000  0      0      100
 100     0.005  0.01  0.005  20       0        0        2   .5

e








P

On 28 June 2012 18:36, Cacophony7  wrote:
> I get some samples out of range and I hear this temporary flickering static.
> I'm reading "Csound power!" and I've read up to page 150 something without
> experimenting since page 115. I'm reading about formant synthesis on page
> 139 but I'm to lazy to type in all that code from 140 to 142 without knowing
> what fof does.
>
> are there any simple argument values that will make fof sound good?
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/How-do-I-use-the-fof-opcode-tp5713976.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"
>

Date2012-07-11 16:39
FromCacophony7
Subject[Csnd] Re: How do I use the fof opcode?
I found the vowgen udo very interesting. Just cut and paste it. Peimans use
of fof2 was kind of interesting too...

vowgen is really fun. I like to tweak vowgen with oscil instead on linseg.

Thanks guys! I got some cool sounds but I still don't understand it. I guess
formant synthesis takes practice.

I think I'm going to stick with vowgen for a while for it's simplicity of
use.

--
View this message in context: http://csound.1045644.n5.nabble.com/How-do-I-use-the-fof-opcode-tp5713976p5714156.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-07-11 21:16
FromRory Walsh
SubjectRe: [Csnd] Re: How do I use the fof opcode?
Have you tried consulting the usual text books? The Dodge Jerse book,
the Computer Music Tutorial, etc. I'm not near my bookshelf now so i
can't check but as far as I can remember they all have info about fof.
And yes, I have to say vowgen is fun. I hooked it up to a joystick a
while back and had fun make that stick talk!


On 11 July 2012 17:39, Cacophony7  wrote:
> I found the vowgen udo very interesting. Just cut and paste it. Peimans use
> of fof2 was kind of interesting too...
>
> vowgen is really fun. I like to tweak vowgen with oscil instead on linseg.
>
> Thanks guys! I got some cool sounds but I still don't understand it. I guess
> formant synthesis takes practice.
>
> I think I'm going to stick with vowgen for a while for it's simplicity of
> use.
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/How-do-I-use-the-fof-opcode-tp5713976p5714156.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"
>

Date2012-07-12 23:46
FromCacophony7
Subject[Csnd] Re: How do I use the fof opcode?
Never heard of The Dodge Jerse book. the Computer Music Tutorial? is that
from MIT Press? are they both sold on Amazon?

I previously had a susbscription to Computer Music magazine that would
review comercial software and hardware and they seem to talk alot about
Reason. Each issue has a DVD of freeware or shareware, samples and anything
related to music on a computer... and then I let a friend burrow all my good
DVDs and I haven't got them back yet. He lives in Naniamo and thats a 4 hour
drive from here in Port McNeill.
Personally I was thinking of recording my own samples on a harmonica and
then see what Csound can do with them. I wonder if Richard still has that
harmonica.

Very impressive that you can make a joystick talk. did you figure that out
all by yourself? I heard of another audio programming language called ChucK
that could also perform music/sound on a joystick. I couldn't find that many
resources for it though. It's taught at some college/university or
something. I've been trying to learn Csound for about 10 years now. The
Csound Book from MIT Press was my first Csound book, then Csound Power!
which I'm currently reading.

--
View this message in context: http://csound.1045644.n5.nabble.com/How-do-I-use-the-fof-opcode-tp5713976p5714185.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-07-13 11:04
FromRory Walsh
SubjectRe: [Csnd] Re: How do I use the fof opcode?
It's quite easy to hook up a joystick to Csound using python. I'm sure
I still have the code lying around, or perhaps I already posted it to
the list. I don't have a copy of the Computer Music Tutorial but I
have everything I need in the Dodge-Jerse book:

http://www.amazon.com/Computer-Music-Charles-Dodge/dp/0028646827

I picked up an old copy for about 10$ somewhere online. Great book.

p.s. I didn't really make the joystick talk, but it was fun playing
around with the different vowel sounds by twisting and moving the
controller.

On 13 July 2012 00:46, Cacophony7  wrote:
> Never heard of The Dodge Jerse book. the Computer Music Tutorial? is that
> from MIT Press? are they both sold on Amazon?
>
> I previously had a susbscription to Computer Music magazine that would
> review comercial software and hardware and they seem to talk alot about
> Reason. Each issue has a DVD of freeware or shareware, samples and anything
> related to music on a computer... and then I let a friend burrow all my good
> DVDs and I haven't got them back yet. He lives in Naniamo and thats a 4 hour
> drive from here in Port McNeill.
> Personally I was thinking of recording my own samples on a harmonica and
> then see what Csound can do with them. I wonder if Richard still has that
> harmonica.
>
> Very impressive that you can make a joystick talk. did you figure that out
> all by yourself? I heard of another audio programming language called ChucK
> that could also perform music/sound on a joystick. I couldn't find that many
> resources for it though. It's taught at some college/university or
> something. I've been trying to learn Csound for about 10 years now. The
> Csound Book from MIT Press was my first Csound book, then Csound Power!
> which I'm currently reading.
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/How-do-I-use-the-fof-opcode-tp5713976p5714185.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"
>