Csound Csound-dev Csound-tekno Search About

[Csnd] getting some clicks. Some short-lived static click.(vowgen)

Date2012-11-18 15:02
FromCacophony7
Subject[Csnd] getting some clicks. Some short-lived static click.(vowgen)
I'm having fun with the vowgen UDO but I still have the faint slightest click
on most if not all of my keys on my MIDI keyboard.

	gaSig init 0
	gkFreq init 0

	opcode	vowgen,	a, kkki

                            ;vowgen opcode code hidden

	endop



	instr 1
		k1 madsr .2, .2, .5, .5
		gkfund = p5
		gaSig = k1
	endin

	instr 1000
		kfund = gkfund

		asig vowgen kfund, 1, 0, 2
		out (asig*.5)*gaSig, (asig*.5)*gaSig
	endin




	f 1 0 1024 10 100 123

	i 1000 0 3600



does it need an envolope? doesn't it already have an envolope? this isn't
entirely my code. I was helped before. 



--
View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-11-18 15:15
FromRory Walsh
SubjectRe: [Csnd] getting some clicks. Some short-lived static click.(vowgen)
It was pretty late when I prepared that example and I see now a rather
large problem, it's not polyphonic so you will gets clicks. As the
midi instrument is simply controlling the amplitude of an always on
instrument, each new note will overwrite the tail of the last one. My
bad. I wasn't thinking. Ok, back to figuring out why the vowgen UDO
can't be used in a midi-driven instrument. I'm hoping one of lists
more experienced members will chime in at any moment!

Date2012-11-18 15:34
FromCacophony7
Subject[Csnd] Re: getting some clicks. Some short-lived static click.(vowgen)
Can we contact the creator of the UDO? perhaps he could help. The clicks
aren't that noticable but there in there and I'm using good headphones
(compared to the 20$ wireless bargain headphones).



--
View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718099.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-11-18 15:56
FromSteven Yi
SubjectRe: [Csnd] Re: getting some clicks. Some short-lived static click.(vowgen)
I'm wondering if it's the design of the CSD?  instr 1 is writing to a
global var.  If two instances are initiated at the same time, then the
envelope generation could overlap. Are you testing using just a single
note at a time?

Also, you are using a krate version of the envelope, then casting to
a-rate.  You could use just the a-rate version directly with:

gaSig madsr .2, .2, .5, .5

It could be that the clicking you are hearing may be artifacts with
the envelope generation if you are using ksmps > 1.

On Sun, Nov 18, 2012 at 9:34 AM, Cacophony7  wrote:
> Can we contact the creator of the UDO? perhaps he could help. The clicks
> aren't that noticable but there in there and I'm using good headphones
> (compared to the 20$ wireless bargain headphones).
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718099.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-11-18 16:14
FromRory Walsh
SubjectRe: [Csnd] Re: getting some clicks. Some short-lived static click.(vowgen)
Attachmentsvowgen.csd  
Hi Steven. There are some obvious problems with that csd, but it was
only a workaround for not being able to get the vowgen UDO to work in
a midi instrument. I've attached a test file. Can you see any
problems, it will run from the score but not when it is triggered via
midi?

Date2012-11-18 16:16
FromCacophony7
Subject[Csnd] Re: getting some clicks. Some short-lived static click.(vowgen)
Aha! it clicks when I push one key and then another before the release. If I
let the whole note release before I push the next, it won't click.

	instr 1
		gaSig madsr .2, .2, .5, .5
		gkfund = p5
		;gaSig = k1
	endin

I replaced k1 with just gaSig directly.

ksmps = 1



--
View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718102.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-11-18 17:36
FromSteven Yi
SubjectRe: [Csnd] Re: getting some clicks. Some short-lived static click.(vowgen)
Hi Rory,

I took a quick look.  I think the issue is that the UDO uses p3
directly.  p3 is coming in as -1 as it's like a tied note.  I haven't
tried, but I imagine using "idur = abs(p3)" and using that in place of
p3 will do the trick.

Cheers!
steven

On Sun, Nov 18, 2012 at 10:14 AM, Rory Walsh  wrote:
> Hi Steven. There are some obvious problems with that csd, but it was
> only a workaround for not being able to get the vowgen UDO to work in
> a midi instrument. I've attached a test file. Can you see any
> problems, it will run from the score but not when it is triggered via
> midi?
>
> 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-11-18 18:52
FromRory Walsh
SubjectRe: [Csnd] Re: getting some clicks. Some short-lived static click.(vowgen)
AttachmentsvowgenMidiSimple.csd  
Brilliant. And as I look back on another fof instrument I had written
some time back I see this comment:

idur   = 100			;<<--- hack attack!

Looks like I stumbled across this problem before, but due to my inept
ability to write a decent comment I missed it! I've attached a MIDI
driven example of vowgen to this mail. And I posted a short sound clip
of it in action, link below. Do note that the example is pretty simple
in comparison to what one can probably do with the instrument:

http://soundcloud.com/rorywalsh/vowgen-csound-example

Date2012-11-18 19:37
FromCacophony7
Subject[Csnd] Re: getting some clicks. Some short-lived static click.(vowgen)
Thanks I'm checking it out. I assume that I'm playing instr 1 and that instr
2 is supposed to be a recorder.



--
View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718105.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-11-18 19:53
FromRory Walsh
SubjectRe: [Csnd] getting some clicks. Some short-lived static click.(vowgen)
yup

On Sunday, 18 November 2012, Cacophony7 <michaelsparks37@gmail.com> wrote:
> Thanks I'm checking it out. I assume that I'm playing instr 1 and that instr
> 2 is supposed to be a recorder.
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718105.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-11-19 01:04
FromCacophony7
Subject[Csnd] Re: getting some clicks. Some short-lived static click.(vowgen)
...Now I realize that you've changed the vowgen opcode itself by appending it
with a 5th parameter.
Right?



