sclang: refactoring processSelect and validateBuffer#141
Open
elgiano wants to merge 1 commit intoflucoma:mainfrom
Open
sclang: refactoring processSelect and validateBuffer#141elgiano wants to merge 1 commit intoflucoma:mainfrom
elgiano wants to merge 1 commit intoflucoma:mainfrom
Conversation
to remove duplicate code, processSelect becomes FluidProcessSelect, and buffer validation for BufProcessors is now a method inherited from FluidBufProcessor
Member
|
This looks grand. I'll give it an experimental merge and test when I can. A general sclang question: is there any naming convention for denoting classes as being for internal use, in the absence of namespaces or such like? We've got quite a few little helpers like this that aren't part of the user interface, and I guess it would be useful noise reduction if we could mark them clearly. |
Member
|
I just read in the "Writing Classes" tutorial that there is a prefix 'pr' for private methods... but that is a good question, maybe for the sc forum if @elgiano doesn't have the answer - which I doubt :) |
Contributor
Author
|
I'm sorry but I'm not aware of any convention for namespacing classes. I
guess a note in the helpfile is the most we can do about it
…On Thu, Sep 29, 2022, 12:02 tremblap ***@***.***> wrote:
I just read in the "Writing Classes" tutorial that there is a prefix 'pr'
for private methods... but that is a good question, maybe for the sc forum
if @elgiano <https://github.com/elgiano> doesn't have the answer - which
I doubt :)
—
Reply to this email directly, view it on GitHub
<#141 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACNMWU4CL2GWQ3HUASEGFTWAVSMTANCNFSM6AAAAAAQE67AME>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
to remove duplicate code scattered over many classes, prProcessSelect becomes FluidProcessSelect, and buffer validation for BufProcessors is now a method inherited from FluidBufProcessor.
FluidProcessSelect usage:
validateBuffer: converts with
.asUGenInput, checks for nil, and throws on errorLet me know if you like it :)