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

Add overloads for bitwise binary OP ugens #352

Closed
scottyeager opened this issue Jan 14, 2024 · 2 comments · Fixed by #354
Closed

Add overloads for bitwise binary OP ugens #352

scottyeager opened this issue Jan 14, 2024 · 2 comments · Fixed by #354
Assignees

Comments

@scottyeager
Copy link

In sclang, creating binary OP ugens using the bitwise operators (& and |, at least) is supported. Would be nice to also have this in Supriya, by adding __or__ and __and__ to the overloaded operators.

For example:

@synthdef()
def gated(gate=1, time=1):
    Linen.kr(gate & Trig.kr(1, time))
@josiah-wolf-oberholtzer
Copy link
Contributor

Sounds good to me. Will have this implemented today.

@scottyeager
Copy link
Author

Excellent, thanks!

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

Successfully merging a pull request may close this issue.

2 participants