Csound Csound-dev Csound-tekno Search About

[Csnd] pitch accuracy of moogvcf

Date2010-04-04 21:38
FromEric Lyon
Subject[Csnd] pitch accuracy of moogvcf
Greetings,

I've just tested the Csound implementation of moogvcf, and its
resonant frequency seems sharp by about a whole tone. A hacked demo of
the doc example is appended below. Please let me know if this
discrepancy has been discussed before.

Thanks in advance,

Eric

(Tested on OSX 10.6.2, Csound 5.12, Intel build)

===


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



; Initialize the global variables.
sr = 44100
kr = 4410
ksmps = 10
nchnls = 1

; Instrument #1.
instr 1
  ; Use broadband noise
  asig randi 15000, 20000

  ; Set the resonance amount to one.
  krez init 1
  kfco init p4

  ; Scale the amplitude to 32768.
  iscale = 32768

  a1 moogvcf asig, kfco, krez, iscale

  out a1
endin

instr 2
ifreq = p4
  asinny oscil 5000, ifreq, 1
  out asinny
endin

instr 3

iadjust = 1.12
ifreq = p4 * iadjust
  asinny oscil 5000, ifreq, 1
  out asinny
endin





; sine wave
f 1 0 16384 10 1

; Play Instrument #1 for three seconds.
i1 0 5 440 ; note 1
i2 2 3 440 ; note 2
; now replace note 2 with note 3 for a better fit
; i3 2 3 440 ; note 3






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-04-04 22:03
FromVictor Lazzarini
Subject[Csnd] Re: pitch accuracy of moogvcf
Have you tried moogladder? Antti's paper seems to suggest it is better  
in that department.

Victor
On 4 Apr 2010, at 21:38, Eric Lyon wrote:

> Greetings,
>
> I've just tested the Csound implementation of moogvcf, and its
> resonant frequency seems sharp by about a whole tone. A hacked demo of
> the doc example is appended below. Please let me know if this
> discrepancy has been discussed before.
>
> Thanks in advance,
>
> Eric
>
> (Tested on OSX 10.6.2, Csound 5.12, Intel build)
>
> ===
> 
> 
> ; Select audio/midi flags here according to platform
> ; Audio out   Audio in    No messages
> -odac           -iadc     -d     ;;;RT audio I/O
> ; For Non-realtime ouput leave only the line below:
> ; -o moogvcf.wav -W ;;; for file output any platform
> 
> 
>
> ; Initialize the global variables.
> sr = 44100
> kr = 4410
> ksmps = 10
> nchnls = 1
>
> ; Instrument #1.
> instr 1
>  ; Use broadband noise
>  asig randi 15000, 20000
>
>  ; Set the resonance amount to one.
>  krez init 1
>  kfco init p4
>
>  ; Scale the amplitude to 32768.
>  iscale = 32768
>
>  a1 moogvcf asig, kfco, krez, iscale
>
>  out a1
> endin
>
> instr 2
> ifreq = p4
>  asinny oscil 5000, ifreq, 1
>  out asinny
> endin
>
> instr 3
>
> iadjust = 1.12
> ifreq = p4 * iadjust
>  asinny oscil 5000, ifreq, 1
>  out asinny
> endin
>
>
> 
> 
>
> ; sine wave
> f 1 0 16384 10 1
>
> ; Play Instrument #1 for three seconds.
> i1 0 5 440 ; note 1
> i2 2 3 440 ; note 2
> ; now replace note 2 with note 3 for a better fit
> ; i3 2 3 440 ; note 3
>
>
> 
> 
>
>
> 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-04-04 22:24
FromEric Lyon
Subject[Csnd] Re: Re: pitch accuracy of moogvcf
Thanks, Victor.

Will have a look.

Eric


On Sun, Apr 4, 2010 at 5:03 PM, Victor Lazzarini
 wrote:
> Have you tried moogladder? Antti's paper seems to suggest it is better in
> that department.
>
> Victor
> On 4 Apr 2010, at 21:38, Eric Lyon wrote:
>
>> Greetings,
>>
>> I've just tested the Csound implementation of moogvcf, and its
>> resonant frequency seems sharp by about a whole tone. A hacked demo of
>> the doc example is appended below. Please let me know if this
>> discrepancy has been discussed before.
>>
>> Thanks in advance,
>>
>> Eric
>>
>> (Tested on OSX 10.6.2, Csound 5.12, Intel build)
>>
>> ===
>> 
>> 
>> ; Select audio/midi flags here according to platform
>> ; Audio out   Audio in    No messages
>> -odac           -iadc     -d     ;;;RT audio I/O
>> ; For Non-realtime ouput leave only the line below:
>> ; -o moogvcf.wav -W ;;; for file output any platform
>> 
>> 
>>
>> ; Initialize the global variables.
>> sr = 44100
>> kr = 4410
>> ksmps = 10
>> nchnls = 1
>>
>> ; Instrument #1.
>> instr 1
>>  ; Use broadband noise
>>  asig randi 15000, 20000
>>
>>  ; Set the resonance amount to one.
>>  krez init 1
>>  kfco init p4
>>
>>  ; Scale the amplitude to 32768.
>>  iscale = 32768
>>
>>  a1 moogvcf asig, kfco, krez, iscale
>>
>>  out a1
>> endin
>>
>> instr 2
>> ifreq = p4
>>  asinny oscil 5000, ifreq, 1
>>  out asinny
>> endin
>>
>> instr 3
>>
>> iadjust = 1.12
>> ifreq = p4 * iadjust
>>  asinny oscil 5000, ifreq, 1
>>  out asinny
>> endin
>>
>>
>> 
>> 
>>
>> ; sine wave
>> f 1 0 16384 10 1
>>
>> ; Play Instrument #1 for three seconds.
>> i1 0 5 440 ; note 1
>> i2 2 3 440 ; note 2
>> ; now replace note 2 with note 3 for a better fit
>> ; i3 2 3 440 ; note 3
>>
>>
>> 
>> 
>>
>>
>> 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"
>
>


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"