Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip initialization for flanger #1725

Open
tjingboem opened this issue Jul 17, 2023 · 2 comments
Open

skip initialization for flanger #1725

tjingboem opened this issue Jul 17, 2023 · 2 comments
Assignees

Comments

@tjingboem
Copy link
Member

There is none:
ares flanger asig, adel, kfeedback [, imaxd]

@jpffitch
Copy link
Contributor

Code written to ski[p initialisation if maxd is negative.
Not tested and I need s test program before this issue can be closed

@jpffitch jpffitch self-assigned this Aug 23, 2023
@tjingboem
Copy link
Member Author

tjingboem commented Aug 24, 2023

This would be a test example:

<CsoundSynthesizer>
<CsOptions>
-odac     ;;;realtime audio out
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1

instr 1

kfeedback = .7
imaxd     = -.1
asnd poscil .1, p4, -1, -1
adel linseg 0, p3*.5, 0.02, p3*.5, 0	;max delay time =20ms	
aflg flanger asnd, adel, kfeedback, imaxd
asig clip aflg, 1, 1
     outs asig+asnd, asig+asnd		;mix flanger with original

endin
</CsInstruments>
<CsScore>

i1.1 0 -1   150 
i1.1 5 -1   100
i1.1 10 -1   200
i1.1 15 5   150

e
</CsScore>
</CsoundSynthesizer>

In this case, imaxd is positive, so there is no LFO movement in the held notes (-1).
When your updated code is correct, the flanging movement should be heard and without clicks going from one note to another.

I chose poscil in sine mode, where the skip parameter can be set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants