-
Notifications
You must be signed in to change notification settings - Fork 19
[Enhance] Manual Documentation for CCE Objects #250
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
Changes from all commits
01c5eb7
0bad75d
8b7ddb1
9130520
2b4e43e
8b9e06c
396be28
bdaed46
5b1ff3e
b290c6e
f5c8f4f
7493815
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,153 @@ | ||
| <?xml version='1.0' encoding='utf-8' standalone='yes'?> | ||
| <?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?> | ||
| <!-- | ||
| Part of the Fluid Corpus Manipulation Project (http://www.flucoma.org/) | ||
| Copyright 2017-2019 University of Huddersfield. | ||
| Licensed under the BSD-3 License. | ||
| See license.md file in the project root for full license information. | ||
| This project has received funding from the European Research Council (ERC) | ||
| under the European Union’s Horizon 2020 research and innovation programme | ||
| (grant agreement No 725899). | ||
| --> | ||
| <c74object name='fluid.buf2list' category='FluidCorpusManuipulation'> | ||
| <digest>Copy the contents of a buffer~ to a list</digest> | ||
| <description>A simplified workflow for extracting numerical data from buffers as lists of numbers.</description> | ||
| <discussion> | ||
| <h4><openfilelink filename="Fluid Corpus Manipulation Toolkit.maxpat">Open the Overview Patch</openfilelink></h4> | ||
| Given a source buffer that is valid, fluid.buf2list copies its contents to a new list when it receives a bang. | ||
|
|
||
| This is a convenient way of extracting data from a buffer to be used elsewhere. | ||
|
|
||
| <p>fluid.buf2list is part of the Fluid Decomposition Toolkit of the FluCoMa project. For more explanations, learning material, and discussions on its musicianly uses, visit <a href="http://www.flucoma.org/">flucoma.org</a>.</p> | ||
| </discussion> | ||
| <!--METADATA--> | ||
| <metadatalist> | ||
| <metadata name='author'>FluCoMa</metadata> | ||
| <metadata name='tag'>Fluid Decomposition</metadata> | ||
| <metadata name='tag'>corpus</metadata> | ||
| </metadatalist> | ||
|
|
||
| <inletlist> | ||
| </inletlist> | ||
|
|
||
| <outletlist> | ||
| </outletlist> | ||
|
|
||
| <objarglist> | ||
| <objarg name='maxsize' optional='1' type=''> | ||
| <digest> | ||
| Maximum list size | ||
| </digest> | ||
| <description> | ||
| Sets a maximum size for the internal list. The absolute maximum in Max is 32767. | ||
| </description> | ||
| <attributelist> | ||
| <attribute name='default' get='1' set='1' type='int' size='1' value='256' /> | ||
| </attributelist> | ||
| </objarg> | ||
| </objarglist> | ||
|
|
||
| <!--MESSAGES--> | ||
| <methodlist> | ||
| <method name='bang'> | ||
| <arglist> | ||
| </arglist> | ||
| <description> | ||
|
|
||
|
|
||
| </description> | ||
| </method> | ||
|
|
||
| <method name="bang"> | ||
| <arglist /> | ||
| <digest> | ||
| Trigger processing | ||
| </digest> | ||
| <description> | ||
| Extract data from the <at>source</at> <o>buffer~</o>, given the current values of <at>startframe</at>, <at>numframes</at>, <at>startchan</at> and <at>numchans</at>. | ||
| </description> | ||
| </method> | ||
| <method name="buffer"> | ||
| <arglist> | ||
| <!-- This should be true but isn't yet --> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Glad you grabbed this: I'll probably push the update to make
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great. It's a really handy shortcut for many things and cuts down on @ttribute hell. |
||
| <!-- <arg name= "buffer" optional='0' type="symbol" /> | ||
| <arg name= "start frame" optional='1' type="long" /> | ||
| <arg name= "number of frames" optional='1' type="long" /> | ||
| <arg name= "start channel" optional='1' type="long" /> | ||
| <arg name= "number of channels" optional='1' type="long" /> --> | ||
| </arglist> | ||
| <digest> | ||
| Set the source buffer~ and trigger processing | ||
| </digest> | ||
| <description> | ||
| Sets the value of <at>source</at><!-- and optionally <at>startframe</at>, <at>numframes</at>, <at>startchan</at>, <at>numchans</at>.--> Then processes as if <m>bang</m> had been called. | ||
| </description> | ||
| </method> | ||
| </methodlist> | ||
| <!--MESSAGES--> | ||
|
|
||
| <!--ATTRIBUTES--> | ||
| <attributelist> | ||
| <attribute name='axis' get='1' set='1' type='int' size='1'> | ||
| <digest> | ||
| Direction in which to copy from the <at>source</at>. | ||
| </digest> | ||
| <description> | ||
| In what direction to copy data from the <at>source</at>. <m>0</m> copies frame by frame, <m>1</m> copies channel-by-channel. | ||
| </description> | ||
|
|
||
| <attributelist> | ||
| <attribute name='default' get='1' set='1' type='int' size='1' value='0'> | ||
| </attribute> | ||
| </attributelist> | ||
|
|
||
| </attribute> | ||
| <attribute name='source' get='1' set='1' type='symbol' size='1'> | ||
| <digest> | ||
| The <o>buffer~</o> to copy the values from. | ||
| </digest> | ||
| <description> | ||
| Sets the source <o>buffer~</o> to copy data from. | ||
| </description> | ||
|
|
||
|
|
||
| </attribute> | ||
| <attribute name='startchan' get='1' set='1' type='int' size='1'> | ||
| <digest> | ||
| Start channel in <at>destination</at>. | ||
| </digest> | ||
| <description> | ||
| For multichannel input buffers, which channel to begin copying from. The default is 0. | ||
| </description> | ||
|
|
||
| <attributelist> | ||
| <attribute name='default' get='1' set='1' type='int' size='1' value='0'> | ||
| </attribute> | ||
| </attributelist> | ||
|
|
||
| </attribute> | ||
| <attribute name='startframe' get='1' set='1' type='int' size='1'> | ||
| <digest> | ||
| Start frame in <at>destination</at>. | ||
| </digest> | ||
| <description> | ||
| The starting index (in samples) to copy values from the <at>source</at> <o>buffer~</o>. | ||
| </description> | ||
|
|
||
| <attributelist> | ||
| <attribute name='default' get='1' set='1' type='int' size='1' value='0'> | ||
| </attribute> | ||
| </attributelist> | ||
|
|
||
| </attribute> | ||
| </attributelist> | ||
| <!--ATTRIBUTES--> | ||
|
|
||
| <!--RELATED--> | ||
| <seealsolist> | ||
| <seealso name='fluid.list2buf'/> | ||
| <seealso name='peek~'/> | ||
| <seealso name='poke~'/> | ||
| </seealsolist> | ||
| <!--RELATED--> | ||
| </c74object> | ||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,144 @@ | ||||||||||
| <?xml version='1.0' encoding='utf-8' standalone='yes'?> | ||||||||||
| <?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?> | ||||||||||
| <!-- | ||||||||||
| Part of the Fluid Corpus Manipulation Project (http://www.flucoma.org/) | ||||||||||
| Copyright 2017-2019 University of Huddersfield. | ||||||||||
| Licensed under the BSD-3 License. | ||||||||||
| See license.md file in the project root for full license information. | ||||||||||
| This project has received funding from the European Research Council (ERC) | ||||||||||
| under the European Union’s Horizon 2020 research and innovation programme | ||||||||||
| (grant agreement No 725899). | ||||||||||
| --> | ||||||||||
| <c74object name='fluid.list2buf' category='FluidCorpusManuipulation'> | ||||||||||
| <digest>Copy a list to a buffer~</digest> | ||||||||||
| <description>Copies the values of a list to a buffer~.</description> | ||||||||||
| <discussion> | ||||||||||
| <h4><openfilelink filename="Fluid Corpus Manipulation Toolkit.maxpat">Open the Overview Patch</openfilelink></h4> | ||||||||||
| fluid.list2buf copies the values of a list to a buffer~. | ||||||||||
|
|
||||||||||
| This is a convenient way of transforming data such that it can interface with other FluCoMa objects that expect to receive a buffer. | ||||||||||
|
|
||||||||||
| Be aware that if a buffer of a predefined size is not supplied as the output it will defer the copying. If you need the copying to occur in the high priority thread, supply a buffer with the size of the input. | ||||||||||
|
|
||||||||||
| <p>fluid.list2buf is part of the Fluid Decomposition Toolkit of the FluCoMa project. For more explanations, learning material, and discussions on its musicianly uses, visit <a href="http://www.flucoma.org/">flucoma.org</a>.</p> | ||||||||||
| </discussion> | ||||||||||
| <!--METADATA--> | ||||||||||
| <metadatalist> | ||||||||||
| <metadata name='author'>FluCoMa</metadata> | ||||||||||
| <metadata name='tag'>Fluid Decomposition</metadata> | ||||||||||
| <metadata name='tag'>corpus</metadata> | ||||||||||
| </metadatalist> | ||||||||||
|
|
||||||||||
| <inletlist> | ||||||||||
| </inletlist> | ||||||||||
|
|
||||||||||
| <outletlist> | ||||||||||
| </outletlist> | ||||||||||
|
|
||||||||||
| <objarglist> | ||||||||||
| <objarg name='maxsize' optional='1' type=''> | ||||||||||
| <digest> | ||||||||||
| Maximum list size | ||||||||||
| </digest> | ||||||||||
| <description> | ||||||||||
| Sets a maximum size for the internal list. The absolute maximum in Max is 32767. | ||||||||||
| </description> | ||||||||||
| <attributelist> | ||||||||||
| <attribute name='default' get='1' set='1' type='int' size='1' value='256' /> | ||||||||||
| </attributelist> | ||||||||||
| </objarg> | ||||||||||
| </objarglist> | ||||||||||
|
|
||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It'll be worth comparing mine and your XMLs for this file too: e.g. I have some docs for the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added this now in bdaed46 |
||||||||||
| <!--MESSAGES--> | ||||||||||
| <methodlist> | ||||||||||
| <method name='list'> | ||||||||||
| <arglist> | ||||||||||
| </arglist> | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| <description> | ||||||||||
|
|
||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
|
||||||||||
| </description> | ||||||||||
| </method> | ||||||||||
|
|
||||||||||
| </methodlist> | ||||||||||
| <!--MESSAGES--> | ||||||||||
|
|
||||||||||
| <!--ATTRIBUTES--> | ||||||||||
| <attributelist> | ||||||||||
| <attribute name='autosize' get='1' set='1' type='int' size='1'> | ||||||||||
| <digest> | ||||||||||
| Determines if the output buffer will be resized according to the size of the input list. | ||||||||||
| </digest> | ||||||||||
| <description> | ||||||||||
| Sets whether the <at>destination</at> <o>buffer~</o> should be resized as needed. Note that this only applies when invoking from the main thread: buffer~s can not be resized from the high priority thread. | ||||||||||
| </description> | ||||||||||
|
|
||||||||||
| <attributelist> | ||||||||||
| <attribute name='default' get='1' set='1' type='int' size='1' value='1'> | ||||||||||
| </attribute> | ||||||||||
| </attributelist> | ||||||||||
|
|
||||||||||
| </attribute> | ||||||||||
| <attribute name='axis' get='1' set='1' type='int' size='1'> | ||||||||||
| <digest> | ||||||||||
| Direction in which to write to <at>destination</at>. | ||||||||||
| </digest> | ||||||||||
| <description> | ||||||||||
| In what direction to write data to <at>destination</at>. <m>0</m> writes frame by frame, <m>1</m> writes channel-by-channel. | ||||||||||
| </description> | ||||||||||
|
|
||||||||||
| <attributelist> | ||||||||||
| <attribute name='default' get='1' set='1' type='int' size='1' value='0'> | ||||||||||
| </attribute> | ||||||||||
| </attributelist> | ||||||||||
|
|
||||||||||
| </attribute> | ||||||||||
| <attribute name='destination' get='1' set='1' type='symbol' size='1'> | ||||||||||
| <digest> | ||||||||||
| The <o>buffer~</o> to copy the list values to. | ||||||||||
| </digest> | ||||||||||
| <description> | ||||||||||
| Sets the destination <o>buffer~</o> into which to write list data. If this is unset then the object will use its own automatically named <o>buffer~</o>. | ||||||||||
| </description> | ||||||||||
|
|
||||||||||
|
|
||||||||||
| </attribute> | ||||||||||
| <attribute name='startchan' get='1' set='1' type='int' size='1'> | ||||||||||
| <digest> | ||||||||||
| Start channel in <at>destination</at>. | ||||||||||
| </digest> | ||||||||||
| <description> | ||||||||||
| For multichannel output buffers, which channel to begin copying to. The default is 0. | ||||||||||
| </description> | ||||||||||
|
|
||||||||||
| <attributelist> | ||||||||||
| <attribute name='default' get='1' set='1' type='int' size='1' value='0'> | ||||||||||
| </attribute> | ||||||||||
| </attributelist> | ||||||||||
|
|
||||||||||
| </attribute> | ||||||||||
| <attribute name='startframe' get='1' set='1' type='int' size='1'> | ||||||||||
| <digest> | ||||||||||
| Start frame in <at>destination</at>. | ||||||||||
| </digest> | ||||||||||
| <description> | ||||||||||
| The starting index (in samples) to copy list to the <at>destination</at> <o>buffer~</o>. | ||||||||||
| </description> | ||||||||||
|
|
||||||||||
| <attributelist> | ||||||||||
| <attribute name='default' get='1' set='1' type='int' size='1' value='0'> | ||||||||||
| </attribute> | ||||||||||
| </attributelist> | ||||||||||
|
|
||||||||||
| </attribute> | ||||||||||
| </attributelist> | ||||||||||
| <!--ATTRIBUTES--> | ||||||||||
|
|
||||||||||
| <!--RELATED--> | ||||||||||
| <seealsolist> | ||||||||||
| <seealso name='fluid.buf2list'/> | ||||||||||
| <seealso name='peek~'/> | ||||||||||
| <seealso name='poke~'/> | ||||||||||
| </seealsolist> | ||||||||||
| <!--RELATED--> | ||||||||||
| </c74object> | ||||||||||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's also a
buffermessage. Check the redundant xml I sent you just to see if we agree on the content?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, so if a buffer object render that? I'll check the text in due course.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solved I think in 8b9e06c