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

Demand broken for infinite-length input sequences #137

Closed
jleben opened this issue May 6, 2012 · 2 comments
Closed

Demand broken for infinite-length input sequences #137

jleben opened this issue May 6, 2012 · 2 comments
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: scsynth

Comments

@jleben
Copy link
Member

jleben commented May 6, 2012

[Issue migrated from SourceForge | ID: 3046469 | Submitted by 'nobody']
[http://sourceforge.net/support/tracker.php?aid=3046469]

Demand has problems with input sequences loop infinitely. this produces a DC signal:

x = play {
Demand.ar( Impulse.ar( SampleRate.ir / 2 ), 0, Dbrown( 0, 1, inf )) * 2 - 1
}

while this works:

x = play {
Demand.ar( Impulse.ar( SampleRate.ir / 2 ), 0, Dbrown( 0, 1, 0xFFFFFFFF )) * 2 - 1
}

@jleben
Copy link
Member Author

jleben commented May 6, 2012

[Comment migrated from SourceForge | Submitted by 'sciss']

man, this is screwed.... seems DemandEnvGen has exactly the opposite problem:

doesn't work:

x = {
var periods = Dseq([ 1, 2 ], 0xFFFFFFFF );
var lowFreqs = Dwhite( -0.5, -0.2 );
var highFreqs = Dwhite( 0.2, 0.5 );
var freqs = Drand([ lowFreqs, highFreqs ], 0xFFFFFFFF );
var normFreq= DemandEnvGen.ar( freqs, periods );
normFreq.poll( Impulse.ar( 1 ), "n" );
}.play

works:

x = {
var periods = Dseq([ 1, 2 ], inf );
var lowFreqs = Dwhite( -0.5, -0.2 );
var highFreqs = Dwhite( 0.2, 0.5 );
var freqs = Drand([ lowFreqs, highFreqs ], inf );
var normFreq= DemandEnvGen.ar( freqs, periods );
normFreq.poll( Impulse.ar( 1 ), "n" );
}.play

!?!?

@jleben jleben closed this as completed May 6, 2012
@jleben
Copy link
Member Author

jleben commented May 6, 2012

[Comment migrated from SourceForge | Submitted by 'jrhb']

This is an error in the example code. Dbrown.ar has three arguments: lo = 0.0, hi = 1.0, step = 0.01, length = inf; The example used inf as step size.

mossheim pushed a commit that referenced this issue Aug 24, 2020
Beaglebone instruction updates for 3.9.1
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: scsynth
Projects
None yet
Development

No branches or pull requests

1 participant