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

Basic Documentation for Spawner Class #5767

Merged
merged 1 commit into from
Oct 21, 2022

Conversation

tdug
Copy link
Contributor

@tdug tdug commented Apr 28, 2022

Purpose and Motivation

This adds some basic documentation.

Types of changes

  • Documentation
  • Argument name change. This class is likely not used directly anywhere.

To-do list

  • Code is tested
  • All tests are passing
  • Updated documentation
  • This PR is ready for review

Comment on lines +2 to +5
var genStream;
var priorityQ;
var now;
var event;
Copy link
Contributor Author

@tdug tdug Apr 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not see any cases of these variables used outside of this class, nor accessed through this. They may as well be private.

@@ -29,8 +29,8 @@ Spawner : Pattern {
^stream;
}

seq { | pat |
pat.embedInStream(event)
seq { | pattern |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this argument name to be consistent with the argument name in par. I wouldn't normally do this, but this class is undocumented, and it's unlikely anyone used the keyword argument syntax for this method in their existing code.

@@ -34,7 +34,7 @@ Stop all substreams of the Spawner.
::

note::
We should move the documentation of above methods to the link::Classes/Spawner:: helpfile...
Copy link
Contributor Author

@tdug tdug Apr 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the inspiration for this change.

@dyfer dyfer added this to the 3.13.0 milestone Aug 18, 2022
@dyfer dyfer added the comp: help schelp documentation label Aug 18, 2022
@dyfer
Copy link
Member

dyfer commented Oct 21, 2022

Note to self: make a note of the argument change in the Changelog; me and @joshpar think it's fine.

@joshpar joshpar merged commit b001f29 into supercollider:develop Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: help schelp documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants