Cabbage Logo
Back to Cabbage Site

Simple question about the gentable

well my waveform display dies currently and there is probaply multiple war crimes going on in my code rn

:rofl: We will get to a good level of communication soon! Iā€™ve no doubt. Weā€™re making great progress already :laughing:

1 Like

Did you read the output console error message, itā€™s all there?

i keep forgetting to do that

ok i removed the malfunctioning pan now for getting the bloody reverb to do stuff

Better to put the reverb into a new instrument, otherwise the reverb tail will keep getting cut off whenever you release a note. Try something like this:

(.....)
kLFO oscili 1, kLFOFreq, 99
kEnv madsr iAtt, iDec, iSus, iRel 
aOut vco2 iAmp, iFreq
aLP moogladder aOut, abs(kLFO)*kCutOff, kRes
outs kAmp*(aLP*kEnv), kAmp*(aLP*kEnv)
chnset kAmp*(aLP*kEnv), "outLeft"
chnset kAmp*(aLP*kEnv), "outRight"
endin


instr Reverb
a1 chnget "outLeft"
a2 chnget "outRight"
aL, aR reverbsc a1, a2, .9, 5000
outs aL, aR
chnclear "outLeft"
chnclear "outRight"
endin

</CsInstruments>
<CsScore>
f99 0 1024 10 1
f1 0 1024 10 1                      ;sine
f2 0 1024 7 1 512 1 0 -1 512 -1     ;square
f3 0 1024 7 -1 512 1 1 -1 511 1     ;saw
;causes Csound to run for about 7000 years...
f0 z
i"Reverb" 0 z
</CsScore>
</CsoundSynthesizer>

this doesnt do a whole lot this sets the reverb to a set value (I think) wich you cant change with the knob

Add some controls.

i dont really get how tbh but ill try lemme push my attempt at LoFi first

Check out the introduction to widgets video:

i know how widgets work but i cant seem to get the controls to work with this reverb thingy

Have you thought about posting the code that doesnā€™t work? Iā€™m not sure if I mentioned this before, but itā€™s generally a good ideaā€¦

Iā€™m outta here for a bit. Iā€™ll check in again laterā€¦

here is the reverb instrument code:

instr Reverb
;The reverb fx unit.
a1 chnget "outLeft"
a2 chnget "outRight"
aL, aR reverbsc a1, a2, .9, 5000
outs aL, aR
chnclear "outLeft"
chnclear "outRight"
endin

Could you describe what parameters you are trying to control with widgets?

size and mixlevel aka like the one seen in the wavetable synth example

(i could just give u acces to the repository if you want)
EDIT i just send a thingy/colaber invite via github

Okey, so if you check out http://www.csounds.com/manual/html/reverbsc.html you will see that size is the feedback level (kfblvl). You need to use a k-rate parameter to control this. For the mix between the dry and wet signal I used ntrpol opcode to control a linear crossfade between the two signals.

Check out the example I made.

ReverbscParameters.csd (1006 Bytes)

when i implement this in my synth i cant hear a difference?

This example takes the incoming audio in this case, the microphone. If you export this to a .vst it will take the incoming audio (effect) there

I notice that in your file on github you have several outs. You should probably stick to having one at the end of your instruments.

Also if you want to send the audio from a instrument to another, you need to do chnset, and then chnget the same channel in the second instrument