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

Update MouseButton.schelp #2271

Merged
merged 2 commits into from Sep 6, 2016
Merged

Update MouseButton.schelp #2271

merged 2 commits into from Sep 6, 2016

Conversation

ghost
Copy link

@ghost ghost commented Aug 6, 2016

No description provided.

@nhthn nhthn added the comp: help schelp documentation label Aug 7, 2016
@nhthn
Copy link
Contributor

nhthn commented Aug 7, 2016

I think that's a fine example. The only problems I see are purely cosmetic:

  • again, no need for ////
  • please remove whitespace inside parentheses -- MouseX.kr(500, 1000) instead of MouseX.kr( 500, 1000 )

@nhthn nhthn added this to the 3.8 milestone Aug 8, 2016
(
SynthDef( \mousexyb, { |out=0|
var mousex, mousey, mousebutton;
mousex = MouseX.kr( 500, 1000 ); // this will determine the frequency of the sound (minimum value, maximum value, warp, lag)
Copy link
Member

Choose a reason for hiding this comment

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

If you're going to write what the arguments are in the comments, why not write the argument names?:

MouseX.kr(minval: 500, maxval: 1000)

Same goes for "MouseButton" below

@crucialfelix
Copy link
Member

lgtm

@crucialfelix crucialfelix merged commit 8c88889 into supercollider:master Sep 6, 2016
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