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

unexpected initial 0 Hz from Pitch -> K2A #6239

Open
ahihi opened this issue Mar 19, 2024 · 1 comment
Open

unexpected initial 0 Hz from Pitch -> K2A #6239

ahihi opened this issue Mar 19, 2024 · 1 comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: server plugins

Comments

@ahihi
Copy link

ahihi commented Mar 19, 2024

Environment

  • SuperCollider version: 3.13.0
  • Operating system: macOS 10.14

Steps to reproduce

(
{
	var in, inFreq, hasFreq, inFreqAr, sig;
	in = SinOsc.ar(440);
	#inFreq, hasFreq = Pitch.kr(in, 220, 60, 660);
	inFreqAr = K2A.ar(inFreq);
	[inFreq, inFreqAr].poll;
	nil;
}.play;
)

Expected vs. actual behavior

the above code prints as its initial output:

UGen Array [0]: 220
UGen Array [1]: 0

whereas i expected to get 220, 220.

maybe related to https://github.com/mtmccrea/supercollider/projects/1 ?

@ahihi ahihi added the bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. label Mar 19, 2024
@telephon
Copy link
Member

Yes, I can reproduce this. Must be an initialisation bug indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: server plugins
Projects
None yet
Development

No branches or pull requests

3 participants