| hi, yes, this works exactly as I intended. both examples produce the same
result, but, thanks to the randh opcode, here's the revised, simplified,
orchestra.
sr = 44100
kr = 4410
ksmps = 10
nchnls = 1
instr 1
; demonstration of variable clock frequencies
kfreq expon 4000, p3, 40
; make noise
anoise randh 20000, kfreq
out anoise
endin
----- Original Message -----
From: "Mark Van Peteghem"
To:
Sent: Sunday, November 07, 2010 7:24 AM
Subject: [Csnd] Re: Re: getting chiptune sounds out of CSound
> Jana wrote:
>> Am 05.11.2010 14:18, schrieb Arthur Pirika:
>>> waveforms. cs has all the basics, pwm, tri, saw, even noise, although
>>> it's not quite the noise I'd be looking for here. Most chips tied the
>>> noise gen to the CPU clock, so, you could varry the frequency of the
>>> noise and get either the typical high hiss of white noise, or a low,
>>> rumbling/seashore type effect.
>>>
>>
>> Hi Arthur,
>>
>> feeding white noise into a sample/hold unit and sampling it at audio rate
>> gives that effect of clocked digital noise generators. Like in the
>> following example. ksmps = 1 is important here to generate proper trigger
>> signals for the s&h stage.
>
> Doesn't the randh opcode do the same thing? And it doesn't require ksmps =
> 1.
>
> --
> Mark
> _________________________________________
> When you get lemons, you make lemonade.
> When you get hardware, you make software.
>
>
>
> 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"
|