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

Option to preserve Poll output w/ lower verbosity #350

Closed
jamshark70 opened this issue Jul 8, 2012 · 1 comment
Closed

Option to preserve Poll output w/ lower verbosity #350

jamshark70 opened this issue Jul 8, 2012 · 1 comment

Comments

@jamshark70
Copy link
Contributor

s.options.verbosity = -1;

s.boot;

a = {
    var trig = Impulse.kr(0);
    Poll.kr(trig, Rand(0, 1));
    FreeSelf.kr(trig <= 0);
    0
}.play;

The Poll output is not printed because verbosity < 0.

I can understand why this was done -- if Poll is considered to be "informational" and verbosity = -1 means to suppress informational messages, then of course you wouldn't see anything.

I disagree that Poll is informational. This is output that the user explicitly requested by writing the unit into a SynthDef. That differentiates it from messages posted by scsynth, without the user's intent.

Possible solutions:

  1. Always print Poll output, no matter the verbosity level.
  2. Or, if you may want to suppress it sometimes, change the verbosity to be a mask system. Verbosity = -1 (0xFFFFFFFF) could mean print everything.

-2 (0xFFFFFFFE), suppress informational messages
-3 (0xFFFFFFFD), suppress error messages
-5 (0xFFFFFFFB), suppress Poll and other explicit messages

Then these could be bitAnd'ed to control the behavior individually, so, for example, you could keep error messages but suppress informational+Poll by -6.

Use case: NRT analysis. It would be useful to get Poll printouts without the whole slew of "next OSC packet" informational messages. Currently impossible.

@jamshark70
Copy link
Contributor Author

Changed in master so that Poll posts at verbosity levels -1 and 0.

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

No branches or pull requests

1 participant