Csound Csound-dev Csound-tekno Search About

[Csnd] wguide1 doesn't work if xfreq is <= 5 ?

Date2023-11-16 09:39
FromScott Daughtrey
Subject[Csnd] wguide1 doesn't work if xfreq is <= 5 ?
Is this a bug or is there a reason wguide1 doesn't seem to accept xfreq values <= 5? Or perhaps a case of user error? I couldn't find any reference to the limitation in the manual.



 -odac



sr = 48000
ksmps = 32
nchnls = 1
0dbfs  = 1

giFrq init 16

instr trig
  kTrig = metro(1)
  schedkwhen kTrig, 0, 0, 1, 0, 1
endin

instr 1
  aEnv  = expsega(.001, .001, 1, .04, .001)
  aNoiz = noise(.02 * aEnv, -.99)
  aSig  = wguide1(aNoiz, giFrq, 5000, .8)
  out(aSig)
  giFrq -= 1
endin



i"trig" 0  12



I realize this is not a common use of wguide1 & this could be replicated with a standard delay, filter & feedback but was curious as this would certainly be a more convenient option.

Best, 
Scott

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2023-11-16 15:13
From"Jeanette C."
SubjectRe: [Csnd] wguide1 doesn't work if xfreq is <= 5 ?
Hi Scott,
as much as it is always nice to see the limitations of opcoddes, what you have 
seen is possibly quite a useful one, considering normal use-cases for a 
waveguide, instead of a delay. As with any delay you need an internal audio 
buffer to work the delay magic. With some of the variable delays, you will 
note the imaxdel (maximum delay time). This is so the opcode can reserve a 
buffer of a certain length. It appears that wguide1 then reserves a delay 
buffer for about .2 seconds of audio (5Hz = 1/5 s = .2s).

Since wguide1 is designed to give feedback in the audible range of human 
hearing, i.e. >20Hz, you may want to consider vdelay if you need a vary the 
delay time at performance time or delay if you are happy with a fixed delay 
time.

HTH.

Best wishes,

Jeanette

-- 
  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

I'm reaching out to you
To find that you're not there <3
(Britney Spears)

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here