-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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") | ||
|
@@ -984,4 +997,4 @@ CK_DLL_MFUN(line_getDurations) { | |
|
||
RETURN->v_object = (Chuck_Object*) dur_arr; | ||
|
||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"); | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"); | ||
|