Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Missing Chorus FX #2557

Closed
emlyn opened this issue Nov 24, 2020 · 5 comments
Closed

Missing Chorus FX #2557

emlyn opened this issue Nov 24, 2020 · 5 comments

Comments

@emlyn
Copy link
Contributor

emlyn commented Nov 24, 2020

It looks like there are traces of a chorus effect in the code, but it's commented out here.
What's the reason for that, and what would it take to add it back in? I think it would be quite a nice effect to have available.

@ethancrawford
Copy link
Collaborator

I don't remember exactly, but I think there was no technical reason it couldn't now be included. @xavriley may be able to remind me 😉

@xavriley
Copy link
Collaborator

xavriley commented Nov 25, 2020 via email

@ethancrawford
Copy link
Collaborator

ethancrawford commented Nov 25, 2020

I’m not sure but we might have some other synths that do that now

I can't remember off the top of my head... but it's certainly not hard. In my emergent behaviour synths, I pass in the buffer id of the random number buffer that Sonic Pi pre-allocates for rand etc...

@emlyn
Copy link
Contributor Author

emlyn commented Nov 26, 2020

Presumably echo, reverb and gverb are also delay effects? I don't see any buffer being passed into any of them though, so it's not really clear to me how that should be done. Also, does that mean that these fx could be made more efficient by creating the buffer outside and passing in the id?

@ethancrawford
Copy link
Collaborator

ethancrawford commented Oct 10, 2021

I don't see any buffer being passed into any of them though, so it's not really clear to me how that should be done.

Here is a link to the code where I do this for my emergent behaviour synths:
https://github.com/sonic-pi-net/sonic-pi/pull/2518/files#diff-cbd476b53987e2b30ecbc3bdf15ba74b631d4e1f57e00bf0ba44e129e5de19d6R3392-R3394

Also, does that mean that these fx could be made more efficient by creating the buffer outside and passing in the id?

@emlyn - for echo at least, as you may have seen, it is based on the CombN UGen:
https://doc.sccode.org/Classes/CombN.html
(There is alternatively a BufCombN UGen which does use a buffer for internal memory).
Whether either is more efficient though - I have no idea 🙂

https://github.com/sonic-pi-net/sonic-pi/pull/2518/files#diff-cbd476b53987e2b30ecbc3bdf15ba74b631d4e1f57e00bf0ba44e129e5de19d6R3392-R3394

@sonic-pi-net sonic-pi-net locked and limited conversation to collaborators Jul 21, 2022
@samaaron samaaron converted this issue into discussion #3164 Jul 21, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

3 participants