Skip to content

Commit

Permalink
add metadata to Line/Patch/Range
Browse files Browse the repository at this point in the history
  • Loading branch information
nshaheed committed Dec 11, 2023
1 parent a22fdfb commit 172b3ba
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
15 changes: 14 additions & 1 deletion Line/Line.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,19 @@ CK_DLL_QUERY( Line )
// hmm, don't change this...
QUERY->setname( QUERY, "Line" );

// ------------------------------------------------------------------------
// Chugin metadata
// ------------------------------------------------------------------------
QUERY->setinfo( QUERY, CHUGIN_INFO_AUTHORS, "Nick Shaheed" );
// the version string of this chugin, e.g., "v1.2"
QUERY->setinfo( QUERY, CHUGIN_INFO_CHUGIN_VERSION, "1.0" );
// text description of this chugin; what is it? what does it do? who is it for?
QUERY->setinfo( QUERY, CHUGIN_INFO_DESCRIPTION, "Envelope of a arbitrary ramps (ala Max/PD's line~)." );
// (optional) URL of the homepage for this chugin
QUERY->setinfo( QUERY, CHUGIN_INFO_URL, "https://github.com/ccrma/chugins/tree/main/Line" );
// (optional) contact email
QUERY->setinfo( QUERY, CHUGIN_INFO_EMAIL, "[email protected]" );

// begin the class definition
// NOTE to create a non-UGen class, change the second argument
// to extend a different ChucK class (e.g., "Object")
Expand Down Expand Up @@ -984,4 +997,4 @@ CK_DLL_MFUN(line_getDurations) {

RETURN->v_object = (Chuck_Object*) dur_arr;

}
}
14 changes: 14 additions & 0 deletions Patch/Patch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,20 @@ CK_DLL_QUERY( Patch )
// hmm, don't change this...
QUERY->setname(QUERY, "Patch");

// ------------------------------------------------------------------------
// Chugin metadata
// ------------------------------------------------------------------------
// the author(s) of this chugin, e.g., "Alice Baker & Carl Donut"
QUERY->setinfo( QUERY, CHUGIN_INFO_AUTHORS, "Nick Shaheed" );
// the version string of this chugin, e.g., "v1.2"
QUERY->setinfo( QUERY, CHUGIN_INFO_CHUGIN_VERSION, "1.0" );
// text description of this chugin; what is it? what does it do? who is it for?
QUERY->setinfo( QUERY, CHUGIN_INFO_DESCRIPTION, "Take a UGen signal and patch it into a UGen's setter function." );
// (optional) URL of the homepage for this chugin
QUERY->setinfo( QUERY, CHUGIN_INFO_URL, "https://github.com/ccrma/chugins/tree/main/Patch" );
// (optional) contact email
QUERY->setinfo( QUERY, CHUGIN_INFO_EMAIL, "[email protected]" );

// begin the class definition
// can change the second argument to extend a different ChucK class
QUERY->begin_class(QUERY, "Patch", "UGen");
Expand Down
14 changes: 13 additions & 1 deletion Range/Range.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,21 @@ class Range
// add additional functions to this Chugin
CK_DLL_QUERY( Range )
{
// hmm, don't change this...
QUERY->setname(QUERY, "Range");

// ------------------------------------------------------------------------
// Chugin metadata
// ------------------------------------------------------------------------
QUERY->setinfo( QUERY, CHUGIN_INFO_AUTHORS, "Nick Shaheed" );
// the version string of this chugin, e.g., "v1.2"
QUERY->setinfo( QUERY, CHUGIN_INFO_CHUGIN_VERSION, "1.0" );
// text description of this chugin; what is it? what does it do? who is it for?
QUERY->setinfo( QUERY, CHUGIN_INFO_DESCRIPTION, "Linearly scale an input signal to a different range of numbers." );
// (optional) URL of the homepage for this chugin
QUERY->setinfo( QUERY, CHUGIN_INFO_URL, "https://github.com/ccrma/chugins/tree/main/Range" );
// (optional) contact email
QUERY->setinfo( QUERY, CHUGIN_INFO_EMAIL, "[email protected]" );

// begin the class definition
// can change the second argument to extend a different ChucK class
QUERY->begin_class(QUERY, "Range", "UGen");
Expand Down

0 comments on commit 172b3ba

Please sign in to comment.