File: FeatureSave.schelp

package info (click to toggle)
supercollider-sc3-plugins 3.7.1~repack-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,332 kB
  • ctags: 11,704
  • sloc: cpp: 140,180; lisp: 14,746; ansic: 2,133; xml: 86; makefile: 82; haskell: 21; sh: 8
file content (38 lines) | stat: -rw-r--r-- 853 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
class:: FeatureSave
summary:: Storing feature data from UGens in NRT mode
categories:: UGens>Analysis
keyword:: NRT mode, feature data

Description::

Create files of feature data from analysis UGens in NRT mode.


classmethods::

method::kr

argument::features 
input feature array for sampling on triggers
argument::trig
Trigger input, one stored feature vector at each trigger. Note that trig must be at least (-0.01) to trigger, to allow bufnums of 0 to act as a trigger when driving things from FFT analysis

Examples::

code::

//Should really only do this in NRT, but does work if low load in RT 
(
a = {
	
~featuresave = FeatureSave.kr(SinOsc.kr,Impulse.kr(10)-0.5);  
	
}.play		 
)

s.sendMsg("/u_cmd", a.nodeID, ~featuresave.synthIndex, "createfile", "testfile2.data")

s.sendMsg("/u_cmd", a.nodeID, ~featuresave.synthIndex, "closefile")


::