This GitLab instance reached the end of its service life. It won't be possible to create new users or projects.

Please read the deprecation notice for more information concerning the deprecation timeline

Visit migration.git.tu-berlin.de (internal network only) to import your old projects to the new GitLab platform 📥

Commit 437e1d9e by Henrik von Coler

Added PD remote for subtractive example!

parent a68855f5
...@@ -3,8 +3,9 @@ subtractive_example {#mainpage} ...@@ -3,8 +3,9 @@ subtractive_example {#mainpage}
# BRIEF # BRIEF
This example uses a square wave This example uses a square wave oscillator and a biquad filter.
oscillator and a biquad filter. It can be controlled by MIDI or OSC, depending on the command
line arguments.
# Libraries # Libraries
...@@ -13,9 +14,41 @@ The following libraries are used within this project: ...@@ -13,9 +14,41 @@ The following libraries are used within this project:
* jack * jack
* YAML * YAML
* LIBLO * LIBLO
* libRtMIDI
# OSC server config # OSC server config
The file 'config.yml' is read by The file 'config.yml' defines
fm_example in order to set the port the OSC and MIDI paths used
and the OSC paths used. for controlling the synth:
\ No newline at end of file
```
# the OSC port:
port: 6666
# the midi controllers used:
ctl1: 14
ctl2: 15
ctl3: 16
ctl4: 17
# the OSC paths used:
path1: "/attack"
path2: "/release"
path3: "/pulsewidth"
path4: "/expo"
```
# Start subtractive example
The binary expects three arguments:
-c 'path to config file'
-ID 'id of the MIDI controller used'
-m 'the mode used (MIDI or OSC)'
```
./subtractive_example -c config.yml -ID 1 -m OSC
```
#N canvas 1 106 1920 974 10;
#X obj 913 751 netsend -u -b;
#X obj 913 614 list prepend send;
#X obj 913 637 list trim;
#X msg 1010 671 connect 10.11.12.1 6666;
#X msg 1011 714 disconnect;
#X floatatom 1326 368 5 0 0 0 - gain -, f 5;
#X obj 1342 420 loadbang;
#X obj 1010 647 loadbang;
#X floatatom 862 359 5 0 0 0 - modulator -, f 5;
#X obj 910 423 loadbang;
#X floatatom 657 375 5 0 0 0 - carrier -, f 5;
#X obj 710 424 loadbang;
#X floatatom 1069 361 5 0 0 0 - index -, f 5;
#X obj 1108 417 loadbang;
#X obj 1342 466 oscformat -f expo;
#X msg 1342 443 set expo;
#X obj 1108 467 oscformat -f pulsewidth;
#X msg 1108 442 set pulsewidth;
#X msg 710 447 set attack;
#X obj 710 470 oscformat -f attack;
#X msg 910 446 set release;
#X obj 910 469 oscformat -f release;
#X obj 317 257 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 569 562 loadbang;
#X msg 569 585 set trigger;
#X obj 569 608 oscformat -ff trigger;
#X obj 456 484 pack f f;
#X obj 354 326 metro 1000;
#X msg 456 437 1 \$1;
#X floatatom 380 380 5 0 0 0 - - -, f 5;
#X text 620 347 attack langth in sec;
#X text 814 335 release length in sec;
#X text 1038 335 pulsewidth (0-1);
#X text 1292 341 filter release rate;
#X floatatom 432 293 5 0 0 0 - - -, f 5;
#X text 288 233 auto trigger;
#X text 259 379 note frequency (Hz);
#X text 391 266 trigger distance (ms);
#X connect 1 0 2 0;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
#X connect 4 0 0 0;
#X connect 5 0 14 0;
#X connect 6 0 15 0;
#X connect 7 0 3 0;
#X connect 8 0 21 0;
#X connect 9 0 20 0;
#X connect 10 0 19 0;
#X connect 11 0 18 0;
#X connect 12 0 16 0;
#X connect 13 0 17 0;
#X connect 14 0 1 0;
#X connect 15 0 14 0;
#X connect 16 0 1 0;
#X connect 17 0 16 0;
#X connect 18 0 19 0;
#X connect 19 0 1 0;
#X connect 20 0 21 0;
#X connect 21 0 1 0;
#X connect 22 0 27 0;
#X connect 23 0 24 0;
#X connect 24 0 25 0;
#X connect 25 0 1 0;
#X connect 26 0 25 0;
#X connect 27 0 29 0;
#X connect 28 0 26 0;
#X connect 29 0 28 0;
#X connect 34 0 27 1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment