File: linear.c

package info (click to toggle)
x42-plugins 20180803-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 14,752 kB
  • sloc: ansic: 94,316; cpp: 6,670; makefile: 3,388; objc: 951; sh: 75
file content (24 lines) | stat: -rw-r--r-- 417 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#define CSC_NAME linearscale

#ifdef CSC_TTF

	controlfilter:CSC_NAME
	TTL_DEFAULTDEF("Control Linear Scale")
	, TTL_IPORTFLOAT(0, "mult", "Multiplier",  -10, 10, 1)
	, TTL_IPORTFLOAT(1, "add",  "Offset",  -10, 10, 0)
	; rdfs:comment "Control Parameter Scale/Offset out = in * Multiplier + Offset"
	.

#elif defined CSC_CODE

INIT_FN(CSC_NAME)
{
	;
}

PROC_FN(CSC_NAME)
{
	P_OUT = P_IN * PORT(0) + PORT(1);
}

#endif