Csound Csound-dev Csound-tekno Search About

[Csnd] fm with feedback

Date2010-05-29 20:17
FromStefan Thomas
Subject[Csnd] fm with feedback
Dear community,
I wanted to create an fm-instrument with feedback.
Unfotrunately it doesn't work as expected.
Could someone give me a hint, what is wrong?
Here is my example:
<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>
sr     = 48000
kr     = 480
ksmps  = 100
nchnls = 2

gamodulator init 0
massign 1, 101

instr 101

 icps    cpsmidi  
  iamp    ampmidi     10000
; making the envelope
aenv madsr 0.1, 12, 0, 0.1
; the modulators
amodulator = gamodulator
iwave = 1
asig oscil 1, icps+amodulator, iwave
amix = aenv*iamp*asig
      outs      amix, amix
gamodulator = asig
      endin
</CsInstruments>
<CsScore>
f0 36

f1  0   8193  10   1
i101   0    36

</CsScore>
</CsoundSynthesizer>
 

Date2010-05-29 21:55
Fromluis jure
Subject[Csnd] Re: fm with feedback
on 2010-05-29 at 21:17 Stefan Thomas wrote:

>I wanted to create an fm-instrument with feedback.
>Unfotrunately it doesn't work as expected.
>Could someone give me a hint, what is wrong?

for feedback fm you should use a pair phasor/table for the carrier,
instead of an oscil. amplitude should be normalized to 1 and beta
(modulation index) converted to radians. the example bellow works as
expected, you can modify it to include the midi opcodes.

HTH,

lj




; feedback FM using phase modulation
; luis jure 2003

sr	=	44100
ksmps	=	1
0dbfs	=	1

instr 1		; 

; p4	=	amplitude
; p5	=	frequency
; p6	=	modulation index (beta)

aphm	init	0	; initialize modulation

ifc	=	cpspch(p5)	; center frequency
iamp	=	ampdbfs(p4)	; max amplitude
kamp	linen	iamp, .03, p3, .1	; amplitude envelope

i2pi	=	6.283185307179586	; 2 * pi
indx	=	p6 / i2pi	; max. modulation index normalized

; phasor with center frequency
aphc	phasor	ifc	

; read table using modulated phase
afc	tablei	aphc+aphm, 1, 1, 0, 1	

; phase modulator is output * kndx
aphm	=	afc * indx	

aout	=	afc * kamp
	out	aout

endin




f1	0	16384	10	1
;	p2	p3	p4	p5	p6
;	init	dur	amp	freq	indx 
; indexes taken from Roads (Computer Music Tutorial p. 247)
i1	0	2	-3	8	0
i1	+	.	.	.	.0982
i1	+	.	.	.	.1963
i1	+	.	.	.	.3972
i1	+	.	.	.	.5554
i1	+	.	.	.	.7854
i1	+	.	.	.	.9340
i1	+	.	.	.	1.111
i1	+	.	.	.	1.571
e




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"

Date2010-05-30 01:37
Fromluis jure
Subject[Csnd] Re: Re: fm with feedback
on 2010-05-29 at 17:55 luis jure wrote:

> the example bellow

ugh!

the result of typing looking at the keyboard instead of the screen...
anyway, it's a funny sentence. could we generate some bellowing sounds
with feedback FM? :-)


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"

Date2010-05-31 11:12
FromStefan Thomas
Subject[Csnd] Re: Re: Re: fm with feedback
Dear Luis,
thanks for Your reply.
It's not easy for me to understand what You did, but I will try to.


2010/5/30 luis jure <ljc@internet.com.uy>

on 2010-05-29 at 17:55 luis jure wrote:

> the example bellow

ugh!

the result of typing looking at the keyboard instead of the screen...
anyway, it's a funny sentence. could we generate some bellowing sounds
with feedback FM? :-)


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"



Date2010-07-03 15:45
Frommoko@city-net.com
Subject[Csnd] ftable limit in score?
I know this has been asked before, but I can't find the answer. Is there a
limit (absolute or practical) to the number of GEN01 ftables in the score
section of a .csd file? I'm using numerous short samples that will be
selected according to parameters generated in the orc.

Thanks--

--David Mooney

Date2010-07-03 17:03
FromRory Walsh
Subject[Csnd] Re: ftable limit in score?
I can't give you an absolute answer but I would think it might depend
on the available ram you have on your machine? Are you reaching a
limit?

On 3 July 2010 15:45,   wrote:
> I know this has been asked before, but I can't find the answer. Is there a
> limit (absolute or practical) to the number of GEN01 ftables in the score
> section of a .csd file? I'm using numerous short samples that will be
> selected according to parameters generated in the orc.
>
> Thanks--
>
> --David Mooney
>
> --
> mheller@city-net.com
> dmooney@city-net.com
> Opaque Melodies:
> http://www.city-net.com/~moko/
>
>
>
> 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"
>
>


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"


Date2010-07-03 17:10
FromJacob Joaquin
Subject[Csnd] Re: Re: ftable limit in score?
Doing a quick test, I found that I can create a table of size (2 ^
24), but it breaks if I try to create a table of size (2 ^ 25). Says,
"ftable 1: illegal table length."  Here's the score line:

f 1 0 [2 ^ 25] 10 1

I'm using "Csound version 5.12 (float samples) Jun  4 2010" for OS X.

Best,
Jake

Date2010-07-03 17:59
Fromk_o_m_p
Subject[Csnd] Re: Re: Re: ftable limit in score?
The limit used to be 2^24. I think it hasn't changed yet.
luís

Jacob Joaquin schrieb:
> Doing a quick test, I found that I can create a table of size (2 ^
> 24), but it breaks if I try to create a table of size (2 ^ 25). Says,
> "ftable 1: illegal table length."  Here's the score line:
>
> f 1 0 [2 ^ 25] 10 1
>
> I'm using "Csound version 5.12 (float samples) Jun  4 2010" for OS X.
>
> Best,
> Jake
>   

Date2010-07-03 18:24
FromJoel Ross
Subject[Csnd] Re: Re: Re: Re: ftable limit in score?
David, did you mean the number of separate ftables?
I'm not sure that table length is quite the same issue.

-Joel

On 3 July 2010 17:59, k_o_m_p  wrote:
> The limit used to be 2^24. I think it hasn't changed yet.
> luís
>
> Jacob Joaquin schrieb:
>>
>> Doing a quick test, I found that I can create a table of size (2 ^
>> 24), but it breaks if I try to create a table of size (2 ^ 25). Says,
>> "ftable 1: illegal table length."  Here's the score line:
>>
>> f 1 0 [2 ^ 25] 10 1
>>
>> I'm using "Csound version 5.12 (float samples) Jun  4 2010" for OS X.
>>
>> Best,
>> Jake
>>
>
>
> --
> ---
>
> luis antunes pena
>
> http://sumtone.com
> http://ixherculean.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"
>
>


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"


Date2010-07-04 18:26
Frommoko@city-net.com
Subject[Csnd] Re: Re: Re: Re: Re: ftable limit in score?
Correct. The number of separate tables, not the size.

--David

> David, did you mean the number of separate ftables?
> I'm not sure that table length is quite the same issue.
>
> -Joel
>
> On 3 July 2010 17:59, k_o_m_p  wrote:
>> The limit used to be 2^24. I think it hasn't changed yet.
>> luís
>>