--
View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718115.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-11-19 09:39
FromRory Walsh
SubjectRe: [Csnd] getting some clicks. Some short-lived static click.(vowgen)
yeah. just make it as long as your longest potential note.

On Monday, 19 November 2012, Cacophony7 <michaelsparks37@gmail.com> wrote:
> ...Now I realize that you've changed the vowgen opcode itself by appending it
> with a 5th parameter.
> Right?
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718115.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-11-20 01:15
FromCacophony7
Subject[Csnd] Re: getting some clicks. Some short-lived static click.(vowgen)
The sound crackles when I hold down more than one note.



--
View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718126.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-11-20 01:36
FromRory Walsh
SubjectRe: [Csnd] getting some clicks. Some short-lived static click.(vowgen)
reduce the overall amplitude. you're probably getting samples out of range.

On Tuesday, 20 November 2012, Cacophony7 <michaelsparks37@gmail.com> wrote:
> The sound crackles when I hold down more than one note.
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718126.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-11-20 05:28
FromCacophony7
Subject[Csnd] Re: getting some clicks. Some short-lived static click.(vowgen)
			asig vowgen p5, 10, 0, 5, 10
			asig = asig / 64
		
			outs asig, asig
	endin

They still crackle and let out some static sound.



--
View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718131.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-11-20 05:33
FromCacophony7
Subject[Csnd] Re: getting some clicks. Some short-lived static click.(vowgen)
Perhaps it needs a filter?



--
View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718132.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-11-20 07:52
FromVictor
SubjectRe: [Csnd] Re: getting some clicks. Some short-lived static
Or you could be getting xruns. FOF can be quite heavy on the CPU.



On 20 Nov 2012, at 05:33, Cacophony7  wrote:

> Perhaps it needs a filter?
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718132.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-11-20 20:40
FromCacophony7
Subject[Csnd] Re: getting some clicks. Some short-lived static
What are xruns and how do I get rid of them? do I have to make some
sacrafices in my code?



--
View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718153.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-11-20 20:52
FromVictor Lazzarini
SubjectRe: [Csnd] Re: getting some clicks. Some short-lived static
xruns are to do with your CPU not being able to keep up with realtime. You can try to: increase ksmps, decrease SR, make your code more efficient.
FOF can be quite inefficient  if there are a lot of grain overlaps, so you can try reducing the grain size.

On 20 Nov 2012, at 20:40, Cacophony7 wrote:

> What are xruns and how do I get rid of them? do I have to make some
> sacrafices in my code?
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718153.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-11-20 20:55
FromRory Walsh
SubjectRe: [Csnd] Re: getting some clicks. Some short-lived static
For what it's worth I don't get any problems running it here. I can
try test it on windows the next time I boot that way.

On 20 November 2012 20:52, Victor Lazzarini  wrote:
> xruns are to do with your CPU not being able to keep up with realtime. You can try to: increase ksmps, decrease SR, make your code more efficient.
> FOF can be quite inefficient  if there are a lot of grain overlaps, so you can try reducing the grain size.
>
> On 20 Nov 2012, at 20:40, Cacophony7 wrote:
>
>> What are xruns and how do I get rid of them? do I have to make some
>> sacrafices in my code?
>>
>>
>>
>> --
>> View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718153.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
>
>
>
>
>
> 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-11-20 23:17
FromCacophony7
Subject[Csnd] Re: getting some clicks. Some short-lived static
reduce the grain size of the fof opcodes? is it the kdur parameter?




Victor Lazzarini wrote
> xruns are to do with your CPU not being able to keep up with realtime. You
> can try to: increase ksmps, decrease SR, make your code more efficient.
> FOF can be quite inefficient  if there are a lot of grain overlaps, so you
> can try reducing the grain size.
> 
> On 20 Nov 2012, at 20:40, Cacophony7 wrote:
> 
>> What are xruns and how do I get rid of them? do I have to make some
>> sacrafices in my code?
>> 
>> 
>> 
>> --
>> View this message in context:
>> http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718153.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@.ac

>  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
> 
> 
> 
> 
> 
> 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"





--
View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718178.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-11-20 23:19
FromRory Walsh
SubjectRe: [Csnd] Re: getting some clicks. Some short-lived static
yup.


On 20 November 2012 23:17, Cacophony7  wrote:
> reduce the grain size of the fof opcodes? is it the kdur parameter?
>
>
>
>
> Victor Lazzarini wrote
>> xruns are to do with your CPU not being able to keep up with realtime. You
>> can try to: increase ksmps, decrease SR, make your code more efficient.
>> FOF can be quite inefficient  if there are a lot of grain overlaps, so you
>> can try reducing the grain size.
>>
>> On 20 Nov 2012, at 20:40, Cacophony7 wrote:
>>
>>> What are xruns and how do I get rid of them? do I have to make some
>>> sacrafices in my code?
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718153.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@.ac
>
>>  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
>>
>>
>>
>>
>>
>> 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"
>
>
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718178.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-11-21 00:07
FromCacophony7
Subject[Csnd] Re: getting some clicks. Some short-lived static
I changed the kdur on every fof in the vowgen opcode and now it sounds
proper.
If I switch to ASIO will it give me more fidelity (whatever fidelity means)
than what I'm currently doing?



--
View this message in context: http://csound.1045644.n5.nabble.com/getting-some-clicks-Some-short-lived-static-click-vowgen-tp5718097p5718181.html
Sent from the Csound - General mailing list archive at Nabble.com.