to the Csound mailing list.
3 | * Modified by RW, 2018
4 | *
5 | * Description: Simple p5 sketch that draws random circles to the
6 | * screen and triggers an corresponing random note. The cs var has been
7 | * created globally in the csound-p5js.js file
8 | */
9 |
10 |
11 | var textAlpha = 0;
12 | var textAlphaSpeed = 0.01;
13 |
14 | function setup()
15 | {
16 | var cnvs = createCanvas(windowWidth, windowHeight);
17 | cnvs.style('display', 'block');
18 | textAlign(CENTER);
19 | frameRate(3)
20 | }
21 |
22 | function draw()
23 | {
24 | background(0,0,0);
25 |
26 | if(csoundLoaded)
27 | {
28 | //put all Csound API calls here
29 | x = random(width);
30 | y = random(height);
31 | amp = random(15000);
32 |
33 | cs.setControlChannel("pitch", y);
34 | cs.setControlChannel("pan", x/740);
35 | cs.setControlChannel("amp", amp);
36 |
37 |
38 | fill(255, (x/800) * 255, 0, (y/480) * 255);
39 | ellipse(x,y, 20*(amp/2500), 20*(amp/2500));
40 | fill(0, 0, 0, 10);
41 | rect(0, 0, width, height);
42 | }
43 | else
44 | {
45 | //basic code to indicate Csound is still loading...
46 | fill(0, 0, 100, textAlpha);
47 | text("...LOADING CSOUND...", width/2, height/2);
48 | textAlpha += textAlphaSpeed;
49 | if(textAlpha > 1 || textAlpha < 0)
50 | {
51 | textAlphaSpeed *= -1;
52 | }
53 | }
54 | }
55 |
56 |
57 | function windowResized()
58 | {
59 | resizeCanvas(windowWidth, windowHeight);
60 | }
61 |
--------------------------------------------------------------------------------
/p5jsExample/style.css:
--------------------------------------------------------------------------------
1 | html, body {
2 | margin: 0;
3 | padding: 0;
4 | }
5 |
--------------------------------------------------------------------------------
/p5jsExample/wasm/FileList.js:
--------------------------------------------------------------------------------
1 | /*
2 | * C S O U N D
3 | *
4 | * L I C E N S E
5 | *
6 | * This software is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This software is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | */
15 |
16 |
17 | var FileList = function(path) {
18 |
19 | var that = this;
20 | var _getFileCount = cwrap('FileList_getFileCount', ['number'], ['string']);
21 | var _getFileNameString = cwrap('FileList_getFileNameString', ['string'], ['string', 'number']);
22 |
23 | this.getFileList = function() {
24 |
25 | var count = _getFileCount(path);
26 |
27 | var fileList = [];
28 |
29 | for (var i = 0; i < count; ++i) {
30 |
31 | var filePointer = _getFileNameString(path, i);
32 | var buffer = new Uint8Array(Module.HEAP8.buffer, filePointer, _strlen(filePointer));
33 | var fileName = String.fromCharCode.apply(null, buffer);
34 | fileList.push(fileName);
35 | }
36 |
37 | return fileList;
38 | };
39 | };
40 |
--------------------------------------------------------------------------------
/p5jsExample/wasm/libcsound.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"libcsound.js","sources":[],"names":[],"mappings":""}
--------------------------------------------------------------------------------
/p5jsExample/wasm/libcsound.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rorywalsh/csoundo/0491e8d0a3f711f1fbe5854b8c17f8de69cce018/p5jsExample/wasm/libcsound.wasm
--------------------------------------------------------------------------------
/reference/allclasses-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | All Classes (Javadocs: csoundo)
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | All Classes
20 |
21 |
22 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/reference/allclasses-noframe.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | All Classes (Javadocs: csoundo)
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | All Classes
20 |
21 |
22 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/reference/constant-values.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Constant Field Values (Javadocs: csoundo)
8 |
9 |
10 |
11 |
12 |
13 |
14 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | PREV
57 | NEXT
58 |
59 | FRAMES
60 | NO FRAMES
61 |
68 |
69 | All Classes
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 | Constant Field Values
83 |
84 |
85 | Contents
88 |
89 |
90 |
91 |
92 |
93 | csoundo.*
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 | csoundo.Csoundo
102 |
103 |
104 |
105 | public static final java.lang.String
106 | VERSION
107 | "0.1.2"
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 | PREV
145 | NEXT
146 |
147 | FRAMES
148 | NO FRAMES
149 |
156 |
157 | All Classes
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 | processing library csoundo by Jacob Joaquin. (c) 2010
169 |
170 |
171 |
--------------------------------------------------------------------------------
/reference/csoundo/Engine.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Engine (Javadocs: csoundo)
8 |
9 |
10 |
11 |
12 |
13 |
14 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 | csoundo
90 |
91 | Class Engine
92 |
93 | java.lang.Object
94 | csoundo.Engine
95 |
96 |
97 |
98 | public class Engine extends java.lang.Object
99 |
100 |
101 |
102 | This class is for getting Csound up and running.
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 | Field Summary
116 |
117 |
118 |
119 | Csound
120 | csound
121 |
122 |
123 |
124 |
125 |
126 |
127 | SWIGTYPE_p_CSOUND_
128 | csound_p
129 |
130 |
131 |
132 |
133 |
134 |
135 | CsoundFile
136 | csoundFile
137 |
138 |
139 |
140 |
141 |
142 |
143 | boolean
144 | isRunning
145 |
146 |
147 |
148 |
149 |
150 |
151 | Mutex
152 | mutex
153 |
154 |
155 |
156 |
157 |
158 |
159 | java.lang.String
160 | options
161 |
162 |
163 |
164 |
165 |
166 |
167 | CsoundPerformanceThread
168 | perfThread
169 |
170 |
171 |
172 |
173 |
174 |
175 | SWIGTYPE_p_void
176 | v
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 | Constructor Summary
190 |
191 |
192 | Engine (java.lang.String _csd,
193 | java.lang.String _path)
194 |
195 |
196 | The Engine constructor, usually called in the setup() method in your
197 | sketch to initialize and start the library.
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 | Method Summary
208 |
209 |
210 |
211 | void
212 | start ()
213 |
214 |
215 | Start Csound.
216 |
217 |
218 |
219 |
220 |
221 | Methods inherited from class java.lang.Object
222 |
223 |
224 | equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 | Field Detail
237 |
238 |
239 |
240 |
241 | options
242 |
243 | public java.lang.String options
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 | isRunning
252 |
253 | public boolean isRunning
254 |
255 |
256 |
257 |
258 |
259 |
260 |
261 | csound
262 |
263 | public Csound csound
264 |
265 |
266 |
267 |
268 |
269 |
270 |
271 | csoundFile
272 |
273 | public CsoundFile csoundFile
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 | perfThread
282 |
283 | public CsoundPerformanceThread perfThread
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 | v
292 |
293 | public SWIGTYPE_p_void v
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 | csound_p
302 |
303 | public SWIGTYPE_p_CSOUND_ csound_p
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 | mutex
312 |
313 | public Mutex mutex
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 |
322 |
323 |
324 |
325 | Constructor Detail
326 |
327 |
328 |
329 |
330 | Engine
331 |
332 | public Engine (java.lang.String _csd,
333 | java.lang.String _path)
334 |
335 | The Engine constructor, usually called in the setup() method in your
336 | sketch to initialize and start the library.
337 |
338 |
339 | Parameters: _csd
- The name of the csd file_path
- The path to the csd
340 |
341 |
342 |
343 |
344 |
345 |
346 |
347 |
348 | Method Detail
349 |
350 |
351 |
352 |
353 | start
354 |
355 | public void start ()
356 |
357 | Start Csound.
358 |
359 |
360 |
361 |
362 |
363 |
364 |
365 |
366 |
367 |
368 |
369 |
370 |
418 |
419 |
420 |
421 |
422 | processing library csoundo by Jacob Joaquin. (c) 2010
423 |
424 |
425 |
--------------------------------------------------------------------------------
/reference/csoundo/Mutex.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Mutex (Javadocs: csoundo)
8 |
9 |
10 |
11 |
12 |
13 |
14 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 | csoundo
90 |
91 | Class Mutex
92 |
93 | java.lang.Object
94 | csoundo.Mutex
95 |
96 |
97 |
98 | public class Mutex extends java.lang.Object
99 |
100 |
101 |
102 | Experimental class for thread locking/memory protection.
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 | Constructor Summary
117 |
118 |
119 | Mutex ()
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 | Method Summary
133 |
134 |
135 |
136 | int
137 | activeThreads ()
138 |
139 |
140 |
141 |
142 |
143 |
144 | void
145 | cleanup ()
146 |
147 |
148 |
149 |
150 |
151 |
152 | void
153 | lock ()
154 |
155 |
156 |
157 |
158 |
159 |
160 | void
161 | unlock ()
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 | Methods inherited from class java.lang.Object
171 |
172 |
173 | equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 | Constructor Detail
186 |
187 |
188 |
189 |
190 | Mutex
191 |
192 | public Mutex ()
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 | Method Detail
203 |
204 |
205 |
206 |
207 | activeThreads
208 |
209 | public int activeThreads ()
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 | cleanup
219 |
220 | public void cleanup ()
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 | lock
230 |
231 | public void lock ()
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 | unlock
241 |
242 | public void unlock ()
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
259 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 | PREV CLASS
278 | NEXT CLASS
279 |
280 | FRAMES
281 | NO FRAMES
282 |
289 |
290 | All Classes
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 | SUMMARY: NESTED | FIELD | CONSTR | METHOD
299 |
300 | DETAIL: FIELD | CONSTR | METHOD
301 |
302 |
303 |
304 |
305 |
306 |
307 | processing library csoundo by Jacob Joaquin. (c) 2010
308 |
309 |
310 |
--------------------------------------------------------------------------------
/reference/csoundo/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | csoundo (Javadocs: csoundo)
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | csoundo
20 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/reference/csoundo/package-summary.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | csoundo (Javadocs: csoundo)
8 |
9 |
10 |
11 |
12 |
13 |
14 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | PREV PACKAGE
57 | NEXT PACKAGE
58 |
59 | FRAMES
60 | NO FRAMES
61 |
68 |
69 | All Classes
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 | Package csoundo
82 |
83 |
84 |
85 |
86 |
87 | Class Summary
88 |
89 |
90 | Csoundo
91 |
92 |
93 |
94 | Engine
95 | This class is for getting Csound up and running.
96 |
97 |
98 | Mutex
99 | Experimental class for thread locking/memory protection.
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 | PREV PACKAGE
136 | NEXT PACKAGE
137 |
138 | FRAMES
139 | NO FRAMES
140 |
147 |
148 | All Classes
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 | processing library csoundo by Jacob Joaquin. (c) 2010
160 |
161 |
162 |
--------------------------------------------------------------------------------
/reference/csoundo/package-tree.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | csoundo Class Hierarchy (Javadocs: csoundo)
8 |
9 |
10 |
11 |
12 |
13 |
14 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | PREV
57 | NEXT
58 |
59 | FRAMES
60 | NO FRAMES
61 |
68 |
69 | All Classes
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 | Hierarchy For Package csoundo
83 |
84 |
85 |
86 | Class Hierarchy
87 |
88 |
89 | java.lang.Object
90 | csoundo.Engine csoundo.Mutex java.lang.Thread (implements java.lang.Runnable)
91 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 | PREV
124 | NEXT
125 |
126 | FRAMES
127 | NO FRAMES
128 |
135 |
136 | All Classes
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 | processing library csoundo by Jacob Joaquin. (c) 2010
148 |
149 |
150 |
--------------------------------------------------------------------------------
/reference/deprecated-list.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Deprecated List (Javadocs: csoundo)
8 |
9 |
10 |
11 |
12 |
13 |
14 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | PREV
57 | NEXT
58 |
59 | FRAMES
60 | NO FRAMES
61 |
68 |
69 | All Classes
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 | Deprecated API
83 |
84 |
85 | Contents
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 | PREV
117 | NEXT
118 |
119 | FRAMES
120 | NO FRAMES
121 |
128 |
129 | All Classes
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 | processing library csoundo by Jacob Joaquin. (c) 2010
141 |
142 |
143 |
--------------------------------------------------------------------------------
/reference/help-doc.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | API Help (Javadocs: csoundo)
8 |
9 |
10 |
11 |
12 |
13 |
14 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | PREV
57 | NEXT
58 |
59 | FRAMES
60 | NO FRAMES
61 |
68 |
69 | All Classes
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 | How This API Document Is Organized
83 |
84 | This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
85 | Package
86 |
87 |
88 |
89 | Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
90 | Interfaces (italic) Classes Enums Exceptions Errors Annotation Types
91 |
92 |
93 | Class/Interface
94 |
95 |
96 |
97 | Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
98 | Class inheritance diagram Direct Subclasses All Known Subinterfaces All Known Implementing Classes Class/interface declaration Class/interface description
99 |
100 |
Nested Class Summary Field Summary Constructor Summary Method Summary
101 |
102 |
Field Detail Constructor Detail Method Detail
103 | Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
104 |
105 |
106 | Annotation Type
107 |
108 |
109 |
110 | Each annotation type has its own separate page with the following sections:
111 | Annotation Type declaration Annotation Type description Required Element Summary Optional Element Summary Element Detail
112 |
113 |
114 |
115 | Enum
116 |
117 |
118 |
119 | Each enum has its own separate page with the following sections:
120 | Enum declaration Enum description Enum Constant Summary Enum Constant Detail
121 |
122 |
123 | Tree (Class Hierarchy)
124 |
125 | There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object
. The interfaces do not inherit from java.lang.Object
.
126 | When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages. When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
127 |
128 |
129 | Deprecated API
130 |
131 | The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
132 |
133 | Index
134 |
135 | The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
136 |
137 | Prev/Next
138 | These links take you to the next or previous class, interface, package, or related page.
139 | Frames/No Frames
140 | These links show and hide the HTML frames. All pages are available with or without frames.
141 |
142 |
143 | Serialized Form
144 | Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
145 |
146 |
147 | Constant Field Values
148 | The Constant Field Values page lists the static final fields and their values.
149 |
150 |
151 |
152 | This help file applies to API documentation generated using the standard doclet.
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 | PREV
184 | NEXT
185 |
186 | FRAMES
187 | NO FRAMES
188 |
195 |
196 | All Classes
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 | processing library csoundo by Jacob Joaquin. (c) 2010
208 |
209 |
210 |
--------------------------------------------------------------------------------
/reference/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Javadocs: csoundo
8 |
9 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 | Frame Alert
29 |
30 |
31 | This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
32 |
33 | Link toNon-frame version.
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/reference/overview-tree.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Class Hierarchy (Javadocs: csoundo)
8 |
9 |
10 |
11 |
12 |
13 |
14 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | PREV
57 | NEXT
58 |
59 | FRAMES
60 | NO FRAMES
61 |
68 |
69 | All Classes
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 | Hierarchy For All Packages
83 |
84 |
85 | Package Hierarchies: csoundo
86 |
87 |
88 | Class Hierarchy
89 |
90 |
91 | java.lang.Object
92 | csoundo.Engine csoundo.Mutex java.lang.Thread (implements java.lang.Runnable)
93 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 | PREV
126 | NEXT
127 |
128 | FRAMES
129 | NO FRAMES
130 |
137 |
138 | All Classes
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 | processing library csoundo by Jacob Joaquin. (c) 2010
150 |
151 |
152 |
--------------------------------------------------------------------------------
/reference/package-list:
--------------------------------------------------------------------------------
1 | csoundo
2 |
--------------------------------------------------------------------------------
/reference/resources/inherit.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rorywalsh/csoundo/0491e8d0a3f711f1fbe5854b8c17f8de69cce018/reference/resources/inherit.gif
--------------------------------------------------------------------------------
/reference/stylesheet.css:
--------------------------------------------------------------------------------
1 | /* Javadoc style sheet */
2 | /* Define colors, fonts and other style attributes here to override the defaults */
3 | /* processingLibs style by andreas schlegel, sojamo */
4 |
5 |
6 | body {
7 | margin : 0;
8 | padding : 0;
9 | padding-left : 10px;
10 | padding-right : 8px;
11 | background-color : #FFFFFF;
12 | font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
13 | font-size : 100%;
14 | font-size : 0.7em;
15 | font-weight : normal;
16 | line-height : normal;
17 | margin-bottom:30px;
18 | }
19 |
20 |
21 |
22 |
23 | /* Headings */
24 | h1, h2, h3, h4, h5, th {
25 | font-family :Arial, Helvetica, sans-serif;
26 | font-size:1.2em;
27 | }
28 |
29 |
30 | p {
31 | font-size : 1em;
32 | width:80%;
33 | }
34 |
35 | pre, code {
36 | font-family : "Courier New", Courier, monospace;
37 | font-size : 12px;
38 | line-height : normal;
39 | }
40 |
41 |
42 |
43 | table {
44 | border:0;
45 | margin-bottom:10px;
46 | margin-top:10px;
47 | }
48 |
49 |
50 | tr, td {
51 | border-top: 0px solid;
52 | border-left: 0px solid;
53 | padding-top:8px;
54 | padding-bottom:8px;
55 | }
56 |
57 |
58 |
59 | hr {
60 | border:0;
61 | height:1px;
62 | padding:0;
63 | margin:0;
64 | margin-bottom:4px;
65 |
66 | }
67 |
68 |
69 |
70 | dd, th, td, font {
71 | font-size:1.0em;
72 | line-height:1.0em;
73 | }
74 |
75 |
76 |
77 | dt {
78 | margin-bottom:0px;
79 | }
80 |
81 |
82 |
83 | dd {
84 | margin-top:2px;
85 | margin-bottom:4px;
86 | }
87 |
88 |
89 |
90 | a {
91 | text-decoration: underline;
92 | font-weight: normal;
93 | }
94 |
95 | a:hover,
96 | a:active {
97 | text-decoration: underline;
98 | font-weight: normal;
99 | }
100 |
101 | a:visited,
102 | a:link:visited {
103 | text-decoration: underline;
104 | font-weight: normal;
105 | }
106 |
107 |
108 | img {
109 | border: 0px solid #000000;
110 | }
111 |
112 |
113 |
114 | /* Navigation bar fonts */
115 | .NavBarCell1 {
116 | border:0;
117 | }
118 |
119 | .NavBarCell1Rev {
120 | border:0;
121 | }
122 |
123 | .NavBarFont1 {
124 | font-family: Arial, Helvetica, sans-serif;
125 | font-size:1.1em;
126 | }
127 |
128 |
129 | .NavBarFont1 b {
130 | font-weight:normal;
131 | }
132 |
133 |
134 |
135 | .NavBarFont1:after, .NavBarFont1Rev:after {
136 | font-weight:normal;
137 | content: " \\";
138 | }
139 |
140 |
141 | .NavBarFont1Rev {
142 | font-family: Arial, Helvetica, sans-serif;
143 | font-size:1.1em;
144 | }
145 |
146 | .NavBarFont1Rev b {
147 | font-family: Arial, Helvetica, sans-serif;
148 | font-size:1.1em;
149 | font-weight:normal;
150 | }
151 |
152 | .NavBarCell2 {
153 | font-family: Arial, Helvetica, sans-serif;
154 | }
155 |
156 | .NavBarCell3 {
157 | font-family: Arial, Helvetica, sans-serif;
158 | }
159 |
160 |
161 |
162 | font.FrameItemFont {
163 | font-family: Helvetica, Arial, sans-serif;
164 | font-size:1.1em;
165 | line-height:1.1em;
166 | }
167 |
168 | font.FrameHeadingFont {
169 | font-family: Helvetica, Arial, sans-serif;
170 | line-height:32px;
171 | }
172 |
173 | /* Font used in left-hand frame lists */
174 | .FrameTitleFont {
175 | font-family: Helvetica, Arial, sans-serif
176 | }
177 |
178 |
179 | .toggleList {
180 | padding:0;
181 | margin:0;
182 | margin-top:12px;
183 | }
184 |
185 | .toggleList dt {
186 | font-weight:bold;
187 | font-size:12px;
188 | font-family:arial,sans-serif;
189 | padding:0px;
190 | margin:10px 0px 10px 0px;
191 | }
192 |
193 | .toggleList dt span {
194 | font-family: monospace;
195 | padding:0;
196 | margin:0;
197 | }
198 |
199 |
200 | .toggleList dd {
201 | margin:0;
202 | padding:0;
203 | }
204 |
205 | html.isjs .toggleList dd {
206 | display: none;
207 | }
208 |
209 | .toggleList pre {
210 | padding: 4px 4px 4px 4px;
211 | }
212 |
213 |
214 |
215 |
216 |
217 | /* COLORS */
218 |
219 | pre, code {
220 | color: #000000;
221 | }
222 |
223 |
224 | body {
225 | color : #333333;
226 | background-color :#FFFFFF;
227 | }
228 |
229 |
230 | h1, h2, h3, h4, h5, h6 {
231 | color:#555;
232 | }
233 |
234 | a,
235 | .toggleList dt {
236 | color: #1a7eb0;
237 | }
238 |
239 | a:hover,
240 | a:active {
241 | color: #1a7eb0;
242 | }
243 |
244 | a:visited,
245 | a:link:visited {
246 | color: #1a7eb0;
247 | }
248 |
249 | td,tr {
250 | border-color: #999999;
251 | }
252 |
253 | hr {
254 | color:#999999;
255 | background:#999999;
256 | }
257 |
258 |
259 | .TableHeadingColor {
260 | background: #dcdcdc;
261 | color: #555;
262 | }
263 |
264 |
265 | .TableSubHeadingColor {
266 | background: #EEEEFF
267 | }
268 |
269 | .TableRowColor {
270 | background: #FFFFFF
271 | }
272 |
273 |
274 | .NavBarCell1 {
275 | background-color:#dcdcdc;
276 | color:#000;
277 | }
278 |
279 | .NavBarCell1 a {
280 | color:#333;
281 | }
282 |
283 |
284 | .NavBarCell1Rev {
285 | background-color:transparent;
286 | }
287 |
288 | .NavBarFont1 {
289 | color:#333;
290 | }
291 |
292 |
293 | .NavBarFont1Rev {
294 | color:#fff;
295 | }
296 |
297 | .NavBarCell2 {
298 | background-color:#999;
299 | }
300 |
301 | .NavBarCell2 a {
302 | color:#fff;
303 | }
304 |
305 |
306 |
307 | .NavBarCell3 {
308 | background-color:#dcdcdc;
309 | }
310 |
311 |
--------------------------------------------------------------------------------
/src/CallbackWrapper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * A Csound interface library for Processing.
3 | *
4 | * (c) 2010
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General
17 | * Public License along with this library; if not, write to the
18 | * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
19 | * Boston, MA 02111-1307 USA
20 | *
21 | * @author Rory Walsh
22 | * @modified 10/01/2012
23 | * @version 0.2.1
24 | */
25 |
26 | package csoundo;
27 |
28 | import processing.core.*;
29 |
30 | import csnd6.*;
31 | import java.io.*;
32 | import java.util.*;
33 |
34 |
35 | public class CallbackWrapper extends CsoundCallbackWrapper{
36 | public Csound csound;
37 | public MessageQueue messageQueue;
38 | public Csoundo csoundoObject;
39 |
40 |
41 | public CallbackWrapper(Csound csnd){
42 | super(csnd);
43 | //System.out.print(this.getClass().getSuperclass().getName()+"\n");
44 | csound = csnd;
45 | messageQueue = new MessageQueue();
46 | }
47 |
48 |
49 | public void OutputValueCallback(String _chan, double _val) {
50 | csoundoObject.outValueCallbackFunction(_chan, _val);
51 | messageQueue.addMessageToValueQueue(_chan, _val);
52 | }
53 |
54 |
55 |
56 | public void setCsoundoObj(Csoundo obj){
57 | csoundoObject = obj;
58 | }
59 |
60 | public void SetMessageCallback() {
61 | //System.out.print("messagecallback");
62 | }
63 |
64 | public int YieldCallback()
65 | {
66 | //update Csound channels
67 | for(int i=0;i channelMessageQueue;
40 | private Vector tableMessageQueue;
41 | private Vector valueMessageQueue;
42 |
43 |
44 | public MessageQueue(){
45 | channelMessageQueue = new Vector();
46 | valueMessageQueue = new Vector();
47 | tableMessageQueue = new Vector();
48 | }
49 |
50 | public void addMessageToChannelQueue(String _chan, double _val){
51 | channelMessageQueue.addElement(new ChannelMessage(_chan, _val));
52 | }
53 |
54 | public void addMessageToTableQueue(int _tableNumber, int _index, double _amp){
55 | tableMessageQueue.addElement(new TableMessage(_tableNumber, _index, _amp));
56 | }
57 |
58 | public void addMessageToValueQueue(String _chan, double _val){
59 | valueMessageQueue.addElement(new ChannelMessage(_chan, _val));
60 | }
61 |
62 | public void fillArrayWithTablePoints(int table, float[] array){
63 |
64 | }
65 |
66 |
67 | public ChannelMessage getMessageFromChannelQueue(int index){
68 | return channelMessageQueue.get(index);
69 | }
70 |
71 | public TableMessage getMessageFromTableQueue(int index){
72 | return tableMessageQueue.get(index);
73 | }
74 |
75 | public ChannelMessage getMessageFromValueQueue(int index){
76 | return valueMessageQueue.get(index);
77 | }
78 |
79 | public int getNumberOfMessagesInQueue(String queue){
80 | if(queue=="channel")
81 | return channelMessageQueue.size();
82 | else if(queue=="table")
83 | return tableMessageQueue.size();
84 | else if(queue=="value")
85 | return valueMessageQueue.size();
86 | else return 0;
87 | }
88 |
89 | public void flushMessagesFromQueue(String queue){
90 | if(queue=="channel")
91 | channelMessageQueue.removeAllElements();
92 | else if(queue=="table")
93 | tableMessageQueue.removeAllElements();
94 | else if(queue=="value")
95 | valueMessageQueue.removeAllElements();
96 | }
97 |
98 | }
99 |
100 |
--------------------------------------------------------------------------------
/src/TableMessage.java:
--------------------------------------------------------------------------------
1 | /**
2 | * A Csound interface library for Processing.
3 | *
4 | * (c) 2010
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General
17 | * Public License along with this library; if not, write to the
18 | * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
19 | * Boston, MA 02111-1307 USA
20 | *
21 | * @author Jacob Joaquin, Rory Walsh, Conor Dempsey
22 | * @modified 10/01/2012
23 | * @version 0.2.1
24 | */
25 |
26 | package csoundo;
27 |
28 | import csnd6.*;
29 | import java.io.*;
30 | import java.util.*;
31 |
32 | /**
33 | * Simple class to hold channel name and value.
34 | */
35 |
36 | public class TableMessage {
37 | public int xVal;
38 | public double yVal;
39 | public int tableNumber;
40 |
41 | public TableMessage(int tableNum, int xPos, double yPos){
42 | xVal = xPos;
43 | yVal = yPos;
44 | tableNumber = tableNum;
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/csoundo.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rorywalsh/csoundo/0491e8d0a3f711f1fbe5854b8c17f8de69cce018/src/csoundo.jar
--------------------------------------------------------------------------------
/src/csoundo/CallbackWrapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rorywalsh/csoundo/0491e8d0a3f711f1fbe5854b8c17f8de69cce018/src/csoundo/CallbackWrapper.class
--------------------------------------------------------------------------------
/src/csoundo/ChannelMessage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rorywalsh/csoundo/0491e8d0a3f711f1fbe5854b8c17f8de69cce018/src/csoundo/ChannelMessage.class
--------------------------------------------------------------------------------
/src/csoundo/Csoundo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rorywalsh/csoundo/0491e8d0a3f711f1fbe5854b8c17f8de69cce018/src/csoundo/Csoundo.class
--------------------------------------------------------------------------------
/src/csoundo/CsoundoArray.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rorywalsh/csoundo/0491e8d0a3f711f1fbe5854b8c17f8de69cce018/src/csoundo/CsoundoArray.class
--------------------------------------------------------------------------------
/src/csoundo/MessageQueue.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rorywalsh/csoundo/0491e8d0a3f711f1fbe5854b8c17f8de69cce018/src/csoundo/MessageQueue.class
--------------------------------------------------------------------------------
/src/csoundo/TableMessage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rorywalsh/csoundo/0491e8d0a3f711f1fbe5854b8c17f8de69cce018/src/csoundo/TableMessage.class
--------------------------------------------------------------------------------
/src/make.bat:
--------------------------------------------------------------------------------
1 | echo "BUILD SCRIPT FOR CSOUNDO."
2 | echo ""
3 | echo "PLEASE EDIT THE SCRIPTS VARIABLES"
4 | echo "SO THAT IT USES THE CORRECT PATH"
5 |
6 | set PROCESSING_LIB=C:\Users\rory\sourcecode\processing-3.3.7\core\library\core.jar
7 | set CSOUND_LIB=C:\PROGRA~1\Csound6_x64\bin\csnd6.jar
8 | javac -classpath %PROCESSING_LIB%;%CSOUND_LIB% -d . *.java
9 | jar -cf ../library/csoundo.jar ./csoundo/*.class
10 |
--------------------------------------------------------------------------------
/src/make.sh:
--------------------------------------------------------------------------------
1 | echo "BUILD SCRIPT FOR CSOUNDO."
2 | echo ""
3 | echo "PLEASE EDIT THE SCRIPTS VARIABLES"
4 | echo "SO THAT IT USES THE CORRECT PATH"
5 |
6 | PROCESSING_LIB=/home/rory/sourcecode/processing-2.2.1/core/library/core.jar
7 | CSOUND_LIB=/home/rory/sourcecode/cabbageaudio/csound/build/csnd6.jar
8 | javac -classpath $PROCESSING_LIB:$CSOUND_LIB -d . *.java
9 | jar -cf ../library/csoundo.jar ./csoundo/*.class
10 |
--------------------------------------------------------------------------------