Patch File
stringlengths 4
35
| Patch Contents
stringlengths 203
3.78k
| Model Response
stringlengths 8
821
| prompt
stringlengths 73
267
| explanation
stringlengths 10
541
| instruction
stringclasses 1
value | output
stringlengths 373
4.22k
|
---|---|---|---|---|---|---|
auto-counter.pd | #N canvas 764 340 558 391 10;
#X obj 120 200 float;
#X obj 190 200 +;
#X floatatom 120 250 5 0 0 0 - - -, f 5;
#X floatatom 210 160 5 0 0 0 - - -, f 5;
#X text 90 30 Create an automatic counter that increments by 1 every
second.;
#X obj 120 80 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 0 1;
#X obj 120 120 metro 1000;
#X connect 0 0 1 0;
#X connect 0 0 2 0;
#X connect 1 0 0 1;
#X connect 3 0 1 1;
#X connect 5 0 6 0;
#X connect 6 0 0 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates an automatic counter that increments by 1 every second.",
"patch_explanation": "This patch uses a metro object to trigger a counter every second, incrementing a float value by 1, and displaying the current count using a floatatom object."
}
``` | Create a Pure Data patch that generates an automatic counter that increments by 1 every second. | This patch uses a metro object to trigger a counter every second, incrementing a float value by 1, and displaying the current count using a floatatom object. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 764 340 558 391 10;
#X obj 120 200 float;
#X obj 190 200 +;
#X floatatom 120 250 5 0 0 0 - - -, f 5;
#X floatatom 210 160 5 0 0 0 - - -, f 5;
#X text 90 30 Create an automatic counter that increments by 1 every
second.;
#X obj 120 80 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 0 1;
#X obj 120 120 metro 1000;
#X connect 0 0 1 0;
#X connect 0 0 2 0;
#X connect 1 0 0 1;
#X connect 3 0 1 1;
#X connect 5 0 6 0;
#X connect 6 0 0 0;
```
explanation:
This patch uses a metro object to trigger a counter every second, incrementing a float value by 1, and displaying the current count using a floatatom object. |
a-1-two-randommelodies.pd | #N canvas 237 598 382 352 12;
#X obj 135 47 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 82 84 random 800;
#X obj 82 118 + 200;
#X floatatom 82 144 5 0 0 0 - - -;
#X obj 82 177 osc~;
#X obj 83 248 dac~;
#X obj 173 85 random 800;
#X obj 173 119 + 200;
#X floatatom 173 145 5 0 0 0 - - -;
#X obj 173 178 osc~;
#X obj 82 211 *~ 0.5;
#X text 25 4 2.2.1.2.8. two random melodies;
#X connect 0 0 1 0;
#X connect 0 0 6 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 10 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 10 0 5 0;
#X connect 10 0 5 1;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates two random melodies and plays them simultaneously through the audio output.",
"patch_explanation": "This patch uses two random number generators to create two separate melodies, each with a frequency range of 200-1000 Hz. The melodies are then played through two oscillators and combined using a multiplier, before being sent to the audio output."
}
``` | Create a Pure Data patch that generates two random melodies and plays them simultaneously through the audio output. | This patch uses two random number generators to create two separate melodies, each with a frequency range of 200-1000 Hz. The melodies are then played through two oscillators and combined using a multiplier, before being sent to the audio output. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 237 598 382 352 12;
#X obj 135 47 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 82 84 random 800;
#X obj 82 118 + 200;
#X floatatom 82 144 5 0 0 0 - - -;
#X obj 82 177 osc~;
#X obj 83 248 dac~;
#X obj 173 85 random 800;
#X obj 173 119 + 200;
#X floatatom 173 145 5 0 0 0 - - -;
#X obj 173 178 osc~;
#X obj 82 211 *~ 0.5;
#X text 25 4 2.2.1.2.8. two random melodies;
#X connect 0 0 1 0;
#X connect 0 0 6 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 10 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 10 0 5 0;
#X connect 10 0 5 1;
```
explanation:
This patch uses two random number generators to create two separate melodies, each with a frequency range of 200-1000 Hz. The melodies are then played through two oscillators and combined using a multiplier, before being sent to the audio output. |
3-7-1-1-granular-theory3.pd | #N canvas 627 235 787 841 12;
#N canvas 0 0 450 300 graph1 0;
#X array array1 62079 float 2;
#X coords 0 1 62079 -1 200 140 1;
#X restore 291 29 graph;
#X obj 290 220 soundfiler;
#X floatatom 290 246 5 0 0 0 - - -;
#X obj 290 272 expr 44100 / $f1;
#X obj 290 329 *~;
#X obj 290 303 phasor~;
#X obj 47 370 phasor~;
#X floatatom 47 345 5 0 0 0 - - -;
#X obj 46 512 *~ 256;
#X msg 290 190 read -resize voice.wav array1;
#X obj 290 507 samphold~;
#X obj 47 628 tabread4~ array1;
#X obj 47 593 +~;
#X obj 49 763 dac~;
#N canvas 0 0 450 300 graph2 0;
#X array hanning 256 float 1;
#A 0 0 0.000150591 0.000602275 0.00135478 0.00240764 0.00376022 0.00541174
0.00736117 0.00960734 0.0121489 0.0149843 0.0181119 0.0215298 0.0252359
0.0292279 0.0335035 0.0380601 0.042895 0.0480052 0.0533877 0.0590392
0.0649563 0.0711355 0.077573 0.084265 0.0912073 0.0983959 0.105826
0.113494 0.121395 0.129524 0.137876 0.146446 0.155229 0.16422 0.173413
0.182803 0.192384 0.20215 0.212095 0.222214 0.2325 0.242948 0.25355
0.264301 0.275194 0.286222 0.297379 0.308658 0.320052 0.331555 0.343159
0.354857 0.366643 0.378509 0.390449 0.402454 0.414519 0.426634 0.438794
0.450991 0.463218 0.475466 0.487729 0.5 0.512271 0.524534 0.536782
0.549009 0.561205 0.573365 0.585481 0.597545 0.609551 0.62149 0.633357
0.645143 0.656841 0.668445 0.679948 0.691342 0.702621 0.713778 0.724806
0.735699 0.74645 0.757052 0.767499 0.777786 0.787905 0.79785 0.807616
0.817197 0.826587 0.83578 0.844771 0.853554 0.862124 0.870476 0.878605
0.886506 0.894174 0.901605 0.908793 0.915736 0.922428 0.928865 0.935044
0.940961 0.946613 0.951995 0.957106 0.96194 0.966497 0.970773 0.974765
0.978471 0.981889 0.985016 0.987852 0.990393 0.992639 0.994589 0.99624
0.997593 0.998645 0.999398 0.999849 1 0.999849 0.999398 0.998645 0.997592
0.996239 0.994588 0.992638 0.990392 0.987851 0.985015 0.981887 0.978469
0.974763 0.970771 0.966495 0.961939 0.957104 0.951993 0.946611 0.940959
0.935042 0.928863 0.922425 0.915733 0.908791 0.901602 0.894171 0.886503
0.878602 0.870473 0.862121 0.853551 0.844768 0.835777 0.826584 0.817194
0.807613 0.797847 0.787901 0.777782 0.767496 0.757048 0.746446 0.735695
0.724802 0.713774 0.702617 0.691338 0.679944 0.668441 0.656837 0.645139
0.633353 0.621486 0.609547 0.597541 0.585477 0.573361 0.561201 0.549004
0.536778 0.52453 0.512266 0.499996 0.487725 0.475462 0.463213 0.450987
0.43879 0.42663 0.414515 0.40245 0.390445 0.378505 0.366639 0.354853
0.343155 0.331551 0.320048 0.308654 0.297375 0.286218 0.27519 0.264297
0.253547 0.242944 0.232497 0.222211 0.212092 0.202146 0.19238 0.182799
0.17341 0.164217 0.155226 0.146443 0.137873 0.129521 0.121392 0.113491
0.105823 0.0983929 0.0912044 0.0842621 0.0775702 0.0711328 0.0649537
0.0590367 0.0533853 0.0480029 0.0428928 0.038058 0.0335015 0.029226
0.025234 0.0215281 0.0181104 0.0149829 0.0121476 0.00960615 0.0073601
0.00541082 0.00375944 0.00240701 0.00135431 0.000601947 0.000150442
;
#X coords 0 1 256 0 40 30 1;
#X restore 244 711 graph;
#X text 229 728 0;
#X text 229 705 1;
#X text 232 744 0;
#X text 268 744 256;
#X obj 204 629 tabread~ hanning;
#X obj 48 695 *~;
#X obj 49 731 *~ 0.8;
#X text 31 26 3.7.1.1. Granular Theory 3;
#X text 537 192 load sound file;
#X text 342 246 size of sound file;
#X text 356 302 runs at original speed;
#X text 45 323 ������ayb akc speed you want;
#X text 104 502 window \, here 256;
#X text 103 519 samples in size;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 2 0 4 1;
#X connect 3 0 5 0;
#X connect 4 0 10 0;
#X connect 5 0 4 0;
#X connect 6 0 8 0;
#X connect 6 0 10 1;
#X connect 7 0 6 0;
#X connect 8 0 12 0;
#X connect 8 0 19 0;
#X connect 9 0 1 0;
#X connect 10 0 12 1;
#X connect 11 0 20 0;
#X connect 12 0 11 0;
#X connect 19 0 20 1;
#X connect 20 0 21 0;
#X connect 21 0 13 0;
#X connect 21 0 13 1;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that implements a granular synthesizer, allowing for control over the speed of a loaded sound file and featuring a Hanning window for smooth playback.",
"patch_explanation": "This patch is a granular synthesizer that loads a sound file and allows for control over its speed. The sound file is read into an array, and a phasor is used to control the playback speed. The output is then passed through a Hanning window to smooth the playback. The user can control the speed of the playback using a float atom, and the output is sent to the audio output."
}
``` | Create a Pure Data patch that implements a granular synthesizer, allowing for control over the speed of a loaded sound file and featuring a Hanning window for smooth playback. | This patch is a granular synthesizer that loads a sound file and allows for control over its speed. The sound file is read into an array, and a phasor is used to control the playback speed. The output is then passed through a Hanning window to smooth the playback. The user can control the speed of the playback using a float atom, and the output is sent to the audio output. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 627 235 787 841 12;
#N canvas 0 0 450 300 graph1 0;
#X array array1 62079 float 2;
#X coords 0 1 62079 -1 200 140 1;
#X restore 291 29 graph;
#X obj 290 220 soundfiler;
#X floatatom 290 246 5 0 0 0 - - -;
#X obj 290 272 expr 44100 / $f1;
#X obj 290 329 *~;
#X obj 290 303 phasor~;
#X obj 47 370 phasor~;
#X floatatom 47 345 5 0 0 0 - - -;
#X obj 46 512 *~ 256;
#X msg 290 190 read -resize voice.wav array1;
#X obj 290 507 samphold~;
#X obj 47 628 tabread4~ array1;
#X obj 47 593 +~;
#X obj 49 763 dac~;
#N canvas 0 0 450 300 graph2 0;
#X array hanning 256 float 1;
#A 0 0 0.000150591 0.000602275 0.00135478 0.00240764 0.00376022 0.00541174
0.00736117 0.00960734 0.0121489 0.0149843 0.0181119 0.0215298 0.0252359
0.0292279 0.0335035 0.0380601 0.042895 0.0480052 0.0533877 0.0590392
0.0649563 0.0711355 0.077573 0.084265 0.0912073 0.0983959 0.105826
0.113494 0.121395 0.129524 0.137876 0.146446 0.155229 0.16422 0.173413
0.182803 0.192384 0.20215 0.212095 0.222214 0.2325 0.242948 0.25355
0.264301 0.275194 0.286222 0.297379 0.308658 0.320052 0.331555 0.343159
0.354857 0.366643 0.378509 0.390449 0.402454 0.414519 0.426634 0.438794
0.450991 0.463218 0.475466 0.487729 0.5 0.512271 0.524534 0.536782
0.549009 0.561205 0.573365 0.585481 0.597545 0.609551 0.62149 0.633357
0.645143 0.656841 0.668445 0.679948 0.691342 0.702621 0.713778 0.724806
0.735699 0.74645 0.757052 0.767499 0.777786 0.787905 0.79785 0.807616
0.817197 0.826587 0.83578 0.844771 0.853554 0.862124 0.870476 0.878605
0.886506 0.894174 0.901605 0.908793 0.915736 0.922428 0.928865 0.935044
0.940961 0.946613 0.951995 0.957106 0.96194 0.966497 0.970773 0.974765
0.978471 0.981889 0.985016 0.987852 0.990393 0.992639 0.994589 0.99624
0.997593 0.998645 0.999398 0.999849 1 0.999849 0.999398 0.998645 0.997592
0.996239 0.994588 0.992638 0.990392 0.987851 0.985015 0.981887 0.978469
0.974763 0.970771 0.966495 0.961939 0.957104 0.951993 0.946611 0.940959
0.935042 0.928863 0.922425 0.915733 0.908791 0.901602 0.894171 0.886503
0.878602 0.870473 0.862121 0.853551 0.844768 0.835777 0.826584 0.817194
0.807613 0.797847 0.787901 0.777782 0.767496 0.757048 0.746446 0.735695
0.724802 0.713774 0.702617 0.691338 0.679944 0.668441 0.656837 0.645139
0.633353 0.621486 0.609547 0.597541 0.585477 0.573361 0.561201 0.549004
0.536778 0.52453 0.512266 0.499996 0.487725 0.475462 0.463213 0.450987
0.43879 0.42663 0.414515 0.40245 0.390445 0.378505 0.366639 0.354853
0.343155 0.331551 0.320048 0.308654 0.297375 0.286218 0.27519 0.264297
0.253547 0.242944 0.232497 0.222211 0.212092 0.202146 0.19238 0.182799
0.17341 0.164217 0.155226 0.146443 0.137873 0.129521 0.121392 0.113491
0.105823 0.0983929 0.0912044 0.0842621 0.0775702 0.0711328 0.0649537
0.0590367 0.0533853 0.0480029 0.0428928 0.038058 0.0335015 0.029226
0.025234 0.0215281 0.0181104 0.0149829 0.0121476 0.00960615 0.0073601
0.00541082 0.00375944 0.00240701 0.00135431 0.000601947 0.000150442
;
#X coords 0 1 256 0 40 30 1;
#X restore 244 711 graph;
#X text 229 728 0;
#X text 229 705 1;
#X text 232 744 0;
#X text 268 744 256;
#X obj 204 629 tabread~ hanning;
#X obj 48 695 *~;
#X obj 49 731 *~ 0.8;
#X text 31 26 3.7.1.1. Granular Theory 3;
#X text 537 192 load sound file;
#X text 342 246 size of sound file;
#X text 356 302 runs at original speed;
#X text 45 323 ������ayb akc speed you want;
#X text 104 502 window \, here 256;
#X text 103 519 samples in size;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 2 0 4 1;
#X connect 3 0 5 0;
#X connect 4 0 10 0;
#X connect 5 0 4 0;
#X connect 6 0 8 0;
#X connect 6 0 10 1;
#X connect 7 0 6 0;
#X connect 8 0 12 0;
#X connect 8 0 19 0;
#X connect 9 0 1 0;
#X connect 10 0 12 1;
#X connect 11 0 20 0;
#X connect 12 0 11 0;
#X connect 19 0 20 1;
#X connect 20 0 21 0;
#X connect 21 0 13 0;
#X connect 21 0 13 1;
```
explanation:
This patch is a granular synthesizer that loads a sound file and allows for control over its speed. The sound file is read into an array, and a phasor is used to control the playback speed. The output is then passed through a Hanning window to smooth the playback. The user can control the speed of the playback using a float atom, and the output is sent to the audio output. |
4-1-1-1-plus-one-algorithm.pd | #N canvas 1025 485 463 271 12;
#X floatatom 65 64 5 0 0 0 - - -;
#X floatatom 65 123 5 0 0 0 - - -;
#X text 49 19 4.1.1.1. plus-one - algorithm;
#N canvas 0 0 454 304 plusone 0;
#X obj 103 83 inlet;
#X obj 103 110 + 1;
#X obj 103 137 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X restore 65 91 pd plusone;
#X connect 0 0 3 0;
#X connect 3 0 1 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that takes a float input, adds 1 to it, and outputs the result.",
"patch_explanation": "This patch is a simple algorithm that increments a float input by 1. It consists of an inlet, an addition operation (+ 1), and an outlet, all connected in series."
}
``` | Create a Pure Data patch that takes a float input, adds 1 to it, and outputs the result. | This patch is a simple algorithm that increments a float input by 1. It consists of an inlet, an addition operation (+ 1), and an outlet, all connected in series. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 1025 485 463 271 12;
#X floatatom 65 64 5 0 0 0 - - -;
#X floatatom 65 123 5 0 0 0 - - -;
#X text 49 19 4.1.1.1. plus-one - algorithm;
#N canvas 0 0 454 304 plusone 0;
#X obj 103 83 inlet;
#X obj 103 110 + 1;
#X obj 103 137 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X restore 65 91 pd plusone;
#X connect 0 0 3 0;
#X connect 3 0 1 0;
```
explanation:
This patch is a simple algorithm that increments a float input by 1. It consists of an inlet, an addition operation (+ 1), and an outlet, all connected in series. |
wave.pd | #N canvas 410 383 946 326 12;
#N canvas 0 0 450 300 graph1 0;
#X array \$0-s 3000 float 0;
#X coords 0 1 2999 -1 200 100 1;
#X restore 345 51 graph;
#X obj 205 56 inlet~;
#X obj 205 138 tabwrite~ \$0-s;
#X obj 215 112 metro 50;
#X obj 215 85 ii 1;
#X floatatom 352 236 5 0 0 0 speed - -;
#X floatatom 746 233 5 0 0 0 size - -;
#X obj 700 39 ii 100;
#X obj 643 273 s \$0-s;
#X msg 643 248 resize \$1;
#X obj 738 12 ii 3000;
#X obj 547 30 vsl 10 118 50 3000 0 0 empty empty size 0 -8 1 8 -262144
-1 -1 11700 0;
#X obj 560 38 vsl 10 110 50 250 0 0 empty empty speed 0 -8 1 8 -262144
-1 -1 2725 1;
#X connect 1 0 2 0;
#X connect 3 0 2 0;
#X connect 4 0 3 0;
#X connect 5 0 3 1;
#X connect 6 0 9 0;
#X connect 7 0 12 0;
#X connect 9 0 8 0;
#X connect 10 0 11 0;
#X connect 11 0 6 0;
#X connect 12 0 5 0;
#X coords 0 -1 1 1 254 135 1 342 17;
| ```
{
"prompt": "Create a Pure Data patch that generates a scrolling waveform display with adjustable speed and size, taking audio input from an inlet and displaying the waveform on a graph.",
"explanation": "This patch creates a scrolling waveform display with adjustable speed and size. It takes audio input from an inlet, samples the audio at a rate of 50 Hz, and writes the samples to an array. The array is then displayed as a graph, with the x-axis representing time and the y-axis representing amplitude. The speed and size of the display can be adjusted using sliders."
}
``` | Create a Pure Data patch that generates a scrolling waveform display with adjustable speed and size, taking audio input from an inlet and displaying the waveform on a graph. | This patch creates a scrolling waveform display with adjustable speed and size. It takes audio input from an inlet, samples the audio at a rate of 50 Hz, and writes the samples to an array. The array is then displayed as a graph, with the x-axis representing time and the y-axis representing amplitude. The speed and size of the display can be adjusted using sliders. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 410 383 946 326 12;
#N canvas 0 0 450 300 graph1 0;
#X array \$0-s 3000 float 0;
#X coords 0 1 2999 -1 200 100 1;
#X restore 345 51 graph;
#X obj 205 56 inlet~;
#X obj 205 138 tabwrite~ \$0-s;
#X obj 215 112 metro 50;
#X obj 215 85 ii 1;
#X floatatom 352 236 5 0 0 0 speed - -;
#X floatatom 746 233 5 0 0 0 size - -;
#X obj 700 39 ii 100;
#X obj 643 273 s \$0-s;
#X msg 643 248 resize \$1;
#X obj 738 12 ii 3000;
#X obj 547 30 vsl 10 118 50 3000 0 0 empty empty size 0 -8 1 8 -262144
-1 -1 11700 0;
#X obj 560 38 vsl 10 110 50 250 0 0 empty empty speed 0 -8 1 8 -262144
-1 -1 2725 1;
#X connect 1 0 2 0;
#X connect 3 0 2 0;
#X connect 4 0 3 0;
#X connect 5 0 3 1;
#X connect 6 0 9 0;
#X connect 7 0 12 0;
#X connect 9 0 8 0;
#X connect 10 0 11 0;
#X connect 11 0 6 0;
#X connect 12 0 5 0;
#X coords 0 -1 1 1 254 135 1 342 17;
```
explanation:
This patch creates a scrolling waveform display with adjustable speed and size. It takes audio input from an inlet, samples the audio at a rate of 50 Hz, and writes the samples to an array. The array is then displayed as a graph, with the x-axis representing time and the y-axis representing amplitude. The speed and size of the display can be adjusted using sliders. |
a-26-dac-extended.pd | #N canvas 75 553 473 400 12;
#X obj 78 230 dac~;
#X obj 77 202 hip~ 5;
#X obj 108 297 loadbang;
#X obj 77 168 *~;
#X obj 95 144 *~;
#X obj 77 97 inlet~;
#X obj 145 127 line~;
#X msg 145 103 \$1 20;
#X obj 148 68 hsl 130 13 0 1 0 0 empty empty empty -2 -6 0 8 -262144
-1 -1 0 0;
#X msg 108 323 \; pd dsp 1;
#X obj 209 266 f;
#X msg 244 123 0;
#X obj 171 49 mute;
#X obj 209 94 sel 0;
#X obj 246 279 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 218 49 e-dsp;
#X obj 245 236 spigot;
#X obj 245 168 t f f;
#X obj 280 207 > 0;
#X text 39 14 5.1.2.2. dac extended;
#X connect 1 0 0 0;
#X connect 1 0 0 1;
#X connect 2 0 9 0;
#X connect 3 0 1 0;
#X connect 4 0 3 1;
#X connect 5 0 3 0;
#X connect 6 0 4 0;
#X connect 6 0 4 1;
#X connect 7 0 6 0;
#X connect 8 0 7 0;
#X connect 8 0 17 0;
#X connect 10 0 8 0;
#X connect 11 0 8 0;
#X connect 12 0 13 0;
#X connect 13 0 10 0;
#X connect 13 1 11 0;
#X connect 14 0 12 0;
#X connect 16 0 14 0;
#X connect 16 0 10 1;
#X connect 17 0 16 0;
#X connect 17 1 18 0;
#X connect 18 0 16 1;
#X coords 0 -1 1 1 138 33 1 144 48;
| ```
{
"prompt": "Create a Pure Data patch that extends the functionality of a digital-to-analog converter (DAC) by adding features such as muting, signal multiplication, and a user interface for controlling the output.",
"explanation": "This patch is designed to enhance the capabilities of a DAC by incorporating additional components, including a mute function, signal multipliers, and a user interface. The patch allows for the manipulation of audio signals and provides a graphical interface for controlling the output."
}
``` | Create a Pure Data patch that extends the functionality of a digital-to-analog converter (DAC) by adding features such as muting, signal multiplication, and a user interface for controlling the output. | This patch is designed to enhance the capabilities of a DAC by incorporating additional components, including a mute function, signal multipliers, and a user interface. The patch allows for the manipulation of audio signals and provides a graphical interface for controlling the output. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 75 553 473 400 12;
#X obj 78 230 dac~;
#X obj 77 202 hip~ 5;
#X obj 108 297 loadbang;
#X obj 77 168 *~;
#X obj 95 144 *~;
#X obj 77 97 inlet~;
#X obj 145 127 line~;
#X msg 145 103 \$1 20;
#X obj 148 68 hsl 130 13 0 1 0 0 empty empty empty -2 -6 0 8 -262144
-1 -1 0 0;
#X msg 108 323 \; pd dsp 1;
#X obj 209 266 f;
#X msg 244 123 0;
#X obj 171 49 mute;
#X obj 209 94 sel 0;
#X obj 246 279 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 218 49 e-dsp;
#X obj 245 236 spigot;
#X obj 245 168 t f f;
#X obj 280 207 > 0;
#X text 39 14 5.1.2.2. dac extended;
#X connect 1 0 0 0;
#X connect 1 0 0 1;
#X connect 2 0 9 0;
#X connect 3 0 1 0;
#X connect 4 0 3 1;
#X connect 5 0 3 0;
#X connect 6 0 4 0;
#X connect 6 0 4 1;
#X connect 7 0 6 0;
#X connect 8 0 7 0;
#X connect 8 0 17 0;
#X connect 10 0 8 0;
#X connect 11 0 8 0;
#X connect 12 0 13 0;
#X connect 13 0 10 0;
#X connect 13 1 11 0;
#X connect 14 0 12 0;
#X connect 16 0 14 0;
#X connect 16 0 10 1;
#X connect 17 0 16 0;
#X connect 17 1 18 0;
#X connect 18 0 16 1;
#X coords 0 -1 1 1 138 33 1 144 48;
```
explanation:
This patch is designed to enhance the capabilities of a DAC by incorporating additional components, including a mute function, signal multipliers, and a user interface. The patch allows for the manipulation of audio signals and provides a graphical interface for controlling the output. |
4-1-2-1-probability.pd | #N canvas 729 294 568 445 12;
#X obj 150 122 random 100;
#X obj 150 153 moses 30;
#X obj 150 185 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 209 185 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 115 60 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 150 248 f;
#X obj 150 275 + 1;
#X obj 209 249 f;
#X obj 209 276 + 1;
#X obj 52 159 f;
#X obj 52 186 + 1;
#X floatatom 131 370 5 0 0 0 - - -;
#X floatatom 190 369 5 0 0 0 - - -;
#X obj 271 90 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 131 338 * 100;
#X obj 190 337 * 100;
#X obj 115 79 t b b;
#X obj 131 304 *;
#X obj 190 304 *;
#X obj 51 216 expr 1/$f1;
#X msg 169 219 -1;
#X msg 228 214 -1;
#X msg 99 122 -1;
#X text 39 14 4.1.2.1. probability;
#X text 147 56 then click here many times;
#X text 304 87 first click here to initialize;
#X text 246 369 occurence as a percent;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 2 0 5 0;
#X connect 3 0 7 0;
#X connect 4 0 16 0;
#X connect 5 0 6 0;
#X connect 6 0 5 1;
#X connect 6 0 17 1;
#X connect 7 0 8 0;
#X connect 8 0 7 1;
#X connect 8 0 18 1;
#X connect 9 0 10 0;
#X connect 10 0 9 1;
#X connect 10 0 19 0;
#X connect 13 0 22 0;
#X connect 13 0 21 0;
#X connect 13 0 20 0;
#X connect 14 0 11 0;
#X connect 15 0 12 0;
#X connect 16 0 9 0;
#X connect 16 1 0 0;
#X connect 17 0 14 0;
#X connect 18 0 15 0;
#X connect 19 0 18 0;
#X connect 19 0 17 0;
#X connect 20 0 5 0;
#X connect 21 0 7 0;
#X connect 22 0 9 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that simulates a probability experiment, generating random numbers and calculating the occurrence of two events as a percentage.",
"patch_explanation": "This patch generates random numbers between 0 and 100, then uses a threshold (30) to trigger two events. The occurrence of each event is counted and displayed as a percentage."
}
``` | Create a Pure Data patch that simulates a probability experiment, generating random numbers and calculating the occurrence of two events as a percentage. | This patch generates random numbers between 0 and 100, then uses a threshold (30) to trigger two events. The occurrence of each event is counted and displayed as a percentage. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 729 294 568 445 12;
#X obj 150 122 random 100;
#X obj 150 153 moses 30;
#X obj 150 185 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 209 185 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 115 60 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 150 248 f;
#X obj 150 275 + 1;
#X obj 209 249 f;
#X obj 209 276 + 1;
#X obj 52 159 f;
#X obj 52 186 + 1;
#X floatatom 131 370 5 0 0 0 - - -;
#X floatatom 190 369 5 0 0 0 - - -;
#X obj 271 90 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 131 338 * 100;
#X obj 190 337 * 100;
#X obj 115 79 t b b;
#X obj 131 304 *;
#X obj 190 304 *;
#X obj 51 216 expr 1/$f1;
#X msg 169 219 -1;
#X msg 228 214 -1;
#X msg 99 122 -1;
#X text 39 14 4.1.2.1. probability;
#X text 147 56 then click here many times;
#X text 304 87 first click here to initialize;
#X text 246 369 occurence as a percent;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 2 0 5 0;
#X connect 3 0 7 0;
#X connect 4 0 16 0;
#X connect 5 0 6 0;
#X connect 6 0 5 1;
#X connect 6 0 17 1;
#X connect 7 0 8 0;
#X connect 8 0 7 1;
#X connect 8 0 18 1;
#X connect 9 0 10 0;
#X connect 10 0 9 1;
#X connect 10 0 19 0;
#X connect 13 0 22 0;
#X connect 13 0 21 0;
#X connect 13 0 20 0;
#X connect 14 0 11 0;
#X connect 15 0 12 0;
#X connect 16 0 9 0;
#X connect 16 1 0 0;
#X connect 17 0 14 0;
#X connect 18 0 15 0;
#X connect 19 0 18 0;
#X connect 19 0 17 0;
#X connect 20 0 5 0;
#X connect 21 0 7 0;
#X connect 22 0 9 0;
```
explanation:
This patch generates random numbers between 0 and 100, then uses a threshold (30) to trigger two events. The occurrence of each event is counted and displayed as a percentage. |
3-8-1-1-analyze-partials.pd | #N canvas 989 283 802 374 12;
#X obj 290 114 phasor~ 100;
#X obj 201 170 bp~ 100 50;
#X obj 201 201 env~ 1024;
#X obj 201 234 dbtorms;
#X floatatom 201 264 5 0 0 0 - - -;
#X obj 287 201 env~ 1024;
#X obj 287 234 dbtorms;
#X floatatom 287 264 5 0 0 0 - - -;
#X obj 373 201 env~ 1024;
#X obj 373 234 dbtorms;
#X floatatom 373 264 5 0 0 0 - - -;
#X obj 459 201 env~ 1024;
#X obj 459 234 dbtorms;
#X floatatom 459 264 5 0 0 0 - - -;
#X obj 649 201 env~ 1024;
#X obj 649 234 dbtorms;
#X floatatom 649 264 5 0 0 0 - - -;
#X obj 287 170 bp~ 200 50;
#X obj 373 170 bp~ 300 50;
#X obj 459 170 bp~ 400 50;
#X obj 649 170 bp~ 150 50;
#X text 202 288 1;
#X text 288 287 2;
#X text 374 287 3;
#X text 458 284 4;
#X text 73 25 3.8.1.1. Analyzing partials;
#X text 60 246 volume of;
#X text 44 265 first 4 partials;
#X text 569 247 not a;
#X text 570 265 partial:;
#X connect 0 0 1 0;
#X connect 0 0 17 0;
#X connect 0 0 18 0;
#X connect 0 0 19 0;
#X connect 0 0 20 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 14 0 15 0;
#X connect 15 0 16 0;
#X connect 17 0 5 0;
#X connect 18 0 8 0;
#X connect 19 0 11 0;
#X connect 20 0 14 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that analyzes the volume of the first 4 partials of a sound and displays the results as separate outputs.",
"patch_explanation": "This patch uses a phasor~ object to generate a sawtooth wave, which is then filtered into separate frequency bands using bp~ objects. The amplitude of each band is then measured using env~ and dbtorms objects, and the results are displayed as separate outputs."
}
``` | Create a Pure Data patch that analyzes the volume of the first 4 partials of a sound and displays the results as separate outputs. | This patch uses a phasor~ object to generate a sawtooth wave, which is then filtered into separate frequency bands using bp~ objects. The amplitude of each band is then measured using env~ and dbtorms objects, and the results are displayed as separate outputs. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 989 283 802 374 12;
#X obj 290 114 phasor~ 100;
#X obj 201 170 bp~ 100 50;
#X obj 201 201 env~ 1024;
#X obj 201 234 dbtorms;
#X floatatom 201 264 5 0 0 0 - - -;
#X obj 287 201 env~ 1024;
#X obj 287 234 dbtorms;
#X floatatom 287 264 5 0 0 0 - - -;
#X obj 373 201 env~ 1024;
#X obj 373 234 dbtorms;
#X floatatom 373 264 5 0 0 0 - - -;
#X obj 459 201 env~ 1024;
#X obj 459 234 dbtorms;
#X floatatom 459 264 5 0 0 0 - - -;
#X obj 649 201 env~ 1024;
#X obj 649 234 dbtorms;
#X floatatom 649 264 5 0 0 0 - - -;
#X obj 287 170 bp~ 200 50;
#X obj 373 170 bp~ 300 50;
#X obj 459 170 bp~ 400 50;
#X obj 649 170 bp~ 150 50;
#X text 202 288 1;
#X text 288 287 2;
#X text 374 287 3;
#X text 458 284 4;
#X text 73 25 3.8.1.1. Analyzing partials;
#X text 60 246 volume of;
#X text 44 265 first 4 partials;
#X text 569 247 not a;
#X text 570 265 partial:;
#X connect 0 0 1 0;
#X connect 0 0 17 0;
#X connect 0 0 18 0;
#X connect 0 0 19 0;
#X connect 0 0 20 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 14 0 15 0;
#X connect 15 0 16 0;
#X connect 17 0 5 0;
#X connect 18 0 8 0;
#X connect 19 0 11 0;
#X connect 20 0 14 0;
```
explanation:
This patch uses a phasor~ object to generate a sawtooth wave, which is then filtered into separate frequency bands using bp~ objects. The amplitude of each band is then measured using env~ and dbtorms objects, and the results are displayed as separate outputs. |
noreprand.pd | #N canvas 1126 503 460 401 12;
#X obj 37 72 random;
#X obj 37 103 trigger bang float bang float;
#X floatatom 80 44 5 0 0 0 - - -;
#X obj 37 42 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 37 209 f;
#X obj 134 150 f;
#X obj 37 277 f;
#X obj 37 238 sel 0;
#X obj 140 243 sel 1;
#X obj 134 177 ==;
#X floatatom 37 309 5 0 0 0 - - -;
#X obj 113 307 print;
#X connect 0 0 1 0;
#X connect 1 0 4 0;
#X connect 1 1 5 1;
#X connect 1 2 5 0;
#X connect 1 3 6 1;
#X connect 1 3 9 1;
#X connect 2 0 0 1;
#X connect 2 0 5 1;
#X connect 3 0 0 0;
#X connect 4 0 7 0;
#X connect 4 0 8 0;
#X connect 5 0 9 0;
#X connect 6 0 10 0;
#X connect 6 0 11 0;
#X connect 7 0 6 0;
#X connect 8 0 0 0;
#X connect 9 0 4 1;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates a random number between 0 and 1 when a bang is received, and then applies a series of conditional statements to the generated number, printing the result to the console.",
"patch_explanation": "This patch generates a random number between 0 and 1 when the bang object is clicked. The number is then sent through a series of conditional statements using the 'sel' and '==' objects, which check if the number is 0 or 1. The result of these checks is then printed to the console using the 'print' object."
}
``` | Create a Pure Data patch that generates a random number between 0 and 1 when a bang is received, and then applies a series of conditional statements to the generated number, printing the result to the console. | This patch generates a random number between 0 and 1 when the bang object is clicked. The number is then sent through a series of conditional statements using the 'sel' and '==' objects, which check if the number is 0 or 1. The result of these checks is then printed to the console using the 'print' object. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 1126 503 460 401 12;
#X obj 37 72 random;
#X obj 37 103 trigger bang float bang float;
#X floatatom 80 44 5 0 0 0 - - -;
#X obj 37 42 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 37 209 f;
#X obj 134 150 f;
#X obj 37 277 f;
#X obj 37 238 sel 0;
#X obj 140 243 sel 1;
#X obj 134 177 ==;
#X floatatom 37 309 5 0 0 0 - - -;
#X obj 113 307 print;
#X connect 0 0 1 0;
#X connect 1 0 4 0;
#X connect 1 1 5 1;
#X connect 1 2 5 0;
#X connect 1 3 6 1;
#X connect 1 3 9 1;
#X connect 2 0 0 1;
#X connect 2 0 5 1;
#X connect 3 0 0 0;
#X connect 4 0 7 0;
#X connect 4 0 8 0;
#X connect 5 0 9 0;
#X connect 6 0 10 0;
#X connect 6 0 11 0;
#X connect 7 0 6 0;
#X connect 8 0 0 0;
#X connect 9 0 4 1;
```
explanation:
This patch generates a random number between 0 and 1 when the bang object is clicked. The number is then sent through a series of conditional statements using the 'sel' and '==' objects, which check if the number is 0 or 1. The result of these checks is then printed to the console using the 'print' object. |
3-5-3-1-foldover1.pd | #N canvas 1066 153 319 358 12;
#X obj 117 6 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 117 29 0 \, 44100 30000;
#X obj 117 63 line;
#X obj 117 118 osc~;
#X obj 117 170 *~;
#X floatatom 157 143 5 0 0 0 - - -;
#X obj 116 203 dac~;
#X floatatom 117 97 7 0 0 0 - - -;
#X text 81 -44 3.5.3.1. Foldover 1;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 7 0;
#X connect 3 0 4 0;
#X connect 4 0 6 0;
#X connect 4 0 6 1;
#X connect 5 0 4 1;
#X connect 7 0 3 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates a sine wave with a frequency that can be controlled by a slider, and then multiplies the wave by a gain value, also controlled by a slider, before sending the output to the audio interface.",
"patch_explanation": "This patch generates a sine wave using the osc~ object, with a frequency controlled by a line object that ramps from 0 to 44100 Hz over 30 seconds. The wave is then multiplied by a gain value controlled by a floatatom, and the result is sent to the audio interface using the dac~ object."
}
``` | Create a Pure Data patch that generates a sine wave with a frequency that can be controlled by a slider, and then multiplies the wave by a gain value, also controlled by a slider, before sending the output to the audio interface. | This patch generates a sine wave using the osc~ object, with a frequency controlled by a line object that ramps from 0 to 44100 Hz over 30 seconds. The wave is then multiplied by a gain value controlled by a floatatom, and the result is sent to the audio interface using the dac~ object. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 1066 153 319 358 12;
#X obj 117 6 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 117 29 0 \, 44100 30000;
#X obj 117 63 line;
#X obj 117 118 osc~;
#X obj 117 170 *~;
#X floatatom 157 143 5 0 0 0 - - -;
#X obj 116 203 dac~;
#X floatatom 117 97 7 0 0 0 - - -;
#X text 81 -44 3.5.3.1. Foldover 1;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 7 0;
#X connect 3 0 4 0;
#X connect 4 0 6 0;
#X connect 4 0 6 1;
#X connect 5 0 4 1;
#X connect 7 0 3 0;
```
explanation:
This patch generates a sine wave using the osc~ object, with a frequency controlled by a line object that ramps from 0 to 44100 Hz over 30 seconds. The wave is then multiplied by a gain value controlled by a floatatom, and the result is sent to the audio interface using the dac~ object. |
5-1-1-1-subpatch1.pd | #N canvas 727 312 706 670 12;
#X obj 264 593 dac~;
#X obj 271 521 *~;
#X obj 311 371 random 100;
#X obj 311 394 / 100;
#X obj 306 308 metro;
#X obj 398 279 random 1000;
#X obj 304 282 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 312 440 pack f f;
#X obj 313 338 t b b;
#X msg 311 463 \$1 \$2;
#X obj 103 306 osc~;
#X obj 156 332 osc~;
#X obj 78 259 line~;
#X obj 83 77 metro;
#X obj 171 41 random 1000;
#X obj 89 209 pack f f;
#X obj 90 107 t b b;
#X msg 88 232 \$1 \$2;
#X obj 88 140 random 300;
#X obj 187 291 line~;
#X obj 192 109 metro;
#X obj 274 85 random 1000;
#X obj 147 18 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X obj 198 241 pack f f;
#X obj 199 139 t b b;
#X msg 197 264 \$1 \$2;
#X obj 197 172 random 300;
#X obj 375 590 writesf~;
#X msg 379 537 open rec.wav \, start;
#X msg 438 562 stop;
#X obj 263 566 *~ 0.5;
#X obj 88 173 + 100;
#X obj 107 358 *~;
#X obj 197 205 + 400;
#X obj 310 492 line~;
#X text 368 10 5.1.1.1. Subpatch 1;
#X text 182 10 random glissandi;
#X text 299 250 random volume;
#X text 147 358 Ring modulation;
#X text 455 491 recording;
#X connect 1 0 27 0;
#X connect 1 0 30 0;
#X connect 2 0 3 0;
#X connect 3 0 7 0;
#X connect 4 0 8 0;
#X connect 5 0 4 1;
#X connect 5 0 7 1;
#X connect 6 0 4 0;
#X connect 7 0 9 0;
#X connect 8 0 2 0;
#X connect 8 1 5 0;
#X connect 9 0 34 0;
#X connect 10 0 32 0;
#X connect 11 0 32 1;
#X connect 12 0 10 0;
#X connect 13 0 16 0;
#X connect 14 0 13 1;
#X connect 14 0 15 1;
#X connect 15 0 17 0;
#X connect 16 0 18 0;
#X connect 16 1 14 0;
#X connect 17 0 12 0;
#X connect 18 0 31 0;
#X connect 19 0 11 0;
#X connect 20 0 24 0;
#X connect 21 0 20 1;
#X connect 21 0 23 1;
#X connect 22 0 20 0;
#X connect 22 0 13 0;
#X connect 23 0 25 0;
#X connect 24 0 26 0;
#X connect 24 1 21 0;
#X connect 25 0 19 0;
#X connect 26 0 33 0;
#X connect 28 0 27 0;
#X connect 29 0 27 0;
#X connect 30 0 0 0;
#X connect 30 0 0 1;
#X connect 31 0 15 0;
#X connect 32 0 1 0;
#X connect 33 0 23 0;
#X connect 34 0 1 1;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates random glissandi, applies ring modulation, and records the output to a WAV file.",
"patch_explanation": "This patch generates random glissandi using oscillators and random number generators, applies ring modulation to the output, and controls the volume randomly. The resulting audio is then recorded to a WAV file."
}
``` | Create a Pure Data patch that generates random glissandi, applies ring modulation, and records the output to a WAV file. | This patch generates random glissandi using oscillators and random number generators, applies ring modulation to the output, and controls the volume randomly. The resulting audio is then recorded to a WAV file. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 727 312 706 670 12;
#X obj 264 593 dac~;
#X obj 271 521 *~;
#X obj 311 371 random 100;
#X obj 311 394 / 100;
#X obj 306 308 metro;
#X obj 398 279 random 1000;
#X obj 304 282 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 312 440 pack f f;
#X obj 313 338 t b b;
#X msg 311 463 \$1 \$2;
#X obj 103 306 osc~;
#X obj 156 332 osc~;
#X obj 78 259 line~;
#X obj 83 77 metro;
#X obj 171 41 random 1000;
#X obj 89 209 pack f f;
#X obj 90 107 t b b;
#X msg 88 232 \$1 \$2;
#X obj 88 140 random 300;
#X obj 187 291 line~;
#X obj 192 109 metro;
#X obj 274 85 random 1000;
#X obj 147 18 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X obj 198 241 pack f f;
#X obj 199 139 t b b;
#X msg 197 264 \$1 \$2;
#X obj 197 172 random 300;
#X obj 375 590 writesf~;
#X msg 379 537 open rec.wav \, start;
#X msg 438 562 stop;
#X obj 263 566 *~ 0.5;
#X obj 88 173 + 100;
#X obj 107 358 *~;
#X obj 197 205 + 400;
#X obj 310 492 line~;
#X text 368 10 5.1.1.1. Subpatch 1;
#X text 182 10 random glissandi;
#X text 299 250 random volume;
#X text 147 358 Ring modulation;
#X text 455 491 recording;
#X connect 1 0 27 0;
#X connect 1 0 30 0;
#X connect 2 0 3 0;
#X connect 3 0 7 0;
#X connect 4 0 8 0;
#X connect 5 0 4 1;
#X connect 5 0 7 1;
#X connect 6 0 4 0;
#X connect 7 0 9 0;
#X connect 8 0 2 0;
#X connect 8 1 5 0;
#X connect 9 0 34 0;
#X connect 10 0 32 0;
#X connect 11 0 32 1;
#X connect 12 0 10 0;
#X connect 13 0 16 0;
#X connect 14 0 13 1;
#X connect 14 0 15 1;
#X connect 15 0 17 0;
#X connect 16 0 18 0;
#X connect 16 1 14 0;
#X connect 17 0 12 0;
#X connect 18 0 31 0;
#X connect 19 0 11 0;
#X connect 20 0 24 0;
#X connect 21 0 20 1;
#X connect 21 0 23 1;
#X connect 22 0 20 0;
#X connect 22 0 13 0;
#X connect 23 0 25 0;
#X connect 24 0 26 0;
#X connect 24 1 21 0;
#X connect 25 0 19 0;
#X connect 26 0 33 0;
#X connect 28 0 27 0;
#X connect 29 0 27 0;
#X connect 30 0 0 0;
#X connect 30 0 0 1;
#X connect 31 0 15 0;
#X connect 32 0 1 0;
#X connect 33 0 23 0;
#X connect 34 0 1 1;
```
explanation:
This patch generates random glissandi using oscillators and random number generators, applies ring modulation to the output, and controls the volume randomly. The resulting audio is then recorded to a WAV file. |
image001.pd | #N canvas 744 242 671 411 10;
#X obj 80 160 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 0 1;
#X msg 110 160 create;
#X floatatom 370 290 5 0 0 0 - - -, f 5;
#X msg 170 160 destroy;
#X obj 90 220 gemwin;
#X obj 330 140 gemhead;
#X obj 330 200 pix_image;
#X obj 330 240 pix_texture;
#X obj 330 340 rectangle;
#X floatatom 420 290 5 0 0 0 - - -, f 5;
#X msg 360 170 open img2.jpeg;
#X text 150 40 prompt: Write a pd patch to display an external image
file mapped on a rectangle in the GEM window;
#X connect 0 0 4 0;
#X connect 1 0 4 0;
#X connect 2 0 8 1;
#X connect 3 0 4 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 9 0 8 2;
#X connect 10 0 6 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that displays an external image file mapped onto a rectangle in a GEM window.",
"patch_explanation": "This patch creates a GEM window and maps an external image file onto a rectangle within it. The patch uses a toggle to create and destroy the GEM window, and a message to open a specific image file. The image is then applied to a rectangle object, which is displayed in the GEM window."
}
``` | Create a Pure Data patch that displays an external image file mapped onto a rectangle in a GEM window. | This patch creates a GEM window and maps an external image file onto a rectangle within it. The patch uses a toggle to create and destroy the GEM window, and a message to open a specific image file. The image is then applied to a rectangle object, which is displayed in the GEM window. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 744 242 671 411 10;
#X obj 80 160 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 0 1;
#X msg 110 160 create;
#X floatatom 370 290 5 0 0 0 - - -, f 5;
#X msg 170 160 destroy;
#X obj 90 220 gemwin;
#X obj 330 140 gemhead;
#X obj 330 200 pix_image;
#X obj 330 240 pix_texture;
#X obj 330 340 rectangle;
#X floatatom 420 290 5 0 0 0 - - -, f 5;
#X msg 360 170 open img2.jpeg;
#X text 150 40 prompt: Write a pd patch to display an external image
file mapped on a rectangle in the GEM window;
#X connect 0 0 4 0;
#X connect 1 0 4 0;
#X connect 2 0 8 1;
#X connect 3 0 4 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 9 0 8 2;
#X connect 10 0 6 0;
```
explanation:
This patch creates a GEM window and maps an external image file onto a rectangle within it. The patch uses a toggle to create and destroy the GEM window, and a message to open a specific image file. The image is then applied to a rectangle object, which is displayed in the GEM window. |
3-5-3-1-foldover3.pd | #N canvas 1066 153 693 660 12;
#X obj 117 6 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 117 63 line;
#X obj 116 462 *~;
#X floatatom 156 435 5 0 0 0 - - -;
#X obj 115 495 dac~;
#X obj 117 118 phasor~;
#X floatatom 117 90 7 0 0 0 - - -;
#X msg 117 29 0 \, 2000 10000;
#X msg 253 30 10 \, 0 10000;
#X obj 253 93 +~ 1;
#X obj 253 64 line~;
#X obj 116 145 -~ 0.5;
#X obj 116 186 *~;
#X obj 116 213 clip~ -0.5 0.5;
#X obj 117 242 cos~;
#X obj 118 270 +~ 1;
#X obj 117 299 *~ 0.5;
#X obj 117 407 hip~ 5;
#X obj 173 354 tabwrite~ output;
#X obj 213 313 metro 50;
#X obj 213 284 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#N canvas 0 0 450 300 graph4 0;
#X array output 200 float 0;
#X coords 0 1 199 -1 200 140 1;
#X restore 453 203 graph;
#X text 146 1 start;
#X text 81 -44 3.5.3.1. Foldover 3;
#X text 233 280 graph;
#X connect 0 0 7 0;
#X connect 0 0 8 0;
#X connect 1 0 6 0;
#X connect 2 0 4 0;
#X connect 2 0 4 1;
#X connect 3 0 2 1;
#X connect 5 0 11 0;
#X connect 6 0 5 0;
#X connect 7 0 1 0;
#X connect 8 0 10 0;
#X connect 9 0 12 1;
#X connect 10 0 9 0;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 13 0 14 0;
#X connect 14 0 15 0;
#X connect 15 0 16 0;
#X connect 16 0 18 0;
#X connect 16 0 17 0;
#X connect 17 0 2 0;
#X connect 19 0 18 0;
#X connect 20 0 19 0;
| ```
{
"prompt": "Create a Pure Data patch that generates a folded sawtooth wave with a frequency that can be controlled by a phasor and a graph that displays the output waveform.",
"explanation": "This patch generates a folded sawtooth wave by using a phasor to control the frequency of a sawtooth wave, which is then folded using a clip and cosine function. The output is displayed on a graph and can be heard through the audio output."
}
``` | Create a Pure Data patch that generates a folded sawtooth wave with a frequency that can be controlled by a phasor and a graph that displays the output waveform. | This patch generates a folded sawtooth wave by using a phasor to control the frequency of a sawtooth wave, which is then folded using a clip and cosine function. The output is displayed on a graph and can be heard through the audio output. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 1066 153 693 660 12;
#X obj 117 6 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 117 63 line;
#X obj 116 462 *~;
#X floatatom 156 435 5 0 0 0 - - -;
#X obj 115 495 dac~;
#X obj 117 118 phasor~;
#X floatatom 117 90 7 0 0 0 - - -;
#X msg 117 29 0 \, 2000 10000;
#X msg 253 30 10 \, 0 10000;
#X obj 253 93 +~ 1;
#X obj 253 64 line~;
#X obj 116 145 -~ 0.5;
#X obj 116 186 *~;
#X obj 116 213 clip~ -0.5 0.5;
#X obj 117 242 cos~;
#X obj 118 270 +~ 1;
#X obj 117 299 *~ 0.5;
#X obj 117 407 hip~ 5;
#X obj 173 354 tabwrite~ output;
#X obj 213 313 metro 50;
#X obj 213 284 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#N canvas 0 0 450 300 graph4 0;
#X array output 200 float 0;
#X coords 0 1 199 -1 200 140 1;
#X restore 453 203 graph;
#X text 146 1 start;
#X text 81 -44 3.5.3.1. Foldover 3;
#X text 233 280 graph;
#X connect 0 0 7 0;
#X connect 0 0 8 0;
#X connect 1 0 6 0;
#X connect 2 0 4 0;
#X connect 2 0 4 1;
#X connect 3 0 2 1;
#X connect 5 0 11 0;
#X connect 6 0 5 0;
#X connect 7 0 1 0;
#X connect 8 0 10 0;
#X connect 9 0 12 1;
#X connect 10 0 9 0;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 13 0 14 0;
#X connect 14 0 15 0;
#X connect 15 0 16 0;
#X connect 16 0 18 0;
#X connect 16 0 17 0;
#X connect 17 0 2 0;
#X connect 19 0 18 0;
#X connect 20 0 19 0;
```
explanation:
This patch generates a folded sawtooth wave by using a phasor to control the frequency of a sawtooth wave, which is then folded using a clip and cosine function. The output is displayed on a graph and can be heard through the audio output. |
3-5-1-1-pulse.pd | #N canvas 1054 151 681 618 12;
#X obj 135 255 tabwrite~ array1;
#X obj 230 228 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 0 450 300 graph1 0;
#X array array1 100 float 0;
#X coords 0 1 99 -1 200 140 1;
#X restore 402 68 graph;
#X text 381 196 -1;
#X text 387 57 1;
#X floatatom 95 84 5 0 0 0 - - -;
#X obj 95 108 phasor~;
#X obj 95 325 *~ 0.7;
#X obj 94 373 *~;
#X obj 144 358 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 93 407 dac~;
#X obj 94 139 -~ 0.99;
#X obj 95 168 clip~ 0 1;
#X obj 95 202 *~ 100;
#X text 76 12 3.5.1.1. Pulse;
#X text 94 60 any fundamental;
#X text 254 227 graph;
#X text 169 353 listen;
#X connect 1 0 0 0;
#X connect 5 0 6 0;
#X connect 6 0 11 0;
#X connect 7 0 8 0;
#X connect 8 0 10 0;
#X connect 8 0 10 1;
#X connect 9 0 8 1;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 13 0 0 0;
#X connect 13 0 7 0;
| ```
{
"prompt": "Create a Pure Data patch that generates a pulse wave with a variable fundamental frequency, visualizes the waveform, and allows the user to listen to the audio output.",
"explanation": "This patch generates a pulse wave using a phasor~ object and applies a series of transformations to shape the waveform. The frequency of the pulse wave is controlled by a floatatom object, and the waveform is visualized using a graph object. The audio output is routed to a dac~ object, allowing the user to listen to the pulse wave. A toggle object is used to enable or disable the audio output."
}
``` | Create a Pure Data patch that generates a pulse wave with a variable fundamental frequency, visualizes the waveform, and allows the user to listen to the audio output. | This patch generates a pulse wave using a phasor~ object and applies a series of transformations to shape the waveform. The frequency of the pulse wave is controlled by a floatatom object, and the waveform is visualized using a graph object. The audio output is routed to a dac~ object, allowing the user to listen to the pulse wave. A toggle object is used to enable or disable the audio output. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 1054 151 681 618 12;
#X obj 135 255 tabwrite~ array1;
#X obj 230 228 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 0 450 300 graph1 0;
#X array array1 100 float 0;
#X coords 0 1 99 -1 200 140 1;
#X restore 402 68 graph;
#X text 381 196 -1;
#X text 387 57 1;
#X floatatom 95 84 5 0 0 0 - - -;
#X obj 95 108 phasor~;
#X obj 95 325 *~ 0.7;
#X obj 94 373 *~;
#X obj 144 358 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 93 407 dac~;
#X obj 94 139 -~ 0.99;
#X obj 95 168 clip~ 0 1;
#X obj 95 202 *~ 100;
#X text 76 12 3.5.1.1. Pulse;
#X text 94 60 any fundamental;
#X text 254 227 graph;
#X text 169 353 listen;
#X connect 1 0 0 0;
#X connect 5 0 6 0;
#X connect 6 0 11 0;
#X connect 7 0 8 0;
#X connect 8 0 10 0;
#X connect 8 0 10 1;
#X connect 9 0 8 1;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 13 0 0 0;
#X connect 13 0 7 0;
```
explanation:
This patch generates a pulse wave using a phasor~ object and applies a series of transformations to shape the waveform. The frequency of the pulse wave is controlled by a floatatom object, and the waveform is visualized using a graph object. The audio output is routed to a dac~ object, allowing the user to listen to the pulse wave. A toggle object is used to enable or disable the audio output. |
a-2-two intervals.pd | #N canvas 237 598 378 348 12;
#X msg 40 127 400;
#X msg 158 130 600;
#X obj 40 176 osc~;
#X obj 158 175 osc~;
#X msg 80 126 300;
#X msg 199 131 700;
#X obj 79 229 *~ 0.5;
#X obj 79 271 dac~;
#X obj 71 71 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 154 72 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 25 4 2.2.1.2.8. two intervals;
#X connect 0 0 2 0;
#X connect 1 0 3 0;
#X connect 2 0 6 0;
#X connect 3 0 6 0;
#X connect 4 0 2 0;
#X connect 5 0 3 0;
#X connect 6 0 7 0;
#X connect 6 0 7 1;
#X connect 8 0 0 0;
#X connect 8 0 1 0;
#X connect 9 0 4 0;
#X connect 9 0 5 0;
| ```
{
"prompt": "Create a Pure Data patch that generates two distinct tones with frequencies controlled by bang messages and outputs a stereo signal with a 50% volume reduction.",
"explanation": "This patch produces two tones using osc~ objects, triggered by bng objects. The tones' frequencies are set by msg objects. The signals are then multiplied by 0.5 using a *~ object and sent to the audio output (dac~) as a stereo signal."
}
``` | Create a Pure Data patch that generates two distinct tones with frequencies controlled by bang messages and outputs a stereo signal with a 50% volume reduction. | This patch produces two tones using osc~ objects, triggered by bng objects. The tones' frequencies are set by msg objects. The signals are then multiplied by 0.5 using a *~ object and sent to the audio output (dac~) as a stereo signal. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 237 598 378 348 12;
#X msg 40 127 400;
#X msg 158 130 600;
#X obj 40 176 osc~;
#X obj 158 175 osc~;
#X msg 80 126 300;
#X msg 199 131 700;
#X obj 79 229 *~ 0.5;
#X obj 79 271 dac~;
#X obj 71 71 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 154 72 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 25 4 2.2.1.2.8. two intervals;
#X connect 0 0 2 0;
#X connect 1 0 3 0;
#X connect 2 0 6 0;
#X connect 3 0 6 0;
#X connect 4 0 2 0;
#X connect 5 0 3 0;
#X connect 6 0 7 0;
#X connect 6 0 7 1;
#X connect 8 0 0 0;
#X connect 8 0 1 0;
#X connect 9 0 4 0;
#X connect 9 0 5 0;
```
explanation:
This patch produces two tones using osc~ objects, triggered by bng objects. The tones' frequencies are set by msg objects. The signals are then multiplied by 0.5 using a *~ object and sent to the audio output (dac~) as a stereo signal. |
3-1-2-2-3-edit-input.pd | #N canvas 412 226 676 534 12;
#X obj 69 122 adc~;
#X obj 198 188 env~ 128;
#X obj 198 214 - 100;
#X obj 199 244 vu 15 120 empty empty -1 -8 0 8 -66577 -1 1 0;
#X obj 69 404 *~;
#X obj 119 373 line~;
#X msg 119 348 \$1 20;
#X obj 119 212 vsl 15 128 0 1 0 0 empty empty empty 0 -8 0 8 -262144
-1 -1 0 1;
#X obj 69 438 dac~;
#X text 115 174 (von 0;
#X text 123 190 bis 1);
#X text 65 38 3.1.2.2.3. edit input;
#X text 272 276 for visualizing a VU;
#X connect 0 0 4 0;
#X connect 0 0 1 0;
#X connect 0 1 4 0;
#X connect 0 1 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 4 0 8 0;
#X connect 4 0 8 1;
#X connect 5 0 4 1;
#X connect 6 0 5 0;
#X connect 7 0 6 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that takes audio input, applies an envelope follower, and visualizes the volume level using a VU meter.",
"patch_explanation": "This patch reads audio input from the ADC, applies an envelope follower to track the volume level, and then visualizes the volume level using a VU meter. The volume level is also used to control the amplitude of the audio output."
}
``` | Create a Pure Data patch that takes audio input, applies an envelope follower, and visualizes the volume level using a VU meter. | This patch reads audio input from the ADC, applies an envelope follower to track the volume level, and then visualizes the volume level using a VU meter. The volume level is also used to control the amplitude of the audio output. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 412 226 676 534 12;
#X obj 69 122 adc~;
#X obj 198 188 env~ 128;
#X obj 198 214 - 100;
#X obj 199 244 vu 15 120 empty empty -1 -8 0 8 -66577 -1 1 0;
#X obj 69 404 *~;
#X obj 119 373 line~;
#X msg 119 348 \$1 20;
#X obj 119 212 vsl 15 128 0 1 0 0 empty empty empty 0 -8 0 8 -262144
-1 -1 0 1;
#X obj 69 438 dac~;
#X text 115 174 (von 0;
#X text 123 190 bis 1);
#X text 65 38 3.1.2.2.3. edit input;
#X text 272 276 for visualizing a VU;
#X connect 0 0 4 0;
#X connect 0 0 1 0;
#X connect 0 1 4 0;
#X connect 0 1 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 4 0 8 0;
#X connect 4 0 8 1;
#X connect 5 0 4 1;
#X connect 6 0 5 0;
#X connect 7 0 6 0;
```
explanation:
This patch reads audio input from the ADC, applies an envelope follower to track the volume level, and then visualizes the volume level using a VU meter. The volume level is also used to control the amplitude of the audio output. |
3-9-1-2-compressor.pd | #N canvas 911 295 818 677 12;
#X obj 29 94 inlet~;
#X floatatom 265 287 5 0 0 0 - - -;
#X msg 406 119 10;
#X floatatom 548 111 5 0 0 0 - - -;
#X obj 265 249 expr (($f1 - $f3) / $f2) - $f1 + $f3;
#X floatatom 406 153 5 0 0 0 - - -;
#X obj 406 94 loadbang;
#X obj 230 143 env~ 1024;
#X floatatom 265 225 5 0 0 0 - - -;
#X obj 265 372 dbtorms;
#X floatatom 265 406 12 0 0 0 - - -;
#X floatatom 265 348 5 0 0 0 - - -;
#X obj 265 321 expr 100 + $f1;
#X obj 29 558 outlet~;
#X obj 29 531 *~;
#X obj 49 504 line~;
#X msg 49 480 \$1 20;
#X floatatom 29 203 5 0 0 0 - - -;
#X obj 29 155 delwrite~ comp 100;
#X text 99 479 attack: 20 ms;
#X obj 230 201 moses;
#X floatatom 230 176 5 0 0 0 - - -;
#X msg 230 373 1;
#X obj 230 226 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 75 436 \$1 20;
#X text 125 436 release: 20 ms;
#X obj 29 227 delread~ comp;
#X floatatom 319 138 5 0 0 0 - - -;
#X text 32 16 3.9.1.2. compressor;
#X text 28 69 input signal;
#X text 315 112 threshold;
#X text 546 87 reference;
#X text 453 143 compression factor;
#X text 76 202 forward control;
#X text 312 286 value by which the signal must be increased / reduced
;
#X text 391 358 conversion;
#X text 370 399 correction factor of the input signal's rms value;
#X connect 0 0 7 0;
#X connect 0 0 18 0;
#X connect 1 0 12 0;
#X connect 2 0 5 0;
#X connect 3 0 4 2;
#X connect 4 0 1 0;
#X connect 5 0 4 1;
#X connect 6 0 2 0;
#X connect 7 0 21 0;
#X connect 8 0 4 0;
#X connect 9 0 10 0;
#X connect 10 0 16 0;
#X connect 11 0 9 0;
#X connect 12 0 11 0;
#X connect 14 0 13 0;
#X connect 15 0 14 1;
#X connect 16 0 15 0;
#X connect 17 0 26 0;
#X connect 20 0 23 0;
#X connect 20 1 8 0;
#X connect 21 0 20 0;
#X connect 22 0 24 0;
#X connect 23 0 22 0;
#X connect 24 0 15 0;
#X connect 26 0 14 0;
#X connect 27 0 20 1;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that implements a compressor with adjustable threshold, compression factor, and reference value, and includes features such as attack and release times, and input signal correction.",
"patch_explanation": "This patch is a compressor that takes an input signal and reduces its dynamic range based on a set threshold, compression factor, and reference value. The patch includes controls for attack and release times, and also applies a correction factor to the input signal's RMS value."
}
``` | Create a Pure Data patch that implements a compressor with adjustable threshold, compression factor, and reference value, and includes features such as attack and release times, and input signal correction. | This patch is a compressor that takes an input signal and reduces its dynamic range based on a set threshold, compression factor, and reference value. The patch includes controls for attack and release times, and also applies a correction factor to the input signal's RMS value. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 911 295 818 677 12;
#X obj 29 94 inlet~;
#X floatatom 265 287 5 0 0 0 - - -;
#X msg 406 119 10;
#X floatatom 548 111 5 0 0 0 - - -;
#X obj 265 249 expr (($f1 - $f3) / $f2) - $f1 + $f3;
#X floatatom 406 153 5 0 0 0 - - -;
#X obj 406 94 loadbang;
#X obj 230 143 env~ 1024;
#X floatatom 265 225 5 0 0 0 - - -;
#X obj 265 372 dbtorms;
#X floatatom 265 406 12 0 0 0 - - -;
#X floatatom 265 348 5 0 0 0 - - -;
#X obj 265 321 expr 100 + $f1;
#X obj 29 558 outlet~;
#X obj 29 531 *~;
#X obj 49 504 line~;
#X msg 49 480 \$1 20;
#X floatatom 29 203 5 0 0 0 - - -;
#X obj 29 155 delwrite~ comp 100;
#X text 99 479 attack: 20 ms;
#X obj 230 201 moses;
#X floatatom 230 176 5 0 0 0 - - -;
#X msg 230 373 1;
#X obj 230 226 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 75 436 \$1 20;
#X text 125 436 release: 20 ms;
#X obj 29 227 delread~ comp;
#X floatatom 319 138 5 0 0 0 - - -;
#X text 32 16 3.9.1.2. compressor;
#X text 28 69 input signal;
#X text 315 112 threshold;
#X text 546 87 reference;
#X text 453 143 compression factor;
#X text 76 202 forward control;
#X text 312 286 value by which the signal must be increased / reduced
;
#X text 391 358 conversion;
#X text 370 399 correction factor of the input signal's rms value;
#X connect 0 0 7 0;
#X connect 0 0 18 0;
#X connect 1 0 12 0;
#X connect 2 0 5 0;
#X connect 3 0 4 2;
#X connect 4 0 1 0;
#X connect 5 0 4 1;
#X connect 6 0 2 0;
#X connect 7 0 21 0;
#X connect 8 0 4 0;
#X connect 9 0 10 0;
#X connect 10 0 16 0;
#X connect 11 0 9 0;
#X connect 12 0 11 0;
#X connect 14 0 13 0;
#X connect 15 0 14 1;
#X connect 16 0 15 0;
#X connect 17 0 26 0;
#X connect 20 0 23 0;
#X connect 20 1 8 0;
#X connect 21 0 20 0;
#X connect 22 0 24 0;
#X connect 23 0 22 0;
#X connect 24 0 15 0;
#X connect 26 0 14 0;
#X connect 27 0 20 1;
```
explanation:
This patch is a compressor that takes an input signal and reduces its dynamic range based on a set threshold, compression factor, and reference value. The patch includes controls for attack and release times, and also applies a correction factor to the input signal's RMS value. |
dac.pd | #N canvas 0 0 802 407 12;
#X obj 78 230 dac~;
#X obj 77 202 hip~ 5;
#X obj 108 297 loadbang;
#X obj 77 168 *~;
#X obj 95 144 *~;
#X obj 77 97 inlet~;
#X obj 145 127 line~;
#X msg 145 103 \$1 20;
#X obj 148 68 hsl 130 13 0 1 0 0 empty empty empty -2 -6 0 8 -262144
-1 -1 0 0;
#X msg 108 323 \; pd dsp 1;
#X obj 209 266 f;
#X msg 244 123 0;
#X obj 171 49 mute;
#X obj 209 94 sel 0;
#X obj 246 279 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 498 163 Honk Abstractions -- Kreidler 2007;
#X text 540 196 www.kreidler-net.de;
#X obj 218 49 e-dsp;
#X text 402 50 dac: comfortable control of audio output;
#X obj 245 236 spigot;
#X obj 245 168 t f f;
#X obj 280 207 > 0;
#X connect 1 0 0 0;
#X connect 1 0 0 1;
#X connect 2 0 9 0;
#X connect 3 0 1 0;
#X connect 4 0 3 1;
#X connect 5 0 3 0;
#X connect 6 0 4 0;
#X connect 6 0 4 1;
#X connect 7 0 6 0;
#X connect 8 0 7 0;
#X connect 8 0 20 0;
#X connect 10 0 8 0;
#X connect 11 0 8 0;
#X connect 12 0 13 0;
#X connect 13 0 10 0;
#X connect 13 1 11 0;
#X connect 14 0 12 0;
#X connect 19 0 14 0;
#X connect 19 0 10 1;
#X connect 20 0 19 0;
#X connect 20 1 21 0;
#X connect 21 0 19 1;
#X coords 0 -1 1 1 138 33 1 144 48;
| ```
{
"prompt": "Create a Pure Data patch that controls audio output with a comfortable interface, featuring a mute button, a slider for volume control, and a button to trigger a sound.",
"explanation": "This patch is designed to manage audio output in a user-friendly way. It includes a mute button to toggle sound on and off, a horizontal slider (hsl) to adjust the volume, and a bang button (bng) to trigger a sound event. The patch also features a loadbang object to initialize the audio settings and a dac~ object to output the audio signal."
}
``` | Create a Pure Data patch that controls audio output with a comfortable interface, featuring a mute button, a slider for volume control, and a button to trigger a sound. | This patch is designed to manage audio output in a user-friendly way. It includes a mute button to toggle sound on and off, a horizontal slider (hsl) to adjust the volume, and a bang button (bng) to trigger a sound event. The patch also features a loadbang object to initialize the audio settings and a dac~ object to output the audio signal. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 0 0 802 407 12;
#X obj 78 230 dac~;
#X obj 77 202 hip~ 5;
#X obj 108 297 loadbang;
#X obj 77 168 *~;
#X obj 95 144 *~;
#X obj 77 97 inlet~;
#X obj 145 127 line~;
#X msg 145 103 \$1 20;
#X obj 148 68 hsl 130 13 0 1 0 0 empty empty empty -2 -6 0 8 -262144
-1 -1 0 0;
#X msg 108 323 \; pd dsp 1;
#X obj 209 266 f;
#X msg 244 123 0;
#X obj 171 49 mute;
#X obj 209 94 sel 0;
#X obj 246 279 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 498 163 Honk Abstractions -- Kreidler 2007;
#X text 540 196 www.kreidler-net.de;
#X obj 218 49 e-dsp;
#X text 402 50 dac: comfortable control of audio output;
#X obj 245 236 spigot;
#X obj 245 168 t f f;
#X obj 280 207 > 0;
#X connect 1 0 0 0;
#X connect 1 0 0 1;
#X connect 2 0 9 0;
#X connect 3 0 1 0;
#X connect 4 0 3 1;
#X connect 5 0 3 0;
#X connect 6 0 4 0;
#X connect 6 0 4 1;
#X connect 7 0 6 0;
#X connect 8 0 7 0;
#X connect 8 0 20 0;
#X connect 10 0 8 0;
#X connect 11 0 8 0;
#X connect 12 0 13 0;
#X connect 13 0 10 0;
#X connect 13 1 11 0;
#X connect 14 0 12 0;
#X connect 19 0 14 0;
#X connect 19 0 10 1;
#X connect 20 0 19 0;
#X connect 20 1 21 0;
#X connect 21 0 19 1;
#X coords 0 -1 1 1 138 33 1 144 48;
```
explanation:
This patch is designed to manage audio output in a user-friendly way. It includes a mute button to toggle sound on and off, a horizontal slider (hsl) to adjust the volume, and a bang button (bng) to trigger a sound event. The patch also features a loadbang object to initialize the audio settings and a dac~ object to output the audio signal. |
3-5-1-2-transferfunction.pd | #N canvas 1054 151 651 627 12;
#X floatatom 105 96 5 0 0 0 - - -;
#X obj 105 121 phasor~;
#X obj 104 150 clip~ 0.2 0.5;
#X obj 104 181 cos~;
#X obj 105 210 clip~ -0.8 -0.2;
#X obj 104 239 cos~;
#X obj 105 271 cos~;
#X obj 105 297 -~ 0.4;
#X obj 104 327 cos~;
#X obj 103 365 tabwrite~ array1;
#N canvas 0 0 450 300 graph2 0;
#X array array1 100 float 0;
#X coords 0 1 99 -1 200 140 1;
#X restore 102 418 graph;
#X obj 206 334 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 76 13 3.5.1.2. Transfer function;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 11 0 9 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates a complex waveform by applying a series of cosine and clipping operations to a phasor signal, and then writes the resulting waveform to an array.",
"patch_explanation": "This patch generates a complex waveform by applying a series of transformations to a phasor signal. The phasor signal is first clipped to a range of 0.2 to 0.5, then passed through a cosine function. The result is then clipped again to a range of -0.8 to -0.2, and passed through two more cosine functions. The final result is offset by -0.4 and written to an array."
}
``` | Create a Pure Data patch that generates a complex waveform by applying a series of cosine and clipping operations to a phasor signal, and then writes the resulting waveform to an array. | This patch generates a complex waveform by applying a series of transformations to a phasor signal. The phasor signal is first clipped to a range of 0.2 to 0.5, then passed through a cosine function. The result is then clipped again to a range of -0.8 to -0.2, and passed through two more cosine functions. The final result is offset by -0.4 and written to an array. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 1054 151 651 627 12;
#X floatatom 105 96 5 0 0 0 - - -;
#X obj 105 121 phasor~;
#X obj 104 150 clip~ 0.2 0.5;
#X obj 104 181 cos~;
#X obj 105 210 clip~ -0.8 -0.2;
#X obj 104 239 cos~;
#X obj 105 271 cos~;
#X obj 105 297 -~ 0.4;
#X obj 104 327 cos~;
#X obj 103 365 tabwrite~ array1;
#N canvas 0 0 450 300 graph2 0;
#X array array1 100 float 0;
#X coords 0 1 99 -1 200 140 1;
#X restore 102 418 graph;
#X obj 206 334 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 76 13 3.5.1.2. Transfer function;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 11 0 9 0;
```
explanation:
This patch generates a complex waveform by applying a series of transformations to a phasor signal. The phasor signal is first clipped to a range of 0.2 to 0.5, then passed through a cosine function. The result is then clipped again to a range of -0.8 to -0.2, and passed through two more cosine functions. The final result is offset by -0.4 and written to an array. |
5-2-3-1-data-structures2.pd | #N struct g1 float x float y float q;
#N canvas 642 463 475 366 12;
#X obj 90 208 struct g1 float x float y float q;
#X obj 204 84 pointer;
#X msg 227 52 bang;
#X obj 50 256 filledpolygon 22 12 3 0 0 q 0 100 100 0 100;
#X obj 84 119 append g1 x y q;
#X msg 80 73 50 50 150;
#X text 14 3 5.2.3.1. data structures 2;
#X text 361 27 first here;
#X text 273 54 then here;
#X text 79 50 finally here;
#X msg 204 28 traverse pd-graphic;
#N canvas 0 0 462 312 graphic 0;
#X scalar g1 50 50 150 \;;
#X scalar g1 50 50 0 \;;
#X restore 274 157 pd graphic;
#X connect 1 0 4 3;
#X connect 2 0 1 0;
#X connect 5 0 4 0;
#X connect 10 0 1 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates a dynamic graphic with multiple polygons, where the polygon's position and color can be controlled by a data structure.",
"patch_explanation": "This patch uses a data structure to store and manage the properties of a polygon, including its position (x, y) and color (q). The patch generates a graphic with multiple polygons, and the properties of each polygon can be updated dynamically using the data structure."
}
``` | Create a Pure Data patch that generates a dynamic graphic with multiple polygons, where the polygon's position and color can be controlled by a data structure. | This patch uses a data structure to store and manage the properties of a polygon, including its position (x, y) and color (q). The patch generates a graphic with multiple polygons, and the properties of each polygon can be updated dynamically using the data structure. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N struct g1 float x float y float q;
#N canvas 642 463 475 366 12;
#X obj 90 208 struct g1 float x float y float q;
#X obj 204 84 pointer;
#X msg 227 52 bang;
#X obj 50 256 filledpolygon 22 12 3 0 0 q 0 100 100 0 100;
#X obj 84 119 append g1 x y q;
#X msg 80 73 50 50 150;
#X text 14 3 5.2.3.1. data structures 2;
#X text 361 27 first here;
#X text 273 54 then here;
#X text 79 50 finally here;
#X msg 204 28 traverse pd-graphic;
#N canvas 0 0 462 312 graphic 0;
#X scalar g1 50 50 150 \;;
#X scalar g1 50 50 0 \;;
#X restore 274 157 pd graphic;
#X connect 1 0 4 3;
#X connect 2 0 1 0;
#X connect 5 0 4 0;
#X connect 10 0 1 0;
```
explanation:
This patch uses a data structure to store and manage the properties of a polygon, including its position (x, y) and color (q). The patch generates a graphic with multiple polygons, and the properties of each polygon can be updated dynamically using the data structure. |
3-4-4-2-samplewise-delay.pd | #N canvas 368 152 707 770 12;
#X obj 92 164 tabwrite~ array1;
#N canvas 0 0 450 300 graph6 0;
#X array array1 10 float 2;
#X coords 0 1 9 -1 200 140 1;
#X restore 356 258 graph;
#N canvas 0 0 450 300 graph6 0;
#X array array2 10 float 2;
#X coords 0 1 9 -1 200 140 1;
#X restore 354 429 graph;
#X obj 65 260 tabwrite~ array2;
#X obj 159 84 phasor~ 22050;
#N canvas 0 0 458 308 delay-writer 0;
#X obj 155 37 inlet~;
#X obj 155 92 delwrite~ buff 1000;
#X connect 0 0 1 0;
#X restore 159 128 pd delay-writer;
#N canvas 0 0 458 308 delay-reader 0;
#X obj 155 37 inlet~;
#X obj 156 138 outlet~;
#X obj 156 87 vd~ buff;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X restore 320 135 pd delay-reader;
#X floatatom 321 49 5 0 0 0 - - -;
#X obj 321 75 / 44.1;
#X obj 321 104 sig~;
#X obj 51 124 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 380 50 delay in samples;
#X text 68 11 3.4.4.2. Sample-wise Delay;
#X connect 4 0 5 0;
#X connect 4 0 0 0;
#X connect 6 0 3 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 6 0;
#X connect 10 0 3 0;
#X connect 10 0 0 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that implements a sample-wise delay effect, allowing for a variable delay time in samples.",
"patch_explanation": "This patch creates a sample-wise delay effect using two arrays to store and read delayed audio samples. The delay time is controlled by a float atom and can be adjusted in real-time. The patch uses a phasor~ object to generate a sawtooth wave that drives the delay, and a delwrite~ object to write the delayed samples to an array. The delayed samples are then read from the array using a vd~ object and output as an audio signal."
}
``` | Create a Pure Data patch that implements a sample-wise delay effect, allowing for a variable delay time in samples. | This patch creates a sample-wise delay effect using two arrays to store and read delayed audio samples. The delay time is controlled by a float atom and can be adjusted in real-time. The patch uses a phasor~ object to generate a sawtooth wave that drives the delay, and a delwrite~ object to write the delayed samples to an array. The delayed samples are then read from the array using a vd~ object and output as an audio signal. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 368 152 707 770 12;
#X obj 92 164 tabwrite~ array1;
#N canvas 0 0 450 300 graph6 0;
#X array array1 10 float 2;
#X coords 0 1 9 -1 200 140 1;
#X restore 356 258 graph;
#N canvas 0 0 450 300 graph6 0;
#X array array2 10 float 2;
#X coords 0 1 9 -1 200 140 1;
#X restore 354 429 graph;
#X obj 65 260 tabwrite~ array2;
#X obj 159 84 phasor~ 22050;
#N canvas 0 0 458 308 delay-writer 0;
#X obj 155 37 inlet~;
#X obj 155 92 delwrite~ buff 1000;
#X connect 0 0 1 0;
#X restore 159 128 pd delay-writer;
#N canvas 0 0 458 308 delay-reader 0;
#X obj 155 37 inlet~;
#X obj 156 138 outlet~;
#X obj 156 87 vd~ buff;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X restore 320 135 pd delay-reader;
#X floatatom 321 49 5 0 0 0 - - -;
#X obj 321 75 / 44.1;
#X obj 321 104 sig~;
#X obj 51 124 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 380 50 delay in samples;
#X text 68 11 3.4.4.2. Sample-wise Delay;
#X connect 4 0 5 0;
#X connect 4 0 0 0;
#X connect 6 0 3 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 6 0;
#X connect 10 0 3 0;
#X connect 10 0 0 0;
```
explanation:
This patch creates a sample-wise delay effect using two arrays to store and read delayed audio samples. The delay time is controlled by a float atom and can be adjusted in real-time. The patch uses a phasor~ object to generate a sawtooth wave that drives the delay, and a delwrite~ object to write the delayed samples to an array. The delayed samples are then read from the array using a vd~ object and output as an audio signal. |
a-28-spectrum.pd | #N canvas 11 488 632 524 12;
#X obj 28 255 rfft~;
#X obj 28 288 *~;
#X obj 59 288 *~;
#X obj 28 318 sqrt~;
#X obj 39 166 block~ 4096 1;
#X obj 28 344 biquad~ 0 0 0 0 1;
#X obj 28 368 /~ 4096;
#N canvas 0 0 450 300 graph1 0;
#X array \$0-t 2050 float 0;
#X coords 0 0.51 2049 -0.008 259 100 1;
#X restore 12 41 graph;
#X obj 42 460 tabwrite~ \$0-t;
#X obj 49 399 ii 1;
#X obj 49 422 metro 200;
#X obj 36 229 *~;
#X obj 274 13 vsl 12 128 0 20 0 0 empty empty ranges -38 4 1 8 -262144
-1 -1 635 1;
#X floatatom 257 163 5 0 0 0 - - -;
#X obj 27 194 inlet~;
#X obj 326 43 ii 1;
#X obj 290 13 vsl 12 128 0 2050 0 0 empty empty empty -34 4 1 8 -262144
-1 -1 12700 0;
#X obj 315 16 ii 2050;
#X obj 278 288 s \$0-t;
#X msg 276 260 resize \$1;
#X text 417 10 5.1.2.2.spectrum;
#X connect 0 0 1 0;
#X connect 0 0 1 1;
#X connect 0 1 2 0;
#X connect 0 1 2 1;
#X connect 1 0 3 0;
#X connect 2 0 3 0;
#X connect 3 0 5 0;
#X connect 5 0 6 0;
#X connect 6 0 8 0;
#X connect 9 0 10 0;
#X connect 10 0 8 0;
#X connect 11 0 0 0;
#X connect 12 0 13 0;
#X connect 13 0 11 1;
#X connect 14 0 11 0;
#X connect 15 0 12 0;
#X connect 16 0 19 0;
#X connect 17 0 16 0;
#X connect 19 0 18 0;
#X coords 0 -1 1 1 293 135 1 10 10;
| ```
{
"prompt": "Create a Pure Data patch that analyzes an audio signal and displays its frequency spectrum in real-time, using a Fast Fourier Transform (FFT) and a graph to visualize the spectrum.",
"explanation": "This patch takes an audio signal as input, applies a Fast Fourier Transform (FFT) to it, and then processes the resulting frequency bins to display the signal's frequency spectrum in real-time. The spectrum is visualized using a graph, which is updated at regular intervals using a metro object."
}
``` | Create a Pure Data patch that analyzes an audio signal and displays its frequency spectrum in real-time, using a Fast Fourier Transform (FFT) and a graph to visualize the spectrum. | This patch takes an audio signal as input, applies a Fast Fourier Transform (FFT) to it, and then processes the resulting frequency bins to display the signal's frequency spectrum in real-time. The spectrum is visualized using a graph, which is updated at regular intervals using a metro object. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 11 488 632 524 12;
#X obj 28 255 rfft~;
#X obj 28 288 *~;
#X obj 59 288 *~;
#X obj 28 318 sqrt~;
#X obj 39 166 block~ 4096 1;
#X obj 28 344 biquad~ 0 0 0 0 1;
#X obj 28 368 /~ 4096;
#N canvas 0 0 450 300 graph1 0;
#X array \$0-t 2050 float 0;
#X coords 0 0.51 2049 -0.008 259 100 1;
#X restore 12 41 graph;
#X obj 42 460 tabwrite~ \$0-t;
#X obj 49 399 ii 1;
#X obj 49 422 metro 200;
#X obj 36 229 *~;
#X obj 274 13 vsl 12 128 0 20 0 0 empty empty ranges -38 4 1 8 -262144
-1 -1 635 1;
#X floatatom 257 163 5 0 0 0 - - -;
#X obj 27 194 inlet~;
#X obj 326 43 ii 1;
#X obj 290 13 vsl 12 128 0 2050 0 0 empty empty empty -34 4 1 8 -262144
-1 -1 12700 0;
#X obj 315 16 ii 2050;
#X obj 278 288 s \$0-t;
#X msg 276 260 resize \$1;
#X text 417 10 5.1.2.2.spectrum;
#X connect 0 0 1 0;
#X connect 0 0 1 1;
#X connect 0 1 2 0;
#X connect 0 1 2 1;
#X connect 1 0 3 0;
#X connect 2 0 3 0;
#X connect 3 0 5 0;
#X connect 5 0 6 0;
#X connect 6 0 8 0;
#X connect 9 0 10 0;
#X connect 10 0 8 0;
#X connect 11 0 0 0;
#X connect 12 0 13 0;
#X connect 13 0 11 1;
#X connect 14 0 11 0;
#X connect 15 0 12 0;
#X connect 16 0 19 0;
#X connect 17 0 16 0;
#X connect 19 0 18 0;
#X coords 0 -1 1 1 293 135 1 10 10;
```
explanation:
This patch takes an audio signal as input, applies a Fast Fourier Transform (FFT) to it, and then processes the resulting frequency bins to display the signal's frequency spectrum in real-time. The spectrum is visualized using a graph, which is updated at regular intervals using a metro object. |
3-6-2-3-frequencymodulation-live.pd | #N canvas 1066 153 440 604 12;
#X obj 127 433 *~ 0.8;
#X obj 126 462 dac~;
#X obj 128 153 *~;
#X obj 127 83 adc~;
#X floatatom 185 404 5 0 0 0 - - -;
#X obj 154 132 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 206 154 *~;
#X obj 232 133 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 205 84 osc~ 440;
#X obj 127 190 delwrite~ d1 100;
#X floatatom 128 238 5 0 0 0 - - -;
#X obj 128 263 osc~;
#X obj 128 290 +~ 1;
#X obj 128 320 *~ 0.5;
#X obj 127 359 *~;
#X floatatom 224 308 5 0 0 0 - - -;
#X text 226 284 Modulator;
#X obj 127 387 vd~ d1;
#X text 59 17 3.6.2.3. Frequency modulation live;
#X connect 0 0 1 0;
#X connect 0 0 1 1;
#X connect 2 0 9 0;
#X connect 3 0 2 0;
#X connect 3 1 2 0;
#X connect 4 0 0 1;
#X connect 5 0 2 1;
#X connect 6 0 9 0;
#X connect 7 0 6 1;
#X connect 8 0 6 0;
#X connect 10 0 11 0;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 13 0 14 0;
#X connect 14 0 17 0;
#X connect 15 0 14 1;
#X connect 17 0 0 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates a frequency-modulated sound in real-time, using a modulator to alter the frequency of a carrier wave.",
"patch_explanation": "This patch uses frequency modulation to generate a sound in real-time. It takes audio input from adc~ and multiplies it with a modulator signal generated by an osc~ object. The modulated signal is then delayed and multiplied with a carrier wave, also generated by an osc~ object, to produce the final sound."
}
``` | Create a Pure Data patch that generates a frequency-modulated sound in real-time, using a modulator to alter the frequency of a carrier wave. | This patch uses frequency modulation to generate a sound in real-time. It takes audio input from adc~ and multiplies it with a modulator signal generated by an osc~ object. The modulated signal is then delayed and multiplied with a carrier wave, also generated by an osc~ object, to produce the final sound. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 1066 153 440 604 12;
#X obj 127 433 *~ 0.8;
#X obj 126 462 dac~;
#X obj 128 153 *~;
#X obj 127 83 adc~;
#X floatatom 185 404 5 0 0 0 - - -;
#X obj 154 132 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 206 154 *~;
#X obj 232 133 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 205 84 osc~ 440;
#X obj 127 190 delwrite~ d1 100;
#X floatatom 128 238 5 0 0 0 - - -;
#X obj 128 263 osc~;
#X obj 128 290 +~ 1;
#X obj 128 320 *~ 0.5;
#X obj 127 359 *~;
#X floatatom 224 308 5 0 0 0 - - -;
#X text 226 284 Modulator;
#X obj 127 387 vd~ d1;
#X text 59 17 3.6.2.3. Frequency modulation live;
#X connect 0 0 1 0;
#X connect 0 0 1 1;
#X connect 2 0 9 0;
#X connect 3 0 2 0;
#X connect 3 1 2 0;
#X connect 4 0 0 1;
#X connect 5 0 2 1;
#X connect 6 0 9 0;
#X connect 7 0 6 1;
#X connect 8 0 6 0;
#X connect 10 0 11 0;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 13 0 14 0;
#X connect 14 0 17 0;
#X connect 15 0 14 1;
#X connect 17 0 0 0;
```
explanation:
This patch uses frequency modulation to generate a sound in real-time. It takes audio input from adc~ and multiplies it with a modulator signal generated by an osc~ object. The modulated signal is then delayed and multiplied with a carrier wave, also generated by an osc~ object, to produce the final sound. |
a-7-irregmetro.pd | #N canvas 164 424 664 405 12;
#X obj 163 167 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 163 195 metro;
#X obj 198 168 +;
#X obj 198 126 random 1000;
#X obj 312 141 - 500;
#X floatatom 312 116 5 0 0 0 - - -;
#X obj 163 222 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 312 92 expr 1000/($f1/60);
#X floatatom 312 67 5 0 0 0 - - -;
#X text 27 6 2.2.3.2.9. irregular metro;
#X text 311 32 average tempo \, max. 120;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 1 0 6 0;
#X connect 2 0 1 1;
#X connect 3 0 2 0;
#X connect 4 0 2 1;
#X connect 5 0 4 0;
#X connect 7 0 5 0;
#X connect 8 0 7 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates an irregular metronome with a tempo that varies randomly around an average tempo, with a maximum tempo of 120 beats per minute.",
"patch_explanation": "This patch uses a combination of a toggle, metro, and random number generator to create an irregular metronome. The average tempo is set by a float atom, and the actual tempo is calculated by adding a random value to the average tempo. The result is a metronome that varies its tempo randomly around the average tempo."
}
``` | Create a Pure Data patch that generates an irregular metronome with a tempo that varies randomly around an average tempo, with a maximum tempo of 120 beats per minute. | This patch uses a combination of a toggle, metro, and random number generator to create an irregular metronome. The average tempo is set by a float atom, and the actual tempo is calculated by adding a random value to the average tempo. The result is a metronome that varies its tempo randomly around the average tempo. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 164 424 664 405 12;
#X obj 163 167 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 163 195 metro;
#X obj 198 168 +;
#X obj 198 126 random 1000;
#X obj 312 141 - 500;
#X floatatom 312 116 5 0 0 0 - - -;
#X obj 163 222 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 312 92 expr 1000/($f1/60);
#X floatatom 312 67 5 0 0 0 - - -;
#X text 27 6 2.2.3.2.9. irregular metro;
#X text 311 32 average tempo \, max. 120;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 1 0 6 0;
#X connect 2 0 1 1;
#X connect 3 0 2 0;
#X connect 4 0 2 1;
#X connect 5 0 4 0;
#X connect 7 0 5 0;
#X connect 8 0 7 0;
```
explanation:
This patch uses a combination of a toggle, metro, and random number generator to create an irregular metronome. The average tempo is set by a float atom, and the actual tempo is calculated by adding a random value to the average tempo. The result is a metronome that varies its tempo randomly around the average tempo. |
a-10-linloggliss.pd | #N canvas 246 649 542 396 12;
#X text 118 13 linloggliss;
#X msg 98 79 48 \, 84 30000;
#X obj 98 134 mtof;
#X obj 98 107 line;
#X obj 98 164 osc~;
#X obj 99 195 *~ 0.7;
#X obj 98 267 dac~;
#X text 96 55 linear;
#X obj 235 108 line;
#X obj 235 165 osc~;
#X obj 236 196 *~ 0.7;
#X obj 237 261 dac~;
#X msg 235 81 261.6 \, 1046.5 30000;
#X obj 236 231 *~;
#X obj 297 210 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 98 238 *~;
#X obj 132 222 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X text 28 12 3.1.1.2.2.;
#X text 243 13 (any duration);
#X text 235 52 logarithmic;
#X connect 1 0 3 0;
#X connect 2 0 4 0;
#X connect 3 0 2 0;
#X connect 4 0 5 0;
#X connect 5 0 15 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 10 0 13 0;
#X connect 12 0 8 0;
#X connect 13 0 11 0;
#X connect 13 0 11 1;
#X connect 14 0 13 1;
#X connect 15 0 6 0;
#X connect 16 0 15 1;
| ```
{
"prompt": "Create a Pure Data patch that generates a glissando effect with both linear and logarithmic frequency transitions over a specified duration, with control over the output volume.",
"explanation": "This patch generates a glissando effect by creating a smooth transition between two frequencies over a specified duration. It features both linear and logarithmic frequency transitions, allowing for different sonic effects. The output volume can be controlled using toggle objects."
}
``` | Create a Pure Data patch that generates a glissando effect with both linear and logarithmic frequency transitions over a specified duration, with control over the output volume. | This patch generates a glissando effect by creating a smooth transition between two frequencies over a specified duration. It features both linear and logarithmic frequency transitions, allowing for different sonic effects. The output volume can be controlled using toggle objects. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 246 649 542 396 12;
#X text 118 13 linloggliss;
#X msg 98 79 48 \, 84 30000;
#X obj 98 134 mtof;
#X obj 98 107 line;
#X obj 98 164 osc~;
#X obj 99 195 *~ 0.7;
#X obj 98 267 dac~;
#X text 96 55 linear;
#X obj 235 108 line;
#X obj 235 165 osc~;
#X obj 236 196 *~ 0.7;
#X obj 237 261 dac~;
#X msg 235 81 261.6 \, 1046.5 30000;
#X obj 236 231 *~;
#X obj 297 210 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 98 238 *~;
#X obj 132 222 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X text 28 12 3.1.1.2.2.;
#X text 243 13 (any duration);
#X text 235 52 logarithmic;
#X connect 1 0 3 0;
#X connect 2 0 4 0;
#X connect 3 0 2 0;
#X connect 4 0 5 0;
#X connect 5 0 15 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 10 0 13 0;
#X connect 12 0 8 0;
#X connect 13 0 11 0;
#X connect 13 0 11 1;
#X connect 14 0 13 1;
#X connect 15 0 6 0;
#X connect 16 0 15 1;
```
explanation:
This patch generates a glissando effect by creating a smooth transition between two frequencies over a specified duration. It features both linear and logarithmic frequency transitions, allowing for different sonic effects. The output volume can be controlled using toggle objects. |
3-4-1-3-delay.pd | #N canvas 603 101 711 540 12;
#X obj 115 148 delwrite~ platz 3000;
#X obj 115 108 osc~;
#X floatatom 115 79 5 0 0 0 - - -;
#X obj 114 204 delread~ platz 2500;
#X obj 114 300 dac~;
#X obj 115 265 *~;
#X floatatom 149 242 5 0 0 0 - - -;
#X obj 325 340 dac~;
#X obj 326 305 *~;
#X floatatom 360 282 5 0 0 0 - - -;
#X obj 325 244 vd~ platz;
#X obj 325 217 sig~;
#X floatatom 325 195 5 0 0 0 - - -;
#X text 45 18 3.4.1.3. delay;
#X text 176 79 change pitch here;
#X text 375 194 change length of delay here;
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X connect 3 0 5 0;
#X connect 5 0 4 0;
#X connect 5 0 4 1;
#X connect 6 0 5 1;
#X connect 8 0 7 0;
#X connect 8 0 7 1;
#X connect 9 0 8 1;
#X connect 10 0 8 0;
#X connect 11 0 10 0;
#X connect 12 0 11 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates a delayed audio signal with adjustable pitch and delay length.",
"patch_explanation": "This patch uses an oscillator to generate an audio signal, which is then delayed by a variable amount of time (up to 3000ms) using the delwrite~ and delread~ objects. The pitch of the signal can be adjusted using a floatatom, and the length of the delay can also be adjusted using another floatatom. The delayed signal is then sent to the audio output using the dac~ object."
}
``` | Create a Pure Data patch that generates a delayed audio signal with adjustable pitch and delay length. | This patch uses an oscillator to generate an audio signal, which is then delayed by a variable amount of time (up to 3000ms) using the delwrite~ and delread~ objects. The pitch of the signal can be adjusted using a floatatom, and the length of the delay can also be adjusted using another floatatom. The delayed signal is then sent to the audio output using the dac~ object. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 603 101 711 540 12;
#X obj 115 148 delwrite~ platz 3000;
#X obj 115 108 osc~;
#X floatatom 115 79 5 0 0 0 - - -;
#X obj 114 204 delread~ platz 2500;
#X obj 114 300 dac~;
#X obj 115 265 *~;
#X floatatom 149 242 5 0 0 0 - - -;
#X obj 325 340 dac~;
#X obj 326 305 *~;
#X floatatom 360 282 5 0 0 0 - - -;
#X obj 325 244 vd~ platz;
#X obj 325 217 sig~;
#X floatatom 325 195 5 0 0 0 - - -;
#X text 45 18 3.4.1.3. delay;
#X text 176 79 change pitch here;
#X text 375 194 change length of delay here;
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X connect 3 0 5 0;
#X connect 5 0 4 0;
#X connect 5 0 4 1;
#X connect 6 0 5 1;
#X connect 8 0 7 0;
#X connect 8 0 7 1;
#X connect 9 0 8 1;
#X connect 10 0 8 0;
#X connect 11 0 10 0;
#X connect 12 0 11 0;
```
explanation:
This patch uses an oscillator to generate an audio signal, which is then delayed by a variable amount of time (up to 3000ms) using the delwrite~ and delread~ objects. The pitch of the signal can be adjusted using a floatatom, and the length of the delay can also be adjusted using another floatatom. The delayed signal is then sent to the audio output using the dac~ object. |
3-9-1-1-limiter1.pd | #N canvas 1022 235 633 400 12;
#X obj 27 70 inlet~;
#X floatatom 78 288 5 0 0 0 - - -;
#X msg 219 120 10;
#X floatatom 361 112 5 0 0 0 - - -;
#X obj 78 250 expr (($f1 - $f3) / $f2) - $f1 + $f3;
#X floatatom 219 154 5 0 0 0 - - -;
#X obj 219 95 loadbang;
#X obj 43 151 env~ 1024;
#X floatatom 78 226 5 0 0 0 - - -;
#X obj 43 202 moses;
#X floatatom 43 177 5 0 0 0 - - -;
#X text 27 19 3.9.1.1. Limiter 1;
#X text 25 45 signal to be limited;
#X text 364 85 threshold / reference;
#X text 266 144 limit factor;
#X text 125 287 value by which the signal must be reduced;
#X connect 0 0 7 0;
#X connect 2 0 5 0;
#X connect 3 0 4 2;
#X connect 3 0 9 1;
#X connect 4 0 1 0;
#X connect 5 0 4 1;
#X connect 6 0 2 0;
#X connect 7 0 10 0;
#X connect 8 0 4 0;
#X connect 9 1 8 0;
#X connect 10 0 9 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that limits an incoming audio signal to a specified threshold, reducing the signal by a calculated amount based on a limit factor.",
"patch_explanation": "This patch is a limiter that takes an audio signal as input and reduces its amplitude if it exceeds a specified threshold. The reduction amount is calculated based on a limit factor, and the resulting value is output as a control signal."
}
``` | Create a Pure Data patch that limits an incoming audio signal to a specified threshold, reducing the signal by a calculated amount based on a limit factor. | This patch is a limiter that takes an audio signal as input and reduces its amplitude if it exceeds a specified threshold. The reduction amount is calculated based on a limit factor, and the resulting value is output as a control signal. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 1022 235 633 400 12;
#X obj 27 70 inlet~;
#X floatatom 78 288 5 0 0 0 - - -;
#X msg 219 120 10;
#X floatatom 361 112 5 0 0 0 - - -;
#X obj 78 250 expr (($f1 - $f3) / $f2) - $f1 + $f3;
#X floatatom 219 154 5 0 0 0 - - -;
#X obj 219 95 loadbang;
#X obj 43 151 env~ 1024;
#X floatatom 78 226 5 0 0 0 - - -;
#X obj 43 202 moses;
#X floatatom 43 177 5 0 0 0 - - -;
#X text 27 19 3.9.1.1. Limiter 1;
#X text 25 45 signal to be limited;
#X text 364 85 threshold / reference;
#X text 266 144 limit factor;
#X text 125 287 value by which the signal must be reduced;
#X connect 0 0 7 0;
#X connect 2 0 5 0;
#X connect 3 0 4 2;
#X connect 3 0 9 1;
#X connect 4 0 1 0;
#X connect 5 0 4 1;
#X connect 6 0 2 0;
#X connect 7 0 10 0;
#X connect 8 0 4 0;
#X connect 9 1 8 0;
#X connect 10 0 9 0;
```
explanation:
This patch is a limiter that takes an audio signal as input and reduces its amplitude if it exceeds a specified threshold. The reduction amount is calculated based on a limit factor, and the resulting value is output as a control signal. |
a-2-two-intervals.pd | #N canvas 237 598 378 348 12;
#X msg 40 127 400;
#X msg 158 130 600;
#X obj 40 176 osc~;
#X obj 158 175 osc~;
#X msg 80 126 300;
#X msg 199 131 700;
#X obj 79 229 *~ 0.5;
#X obj 79 271 dac~;
#X obj 71 71 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 154 72 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 25 4 2.2.1.2.8. two intervals;
#X connect 0 0 2 0;
#X connect 1 0 3 0;
#X connect 2 0 6 0;
#X connect 3 0 6 0;
#X connect 4 0 2 0;
#X connect 5 0 3 0;
#X connect 6 0 7 0;
#X connect 6 0 7 1;
#X connect 8 0 0 0;
#X connect 8 0 1 0;
#X connect 9 0 4 0;
#X connect 9 0 5 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates two distinct tones, each triggered by a separate bang, with frequencies of 400 Hz and 600 Hz, and 300 Hz and 700 Hz, respectively, and outputs a mixed signal to the audio output.",
"patch_explanation": "This patch uses two osc~ objects to generate two distinct tones, each triggered by a separate bang. The frequencies of the tones are set by msg objects. The signals are then mixed together using a *~ object and output to the audio interface using a dac~ object."
}
``` | Create a Pure Data patch that generates two distinct tones, each triggered by a separate bang, with frequencies of 400 Hz and 600 Hz, and 300 Hz and 700 Hz, respectively, and outputs a mixed signal to the audio output. | This patch uses two osc~ objects to generate two distinct tones, each triggered by a separate bang. The frequencies of the tones are set by msg objects. The signals are then mixed together using a *~ object and output to the audio interface using a dac~ object. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 237 598 378 348 12;
#X msg 40 127 400;
#X msg 158 130 600;
#X obj 40 176 osc~;
#X obj 158 175 osc~;
#X msg 80 126 300;
#X msg 199 131 700;
#X obj 79 229 *~ 0.5;
#X obj 79 271 dac~;
#X obj 71 71 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 154 72 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 25 4 2.2.1.2.8. two intervals;
#X connect 0 0 2 0;
#X connect 1 0 3 0;
#X connect 2 0 6 0;
#X connect 3 0 6 0;
#X connect 4 0 2 0;
#X connect 5 0 3 0;
#X connect 6 0 7 0;
#X connect 6 0 7 1;
#X connect 8 0 0 0;
#X connect 8 0 1 0;
#X connect 9 0 4 0;
#X connect 9 0 5 0;
```
explanation:
This patch uses two osc~ objects to generate two distinct tones, each triggered by a separate bang. The frequencies of the tones are set by msg objects. The signals are then mixed together using a *~ object and output to the audio interface using a dac~ object. |
3-5-1-1-other-waveforms.pd | #N canvas 1054 151 726 354 12;
#X obj 160 93 phasor~ 440;
#X obj 158 176 tabwrite~ array1;
#X obj 253 149 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 277 148 Darstellung;
#N canvas 0 0 450 300 graph1 0;
#X array array1 100 float 0;
#X coords 0 1 99 -1 200 140 1;
#X restore 402 68 graph;
#X text 381 196 -1;
#X text 387 57 1;
#X obj 159 124 clip~ 0.2 0.8;
#X text 76 12 3.5.1.1. other waveforms;
#X connect 0 0 7 0;
#X connect 2 0 1 0;
#X connect 7 0 1 0;
| ```
{
"prompt": "Create a Pure Data patch that generates a phasor signal at 440 Hz, clips its amplitude to a range of 0.2 to 0.8, and visualizes the resulting waveform.",
"explanation": "This patch produces a phasor signal at 440 Hz, limits its amplitude to a range of 0.2 to 0.8 using a clip~ object, and then writes the resulting signal to an array for visualization."
}
``` | Create a Pure Data patch that generates a phasor signal at 440 Hz, clips its amplitude to a range of 0.2 to 0.8, and visualizes the resulting waveform. | This patch produces a phasor signal at 440 Hz, limits its amplitude to a range of 0.2 to 0.8 using a clip~ object, and then writes the resulting signal to an array for visualization. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 1054 151 726 354 12;
#X obj 160 93 phasor~ 440;
#X obj 158 176 tabwrite~ array1;
#X obj 253 149 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 277 148 Darstellung;
#N canvas 0 0 450 300 graph1 0;
#X array array1 100 float 0;
#X coords 0 1 99 -1 200 140 1;
#X restore 402 68 graph;
#X text 381 196 -1;
#X text 387 57 1;
#X obj 159 124 clip~ 0.2 0.8;
#X text 76 12 3.5.1.1. other waveforms;
#X connect 0 0 7 0;
#X connect 2 0 1 0;
#X connect 7 0 1 0;
```
explanation:
This patch produces a phasor signal at 440 Hz, limits its amplitude to a range of 0.2 to 0.8 using a clip~ object, and then writes the resulting signal to an array for visualization. |
3-5-1-1-triangel.pd | #N canvas 1054 151 681 618 12;
#X obj 125 361 tabwrite~ array1;
#X obj 220 334 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 0 450 300 graph1 0;
#X array array1 100 float 0;
#X coords 0 1 99 -1 200 140 1;
#X restore 402 68 graph;
#X text 381 196 -1;
#X text 387 57 1;
#X floatatom 100 69 5 0 0 0 - - -;
#X obj 116 116 * -1;
#X msg 190 115 0;
#X obj 58 159 phasor~;
#X obj 159 157 phasor~;
#X obj 59 199 *~ 2;
#X obj 58 226 -~ 1;
#X obj 57 254 clip~ 0 1;
#X obj 159 202 *~ 2;
#X obj 158 229 -~ 1;
#X obj 157 257 clip~ 0 1;
#X obj 105 308 +~;
#X obj 85 431 *~ 0.7;
#X obj 84 479 *~;
#X obj 134 464 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 83 513 dac~;
#X text 76 12 triangle;
#X text 95 42 any fundamental;
#X text 191 98 phase synchronization;
#X text 244 333 graph;
#X text 161 455 listen;
#X connect 1 0 0 0;
#X connect 5 0 6 0;
#X connect 5 0 8 0;
#X connect 6 0 9 0;
#X connect 7 0 9 1;
#X connect 7 0 8 1;
#X connect 8 0 10 0;
#X connect 9 0 13 0;
#X connect 10 0 11 0;
#X connect 11 0 12 0;
#X connect 12 0 16 0;
#X connect 13 0 14 0;
#X connect 14 0 15 0;
#X connect 15 0 16 1;
#X connect 16 0 0 0;
#X connect 16 0 17 0;
#X connect 17 0 18 0;
#X connect 18 0 20 0;
#X connect 18 0 20 1;
#X connect 19 0 18 1;
| ```
{
"prompt": "Create a Pure Data patch that generates a triangle wave with phase synchronization and allows for real-time manipulation of the wave's frequency and amplitude.",
"explanation": "This patch generates a triangle wave using two phasor~ objects and applies phase synchronization. The wave's frequency and amplitude can be controlled in real-time using a floatatom and a tgl object. The output is sent to a dac~ object for audio playback."
}
``` | Create a Pure Data patch that generates a triangle wave with phase synchronization and allows for real-time manipulation of the wave's frequency and amplitude. | This patch generates a triangle wave using two phasor~ objects and applies phase synchronization. The wave's frequency and amplitude can be controlled in real-time using a floatatom and a tgl object. The output is sent to a dac~ object for audio playback. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 1054 151 681 618 12;
#X obj 125 361 tabwrite~ array1;
#X obj 220 334 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 0 450 300 graph1 0;
#X array array1 100 float 0;
#X coords 0 1 99 -1 200 140 1;
#X restore 402 68 graph;
#X text 381 196 -1;
#X text 387 57 1;
#X floatatom 100 69 5 0 0 0 - - -;
#X obj 116 116 * -1;
#X msg 190 115 0;
#X obj 58 159 phasor~;
#X obj 159 157 phasor~;
#X obj 59 199 *~ 2;
#X obj 58 226 -~ 1;
#X obj 57 254 clip~ 0 1;
#X obj 159 202 *~ 2;
#X obj 158 229 -~ 1;
#X obj 157 257 clip~ 0 1;
#X obj 105 308 +~;
#X obj 85 431 *~ 0.7;
#X obj 84 479 *~;
#X obj 134 464 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 83 513 dac~;
#X text 76 12 triangle;
#X text 95 42 any fundamental;
#X text 191 98 phase synchronization;
#X text 244 333 graph;
#X text 161 455 listen;
#X connect 1 0 0 0;
#X connect 5 0 6 0;
#X connect 5 0 8 0;
#X connect 6 0 9 0;
#X connect 7 0 9 1;
#X connect 7 0 8 1;
#X connect 8 0 10 0;
#X connect 9 0 13 0;
#X connect 10 0 11 0;
#X connect 11 0 12 0;
#X connect 12 0 16 0;
#X connect 13 0 14 0;
#X connect 14 0 15 0;
#X connect 15 0 16 1;
#X connect 16 0 0 0;
#X connect 16 0 17 0;
#X connect 17 0 18 0;
#X connect 18 0 20 0;
#X connect 18 0 20 1;
#X connect 19 0 18 1;
```
explanation:
This patch generates a triangle wave using two phasor~ objects and applies phase synchronization. The wave's frequency and amplitude can be controlled in real-time using a floatatom and a tgl object. The output is sent to a dac~ object for audio playback. |
3-3-4-1-filterwork.pd | #N canvas 520 326 605 658 12;
#N canvas 0 0 450 300 graph1 0;
#X array array1 20 float 2;
#X coords 0 1 19 -1 200 140 1;
#X restore 351 70 graph;
#X obj 95 130 osc~;
#X floatatom 95 96 5 0 0 0 - - -;
#X obj 94 177 *~;
#X floatatom 151 134 5 0 0 0 - - -;
#X obj 94 221 tabwrite~ array1;
#X obj 190 180 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 0 450 300 graph1 0;
#X array array2 20 float 2;
#X coords 0 1 19 -1 200 140 1;
#X restore 350 229 graph;
#N canvas 0 0 450 300 graph1 0;
#X array array3 20 float 2;
#X coords 0 1 19 -1 200 140 1;
#X restore 351 390 graph;
#X obj 69 261 z~ 1;
#X obj 14 333 +~;
#X obj 15 372 tabwrite~ array3;
#X obj 98 298 tabwrite~ array2;
#X text 2 -11 3.2.3.1. how digital filters work;
#X text 191 161 show array;
#X text 120 263 shift by 1 sample;
#X text 52 328 this addition causes the signals;
#X text 49 345 to cancel each other out;
#X connect 1 0 3 0;
#X connect 2 0 1 0;
#X connect 3 0 5 0;
#X connect 3 0 9 0;
#X connect 3 0 10 0;
#X connect 4 0 3 1;
#X connect 6 0 5 0;
#X connect 6 0 12 0;
#X connect 6 0 11 0;
#X connect 9 0 10 1;
#X connect 9 0 12 0;
#X connect 10 0 11 0;
| ```
{
"prompt": "Create a Pure Data patch that demonstrates how digital filters work by implementing a simple filter that cancels out a signal by adding a shifted version of itself.",
"explanation": "This patch generates a signal using an oscillator, multiplies it by a gain value, and writes it to an array. It then shifts the signal by one sample using the z~ object and adds it to the original signal, causing them to cancel each other out. The resulting signal is written to another array."
}
``` | Create a Pure Data patch that demonstrates how digital filters work by implementing a simple filter that cancels out a signal by adding a shifted version of itself. | This patch generates a signal using an oscillator, multiplies it by a gain value, and writes it to an array. It then shifts the signal by one sample using the z~ object and adds it to the original signal, causing them to cancel each other out. The resulting signal is written to another array. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 520 326 605 658 12;
#N canvas 0 0 450 300 graph1 0;
#X array array1 20 float 2;
#X coords 0 1 19 -1 200 140 1;
#X restore 351 70 graph;
#X obj 95 130 osc~;
#X floatatom 95 96 5 0 0 0 - - -;
#X obj 94 177 *~;
#X floatatom 151 134 5 0 0 0 - - -;
#X obj 94 221 tabwrite~ array1;
#X obj 190 180 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 0 450 300 graph1 0;
#X array array2 20 float 2;
#X coords 0 1 19 -1 200 140 1;
#X restore 350 229 graph;
#N canvas 0 0 450 300 graph1 0;
#X array array3 20 float 2;
#X coords 0 1 19 -1 200 140 1;
#X restore 351 390 graph;
#X obj 69 261 z~ 1;
#X obj 14 333 +~;
#X obj 15 372 tabwrite~ array3;
#X obj 98 298 tabwrite~ array2;
#X text 2 -11 3.2.3.1. how digital filters work;
#X text 191 161 show array;
#X text 120 263 shift by 1 sample;
#X text 52 328 this addition causes the signals;
#X text 49 345 to cancel each other out;
#X connect 1 0 3 0;
#X connect 2 0 1 0;
#X connect 3 0 5 0;
#X connect 3 0 9 0;
#X connect 3 0 10 0;
#X connect 4 0 3 1;
#X connect 6 0 5 0;
#X connect 6 0 12 0;
#X connect 6 0 11 0;
#X connect 9 0 10 1;
#X connect 9 0 12 0;
#X connect 10 0 11 0;
```
explanation:
This patch generates a signal using an oscillator, multiplies it by a gain value, and writes it to an array. It then shifts the signal by one sample using the z~ object and adds it to the original signal, causing them to cancel each other out. The resulting signal is written to another array. |
image004.pd | #N canvas 776 249 674 413 10;
#X obj 80 160 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 1 1;
#X msg 110 160 create;
#X msg 170 160 destroy;
#X obj 90 220 gemwin;
#X obj 320 100 gemhead;
#X obj 320 240 pix_image;
#X obj 320 270 pix_texture;
#X obj 480 130 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X obj 480 160 openpanel;
#X msg 480 200 open \$1;
#X obj 320 160 rotateXYZ 40 45 -5;
#X floatatom 370 310 5 0 0 0 - - -, f 5;
#X text 150 40 prompt: Write a pd patch that lets me choose an image
file from the file browser and map it onto a sphere, f 64;
#X obj 320 340 sphere 1.4 30;
#X connect 0 0 3 0;
#X connect 1 0 3 0;
#X connect 2 0 3 0;
#X connect 4 0 10 0;
#X connect 5 0 6 0;
#X connect 6 0 13 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 5 0;
#X connect 10 0 5 0;
#X connect 11 0 13 1;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that allows a user to select an image file from the file browser and map it onto a rotating 3D sphere.",
"patch_explanation": "This patch uses the Gem library to create a 3D sphere and map an image onto it. The user can select an image file using the file browser, which is triggered by a bang object. The selected image is then loaded into a pix_image object and applied to the sphere as a texture. The sphere's rotation is controlled by a rotateXYZ object."
}
``` | Create a Pure Data patch that allows a user to select an image file from the file browser and map it onto a rotating 3D sphere. | This patch uses the Gem library to create a 3D sphere and map an image onto it. The user can select an image file using the file browser, which is triggered by a bang object. The selected image is then loaded into a pix_image object and applied to the sphere as a texture. The sphere's rotation is controlled by a rotateXYZ object. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 776 249 674 413 10;
#X obj 80 160 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 1 1;
#X msg 110 160 create;
#X msg 170 160 destroy;
#X obj 90 220 gemwin;
#X obj 320 100 gemhead;
#X obj 320 240 pix_image;
#X obj 320 270 pix_texture;
#X obj 480 130 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X obj 480 160 openpanel;
#X msg 480 200 open \$1;
#X obj 320 160 rotateXYZ 40 45 -5;
#X floatatom 370 310 5 0 0 0 - - -, f 5;
#X text 150 40 prompt: Write a pd patch that lets me choose an image
file from the file browser and map it onto a sphere, f 64;
#X obj 320 340 sphere 1.4 30;
#X connect 0 0 3 0;
#X connect 1 0 3 0;
#X connect 2 0 3 0;
#X connect 4 0 10 0;
#X connect 5 0 6 0;
#X connect 6 0 13 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 5 0;
#X connect 10 0 5 0;
#X connect 11 0 13 1;
```
explanation:
This patch uses the Gem library to create a 3D sphere and map an image onto it. The user can select an image file using the file browser, which is triggered by a bang object. The selected image is then loaded into a pix_image object and applied to the sphere as a texture. The sphere's rotation is controlled by a rotateXYZ object. |
3-5-1-1-waveform-fourier.pd | #N canvas 1054 151 647 623 12;
#N canvas 0 0 450 300 graph1 0;
#X array array1 67 float 0;
#X coords 0 1 66 -1 200 140 1;
#X restore 34 119 graph;
#X msg 30 58 \; array1 sinesum 64 1 0 0.2 0 0.1 0 0.08 0 0.05 0 0.03
;
#N canvas 0 0 450 300 graph1 0;
#X array array2 67 float 0;
#X coords 0 1 66 -1 200 140 1;
#X restore 34 341 graph;
#X msg 30 280 \; array2 sinesum 64 1 0.2 0.1 0.08 0.05 0.03 0.02 0.01
;
#X text 76 12 3.5.1.1. Wave form Fourier;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates two waveforms using Fourier series, with one waveform having decreasing amplitude and the other having increasing amplitude.",
"patch_explanation": "This patch generates two waveforms using Fourier series. The first waveform has decreasing amplitude, while the second waveform has increasing amplitude. The waveforms are represented by two arrays, 'array1' and 'array2', each with 67 float values. The 'sinesum' message is used to generate the Fourier series for each waveform."
}
``` | Create a Pure Data patch that generates two waveforms using Fourier series, with one waveform having decreasing amplitude and the other having increasing amplitude. | This patch generates two waveforms using Fourier series. The first waveform has decreasing amplitude, while the second waveform has increasing amplitude. The waveforms are represented by two arrays, 'array1' and 'array2', each with 67 float values. The 'sinesum' message is used to generate the Fourier series for each waveform. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 1054 151 647 623 12;
#N canvas 0 0 450 300 graph1 0;
#X array array1 67 float 0;
#X coords 0 1 66 -1 200 140 1;
#X restore 34 119 graph;
#X msg 30 58 \; array1 sinesum 64 1 0 0.2 0 0.1 0 0.08 0 0.05 0 0.03
;
#N canvas 0 0 450 300 graph1 0;
#X array array2 67 float 0;
#X coords 0 1 66 -1 200 140 1;
#X restore 34 341 graph;
#X msg 30 280 \; array2 sinesum 64 1 0.2 0.1 0.08 0.05 0.03 0.02 0.01
;
#X text 76 12 3.5.1.1. Wave form Fourier;
```
explanation:
This patch generates two waveforms using Fourier series. The first waveform has decreasing amplitude, while the second waveform has increasing amplitude. The waveforms are represented by two arrays, 'array1' and 'array2', each with 67 float values. The 'sinesum' message is used to generate the Fourier series for each waveform. |
video001.pd | #N canvas 772 274 739 560 10;
#X obj 80 160 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 1 1;
#X msg 110 160 create;
#X msg 170 160 destroy;
#X obj 90 220 gemwin;
#X obj 280 110 gemhead;
#X obj 280 450 pix_texture;
#X msg 350 200 auto \$1;
#X obj 350 162 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 1 1;
#X obj 280 320 pix_film;
#X obj 310 370 unpack f f f;
#X floatatom 310 410 5 0 0 0 - - -, f 5;
#X floatatom 360 410 5 0 0 0 - - -, f 5;
#X floatatom 410 410 5 0 0 0 - - -, f 5;
#X obj 390 340 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X obj 280 490 rectangle 2 1.5;
#X text 150 40 prompt: Write a pd patch that lets me choose a video
file from the file browser and play it in the GEM window, f 64;
#X msg 360 250 open vid.mp4;
#X text 460 250 <- enter your file path;
#X connect 0 0 3 0;
#X connect 1 0 3 0;
#X connect 2 0 3 0;
#X connect 4 0 8 0;
#X connect 5 0 14 0;
#X connect 6 0 8 0;
#X connect 7 0 6 0;
#X connect 8 0 5 0;
#X connect 8 1 9 0;
#X connect 8 2 13 0;
#X connect 9 0 10 0;
#X connect 9 1 11 0;
#X connect 9 2 12 0;
#X connect 16 0 8 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that allows a user to select a video file from the file browser and play it in a GEM window.",
"patch_explanation": "This patch creates a GEM window and allows the user to select a video file to play in it. The patch uses a toggle to create and destroy the GEM window, and a message box to open a specific video file. The video file's path can be entered manually or selected from the file browser. The patch also includes a gemhead object to handle the video playback, and a pix_texture object to display the video in the GEM window."
}
``` | Create a Pure Data patch that allows a user to select a video file from the file browser and play it in a GEM window. | This patch creates a GEM window and allows the user to select a video file to play in it. The patch uses a toggle to create and destroy the GEM window, and a message box to open a specific video file. The video file's path can be entered manually or selected from the file browser. The patch also includes a gemhead object to handle the video playback, and a pix_texture object to display the video in the GEM window. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 772 274 739 560 10;
#X obj 80 160 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 1 1;
#X msg 110 160 create;
#X msg 170 160 destroy;
#X obj 90 220 gemwin;
#X obj 280 110 gemhead;
#X obj 280 450 pix_texture;
#X msg 350 200 auto \$1;
#X obj 350 162 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 1 1;
#X obj 280 320 pix_film;
#X obj 310 370 unpack f f f;
#X floatatom 310 410 5 0 0 0 - - -, f 5;
#X floatatom 360 410 5 0 0 0 - - -, f 5;
#X floatatom 410 410 5 0 0 0 - - -, f 5;
#X obj 390 340 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X obj 280 490 rectangle 2 1.5;
#X text 150 40 prompt: Write a pd patch that lets me choose a video
file from the file browser and play it in the GEM window, f 64;
#X msg 360 250 open vid.mp4;
#X text 460 250 <- enter your file path;
#X connect 0 0 3 0;
#X connect 1 0 3 0;
#X connect 2 0 3 0;
#X connect 4 0 8 0;
#X connect 5 0 14 0;
#X connect 6 0 8 0;
#X connect 7 0 6 0;
#X connect 8 0 5 0;
#X connect 8 1 9 0;
#X connect 8 2 13 0;
#X connect 9 0 10 0;
#X connect 9 1 11 0;
#X connect 9 2 12 0;
#X connect 16 0 8 0;
```
explanation:
This patch creates a GEM window and allows the user to select a video file to play in it. The patch uses a toggle to create and destroy the GEM window, and a message box to open a specific video file. The video file's path can be entered manually or selected from the file browser. The patch also includes a gemhead object to handle the video playback, and a pix_texture object to display the video in the GEM window. |
bangs5.pd | #N canvas 432 660 341 365 12;
#X obj 19 217 bng 8 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 29 217 bng 8 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 150 134 f;
#X obj 150 160 + 1;
#X msg 169 109 -1;
#X obj 19 97 t b b;
#X obj 19 77 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 169 83 loadbang;
#X obj 19 51 inlet;
#X obj 19 242 outlet;
#X obj 73 242 outlet;
#X obj 39 217 bng 8 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 126 242 outlet;
#X obj 49 217 bng 8 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 179 242 outlet;
#X obj 213 179 sel 4;
#X obj 19 190 demultiplex 0 1 2 3 4;
#X obj 59 217 bng 8 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 232 242 outlet;
#X obj 157 51 inlet;
#X text 156 31 reset;
#X text 63 9 bang distributer;
#X connect 0 0 9 0;
#X connect 1 0 10 0;
#X connect 2 0 3 0;
#X connect 3 0 2 1;
#X connect 3 0 15 0;
#X connect 3 0 16 1;
#X connect 4 0 2 1;
#X connect 5 0 16 0;
#X connect 5 1 2 0;
#X connect 6 0 5 0;
#X connect 7 0 4 0;
#X connect 8 0 6 0;
#X connect 11 0 12 0;
#X connect 13 0 14 0;
#X connect 15 0 4 0;
#X connect 16 0 0 0;
#X connect 16 1 1 0;
#X connect 16 2 11 0;
#X connect 16 3 13 0;
#X connect 16 4 17 0;
#X connect 17 0 18 0;
#X connect 19 0 4 0;
#X coords 0 -1 1 1 53 27 1 16 201;
| ```
{
"prompt": "Create a Pure Data patch that distributes a bang message to multiple outlets based on a selection input, with a reset option and a loadbang trigger.",
"explanation": "This patch is a bang distributor that routes an incoming bang message to one of five outlets based on a selection input. The selection is made using a 'demultiplex' object, which is controlled by a 'sel' object. The patch also features a reset option, triggered by a 'loadbang' object, and a secondary inlet for resetting the selection."
}
``` | Create a Pure Data patch that distributes a bang message to multiple outlets based on a selection input, with a reset option and a loadbang trigger. | This patch is a bang distributor that routes an incoming bang message to one of five outlets based on a selection input. The selection is made using a 'demultiplex' object, which is controlled by a 'sel' object. The patch also features a reset option, triggered by a 'loadbang' object, and a secondary inlet for resetting the selection. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 432 660 341 365 12;
#X obj 19 217 bng 8 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 29 217 bng 8 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 150 134 f;
#X obj 150 160 + 1;
#X msg 169 109 -1;
#X obj 19 97 t b b;
#X obj 19 77 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 169 83 loadbang;
#X obj 19 51 inlet;
#X obj 19 242 outlet;
#X obj 73 242 outlet;
#X obj 39 217 bng 8 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 126 242 outlet;
#X obj 49 217 bng 8 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 179 242 outlet;
#X obj 213 179 sel 4;
#X obj 19 190 demultiplex 0 1 2 3 4;
#X obj 59 217 bng 8 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 232 242 outlet;
#X obj 157 51 inlet;
#X text 156 31 reset;
#X text 63 9 bang distributer;
#X connect 0 0 9 0;
#X connect 1 0 10 0;
#X connect 2 0 3 0;
#X connect 3 0 2 1;
#X connect 3 0 15 0;
#X connect 3 0 16 1;
#X connect 4 0 2 1;
#X connect 5 0 16 0;
#X connect 5 1 2 0;
#X connect 6 0 5 0;
#X connect 7 0 4 0;
#X connect 8 0 6 0;
#X connect 11 0 12 0;
#X connect 13 0 14 0;
#X connect 15 0 4 0;
#X connect 16 0 0 0;
#X connect 16 1 1 0;
#X connect 16 2 11 0;
#X connect 16 3 13 0;
#X connect 16 4 17 0;
#X connect 17 0 18 0;
#X connect 19 0 4 0;
#X coords 0 -1 1 1 53 27 1 16 201;
```
explanation:
This patch is a bang distributor that routes an incoming bang message to one of five outlets based on a selection input. The selection is made using a 'demultiplex' object, which is controlled by a 'sel' object. The patch also features a reset option, triggered by a 'loadbang' object, and a secondary inlet for resetting the selection. |
3-4-1-1-2-function1.pd | #N canvas 520 326 593 435 12;
#N canvas 0 0 450 300 graph1 0;
#X array array1 100 float 2;
#X coords 0 1 100 -1 200 140 1;
#X restore 351 70 graph;
#X obj 174 154 + 1;
#X obj 174 125 f;
#X msg 209 91 -1;
#X obj 174 30 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 207 197 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 193 237 del 50;
#X obj 242 139 sel 100;
#X msg 228 206 stop;
#X obj 228 179 del 2;
#X floatatom 174 283 5 0 0 0 - - -;
#X obj 59 253 / 100;
#X obj 59 288 *;
#X obj 59 328 tabwrite array1;
#X obj 174 57 t b b;
#X text 2 -11 3.4.1.1.2. function 1;
#X text 352 220 (array has 100 points);
#X connect 1 0 2 1;
#X connect 1 0 5 0;
#X connect 1 0 7 0;
#X connect 1 0 10 0;
#X connect 1 0 11 0;
#X connect 2 0 1 0;
#X connect 3 0 2 1;
#X connect 4 0 14 0;
#X connect 5 0 6 0;
#X connect 6 0 2 0;
#X connect 7 0 9 0;
#X connect 7 0 3 0;
#X connect 8 0 6 0;
#X connect 9 0 8 0;
#X connect 10 0 13 1;
#X connect 11 0 12 0;
#X connect 11 0 12 1;
#X connect 12 0 13 0;
#X connect 14 0 2 0;
#X connect 14 1 3 0;
| ```
{
"prompt": "Create a Pure Data patch that generates a 100-point array and allows the user to start and stop a process that writes values to the array at a rate of 100 times per second.",
"explanation": "This patch initializes a 100-point array and uses a bang object to trigger a process that writes values to the array. The process involves a feedback loop that increments a value and writes it to the array 100 times per second. The user can start and stop the process using two bang objects."
}
``` | Create a Pure Data patch that generates a 100-point array and allows the user to start and stop a process that writes values to the array at a rate of 100 times per second. | This patch initializes a 100-point array and uses a bang object to trigger a process that writes values to the array. The process involves a feedback loop that increments a value and writes it to the array 100 times per second. The user can start and stop the process using two bang objects. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 520 326 593 435 12;
#N canvas 0 0 450 300 graph1 0;
#X array array1 100 float 2;
#X coords 0 1 100 -1 200 140 1;
#X restore 351 70 graph;
#X obj 174 154 + 1;
#X obj 174 125 f;
#X msg 209 91 -1;
#X obj 174 30 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 207 197 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 193 237 del 50;
#X obj 242 139 sel 100;
#X msg 228 206 stop;
#X obj 228 179 del 2;
#X floatatom 174 283 5 0 0 0 - - -;
#X obj 59 253 / 100;
#X obj 59 288 *;
#X obj 59 328 tabwrite array1;
#X obj 174 57 t b b;
#X text 2 -11 3.4.1.1.2. function 1;
#X text 352 220 (array has 100 points);
#X connect 1 0 2 1;
#X connect 1 0 5 0;
#X connect 1 0 7 0;
#X connect 1 0 10 0;
#X connect 1 0 11 0;
#X connect 2 0 1 0;
#X connect 3 0 2 1;
#X connect 4 0 14 0;
#X connect 5 0 6 0;
#X connect 6 0 2 0;
#X connect 7 0 9 0;
#X connect 7 0 3 0;
#X connect 8 0 6 0;
#X connect 9 0 8 0;
#X connect 10 0 13 1;
#X connect 11 0 12 0;
#X connect 11 0 12 1;
#X connect 12 0 13 0;
#X connect 14 0 2 0;
#X connect 14 1 3 0;
```
explanation:
This patch initializes a 100-point array and uses a bang object to trigger a process that writes values to the array. The process involves a feedback loop that increments a value and writes it to the array 100 times per second. The user can start and stop the process using two bang objects. |
3-4-2-5-loop-generator2.pd | #N canvas 782 98 483 687 12;
#X obj 80 532 hip~ 5;
#X obj 79 574 dac~;
#X obj 78 500 *~;
#X floatatom 128 472 5 0 0 0 - - -;
#X obj 42 133 adc~;
#X obj 43 173 delwrite~ buff1 10000;
#X obj 79 287 sig~;
#X floatatom 79 260 5 0 0 0 - - -;
#X obj 79 317 vd~ buff1;
#X obj 79 400 *~;
#X floatatom 109 377 5 0 0 0 - - -;
#X msg 109 347 0.99;
#X text 40 18 3.4.2.5. Loop Generator 2;
#X text 79 237 loop duration;
#X text 162 340 security potentiometer:;
#X text 163 358 no higher than 1!;
#X text 182 470 total volume;
#X connect 0 0 1 0;
#X connect 0 0 1 1;
#X connect 2 0 0 0;
#X connect 3 0 2 1;
#X connect 4 0 5 0;
#X connect 4 1 5 0;
#X connect 6 0 8 0;
#X connect 7 0 6 0;
#X connect 8 0 9 0;
#X connect 9 0 5 0;
#X connect 9 0 2 0;
#X connect 10 0 9 1;
#X connect 11 0 10 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates a loop of audio with a variable duration and volume, and includes a security feature to prevent the volume from exceeding a maximum level.",
"patch_explanation": "This patch reads audio from the ADC, writes it to a delay buffer, and then plays it back in a loop. The loop duration and volume can be controlled by float atoms. A security feature limits the volume to a maximum level of 1."
}
``` | Create a Pure Data patch that generates a loop of audio with a variable duration and volume, and includes a security feature to prevent the volume from exceeding a maximum level. | This patch reads audio from the ADC, writes it to a delay buffer, and then plays it back in a loop. The loop duration and volume can be controlled by float atoms. A security feature limits the volume to a maximum level of 1. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 782 98 483 687 12;
#X obj 80 532 hip~ 5;
#X obj 79 574 dac~;
#X obj 78 500 *~;
#X floatatom 128 472 5 0 0 0 - - -;
#X obj 42 133 adc~;
#X obj 43 173 delwrite~ buff1 10000;
#X obj 79 287 sig~;
#X floatatom 79 260 5 0 0 0 - - -;
#X obj 79 317 vd~ buff1;
#X obj 79 400 *~;
#X floatatom 109 377 5 0 0 0 - - -;
#X msg 109 347 0.99;
#X text 40 18 3.4.2.5. Loop Generator 2;
#X text 79 237 loop duration;
#X text 162 340 security potentiometer:;
#X text 163 358 no higher than 1!;
#X text 182 470 total volume;
#X connect 0 0 1 0;
#X connect 0 0 1 1;
#X connect 2 0 0 0;
#X connect 3 0 2 1;
#X connect 4 0 5 0;
#X connect 4 1 5 0;
#X connect 6 0 8 0;
#X connect 7 0 6 0;
#X connect 8 0 9 0;
#X connect 9 0 5 0;
#X connect 9 0 2 0;
#X connect 10 0 9 1;
#X connect 11 0 10 0;
```
explanation:
This patch reads audio from the ADC, writes it to a delay buffer, and then plays it back in a loop. The loop duration and volume can be controlled by float atoms. A security feature limits the volume to a maximum level of 1. |
5-2-1-1-canvas.pd | #N canvas 393 371 737 610 12;
#X obj 502 372 cnv 9 100 60 c2 c1 Leindwand 20 12 0 14 -33289 -233017
0;
#X floatatom 35 157 3 63 88 0 - - -;
#X floatatom 94 175 3 0 37 0 - - -;
#X text 121 175 y-label;
#X text 63 157 x-label;
#X floatatom 258 32 3 -10 10 0 - - -;
#X floatatom 317 58 3 -10 10 0 - - -;
#X floatatom 260 170 3 20 60 0 - - -;
#X floatatom 321 197 3 150 200 0 - - -;
#X obj 260 217 pack 0 0;
#X text 288 170 x-position;
#X text 356 195 y-position;
#X floatatom 33 267 3 0 2 0 - - -;
#X floatatom 92 285 3 4 36 0 - - -;
#X floatatom 30 493 3 2 20 0 - - -;
#X floatatom 499 27 5 100 1000 0 - - -;
#X floatatom 558 56 4 50 500 0 - - -;
#X obj 499 77 pack 0 0;
#X floatatom 503 284 4 0 0 0 - - -;
#X floatatom 568 283 4 0 0 0 - - -;
#X text 483 283 x=;
#X text 550 283 y=;
#X floatatom 41 30 5 0 0 0 - - -;
#X msg 41 86 \; c1 color \$1 \$2;
#X obj 41 59 pack f f;
#X floatatom 100 36 5 0 0 0 - - -;
#X obj 35 196 pack f f;
#X msg 35 221 \; c1 label_pos \$1 \$2;
#X obj 33 309 pack f f;
#X msg 33 335 \; c1 label_font \$1 \$2;
#X msg 30 521 \; c1 size \$1;
#X msg 258 110 \; c1 delta \$1 \$2;
#X msg 260 242 \; c1 pos \$1 \$2;
#X msg 258 324 \; c1 send c2;
#X msg 502 192 \; c1 get_pos;
#X obj 504 234 r c2;
#X msg 30 420 \; c1 label Leindwand;
#X text 286 31 x-delta-position;
#X text 344 58 y-delta-position;
#X obj 258 85 pack f f;
#X obj 503 259 unpack f f;
#X msg 499 102 \; c1 vis_size \$1 \$2;
#X text 30 398 Name Label;
#X text 61 267 Font;
#X msg 255 398 \; c1 receive c10;
#X text 125 3 5.2.1.1. Canvas;
#X text 146 35 label color;
#X text 36 10 color;
#X text 121 285 Height;
#X text 60 479 Size of blue switchbox;
#X text 261 378 change receive-name;
#X text 544 27 Width;
#X text 596 58 Height;
#X text 506 164 get Position;
#X text 262 306 change send-name;
#X connect 1 0 26 0;
#X connect 2 0 26 1;
#X connect 5 0 39 0;
#X connect 6 0 39 1;
#X connect 7 0 9 0;
#X connect 8 0 9 1;
#X connect 9 0 32 0;
#X connect 12 0 28 0;
#X connect 13 0 28 1;
#X connect 14 0 30 0;
#X connect 15 0 17 0;
#X connect 16 0 17 1;
#X connect 17 0 41 0;
#X connect 22 0 24 0;
#X connect 24 0 23 0;
#X connect 25 0 24 1;
#X connect 26 0 27 0;
#X connect 28 0 29 0;
#X connect 35 0 40 0;
#X connect 39 0 31 0;
#X connect 40 0 18 0;
#X connect 40 1 19 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that controls the properties of a canvas, including its position, size, label, color, and font, and allows for sending and receiving data to and from other canvases.",
"patch_explanation": "This patch is a control interface for a canvas in Pure Data. It allows users to adjust various properties of the canvas, such as its position, size, label, color, and font. The patch also includes mechanisms for sending and receiving data to and from other canvases, enabling communication between different parts of the Pure Data environment."
}
``` | Create a Pure Data patch that controls the properties of a canvas, including its position, size, label, color, and font, and allows for sending and receiving data to and from other canvases. | This patch is a control interface for a canvas in Pure Data. It allows users to adjust various properties of the canvas, such as its position, size, label, color, and font. The patch also includes mechanisms for sending and receiving data to and from other canvases, enabling communication between different parts of the Pure Data environment. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 393 371 737 610 12;
#X obj 502 372 cnv 9 100 60 c2 c1 Leindwand 20 12 0 14 -33289 -233017
0;
#X floatatom 35 157 3 63 88 0 - - -;
#X floatatom 94 175 3 0 37 0 - - -;
#X text 121 175 y-label;
#X text 63 157 x-label;
#X floatatom 258 32 3 -10 10 0 - - -;
#X floatatom 317 58 3 -10 10 0 - - -;
#X floatatom 260 170 3 20 60 0 - - -;
#X floatatom 321 197 3 150 200 0 - - -;
#X obj 260 217 pack 0 0;
#X text 288 170 x-position;
#X text 356 195 y-position;
#X floatatom 33 267 3 0 2 0 - - -;
#X floatatom 92 285 3 4 36 0 - - -;
#X floatatom 30 493 3 2 20 0 - - -;
#X floatatom 499 27 5 100 1000 0 - - -;
#X floatatom 558 56 4 50 500 0 - - -;
#X obj 499 77 pack 0 0;
#X floatatom 503 284 4 0 0 0 - - -;
#X floatatom 568 283 4 0 0 0 - - -;
#X text 483 283 x=;
#X text 550 283 y=;
#X floatatom 41 30 5 0 0 0 - - -;
#X msg 41 86 \; c1 color \$1 \$2;
#X obj 41 59 pack f f;
#X floatatom 100 36 5 0 0 0 - - -;
#X obj 35 196 pack f f;
#X msg 35 221 \; c1 label_pos \$1 \$2;
#X obj 33 309 pack f f;
#X msg 33 335 \; c1 label_font \$1 \$2;
#X msg 30 521 \; c1 size \$1;
#X msg 258 110 \; c1 delta \$1 \$2;
#X msg 260 242 \; c1 pos \$1 \$2;
#X msg 258 324 \; c1 send c2;
#X msg 502 192 \; c1 get_pos;
#X obj 504 234 r c2;
#X msg 30 420 \; c1 label Leindwand;
#X text 286 31 x-delta-position;
#X text 344 58 y-delta-position;
#X obj 258 85 pack f f;
#X obj 503 259 unpack f f;
#X msg 499 102 \; c1 vis_size \$1 \$2;
#X text 30 398 Name Label;
#X text 61 267 Font;
#X msg 255 398 \; c1 receive c10;
#X text 125 3 5.2.1.1. Canvas;
#X text 146 35 label color;
#X text 36 10 color;
#X text 121 285 Height;
#X text 60 479 Size of blue switchbox;
#X text 261 378 change receive-name;
#X text 544 27 Width;
#X text 596 58 Height;
#X text 506 164 get Position;
#X text 262 306 change send-name;
#X connect 1 0 26 0;
#X connect 2 0 26 1;
#X connect 5 0 39 0;
#X connect 6 0 39 1;
#X connect 7 0 9 0;
#X connect 8 0 9 1;
#X connect 9 0 32 0;
#X connect 12 0 28 0;
#X connect 13 0 28 1;
#X connect 14 0 30 0;
#X connect 15 0 17 0;
#X connect 16 0 17 1;
#X connect 17 0 41 0;
#X connect 22 0 24 0;
#X connect 24 0 23 0;
#X connect 25 0 24 1;
#X connect 26 0 27 0;
#X connect 28 0 29 0;
#X connect 35 0 40 0;
#X connect 39 0 31 0;
#X connect 40 0 18 0;
#X connect 40 1 19 0;
```
explanation:
This patch is a control interface for a canvas in Pure Data. It allows users to adjust various properties of the canvas, such as its position, size, label, color, and font. The patch also includes mechanisms for sending and receiving data to and from other canvases, enabling communication between different parts of the Pure Data environment. |
3-5-1-1-waveform-graph.pd | #N canvas 928 217 727 351 12;
#X obj 98 60 osc~ 440;
#X obj 98 121 tabwrite~ array1;
#X obj 100 192 phasor~ 440;
#X obj 190 79 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 101 264 tabwrite~ array1;
#X obj 193 222 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 0 450 300 graph1 0;
#X array array1 100 float 0;
#X coords 0 1 99 -1 200 140 1;
#X restore 422 107 graph;
#X text 76 12 3.5.1.1. Waveforms display;
#X text 215 78 graph;
#X text 218 221 graph;
#X text 431 259 Array has 100 Points;
#X connect 0 0 1 0;
#X connect 2 0 4 0;
#X connect 3 0 1 0;
#X connect 5 0 4 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates a 440 Hz sine wave and displays its waveform on a graph, while also storing the waveform data in an array.",
"patch_explanation": "This patch generates a 440 Hz sine wave using the osc~ object and displays its waveform on a graph. The waveform data is also stored in an array called array1 using the tabwrite~ object. The phasor~ object is used to generate a phase signal that drives the osc~ object. Two bang objects (bng) are used to trigger the tabwrite~ objects to write the waveform data to the array."
}
``` | Create a Pure Data patch that generates a 440 Hz sine wave and displays its waveform on a graph, while also storing the waveform data in an array. | This patch generates a 440 Hz sine wave using the osc~ object and displays its waveform on a graph. The waveform data is also stored in an array called array1 using the tabwrite~ object. The phasor~ object is used to generate a phase signal that drives the osc~ object. Two bang objects (bng) are used to trigger the tabwrite~ objects to write the waveform data to the array. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 928 217 727 351 12;
#X obj 98 60 osc~ 440;
#X obj 98 121 tabwrite~ array1;
#X obj 100 192 phasor~ 440;
#X obj 190 79 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 101 264 tabwrite~ array1;
#X obj 193 222 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 0 450 300 graph1 0;
#X array array1 100 float 0;
#X coords 0 1 99 -1 200 140 1;
#X restore 422 107 graph;
#X text 76 12 3.5.1.1. Waveforms display;
#X text 215 78 graph;
#X text 218 221 graph;
#X text 431 259 Array has 100 Points;
#X connect 0 0 1 0;
#X connect 2 0 4 0;
#X connect 3 0 1 0;
#X connect 5 0 4 0;
```
explanation:
This patch generates a 440 Hz sine wave using the osc~ object and displays its waveform on a graph. The waveform data is also stored in an array called array1 using the tabwrite~ object. The phasor~ object is used to generate a phase signal that drives the osc~ object. Two bang objects (bng) are used to trigger the tabwrite~ objects to write the waveform data to the array. |
5-2-3-1-data-structures4.pd | #N struct g1 float x float y float q;
#N canvas 241 458 827 446 12;
#X obj 164 282 struct g1 float x float y float q;
#X obj 195 158 pointer;
#X obj 121 309 filledpolygon 22 12 3 0 0 q 0 100 100 0 100;
#X obj 104 200 append g1 x y;
#X obj 194 84 t b b b;
#X obj 193 60 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 407 161 pointer;
#X msg 433 123 next;
#X obj 468 203 set g1 q;
#X floatatom 504 159 5 0 0 0 - - -;
#X msg 14 155 50 50 \, 200 50 \, 50 200;
#X text 51 15 5.2.3.1. data structures 4;
#X text 215 56 first here;
#X text 418 64 then here;
#X text 477 116 from here to the next;
#X text 502 139 adjust yalues here;
#X msg 263 155 \; pd-graphic clear;
#X msg 197 122 traverse pd-graphic \, bang;
#N canvas 0 0 482 332 graphic 1;
#X scalar g1 50 50 75 \;;
#X scalar g1 200 50 86 \;;
#X scalar g1 50 200 313 \;;
#X restore 348 251 pd graphic;
#X msg 405 91 traverse pd-graphic;
#X connect 1 0 3 2;
#X connect 4 0 10 0;
#X connect 4 1 17 0;
#X connect 4 2 16 0;
#X connect 5 0 4 0;
#X connect 6 0 8 1;
#X connect 7 0 6 0;
#X connect 9 0 8 0;
#X connect 10 0 3 0;
#X connect 17 0 1 0;
#X connect 21 0 6 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates a dynamic graphic with three filled polygons, where the user can adjust the y-values of the polygons and traverse through different graphic states.",
"patch_explanation": "This patch creates a dynamic graphic with three filled polygons using the 'filledpolygon' object. The user can adjust the y-values of the polygons using a 'floatatom' object. The patch also features a 'traverse' function that allows the user to cycle through different graphic states, which are stored in a 'pd-graphic' canvas. The 'pointer' objects are used to store and recall the graphic states."
}
``` | Create a Pure Data patch that generates a dynamic graphic with three filled polygons, where the user can adjust the y-values of the polygons and traverse through different graphic states. | This patch creates a dynamic graphic with three filled polygons using the 'filledpolygon' object. The user can adjust the y-values of the polygons using a 'floatatom' object. The patch also features a 'traverse' function that allows the user to cycle through different graphic states, which are stored in a 'pd-graphic' canvas. The 'pointer' objects are used to store and recall the graphic states. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N struct g1 float x float y float q;
#N canvas 241 458 827 446 12;
#X obj 164 282 struct g1 float x float y float q;
#X obj 195 158 pointer;
#X obj 121 309 filledpolygon 22 12 3 0 0 q 0 100 100 0 100;
#X obj 104 200 append g1 x y;
#X obj 194 84 t b b b;
#X obj 193 60 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 407 161 pointer;
#X msg 433 123 next;
#X obj 468 203 set g1 q;
#X floatatom 504 159 5 0 0 0 - - -;
#X msg 14 155 50 50 \, 200 50 \, 50 200;
#X text 51 15 5.2.3.1. data structures 4;
#X text 215 56 first here;
#X text 418 64 then here;
#X text 477 116 from here to the next;
#X text 502 139 adjust yalues here;
#X msg 263 155 \; pd-graphic clear;
#X msg 197 122 traverse pd-graphic \, bang;
#N canvas 0 0 482 332 graphic 1;
#X scalar g1 50 50 75 \;;
#X scalar g1 200 50 86 \;;
#X scalar g1 50 200 313 \;;
#X restore 348 251 pd graphic;
#X msg 405 91 traverse pd-graphic;
#X connect 1 0 3 2;
#X connect 4 0 10 0;
#X connect 4 1 17 0;
#X connect 4 2 16 0;
#X connect 5 0 4 0;
#X connect 6 0 8 1;
#X connect 7 0 6 0;
#X connect 9 0 8 0;
#X connect 10 0 3 0;
#X connect 17 0 1 0;
#X connect 21 0 6 0;
```
explanation:
This patch creates a dynamic graphic with three filled polygons using the 'filledpolygon' object. The user can adjust the y-values of the polygons using a 'floatatom' object. The patch also features a 'traverse' function that allows the user to cycle through different graphic states, which are stored in a 'pd-graphic' canvas. The 'pointer' objects are used to store and recall the graphic states. |
a-4-listsequence.pd | #N canvas 201 420 550 501 12;
#X obj 126 234 unpack f f;
#X floatatom 126 261 5 0 0 0 - - -;
#X floatatom 202 260 5 0 0 0 - - -;
#X obj 126 90 f;
#X msg 148 60 0;
#X obj 126 116 + 1;
#X obj 126 38 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 126 158 route 1 2 3 4 5 6;
#X msg 126 204 440 0.5;
#X msg 194 204 500 0.9;
#X msg 259 204 573 0.2;
#X msg 325 204 540 0.6;
#X msg 393 204 600 0.4;
#X msg 458 204 643 1;
#X obj 126 289 osc~;
#X obj 126 343 *~;
#X obj 127 401 *~;
#X obj 152 377 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 127 432 dac~;
#X floatatom 182 135 5 0 0 0 - - -;
#X text 25 4 2.2.2.2.6. sequence of lists;
#X text 206 34 then click bang 6x;
#X text 188 60 first click the starting value here;
#X text 187 366 on/off switch;
#X connect 0 0 1 0;
#X connect 0 1 2 0;
#X connect 1 0 14 0;
#X connect 2 0 15 1;
#X connect 3 0 5 0;
#X connect 4 0 3 1;
#X connect 5 0 3 1;
#X connect 5 0 7 0;
#X connect 5 0 19 0;
#X connect 6 0 3 0;
#X connect 7 0 8 0;
#X connect 7 1 9 0;
#X connect 7 2 10 0;
#X connect 7 3 11 0;
#X connect 7 4 12 0;
#X connect 7 5 13 0;
#X connect 8 0 0 0;
#X connect 9 0 0 0;
#X connect 10 0 0 0;
#X connect 11 0 0 0;
#X connect 12 0 0 0;
#X connect 13 0 0 0;
#X connect 14 0 15 0;
#X connect 15 0 16 0;
#X connect 16 0 18 0;
#X connect 16 0 18 1;
#X connect 17 0 16 1;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates a sequence of 6 tones with varying frequencies and amplitudes, triggered by a bang button, with an on/off switch to control the audio output.",
"patch_explanation": "This patch generates a sequence of 6 tones with frequencies and amplitudes defined by a series of messages. The sequence is triggered by a bang button and can be turned on and off using a toggle switch. The audio output is controlled by a digital-to-analog converter (dac~)."
}
``` | Create a Pure Data patch that generates a sequence of 6 tones with varying frequencies and amplitudes, triggered by a bang button, with an on/off switch to control the audio output. | This patch generates a sequence of 6 tones with frequencies and amplitudes defined by a series of messages. The sequence is triggered by a bang button and can be turned on and off using a toggle switch. The audio output is controlled by a digital-to-analog converter (dac~). | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 201 420 550 501 12;
#X obj 126 234 unpack f f;
#X floatatom 126 261 5 0 0 0 - - -;
#X floatatom 202 260 5 0 0 0 - - -;
#X obj 126 90 f;
#X msg 148 60 0;
#X obj 126 116 + 1;
#X obj 126 38 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 126 158 route 1 2 3 4 5 6;
#X msg 126 204 440 0.5;
#X msg 194 204 500 0.9;
#X msg 259 204 573 0.2;
#X msg 325 204 540 0.6;
#X msg 393 204 600 0.4;
#X msg 458 204 643 1;
#X obj 126 289 osc~;
#X obj 126 343 *~;
#X obj 127 401 *~;
#X obj 152 377 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 127 432 dac~;
#X floatatom 182 135 5 0 0 0 - - -;
#X text 25 4 2.2.2.2.6. sequence of lists;
#X text 206 34 then click bang 6x;
#X text 188 60 first click the starting value here;
#X text 187 366 on/off switch;
#X connect 0 0 1 0;
#X connect 0 1 2 0;
#X connect 1 0 14 0;
#X connect 2 0 15 1;
#X connect 3 0 5 0;
#X connect 4 0 3 1;
#X connect 5 0 3 1;
#X connect 5 0 7 0;
#X connect 5 0 19 0;
#X connect 6 0 3 0;
#X connect 7 0 8 0;
#X connect 7 1 9 0;
#X connect 7 2 10 0;
#X connect 7 3 11 0;
#X connect 7 4 12 0;
#X connect 7 5 13 0;
#X connect 8 0 0 0;
#X connect 9 0 0 0;
#X connect 10 0 0 0;
#X connect 11 0 0 0;
#X connect 12 0 0 0;
#X connect 13 0 0 0;
#X connect 14 0 15 0;
#X connect 15 0 16 0;
#X connect 16 0 18 0;
#X connect 16 0 18 1;
#X connect 17 0 16 1;
```
explanation:
This patch generates a sequence of 6 tones with frequencies and amplitudes defined by a series of messages. The sequence is triggered by a bang button and can be turned on and off using a toggle switch. The audio output is controlled by a digital-to-analog converter (dac~). |
a-19-wavechange.pd | #N canvas 1054 151 651 627 12;
#X obj 103 365 tabwrite~ array1;
#N canvas 0 0 450 300 graph2 0;
#X array array1 100 float 0;
#X coords 0 1 99 -1 200 140 1;
#X restore 102 406 graph;
#X obj 190 304 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 330 87 noise~;
#X obj 329 134 snapshot~;
#X obj 329 196 line~;
#X obj 422 54 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X msg 329 163 \$1 1;
#X obj 422 77 metro 1;
#X obj 349 284 cos~;
#X obj 348 255 +~;
#X obj 440 189 phasor~;
#X floatatom 440 156 5 0 0 0 - - -;
#X obj 374 372 *~ 0.7;
#X obj 375 411 dac~;
#X text 78 -16 3.5.2.4. change wave constantly;
#X text 422 32 random values;
#X text 439 129 Frequency;
#X text 187 280 graph;
#X connect 2 0 0 0;
#X connect 3 0 4 0;
#X connect 4 0 7 0;
#X connect 5 0 10 0;
#X connect 6 0 8 0;
#X connect 7 0 5 0;
#X connect 8 0 4 0;
#X connect 9 0 0 0;
#X connect 9 0 13 0;
#X connect 10 0 9 0;
#X connect 11 0 10 1;
#X connect 12 0 11 0;
#X connect 13 0 14 0;
#X connect 13 0 14 1;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates a constantly changing wave sound with random values and adjustable frequency.",
"patch_explanation": "This patch generates a wave sound that changes constantly. It uses a noise generator to produce random values, which are then used to control the frequency of a phasor. The phasor is connected to a cosine wave generator, and the resulting sound is amplified and sent to the audio output. The frequency of the phasor can be adjusted using a number box."
}
``` | Create a Pure Data patch that generates a constantly changing wave sound with random values and adjustable frequency. | This patch generates a wave sound that changes constantly. It uses a noise generator to produce random values, which are then used to control the frequency of a phasor. The phasor is connected to a cosine wave generator, and the resulting sound is amplified and sent to the audio output. The frequency of the phasor can be adjusted using a number box. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 1054 151 651 627 12;
#X obj 103 365 tabwrite~ array1;
#N canvas 0 0 450 300 graph2 0;
#X array array1 100 float 0;
#X coords 0 1 99 -1 200 140 1;
#X restore 102 406 graph;
#X obj 190 304 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 330 87 noise~;
#X obj 329 134 snapshot~;
#X obj 329 196 line~;
#X obj 422 54 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X msg 329 163 \$1 1;
#X obj 422 77 metro 1;
#X obj 349 284 cos~;
#X obj 348 255 +~;
#X obj 440 189 phasor~;
#X floatatom 440 156 5 0 0 0 - - -;
#X obj 374 372 *~ 0.7;
#X obj 375 411 dac~;
#X text 78 -16 3.5.2.4. change wave constantly;
#X text 422 32 random values;
#X text 439 129 Frequency;
#X text 187 280 graph;
#X connect 2 0 0 0;
#X connect 3 0 4 0;
#X connect 4 0 7 0;
#X connect 5 0 10 0;
#X connect 6 0 8 0;
#X connect 7 0 5 0;
#X connect 8 0 4 0;
#X connect 9 0 0 0;
#X connect 9 0 13 0;
#X connect 10 0 9 0;
#X connect 11 0 10 1;
#X connect 12 0 11 0;
#X connect 13 0 14 0;
#X connect 13 0 14 1;
```
explanation:
This patch generates a wave sound that changes constantly. It uses a noise generator to produce random values, which are then used to control the frequency of a phasor. The phasor is connected to a cosine wave generator, and the resulting sound is amplified and sent to the audio output. The frequency of the phasor can be adjusted using a number box. |
4-2-3-1-klist.pd | #N canvas 290 396 470 320 12;
#X obj 52 83 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 48 63 start!;
#N canvas 0 165 563 692 klist 0;
#X obj 114 223 textfile;
#X msg 114 140 bang;
#X msg 145 193 rewind;
#X obj 114 249 niagara 1;
#X floatatom 114 276 5 0 0 0 - - -;
#X obj 165 335 f;
#X floatatom 146 391 5 0 0 0 - - -;
#X obj 146 367 -;
#X msg 209 299 0;
#X obj 114 298 t f f b;
#X obj 146 438 del 0;
#X obj 146 412 t b f;
#X obj 110 597 remote;
#X obj 110 509 l;
#X obj 75 478 t b b;
#X obj 110 533 route list;
#X obj 114 111 t b b b;
#X obj 114 80 inlet;
#X obj 196 96 inlet;
#X connect 0 0 3 0;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 3 0 4 0;
#X connect 3 1 13 1;
#X connect 4 0 9 0;
#X connect 5 0 7 1;
#X connect 6 0 11 0;
#X connect 7 0 6 0;
#X connect 8 0 5 1;
#X connect 9 0 5 1;
#X connect 9 1 7 0;
#X connect 9 2 5 0;
#X connect 10 0 14 0;
#X connect 11 0 10 0;
#X connect 11 1 10 1;
#X connect 13 0 15 0;
#X connect 14 0 1 0;
#X connect 14 1 13 0;
#X connect 15 0 12 0;
#X connect 16 0 1 0;
#X connect 16 1 2 0;
#X connect 16 2 8 0;
#X connect 17 0 16 0;
#X connect 18 0 0 0;
#X restore 52 106 pd klist;
#X msg 111 80 read commands-abs.txt;
#X text 49 18 4.2.3.1. klist;
#X text 109 59 load file;
#X connect 0 0 2 0;
#X connect 3 0 2 1;
| ```
{
"prompt": "Create a Pure Data patch that reads a list of commands from a text file and executes them in sequence, with the ability to rewind and restart the sequence.",
"explanation": "This patch reads a text file containing a list of commands, which are then executed in sequence by the 'niagara' object. The sequence can be rewound and restarted using the 'rewind' message. The patch also includes a delay object to control the timing of the sequence."
}
``` | Create a Pure Data patch that reads a list of commands from a text file and executes them in sequence, with the ability to rewind and restart the sequence. | This patch reads a text file containing a list of commands, which are then executed in sequence by the 'niagara' object. The sequence can be rewound and restarted using the 'rewind' message. The patch also includes a delay object to control the timing of the sequence. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 290 396 470 320 12;
#X obj 52 83 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 48 63 start!;
#N canvas 0 165 563 692 klist 0;
#X obj 114 223 textfile;
#X msg 114 140 bang;
#X msg 145 193 rewind;
#X obj 114 249 niagara 1;
#X floatatom 114 276 5 0 0 0 - - -;
#X obj 165 335 f;
#X floatatom 146 391 5 0 0 0 - - -;
#X obj 146 367 -;
#X msg 209 299 0;
#X obj 114 298 t f f b;
#X obj 146 438 del 0;
#X obj 146 412 t b f;
#X obj 110 597 remote;
#X obj 110 509 l;
#X obj 75 478 t b b;
#X obj 110 533 route list;
#X obj 114 111 t b b b;
#X obj 114 80 inlet;
#X obj 196 96 inlet;
#X connect 0 0 3 0;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 3 0 4 0;
#X connect 3 1 13 1;
#X connect 4 0 9 0;
#X connect 5 0 7 1;
#X connect 6 0 11 0;
#X connect 7 0 6 0;
#X connect 8 0 5 1;
#X connect 9 0 5 1;
#X connect 9 1 7 0;
#X connect 9 2 5 0;
#X connect 10 0 14 0;
#X connect 11 0 10 0;
#X connect 11 1 10 1;
#X connect 13 0 15 0;
#X connect 14 0 1 0;
#X connect 14 1 13 0;
#X connect 15 0 12 0;
#X connect 16 0 1 0;
#X connect 16 1 2 0;
#X connect 16 2 8 0;
#X connect 17 0 16 0;
#X connect 18 0 0 0;
#X restore 52 106 pd klist;
#X msg 111 80 read commands-abs.txt;
#X text 49 18 4.2.3.1. klist;
#X text 109 59 load file;
#X connect 0 0 2 0;
#X connect 3 0 2 1;
```
explanation:
This patch reads a text file containing a list of commands, which are then executed in sequence by the 'niagara' object. The sequence can be rewound and restarted using the 'rewind' message. The patch also includes a delay object to control the timing of the sequence. |
a-22-ampinvert.pd | #N canvas 50 323 830 714 12;
#X obj 29 94 inlet~;
#X floatatom 526 360 5 0 0 0 - - -;
#X obj 230 143 env~ 1024;
#X floatatom 526 298 5 0 0 0 - - -;
#X obj 526 445 dbtorms;
#X floatatom 526 479 12 0 0 0 - - -;
#X floatatom 526 421 5 0 0 0 - - -;
#X obj 526 394 expr 100 + $f1;
#X obj 28 640 outlet~;
#X obj 28 613 *~;
#X obj 48 586 line~;
#X msg 48 562 \$1 20;
#X obj 29 155 delwrite~ comp 100;
#X text 98 561 attack: 20 ms;
#X obj 230 201 moses;
#X floatatom 230 176 5 0 0 0 - - -;
#X msg 74 518 \$1 20;
#X text 124 518 release: 20 ms;
#X floatatom 319 138 5 0 0 0 - - -;
#X obj 29 227 delread~ comp 23.22;
#X floatatom 230 359 5 0 0 0 - - -;
#X floatatom 230 297 5 0 0 0 - - -;
#X obj 230 444 dbtorms;
#X floatatom 230 478 12 0 0 0 - - -;
#X floatatom 230 420 5 0 0 0 - - -;
#X obj 230 393 expr 100 + $f1;
#X obj 230 321 expr (($f1 - 100) / 10) - $f1 + 100;
#X obj 526 322 expr (($f1 - 20) / 10) - $f1 + 20;
#X text 32 16 3.9.1.2. amp invert;
#X text 28 69 input signal;
#X connect 0 0 12 0;
#X connect 0 0 2 0;
#X connect 1 0 7 0;
#X connect 2 0 15 0;
#X connect 3 0 27 0;
#X connect 4 0 5 0;
#X connect 5 0 11 0;
#X connect 6 0 4 0;
#X connect 7 0 6 0;
#X connect 9 0 8 0;
#X connect 10 0 9 1;
#X connect 11 0 10 0;
#X connect 14 0 21 0;
#X connect 14 1 3 0;
#X connect 15 0 14 0;
#X connect 16 0 10 0;
#X connect 18 0 14 1;
#X connect 19 0 9 0;
#X connect 20 0 25 0;
#X connect 21 0 26 0;
#X connect 22 0 23 0;
#X connect 23 0 16 0;
#X connect 24 0 22 0;
#X connect 25 0 24 0;
#X connect 26 0 20 0;
#X connect 27 0 1 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that inverts the amplitude of an input signal, with adjustable attack and release times, and outputs the inverted signal.",
"patch_explanation": "This patch takes an input signal, inverts its amplitude, and applies an envelope with adjustable attack and release times using the env~ and delwrite~/delread~ objects. The inverted signal is then output."
}
``` | Create a Pure Data patch that inverts the amplitude of an input signal, with adjustable attack and release times, and outputs the inverted signal. | This patch takes an input signal, inverts its amplitude, and applies an envelope with adjustable attack and release times using the env~ and delwrite~/delread~ objects. The inverted signal is then output. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 50 323 830 714 12;
#X obj 29 94 inlet~;
#X floatatom 526 360 5 0 0 0 - - -;
#X obj 230 143 env~ 1024;
#X floatatom 526 298 5 0 0 0 - - -;
#X obj 526 445 dbtorms;
#X floatatom 526 479 12 0 0 0 - - -;
#X floatatom 526 421 5 0 0 0 - - -;
#X obj 526 394 expr 100 + $f1;
#X obj 28 640 outlet~;
#X obj 28 613 *~;
#X obj 48 586 line~;
#X msg 48 562 \$1 20;
#X obj 29 155 delwrite~ comp 100;
#X text 98 561 attack: 20 ms;
#X obj 230 201 moses;
#X floatatom 230 176 5 0 0 0 - - -;
#X msg 74 518 \$1 20;
#X text 124 518 release: 20 ms;
#X floatatom 319 138 5 0 0 0 - - -;
#X obj 29 227 delread~ comp 23.22;
#X floatatom 230 359 5 0 0 0 - - -;
#X floatatom 230 297 5 0 0 0 - - -;
#X obj 230 444 dbtorms;
#X floatatom 230 478 12 0 0 0 - - -;
#X floatatom 230 420 5 0 0 0 - - -;
#X obj 230 393 expr 100 + $f1;
#X obj 230 321 expr (($f1 - 100) / 10) - $f1 + 100;
#X obj 526 322 expr (($f1 - 20) / 10) - $f1 + 20;
#X text 32 16 3.9.1.2. amp invert;
#X text 28 69 input signal;
#X connect 0 0 12 0;
#X connect 0 0 2 0;
#X connect 1 0 7 0;
#X connect 2 0 15 0;
#X connect 3 0 27 0;
#X connect 4 0 5 0;
#X connect 5 0 11 0;
#X connect 6 0 4 0;
#X connect 7 0 6 0;
#X connect 9 0 8 0;
#X connect 10 0 9 1;
#X connect 11 0 10 0;
#X connect 14 0 21 0;
#X connect 14 1 3 0;
#X connect 15 0 14 0;
#X connect 16 0 10 0;
#X connect 18 0 14 1;
#X connect 19 0 9 0;
#X connect 20 0 25 0;
#X connect 21 0 26 0;
#X connect 22 0 23 0;
#X connect 23 0 16 0;
#X connect 24 0 22 0;
#X connect 25 0 24 0;
#X connect 26 0 20 0;
#X connect 27 0 1 0;
```
explanation:
This patch takes an input signal, inverts its amplitude, and applies an envelope with adjustable attack and release times using the env~ and delwrite~/delread~ objects. The inverted signal is then output. |
5-2-3-1-data-structures5.pd | #N struct g1 float x float y float q;
#N canvas 559 468 495 470 12;
#X obj 117 256 struct g1 float x float y float q;
#X obj 148 132 pointer;
#X obj 57 174 append g1 x y;
#X obj 147 58 t b b b;
#X obj 146 34 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 65 123 50 50;
#X obj 77 311 drawpolygon 4444 2 150 0 200 100 220 40;
#X obj 77 337 drawcurve 1 2 150 100 200 200 220 140;
#X obj 74 283 filledpolygon 22 12 3 0 0 100 100 0 100;
#X obj 74 362 filledcurve 22 12 4 0 150 100 250 0 250;
#X text 19 2 5.2.3.1. data structures 5;
#X msg 150 96 traverse pd-graphic \, bang;
#X msg 216 129 \; pd-graphic clear;
#X text 168 30 create;
#N canvas 0 0 478 328 graphic 1;
#X scalar g1 50 50 0 \;;
#X restore 301 225 pd graphic;
#X connect 1 0 2 2;
#X connect 3 0 5 0;
#X connect 3 1 11 0;
#X connect 3 2 12 0;
#X connect 4 0 3 0;
#X connect 5 0 2 0;
#X connect 11 0 1 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates and manipulates graphical shapes, including polygons and curves, using data structures and user input.",
"patch_explanation": "This patch creates and controls graphical shapes using Pure Data's data structures and graphics capabilities. It uses a struct to hold shape parameters, and allows user input via a bang button and pointer. The patch can create and clear shapes, including polygons and curves, and manipulate their properties."
}
``` | Create a Pure Data patch that generates and manipulates graphical shapes, including polygons and curves, using data structures and user input. | This patch creates and controls graphical shapes using Pure Data's data structures and graphics capabilities. It uses a struct to hold shape parameters, and allows user input via a bang button and pointer. The patch can create and clear shapes, including polygons and curves, and manipulate their properties. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N struct g1 float x float y float q;
#N canvas 559 468 495 470 12;
#X obj 117 256 struct g1 float x float y float q;
#X obj 148 132 pointer;
#X obj 57 174 append g1 x y;
#X obj 147 58 t b b b;
#X obj 146 34 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 65 123 50 50;
#X obj 77 311 drawpolygon 4444 2 150 0 200 100 220 40;
#X obj 77 337 drawcurve 1 2 150 100 200 200 220 140;
#X obj 74 283 filledpolygon 22 12 3 0 0 100 100 0 100;
#X obj 74 362 filledcurve 22 12 4 0 150 100 250 0 250;
#X text 19 2 5.2.3.1. data structures 5;
#X msg 150 96 traverse pd-graphic \, bang;
#X msg 216 129 \; pd-graphic clear;
#X text 168 30 create;
#N canvas 0 0 478 328 graphic 1;
#X scalar g1 50 50 0 \;;
#X restore 301 225 pd graphic;
#X connect 1 0 2 2;
#X connect 3 0 5 0;
#X connect 3 1 11 0;
#X connect 3 2 12 0;
#X connect 4 0 3 0;
#X connect 5 0 2 0;
#X connect 11 0 1 0;
```
explanation:
This patch creates and controls graphical shapes using Pure Data's data structures and graphics capabilities. It uses a struct to hold shape parameters, and allows user input via a bang button and pointer. The patch can create and clear shapes, including polygons and curves, and manipulate their properties. |
3-4-2-8-combfilter.pd | #N canvas 782 98 443 637 12;
#X obj 55 427 *~;
#X floatatom 83 401 5 0 0 0 - - -;
#X obj 54 468 dac~;
#X obj 54 140 *~ 100;
#X obj 54 173 clip~ 0.75 1.25;
#X obj 54 100 phasor~ 350;
#X obj 55 208 cos~;
#X obj 69 240 delwrite~ buff 1000;
#X obj 55 367 +~;
#X obj 98 342 vd~ buff;
#X obj 98 315 sig~;
#X floatatom 98 290 5 0 0 0 - - -;
#X text 44 38 3.4.2.8. comb filter;
#X text 132 402 total volume;
#X text 95 268 delay (ms);
#X connect 0 0 2 0;
#X connect 0 0 2 1;
#X connect 1 0 0 1;
#X connect 3 0 4 0;
#X connect 4 0 6 0;
#X connect 5 0 3 0;
#X connect 6 0 7 0;
#X connect 6 0 8 0;
#X connect 8 0 0 0;
#X connect 9 0 8 1;
#X connect 10 0 9 0;
#X connect 11 0 10 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that implements a comb filter with a variable delay and total volume control.",
"patch_explanation": "This patch generates a comb filter effect by delaying and adding an input signal to itself. The delay time is controlled by a variable, and the output volume is adjustable. The patch uses a phasor to generate a sawtooth wave, which is then clipped and used to modulate the delay time."
}
``` | Create a Pure Data patch that implements a comb filter with a variable delay and total volume control. | This patch generates a comb filter effect by delaying and adding an input signal to itself. The delay time is controlled by a variable, and the output volume is adjustable. The patch uses a phasor to generate a sawtooth wave, which is then clipped and used to modulate the delay time. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 782 98 443 637 12;
#X obj 55 427 *~;
#X floatatom 83 401 5 0 0 0 - - -;
#X obj 54 468 dac~;
#X obj 54 140 *~ 100;
#X obj 54 173 clip~ 0.75 1.25;
#X obj 54 100 phasor~ 350;
#X obj 55 208 cos~;
#X obj 69 240 delwrite~ buff 1000;
#X obj 55 367 +~;
#X obj 98 342 vd~ buff;
#X obj 98 315 sig~;
#X floatatom 98 290 5 0 0 0 - - -;
#X text 44 38 3.4.2.8. comb filter;
#X text 132 402 total volume;
#X text 95 268 delay (ms);
#X connect 0 0 2 0;
#X connect 0 0 2 1;
#X connect 1 0 0 1;
#X connect 3 0 4 0;
#X connect 4 0 6 0;
#X connect 5 0 3 0;
#X connect 6 0 7 0;
#X connect 6 0 8 0;
#X connect 8 0 0 0;
#X connect 9 0 8 1;
#X connect 10 0 9 0;
#X connect 11 0 10 0;
```
explanation:
This patch generates a comb filter effect by delaying and adding an input signal to itself. The delay time is controlled by a variable, and the output volume is adjustable. The patch uses a phasor to generate a sawtooth wave, which is then clipped and used to modulate the delay time. |
3-4-1-1-2-function2.pd | #N canvas 520 326 589 431 12;
#N canvas 0 0 450 300 graph1 0;
#X array array1 100 float 2;
#X coords 0 1 100 -1 200 140 1;
#X restore 351 70 graph;
#X obj 174 154 + 1;
#X obj 174 125 f;
#X msg 209 91 -1;
#X obj 174 30 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 242 139 sel 100;
#X floatatom 174 283 5 0 0 0 - - -;
#X obj 59 253 / 100;
#X obj 59 288 *;
#X obj 59 328 tabwrite array1;
#X obj 174 57 t b b;
#X obj 212 193 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 205 229 spigot;
#X msg 238 198 1;
#X msg 276 197 0;
#X text 2 -11 3.4.1.1.2. function 2;
#X text 352 224 (array has 100 points);
#X connect 1 0 2 1;
#X connect 1 0 5 0;
#X connect 1 0 6 0;
#X connect 1 0 7 0;
#X connect 1 0 11 0;
#X connect 2 0 1 0;
#X connect 3 0 2 1;
#X connect 4 0 10 0;
#X connect 5 0 3 0;
#X connect 5 0 14 0;
#X connect 6 0 9 1;
#X connect 7 0 8 0;
#X connect 7 0 8 1;
#X connect 8 0 9 0;
#X connect 10 0 2 0;
#X connect 10 1 3 0;
#X connect 10 1 13 0;
#X connect 11 0 12 0;
#X connect 12 0 2 0;
#X connect 13 0 12 1;
#X connect 14 0 12 1;
| ```
{
"prompt": "Create a Pure Data patch that generates an array of 100 random values between 0 and 1, with a button to trigger the generation and a graph to display the resulting array.",
"explanation": "This patch uses a bang object to trigger the generation of an array of 100 random values between 0 and 1. The values are generated using a float object and a + 1 object, and are then written to an array using a tabwrite object. The array is displayed on a graph, and a spigot object is used to control the flow of data."
}
``` | Create a Pure Data patch that generates an array of 100 random values between 0 and 1, with a button to trigger the generation and a graph to display the resulting array. | This patch uses a bang object to trigger the generation of an array of 100 random values between 0 and 1. The values are generated using a float object and a + 1 object, and are then written to an array using a tabwrite object. The array is displayed on a graph, and a spigot object is used to control the flow of data. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 520 326 589 431 12;
#N canvas 0 0 450 300 graph1 0;
#X array array1 100 float 2;
#X coords 0 1 100 -1 200 140 1;
#X restore 351 70 graph;
#X obj 174 154 + 1;
#X obj 174 125 f;
#X msg 209 91 -1;
#X obj 174 30 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 242 139 sel 100;
#X floatatom 174 283 5 0 0 0 - - -;
#X obj 59 253 / 100;
#X obj 59 288 *;
#X obj 59 328 tabwrite array1;
#X obj 174 57 t b b;
#X obj 212 193 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 205 229 spigot;
#X msg 238 198 1;
#X msg 276 197 0;
#X text 2 -11 3.4.1.1.2. function 2;
#X text 352 224 (array has 100 points);
#X connect 1 0 2 1;
#X connect 1 0 5 0;
#X connect 1 0 6 0;
#X connect 1 0 7 0;
#X connect 1 0 11 0;
#X connect 2 0 1 0;
#X connect 3 0 2 1;
#X connect 4 0 10 0;
#X connect 5 0 3 0;
#X connect 5 0 14 0;
#X connect 6 0 9 1;
#X connect 7 0 8 0;
#X connect 7 0 8 1;
#X connect 8 0 9 0;
#X connect 10 0 2 0;
#X connect 10 1 3 0;
#X connect 10 1 13 0;
#X connect 11 0 12 0;
#X connect 12 0 2 0;
#X connect 13 0 12 1;
#X connect 14 0 12 1;
```
explanation:
This patch uses a bang object to trigger the generation of an array of 100 random values between 0 and 1. The values are generated using a float object and a + 1 object, and are then written to an array using a tabwrite object. The array is displayed on a graph, and a spigot object is used to control the flow of data. |
3-8-3-1-fiddle.pd | #N canvas 618 412 951 523 12;
#X obj 227 150 phasor~;
#X obj 495 282 unpack;
#X floatatom 495 332 0 0 0 0 - - -;
#X obj 227 128 sig~;
#X floatatom 227 106 0 0 0 0 - - -;
#X obj 227 84 mtof;
#X floatatom 227 62 0 0 0 0 - - -;
#X floatatom 509 309 0 0 0 0 - - -;
#X obj 578 282 unpack;
#X floatatom 578 332 0 0 0 0 - - -;
#X floatatom 592 309 0 0 0 0 - - -;
#X obj 662 282 unpack;
#X floatatom 662 332 0 0 0 0 - - -;
#X floatatom 676 309 0 0 0 0 - - -;
#X obj 247 284 unpack;
#X floatatom 247 334 0 0 0 0 - - -;
#X floatatom 276 312 0 0 0 0 - - -;
#X obj 257 183 *~;
#X obj 258 7 loadbang;
#X obj 318 150 sig~;
#X floatatom 318 128 0 0 0 0 - - -;
#X msg 318 98 1;
#X msg 355 98 0;
#X floatatom 431 380 0 0 0 0 - - -;
#X obj 137 317 print attack;
#X obj 37 317 print pitch;
#X obj 257 212 fiddle~ 1024 1 20 3;
#X text 441 417 (dB);
#X msg 227 40 57;
#X obj 495 242 route 1 2 3;
#X text 345 35 test signal: phasor with 220 Hz (MIDI no. 57) and volume
1 (rms);
#X text 434 160 arguments: window size: 1024 samples \; recognize 1
tone \; analyze 20 partials to determine fundamental \; send 3 of these
as output.;
#X text 339 312 volume (dB);
#X text 306 335 pitch (MIDI);
#X text 245 362 fundamental;
#X text 418 400 total volume;
#X text 525 359 partial components;
#X text 730 331 pitch (Hz);
#X text 750 308 volume (rms);
#X text 14 15 3.8.3.1. fiddle;
#X connect 0 0 17 0;
#X connect 1 0 2 0;
#X connect 1 1 7 0;
#X connect 3 0 0 0;
#X connect 4 0 3 0;
#X connect 5 0 4 0;
#X connect 6 0 5 0;
#X connect 8 0 9 0;
#X connect 8 1 10 0;
#X connect 11 0 12 0;
#X connect 11 1 13 0;
#X connect 14 0 15 0;
#X connect 14 1 16 0;
#X connect 17 0 26 0;
#X connect 18 0 28 0;
#X connect 18 0 21 0;
#X connect 19 0 17 1;
#X connect 20 0 19 0;
#X connect 21 0 20 0;
#X connect 22 0 20 0;
#X connect 26 0 25 0;
#X connect 26 1 24 0;
#X connect 26 2 14 0;
#X connect 26 3 23 0;
#X connect 26 4 29 0;
#X connect 28 0 6 0;
#X connect 29 0 1 0;
#X connect 29 1 8 0;
#X connect 29 2 11 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that analyzes an audio signal using the fiddle~ object to extract the fundamental frequency, volume, and partial components, and displays the results in various formats (MIDI, Hz, dB, and rms).",
"patch_explanation": "This patch uses the fiddle~ object to analyze an audio signal and extract its fundamental frequency, volume, and partial components. The signal is generated by a phasor~ object and passed through a sig~ object to convert it to a signal. The fiddle~ object is configured to recognize one tone, analyze 20 partials, and send three outputs. The outputs are then unpacked and displayed in various formats, including MIDI, Hz, dB, and rms."
}
``` | Create a Pure Data patch that analyzes an audio signal using the fiddle~ object to extract the fundamental frequency, volume, and partial components, and displays the results in various formats (MIDI, Hz, dB, and rms). | This patch uses the fiddle~ object to analyze an audio signal and extract its fundamental frequency, volume, and partial components. The signal is generated by a phasor~ object and passed through a sig~ object to convert it to a signal. The fiddle~ object is configured to recognize one tone, analyze 20 partials, and send three outputs. The outputs are then unpacked and displayed in various formats, including MIDI, Hz, dB, and rms. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 618 412 951 523 12;
#X obj 227 150 phasor~;
#X obj 495 282 unpack;
#X floatatom 495 332 0 0 0 0 - - -;
#X obj 227 128 sig~;
#X floatatom 227 106 0 0 0 0 - - -;
#X obj 227 84 mtof;
#X floatatom 227 62 0 0 0 0 - - -;
#X floatatom 509 309 0 0 0 0 - - -;
#X obj 578 282 unpack;
#X floatatom 578 332 0 0 0 0 - - -;
#X floatatom 592 309 0 0 0 0 - - -;
#X obj 662 282 unpack;
#X floatatom 662 332 0 0 0 0 - - -;
#X floatatom 676 309 0 0 0 0 - - -;
#X obj 247 284 unpack;
#X floatatom 247 334 0 0 0 0 - - -;
#X floatatom 276 312 0 0 0 0 - - -;
#X obj 257 183 *~;
#X obj 258 7 loadbang;
#X obj 318 150 sig~;
#X floatatom 318 128 0 0 0 0 - - -;
#X msg 318 98 1;
#X msg 355 98 0;
#X floatatom 431 380 0 0 0 0 - - -;
#X obj 137 317 print attack;
#X obj 37 317 print pitch;
#X obj 257 212 fiddle~ 1024 1 20 3;
#X text 441 417 (dB);
#X msg 227 40 57;
#X obj 495 242 route 1 2 3;
#X text 345 35 test signal: phasor with 220 Hz (MIDI no. 57) and volume
1 (rms);
#X text 434 160 arguments: window size: 1024 samples \; recognize 1
tone \; analyze 20 partials to determine fundamental \; send 3 of these
as output.;
#X text 339 312 volume (dB);
#X text 306 335 pitch (MIDI);
#X text 245 362 fundamental;
#X text 418 400 total volume;
#X text 525 359 partial components;
#X text 730 331 pitch (Hz);
#X text 750 308 volume (rms);
#X text 14 15 3.8.3.1. fiddle;
#X connect 0 0 17 0;
#X connect 1 0 2 0;
#X connect 1 1 7 0;
#X connect 3 0 0 0;
#X connect 4 0 3 0;
#X connect 5 0 4 0;
#X connect 6 0 5 0;
#X connect 8 0 9 0;
#X connect 8 1 10 0;
#X connect 11 0 12 0;
#X connect 11 1 13 0;
#X connect 14 0 15 0;
#X connect 14 1 16 0;
#X connect 17 0 26 0;
#X connect 18 0 28 0;
#X connect 18 0 21 0;
#X connect 19 0 17 1;
#X connect 20 0 19 0;
#X connect 21 0 20 0;
#X connect 22 0 20 0;
#X connect 26 0 25 0;
#X connect 26 1 24 0;
#X connect 26 2 14 0;
#X connect 26 3 23 0;
#X connect 26 4 29 0;
#X connect 28 0 6 0;
#X connect 29 0 1 0;
#X connect 29 1 8 0;
#X connect 29 2 11 0;
```
explanation:
This patch uses the fiddle~ object to analyze an audio signal and extract its fundamental frequency, volume, and partial components. The signal is generated by a phasor~ object and passed through a sig~ object to convert it to a signal. The fiddle~ object is configured to recognize one tone, analyze 20 partials, and send three outputs. The outputs are then unpacked and displayed in various formats, including MIDI, Hz, dB, and rms. |
audio001.pd | #N canvas 741 308 676 460 10;
#X obj 130 120 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 1 1;
#X msg 130 150 \; pd dsp \$1;
#X obj 150 230 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X obj 150 260 trigger b b;
#X msg 150 310 1;
#X obj 150 360 readsf~;
#X obj 140 400 dac~;
#X obj 200 400 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X msg 100 310 0;
#X text 60 310 stop;
#X text 100 230 play;
#X msg 220 310 open example.aif;
#X text 340 310 enter file name here;
#X text 160 30 prompt: Create a Pure Data patch that allows users to
play and stop an audio file \, with a toggle to enable/disable DSP.
;
#X connect 0 0 1 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 1 11 0;
#X connect 4 0 5 0;
#X connect 5 0 6 0;
#X connect 5 0 6 1;
#X connect 5 1 7 0;
#X connect 8 0 5 0;
#X connect 11 0 5 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that allows users to play and stop an audio file with a toggle to enable or disable digital signal processing (DSP).",
"patch_explanation": "This patch is a simple audio player with play and stop controls, and a toggle to enable or disable DSP. When the toggle is enabled, the patch plays an audio file using the readsf~ object, and when stopped, it sends a 0 to the dac~ object to halt playback. The patch also includes a button to open a file dialog to select an audio file to play."
}
``` | Create a Pure Data patch that allows users to play and stop an audio file with a toggle to enable or disable digital signal processing (DSP). | This patch is a simple audio player with play and stop controls, and a toggle to enable or disable DSP. When the toggle is enabled, the patch plays an audio file using the readsf~ object, and when stopped, it sends a 0 to the dac~ object to halt playback. The patch also includes a button to open a file dialog to select an audio file to play. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 741 308 676 460 10;
#X obj 130 120 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 1 1;
#X msg 130 150 \; pd dsp \$1;
#X obj 150 230 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X obj 150 260 trigger b b;
#X msg 150 310 1;
#X obj 150 360 readsf~;
#X obj 140 400 dac~;
#X obj 200 400 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X msg 100 310 0;
#X text 60 310 stop;
#X text 100 230 play;
#X msg 220 310 open example.aif;
#X text 340 310 enter file name here;
#X text 160 30 prompt: Create a Pure Data patch that allows users to
play and stop an audio file \, with a toggle to enable/disable DSP.
;
#X connect 0 0 1 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 1 11 0;
#X connect 4 0 5 0;
#X connect 5 0 6 0;
#X connect 5 0 6 1;
#X connect 5 1 7 0;
#X connect 8 0 5 0;
#X connect 11 0 5 0;
```
explanation:
This patch is a simple audio player with play and stop controls, and a toggle to enable or disable DSP. When the toggle is enabled, the patch plays an audio file using the readsf~ object, and when stopped, it sends a 0 to the dac~ object to halt playback. The patch also includes a button to open a file dialog to select an audio file to play. |
audio002.pd | #N canvas 808 197 640 548 10;
#X obj 60 30 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000
1 1;
#X msg 60 60 \; pd dsp \$1;
#N canvas 0 0 450 300 (subpatch) 0;
#X array snare 91413 float 16 black black;
#X coords 0 1 91412 -1 200 140 1;
#X restore 60 120 graph;
#X msg 60 290 read -resize snare.wav snare;
#X obj 60 315 soundfiler;
#X floatatom 60 340 5 0 0 0 - - -, f 5;
#X obj 60 410 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 60 450 tabplay~ snare;
#X obj 50 490 dac~;
#X text 90 410 play;
#X text 210 30 prompt: Create a Pure Data patch that allows users to
load and play a audio file \, with a toggle to enable/disable DSP \,
and a graphical display of the audio waveform.;
#X connect 0 0 1 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 7 0 8 1;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that allows users to load and play an audio file, with a toggle to enable/disable DSP, and a graphical display of the audio waveform.",
"patch_explanation": "This patch enables users to load an audio file (in this case, snare.wav) and play it back, with the option to toggle DSP on or off. The audio waveform is displayed graphically, and playback is triggered by a bang object."
}
``` | Create a Pure Data patch that allows users to load and play an audio file, with a toggle to enable/disable DSP, and a graphical display of the audio waveform. | This patch enables users to load an audio file (in this case, snare.wav) and play it back, with the option to toggle DSP on or off. The audio waveform is displayed graphically, and playback is triggered by a bang object. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 808 197 640 548 10;
#X obj 60 30 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000
1 1;
#X msg 60 60 \; pd dsp \$1;
#N canvas 0 0 450 300 (subpatch) 0;
#X array snare 91413 float 16 black black;
#X coords 0 1 91412 -1 200 140 1;
#X restore 60 120 graph;
#X msg 60 290 read -resize snare.wav snare;
#X obj 60 315 soundfiler;
#X floatatom 60 340 5 0 0 0 - - -, f 5;
#X obj 60 410 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 60 450 tabplay~ snare;
#X obj 50 490 dac~;
#X text 90 410 play;
#X text 210 30 prompt: Create a Pure Data patch that allows users to
load and play a audio file \, with a toggle to enable/disable DSP \,
and a graphical display of the audio waveform.;
#X connect 0 0 1 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 7 0 8 1;
```
explanation:
This patch enables users to load an audio file (in this case, snare.wav) and play it back, with the option to toggle DSP on or off. The audio waveform is displayed graphically, and playback is triggered by a bang object. |
audio003.pd | #N canvas 813 100 641 547 10;
#X obj 60 30 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000
1 1;
#X msg 60 60 \; pd dsp \$1;
#N canvas 0 0 450 300 (subpatch) 0;
#X array snare 91413 float 16 black black;
#X coords 0 1 91412 -1 200 140 1;
#X restore 60 120 graph;
#X msg 60 370 read -resize snare.wav snare;
#X obj 110 460 soundfiler;
#X floatatom 110 490 5 0 0 0 - - -, f 5;
#X obj 350 310 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X obj 350 440 tabplay~ snare;
#X obj 340 480 dac~;
#N canvas 0 0 450 300 (subpatch) 0;
#X array snare2 91413 float 0 black black;
#X coords 0 1 91412 -1 200 140 1;
#X restore 320 120 graph;
#X obj 70 300 loadbang;
#X obj 70 325 trigger b b;
#X obj 350 350 trigger b b;
#X obj 480 310 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X obj 480 350 trigger b b;
#X msg 390 390 set snare;
#X msg 520 390 set snare2;
#X obj 480 450 tabplay~ snare;
#X obj 470 490 dac~;
#X msg 130 420 read -resize snare.wav snare2;
#X text 210 30 prompt: Create a Purr Data (Pd) patch that allows users
to load and play 2 sound samples \, with a toggle to enable/disable
DSP \, and a graphical display of the audio waveform.;
#X connect 0 0 1 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 6 0 12 0;
#X connect 7 0 8 0;
#X connect 7 0 8 1;
#X connect 10 0 11 0;
#X connect 11 0 3 0;
#X connect 11 1 19 0;
#X connect 12 0 7 0;
#X connect 13 0 14 0;
#X connect 14 0 17 0;
#X connect 15 0 7 0;
#X connect 16 0 17 0;
#X connect 17 0 18 0;
#X connect 17 0 18 1;
#X connect 19 0 4 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that allows users to load and play two sound samples, with a toggle to enable or disable DSP, and a graphical display of the audio waveform.",
"patch_explanation": "This patch is designed to load and play two sound samples. It features a toggle to enable or disable digital signal processing (DSP) and displays the audio waveform graphically. The patch uses two arrays to store the sound samples and two tabplay~ objects to play them. The soundfiler object is used to read the sound files, and the dac~ object is used to output the audio."
}
``` | Create a Pure Data patch that allows users to load and play two sound samples, with a toggle to enable or disable DSP, and a graphical display of the audio waveform. | This patch is designed to load and play two sound samples. It features a toggle to enable or disable digital signal processing (DSP) and displays the audio waveform graphically. The patch uses two arrays to store the sound samples and two tabplay~ objects to play them. The soundfiler object is used to read the sound files, and the dac~ object is used to output the audio. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 813 100 641 547 10;
#X obj 60 30 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000
1 1;
#X msg 60 60 \; pd dsp \$1;
#N canvas 0 0 450 300 (subpatch) 0;
#X array snare 91413 float 16 black black;
#X coords 0 1 91412 -1 200 140 1;
#X restore 60 120 graph;
#X msg 60 370 read -resize snare.wav snare;
#X obj 110 460 soundfiler;
#X floatatom 110 490 5 0 0 0 - - -, f 5;
#X obj 350 310 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X obj 350 440 tabplay~ snare;
#X obj 340 480 dac~;
#N canvas 0 0 450 300 (subpatch) 0;
#X array snare2 91413 float 0 black black;
#X coords 0 1 91412 -1 200 140 1;
#X restore 320 120 graph;
#X obj 70 300 loadbang;
#X obj 70 325 trigger b b;
#X obj 350 350 trigger b b;
#X obj 480 310 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X obj 480 350 trigger b b;
#X msg 390 390 set snare;
#X msg 520 390 set snare2;
#X obj 480 450 tabplay~ snare;
#X obj 470 490 dac~;
#X msg 130 420 read -resize snare.wav snare2;
#X text 210 30 prompt: Create a Purr Data (Pd) patch that allows users
to load and play 2 sound samples \, with a toggle to enable/disable
DSP \, and a graphical display of the audio waveform.;
#X connect 0 0 1 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 6 0 12 0;
#X connect 7 0 8 0;
#X connect 7 0 8 1;
#X connect 10 0 11 0;
#X connect 11 0 3 0;
#X connect 11 1 19 0;
#X connect 12 0 7 0;
#X connect 13 0 14 0;
#X connect 14 0 17 0;
#X connect 15 0 7 0;
#X connect 16 0 17 0;
#X connect 17 0 18 0;
#X connect 17 0 18 1;
#X connect 19 0 4 0;
```
explanation:
This patch is designed to load and play two sound samples. It features a toggle to enable or disable digital signal processing (DSP) and displays the audio waveform graphically. The patch uses two arrays to store the sound samples and two tabplay~ objects to play them. The soundfiler object is used to read the sound files, and the dac~ object is used to output the audio. |
audio004.pd | #N canvas 812 100 642 548 10;
#N canvas 536 250 450 301 (subpatch) 0;
#X array array 10 float 1 black black;
#A 0 0 0 0 0 0 0 0 1 0 0;
#X coords 0 5 9 -1 200 140 1;
#X restore 100 320 graph;
#X floatatom 110 180 5 0 0 0 - - -, f 5;
#X floatatom 190 180 5 0 0 0 - - -, f 5;
#X obj 110 240 tabwrite loop;
#X text 100 150 value;
#X text 190 150 index;
#X text 90 40 prompt: Create a Purr Data patch that allows users to
manually set values and indices for an array of length 10 \, with a
graphical display of the loop's waveform.;
#X connect 1 0 3 0;
#X connect 2 0 3 1;
| ```
{
"prompt": "Create a Pure Data patch that allows users to manually set values and indices for an array of length 10, with a graphical display of the array's waveform.",
"explanation": "This patch enables users to input values and indices for a 10-element array, and visualizes the array's waveform in a graphical display."
}
``` | Create a Pure Data patch that allows users to manually set values and indices for an array of length 10, with a graphical display of the array's waveform. | This patch enables users to input values and indices for a 10-element array, and visualizes the array's waveform in a graphical display. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 812 100 642 548 10;
#N canvas 536 250 450 301 (subpatch) 0;
#X array array 10 float 1 black black;
#A 0 0 0 0 0 0 0 0 1 0 0;
#X coords 0 5 9 -1 200 140 1;
#X restore 100 320 graph;
#X floatatom 110 180 5 0 0 0 - - -, f 5;
#X floatatom 190 180 5 0 0 0 - - -, f 5;
#X obj 110 240 tabwrite loop;
#X text 100 150 value;
#X text 190 150 index;
#X text 90 40 prompt: Create a Purr Data patch that allows users to
manually set values and indices for an array of length 10 \, with a
graphical display of the loop's waveform.;
#X connect 1 0 3 0;
#X connect 2 0 3 1;
```
explanation:
This patch enables users to input values and indices for a 10-element array, and visualizes the array's waveform in a graphical display. |
audio005.pd | #N canvas 812 100 642 548 10;
#N canvas 536 250 450 301 (subpatch) 0;
#X array array 10 float 1 black black;
#A 0 0 0.771429 0.0857143 2.1 1 0.857143 0 1 0 0;
#X coords 0 5 9 -1 200 140 1;
#X restore 90 190 graph;
#X floatatom 100 60 5 0 0 0 - - -, f 5;
#X floatatom 180 60 5 0 0 0 - - -, f 5;
#X text 90 30 value;
#X text 180 30 index;
#X floatatom 100 390 5 0 0 0 - - -, f 5;
#X floatatom 100 470 5 0 0 0 - - -, f 5;
#X text 160 390 index;
#X obj 100 120 tabwrite array;
#X obj 100 430 tabread array;
#X text 160 470 value;
#X text 260 30 prompt: Create a Pure Data patch that allows users to
manually set and display values and indices for a 10-step array \,
with graphical waveform display \, and includes objects to write and
read from the array.;
#X connect 1 0 8 0;
#X connect 2 0 8 1;
#X connect 5 0 9 0;
#X connect 9 0 6 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that allows users to manually set and display values and indices for a 10-step array, with graphical waveform display, and includes objects to write and read from the array.",
"patch_explanation": "This patch is designed to interact with a 10-step array, allowing users to manually set and display values and indices. It features a graphical waveform display and includes objects to write and read from the array, enabling users to manipulate and visualize the array's contents."
}
``` | Create a Pure Data patch that allows users to manually set and display values and indices for a 10-step array, with graphical waveform display, and includes objects to write and read from the array. | This patch is designed to interact with a 10-step array, allowing users to manually set and display values and indices. It features a graphical waveform display and includes objects to write and read from the array, enabling users to manipulate and visualize the array's contents. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 812 100 642 548 10;
#N canvas 536 250 450 301 (subpatch) 0;
#X array array 10 float 1 black black;
#A 0 0 0.771429 0.0857143 2.1 1 0.857143 0 1 0 0;
#X coords 0 5 9 -1 200 140 1;
#X restore 90 190 graph;
#X floatatom 100 60 5 0 0 0 - - -, f 5;
#X floatatom 180 60 5 0 0 0 - - -, f 5;
#X text 90 30 value;
#X text 180 30 index;
#X floatatom 100 390 5 0 0 0 - - -, f 5;
#X floatatom 100 470 5 0 0 0 - - -, f 5;
#X text 160 390 index;
#X obj 100 120 tabwrite array;
#X obj 100 430 tabread array;
#X text 160 470 value;
#X text 260 30 prompt: Create a Pure Data patch that allows users to
manually set and display values and indices for a 10-step array \,
with graphical waveform display \, and includes objects to write and
read from the array.;
#X connect 1 0 8 0;
#X connect 2 0 8 1;
#X connect 5 0 9 0;
#X connect 9 0 6 0;
```
explanation:
This patch is designed to interact with a 10-step array, allowing users to manually set and display values and indices. It features a graphical waveform display and includes objects to write and read from the array, enabling users to manipulate and visualize the array's contents. |
019-random.pd | #N canvas 856 296 497 393 10;
#X obj 120 100 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 1 1;
#X obj 120 123 metro 1000;
#X obj 120 180 unpack f f f;
#X floatatom 110 227 5 0 0 0 - - -, f 5;
#X floatatom 160 227 5 0 0 0 - - -, f 5;
#X floatatom 210 227 5 0 0 0 - - -, f 5;
#X obj 120 150 tripleRand 10 20 30;
#X connect 0 0 1 0;
#X connect 1 0 6 0;
#X connect 2 0 3 0;
#X connect 2 1 4 0;
#X connect 2 2 5 0;
#X connect 6 0 2 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates three random numbers within specified ranges at a rate of 1 Hz and displays them as floating-point numbers.",
"patch_explanation": "This patch uses a toggle and metro to trigger a tripleRand object at 1-second intervals, producing three random numbers between 10-20, which are then unpacked and displayed as separate floating-point numbers."
}
``` | Create a Pure Data patch that generates three random numbers within specified ranges at a rate of 1 Hz and displays them as floating-point numbers. | This patch uses a toggle and metro to trigger a tripleRand object at 1-second intervals, producing three random numbers between 10-20, which are then unpacked and displayed as separate floating-point numbers. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 856 296 497 393 10;
#X obj 120 100 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 1 1;
#X obj 120 123 metro 1000;
#X obj 120 180 unpack f f f;
#X floatatom 110 227 5 0 0 0 - - -, f 5;
#X floatatom 160 227 5 0 0 0 - - -, f 5;
#X floatatom 210 227 5 0 0 0 - - -, f 5;
#X obj 120 150 tripleRand 10 20 30;
#X connect 0 0 1 0;
#X connect 1 0 6 0;
#X connect 2 0 3 0;
#X connect 2 1 4 0;
#X connect 2 2 5 0;
#X connect 6 0 2 0;
```
explanation:
This patch uses a toggle and metro to trigger a tripleRand object at 1-second intervals, producing three random numbers between 10-20, which are then unpacked and displayed as separate floating-point numbers. |
011-moses.pd | #N canvas 856 296 497 393 10;
#X obj 110 100 moses 10;
#X msg 60 160 number is less than 10;
#X msg 180 190 number is greater than or equal to 10;
#X floatatom 110 50 5 0 0 0 - - -, f 5;
#X obj 120 260 print;
#X connect 0 0 1 0;
#X connect 0 1 2 0;
#X connect 1 0 4 0;
#X connect 2 0 4 0;
#X connect 3 0 0 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that compares an input number to 10 and prints whether it is less than or greater than or equal to 10.",
"patch_explanation": "This patch uses a 'moses' object to compare an input number from a float atom to 10, sending the result to one of two message boxes, which then print the result to the console."
}
``` | Create a Pure Data patch that compares an input number to 10 and prints whether it is less than or greater than or equal to 10. | This patch uses a 'moses' object to compare an input number from a float atom to 10, sending the result to one of two message boxes, which then print the result to the console. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 856 296 497 393 10;
#X obj 110 100 moses 10;
#X msg 60 160 number is less than 10;
#X msg 180 190 number is greater than or equal to 10;
#X floatatom 110 50 5 0 0 0 - - -, f 5;
#X obj 120 260 print;
#X connect 0 0 1 0;
#X connect 0 1 2 0;
#X connect 1 0 4 0;
#X connect 2 0 4 0;
#X connect 3 0 0 0;
```
explanation:
This patch uses a 'moses' object to compare an input number from a float atom to 10, sending the result to one of two message boxes, which then print the result to the console. |
015-random.pd | #N canvas 856 296 497 393 10;
#X obj 120 80 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 0 1;
#X obj 120 103 metro 1000;
#X obj 120 128 randomF 1;
#X floatatom 120 153 5 0 0 0 - - -, f 5;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates a random float value every second when a toggle switch is turned on.",
"patch_explanation": "This patch uses a toggle switch to control a metro object, which sends a bang signal every second. The bang signal triggers a randomF object to generate a random float value between 0 and 1, which is then displayed in a floatatom object."
}
``` | Create a Pure Data patch that generates a random float value every second when a toggle switch is turned on. | This patch uses a toggle switch to control a metro object, which sends a bang signal every second. The bang signal triggers a randomF object to generate a random float value between 0 and 1, which is then displayed in a floatatom object. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 856 296 497 393 10;
#X obj 120 80 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 0 1;
#X obj 120 103 metro 1000;
#X obj 120 128 randomF 1;
#X floatatom 120 153 5 0 0 0 - - -, f 5;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
```
explanation:
This patch uses a toggle switch to control a metro object, which sends a bang signal every second. The bang signal triggers a randomF object to generate a random float value between 0 and 1, which is then displayed in a floatatom object. |
013-random.pd | #N canvas 856 296 497 393 10;
#X obj 100 90 metro 100;
#X obj 100 50 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 100 130 random 100;
#X floatatom 100 170 5 0 0 0 - - -, f 5;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 2 0 3 0;
| ```
{
"prompt": "Create a Pure Data patch that generates a random number between 0 and 100 every 100 milliseconds when a bang is triggered.",
"explanation": "This patch uses a metro object to trigger a random number generator every 100 milliseconds when a bang is received. The generated random number is then displayed in a floatatom object."
}
``` | Create a Pure Data patch that generates a random number between 0 and 100 every 100 milliseconds when a bang is triggered. | This patch uses a metro object to trigger a random number generator every 100 milliseconds when a bang is received. The generated random number is then displayed in a floatatom object. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 856 296 497 393 10;
#X obj 100 90 metro 100;
#X obj 100 50 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 100 130 random 100;
#X floatatom 100 170 5 0 0 0 - - -, f 5;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 2 0 3 0;
```
explanation:
This patch uses a metro object to trigger a random number generator every 100 milliseconds when a bang is received. The generated random number is then displayed in a floatatom object. |
016-random.pd | #N canvas 856 296 497 393 10;
#X obj 120 100 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 1 1;
#X obj 120 123 metro 1000;
#X obj 120 148 tripleRand 10;
#X obj 120 173 unpack f f f;
#X floatatom 110 220 5 0 0 0 - - -, f 5;
#X floatatom 160 220 5 0 0 0 - - -, f 5;
#X floatatom 210 220 5 0 0 0 - - -, f 5;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 1 5 0;
#X connect 3 2 6 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates three random floating-point numbers at a rate of 1 Hz and displays them on separate number boxes.",
"patch_explanation": "This patch uses a toggle switch to activate a 1 Hz metro object, which triggers a tripleRand object to generate three random floating-point numbers between 0 and 10. These numbers are then unpacked and displayed on three separate floatatom objects."
}
``` | Create a Pure Data patch that generates three random floating-point numbers at a rate of 1 Hz and displays them on separate number boxes. | This patch uses a toggle switch to activate a 1 Hz metro object, which triggers a tripleRand object to generate three random floating-point numbers between 0 and 10. These numbers are then unpacked and displayed on three separate floatatom objects. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 856 296 497 393 10;
#X obj 120 100 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 1 1;
#X obj 120 123 metro 1000;
#X obj 120 148 tripleRand 10;
#X obj 120 173 unpack f f f;
#X floatatom 110 220 5 0 0 0 - - -, f 5;
#X floatatom 160 220 5 0 0 0 - - -, f 5;
#X floatatom 210 220 5 0 0 0 - - -, f 5;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 1 5 0;
#X connect 3 2 6 0;
```
explanation:
This patch uses a toggle switch to activate a 1 Hz metro object, which triggers a tripleRand object to generate three random floating-point numbers between 0 and 10. These numbers are then unpacked and displayed on three separate floatatom objects. |
017-random.pd | #N canvas 856 296 497 393 10;
#X obj 120 100 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 1 1;
#X obj 120 123 metro 1000;
#X obj 120 180 unpack f f f;
#X floatatom 110 227 5 0 0 0 - - -, f 5;
#X floatatom 160 227 5 0 0 0 - - -, f 5;
#X floatatom 210 227 5 0 0 0 - - -, f 5;
#X obj 120 150 tripleRand 5 10 20;
#X connect 0 0 1 0;
#X connect 1 0 6 0;
#X connect 2 0 3 0;
#X connect 2 1 4 0;
#X connect 2 2 5 0;
#X connect 6 0 2 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates three random float values between 5 and 20 at a rate of 1 Hz and displays them on separate number boxes.",
"patch_explanation": "This patch uses a toggle and metro to trigger a tripleRand object at 1-second intervals, producing three random float values between 5 and 20. These values are then unpacked and displayed on three separate floatatom number boxes."
}
``` | Create a Pure Data patch that generates three random float values between 5 and 20 at a rate of 1 Hz and displays them on separate number boxes. | This patch uses a toggle and metro to trigger a tripleRand object at 1-second intervals, producing three random float values between 5 and 20. These values are then unpacked and displayed on three separate floatatom number boxes. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 856 296 497 393 10;
#X obj 120 100 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 1 1;
#X obj 120 123 metro 1000;
#X obj 120 180 unpack f f f;
#X floatatom 110 227 5 0 0 0 - - -, f 5;
#X floatatom 160 227 5 0 0 0 - - -, f 5;
#X floatatom 210 227 5 0 0 0 - - -, f 5;
#X obj 120 150 tripleRand 5 10 20;
#X connect 0 0 1 0;
#X connect 1 0 6 0;
#X connect 2 0 3 0;
#X connect 2 1 4 0;
#X connect 2 2 5 0;
#X connect 6 0 2 0;
```
explanation:
This patch uses a toggle and metro to trigger a tripleRand object at 1-second intervals, producing three random float values between 5 and 20. These values are then unpacked and displayed on three separate floatatom number boxes. |
014-random.pd | #N canvas 856 296 497 393 10;
#X obj 100 90 metro 100;
#X obj 100 50 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 100 160 random 100;
#X floatatom 100 200 5 0 0 0 - - -, f 5;
#X msg 180 115 seed 42;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 2 0 3 0;
#X connect 4 0 2 0;
| ```
{
"prompt": "Create a Pure Data patch that generates a random number between 0 and 100 at a rate of 100 milliseconds, triggered by a bang, and allows for setting a random seed.",
"explanation": "This patch uses a metro object to trigger a random number generator at a rate of 100 milliseconds. The random number generator produces a value between 0 and 100, which is then displayed in a floatatom object. The patch also includes a bang object to trigger the metro, and a message object to set the random seed to 42."
}
``` | Create a Pure Data patch that generates a random number between 0 and 100 at a rate of 100 milliseconds, triggered by a bang, and allows for setting a random seed. | This patch uses a metro object to trigger a random number generator at a rate of 100 milliseconds. The random number generator produces a value between 0 and 100, which is then displayed in a floatatom object. The patch also includes a bang object to trigger the metro, and a message object to set the random seed to 42. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 856 296 497 393 10;
#X obj 100 90 metro 100;
#X obj 100 50 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 100 160 random 100;
#X floatatom 100 200 5 0 0 0 - - -, f 5;
#X msg 180 115 seed 42;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 2 0 3 0;
#X connect 4 0 2 0;
```
explanation:
This patch uses a metro object to trigger a random number generator at a rate of 100 milliseconds. The random number generator produces a value between 0 and 100, which is then displayed in a floatatom object. The patch also includes a bang object to trigger the metro, and a message object to set the random seed to 42. |
012-random.pd | #N canvas 856 296 497 393 10;
#X obj 100 60 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 100 100 random 100;
#X floatatom 100 140 5 0 0 0 - - -, f 5;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
| ```
{
"prompt": "Create a Pure Data patch that generates a random number between 0 and 100 when a bang is triggered.",
"explanation": "This patch triggers a random number generator when a bang is received, producing a value between 0 and 100, which is then displayed in a float atom."
}
``` | Create a Pure Data patch that generates a random number between 0 and 100 when a bang is triggered. | This patch triggers a random number generator when a bang is received, producing a value between 0 and 100, which is then displayed in a float atom. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 856 296 497 393 10;
#X obj 100 60 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 100 100 random 100;
#X floatatom 100 140 5 0 0 0 - - -, f 5;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
```
explanation:
This patch triggers a random number generator when a bang is received, producing a value between 0 and 100, which is then displayed in a float atom. |
018-random.pd | #N canvas 856 296 497 393 10;
#X obj 120 100 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 1 1;
#X obj 120 123 metro 1000;
#X obj 120 180 unpack f f f;
#X floatatom 110 227 5 0 0 0 - - -, f 5;
#X floatatom 160 227 5 0 0 0 - - -, f 5;
#X floatatom 210 227 5 0 0 0 - - -, f 5;
#X obj 120 150 tripleRand 10 20 30;
#X connect 0 0 1 0;
#X connect 1 0 6 0;
#X connect 2 0 3 0;
#X connect 2 1 4 0;
#X connect 2 2 5 0;
#X connect 6 0 2 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates three random numbers within specified ranges at a rate of 1 Hz and displays them as floating-point numbers.",
"patch_explanation": "This patch uses a toggle and metro to trigger a tripleRand object at 1-second intervals, producing three random numbers between 10-20, which are then unpacked and displayed as separate floating-point numbers."
}
``` | Create a Pure Data patch that generates three random numbers within specified ranges at a rate of 1 Hz and displays them as floating-point numbers. | This patch uses a toggle and metro to trigger a tripleRand object at 1-second intervals, producing three random numbers between 10-20, which are then unpacked and displayed as separate floating-point numbers. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 856 296 497 393 10;
#X obj 120 100 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 1 1;
#X obj 120 123 metro 1000;
#X obj 120 180 unpack f f f;
#X floatatom 110 227 5 0 0 0 - - -, f 5;
#X floatatom 160 227 5 0 0 0 - - -, f 5;
#X floatatom 210 227 5 0 0 0 - - -, f 5;
#X obj 120 150 tripleRand 10 20 30;
#X connect 0 0 1 0;
#X connect 1 0 6 0;
#X connect 2 0 3 0;
#X connect 2 1 4 0;
#X connect 2 2 5 0;
#X connect 6 0 2 0;
```
explanation:
This patch uses a toggle and metro to trigger a tripleRand object at 1-second intervals, producing three random numbers between 10-20, which are then unpacked and displayed as separate floating-point numbers. |
010-spigot.pd | #N canvas 836 310 549 380 10;
#X floatatom 130 80 5 0 0 0 - - -, f 5;
#X obj 130 120 > 10;
#X floatatom 130 160 5 0 0 0 - - -, f 5;
#X obj 120 200 spigot;
#X obj 120 280 print;
#X msg 120 240 Number greater than 10!;
#X text 100 30 print a message when the number in floatatom box is
greater than 10;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 1;
#X connect 2 0 3 0;
#X connect 3 0 5 0;
#X connect 5 0 4 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that prints a message when a number in a floatatom box exceeds 10.",
"patch_explanation": "This patch compares the value in a floatatom box to 10, and if it's greater, it triggers a spigot to send a message to a print object, displaying 'Number greater than 10!'."
}
``` | Create a Pure Data patch that prints a message when a number in a floatatom box exceeds 10. | This patch compares the value in a floatatom box to 10, and if it's greater, it triggers a spigot to send a message to a print object, displaying 'Number greater than 10!'. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 836 310 549 380 10;
#X floatatom 130 80 5 0 0 0 - - -, f 5;
#X obj 130 120 > 10;
#X floatatom 130 160 5 0 0 0 - - -, f 5;
#X obj 120 200 spigot;
#X obj 120 280 print;
#X msg 120 240 Number greater than 10!;
#X text 100 30 print a message when the number in floatatom box is
greater than 10;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 1;
#X connect 2 0 3 0;
#X connect 3 0 5 0;
#X connect 5 0 4 0;
```
explanation:
This patch compares the value in a floatatom box to 10, and if it's greater, it triggers a spigot to send a message to a print object, displaying 'Number greater than 10!'. |
009-counter.pd | #N canvas 857 252 549 380 10;
#X obj 90 50 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 90 130 int;
#X obj 140 130 + 1;
#X floatatom 90 180 5 0 0 0 - - -, f 5;
#X text 90 20 counter;
#X obj 90 90 metro 1000;
#X connect 0 0 5 0;
#X connect 1 0 2 0;
#X connect 1 0 3 0;
#X connect 2 0 1 1;
#X connect 5 0 1 0;
| ```
{
"prompt": "Create a Pure Data patch that increments a counter every second and displays the current count.",
"explanation": "This patch is a simple counter that increments every second. It uses a metro object to generate a bang every 1000 milliseconds, which triggers an integer object to increment its value by 1. The current count is then displayed on a floatatom object."
}
``` | Create a Pure Data patch that increments a counter every second and displays the current count. | This patch is a simple counter that increments every second. It uses a metro object to generate a bang every 1000 milliseconds, which triggers an integer object to increment its value by 1. The current count is then displayed on a floatatom object. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 857 252 549 380 10;
#X obj 90 50 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 90 130 int;
#X obj 140 130 + 1;
#X floatatom 90 180 5 0 0 0 - - -, f 5;
#X text 90 20 counter;
#X obj 90 90 metro 1000;
#X connect 0 0 5 0;
#X connect 1 0 2 0;
#X connect 1 0 3 0;
#X connect 2 0 1 1;
#X connect 5 0 1 0;
```
explanation:
This patch is a simple counter that increments every second. It uses a metro object to generate a bang every 1000 milliseconds, which triggers an integer object to increment its value by 1. The current count is then displayed on a floatatom object. |
005-math.pd | #N canvas 700 304 451 302 10;
#X obj 120 67 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 120 90 t b b;
#X msg 100 137 10;
#X msg 160 137 20;
#X obj 130 177 +;
#X floatatom 130 227 5 0 0 0 - - -, f 5;
#X text 120 30 this patch adds 10 and 20;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 2 0 4 0;
#X connect 3 0 4 1;
#X connect 4 0 5 0;
| ```
{
"prompt": "Create a Pure Data patch that adds 10 and 20 and displays the result in a number box",
"explanation": "This patch uses a bang to trigger two messages, 10 and , which are then added together using the '+' object. The result is displayed in a float atom."
}
``` | Create a Pure Data patch that adds 10 and 20 and displays the result in a number box | This patch uses a bang to trigger two messages, 10 and 20, which are then added together using the '+' object. The result is displayed in a float atom. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 700 304 451 302 10;
#X obj 120 67 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 120 90 t b b;
#X msg 100 137 10;
#X msg 160 137 20;
#X obj 130 177 +;
#X floatatom 130 227 5 0 0 0 - - -, f 5;
#X text 120 30 this patch adds 10 and 20;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 2 0 4 0;
#X connect 3 0 4 1;
#X connect 4 0 5 0;
```
explanation:
This patch uses a bang to trigger two messages, 10 and 20, which are then added together using the '+' object. The result is displayed in a float atom. |
003-metro.pd | #N canvas 833 333 549 381 10;
#X obj 92 214 metro 500;
#X floatatom 143 191 4 0 0 0 - - -, f 4;
#X msg 92 65 1;
#X text 160 64 nonzero number or "bang" to start;
#X msg 133 98 0;
#X msg 124 65 bang;
#X msg 165 98 stop;
#X obj 92 237 bng 15 250 50 0 empty empty empty 0 -6 0 8 #fcfcfc #000000
#000000;
#X text 202 98 zero or "stop" to stop;
#X text 126 237 The metro object sends a series of bangs at a constant
rate.;
#X msg 161 142 tempo 2 msec;
#X text 247 142 set tempo;
#X connect 0 0 7 0;
#X connect 1 0 0 1;
#X connect 2 0 0 0;
#X connect 4 0 0 0;
#X connect 5 0 0 0;
#X connect 6 0 0 0;
#X connect 10 0 0 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates a series of bangs at a constant rate, with controls to start and stop the sequence, as well as adjust the tempo.",
"patch_explanation": "This patch uses a metro object to send a series of bangs at a constant rate. The rate can be controlled by sending a nonzero number or 'bang' to start, and zero or 'stop' to stop. The tempo can be adjusted by sending a 'tempo' message with a value in milliseconds."
}
``` | Create a Pure Data patch that generates a series of bangs at a constant rate, with controls to start and stop the sequence, as well as adjust the tempo. | This patch uses a metro object to send a series of bangs at a constant rate. The rate can be controlled by sending a nonzero number or 'bang' to start, and zero or 'stop' to stop. The tempo can be adjusted by sending a 'tempo' message with a value in milliseconds. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 833 333 549 381 10;
#X obj 92 214 metro 500;
#X floatatom 143 191 4 0 0 0 - - -, f 4;
#X msg 92 65 1;
#X text 160 64 nonzero number or "bang" to start;
#X msg 133 98 0;
#X msg 124 65 bang;
#X msg 165 98 stop;
#X obj 92 237 bng 15 250 50 0 empty empty empty 0 -6 0 8 #fcfcfc #000000
#000000;
#X text 202 98 zero or "stop" to stop;
#X text 126 237 The metro object sends a series of bangs at a constant
rate.;
#X msg 161 142 tempo 2 msec;
#X text 247 142 set tempo;
#X connect 0 0 7 0;
#X connect 1 0 0 1;
#X connect 2 0 0 0;
#X connect 4 0 0 0;
#X connect 5 0 0 0;
#X connect 6 0 0 0;
#X connect 10 0 0 0;
```
explanation:
This patch uses a metro object to send a series of bangs at a constant rate. The rate can be controlled by sending a nonzero number or 'bang' to start, and zero or 'stop' to stop. The tempo can be adjusted by sending a 'tempo' message with a value in milliseconds. |
004-math.pd | #N canvas 856 252 550 381 10;
#X obj 110 50 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 110 73 t b b;
#X msg 90 120 10;
#X msg 150 120 5;
#X obj 120 170 +;
#X floatatom 120 210 5 0 0 0 - - -, f 5;
#X text 70 250 this patch adds 5 and 10;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 2 0 4 0;
#X connect 3 0 4 1;
#X connect 4 0 5 0;
| ```
{
"prompt": "Create a Pure Data patch that add 5 and 10, and display the result.",
"explanation": "This patch uses a bang to trigger two messages, 10 and 5, which are then added together using the '+' object. The result is displayed in a float atom."
}
``` | Create a Pure Data (Pd) patch that adds 5 and 10, and display the result. | This patch uses a bang to trigger two messages, 10 and 5, which are then added together using the '+' object. The result is displayed in a float atom. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 856 252 550 381 10;
#X obj 110 50 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 110 73 t b b;
#X msg 90 120 5;
#X msg 150 120 10;
#X obj 120 170 +;
#X floatatom 120 210 5 0 0 0 - - -, f 5;
#X text 70 250 this patch adds 5 and 10;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 2 0 4 0;
#X connect 3 0 4 1;
#X connect 4 0 5 0;
```
explanation:
This patch uses a bang to trigger two messages, 10 and 5, which are then added together using the '+' object. The result is displayed in a float atom. |
006-metro.pd | #N canvas 857 252 549 380 10;
#X obj 100 110 metro 500;
#X obj 100 160 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X msg 100 40 bang;
#X msg 160 40 stop;
#X connect 0 0 1 0;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates a bang message at regular intervals, with a start and stop control.",
"patch_explanation": "This patch uses a metro object to send a bang message every 500 milliseconds, triggered by an initial bang message or a start message. The bng object is used to display the bang message. The stop message can be sent to halt the metro object."
}
``` | Create a Pure Data patch that generates a bang message at regular intervals, with a start and stop control. | This patch uses a metro object to send a bang message every 500 milliseconds, triggered by an initial bang message or a start message. The bng object is used to display the bang message. The stop message can be sent to halt the metro object. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 857 252 549 380 10;
#X obj 100 110 metro 500;
#X obj 100 160 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X msg 100 40 bang;
#X msg 160 40 stop;
#X connect 0 0 1 0;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
```
explanation:
This patch uses a metro object to send a bang message every 500 milliseconds, triggered by an initial bang message or a start message. The bng object is used to display the bang message. The stop message can be sent to halt the metro object. |
002-helloworld.pd | #N canvas 833 333 549 381 10;
#X msg 100 120 Hello World;
#X obj 100 170 print;
#X obj 100 70 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X msg 180 70 bang;
#X connect 0 0 1 0;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
| ```
{
"prompt": "Create a Pure Data patch that prints 'Hello World' to the console when a bang message is received or a button is clicked.",
"explanation": "This patch consists of a button, a message box with 'Hello World', and a print object. When the button is clicked or a bang message is received, it triggers the message box to send 'Hello World' to the print object, which then prints it to the console."
}
``` | Create a Pure Data patch that prints 'Hello World' to the console when a bang message is received or a button is clicked. | This patch consists of a button, a message box with 'Hello World', and a print object. When the button is clicked or a bang message is received, it triggers the message box to send 'Hello World' to the print object, which then prints it to the console. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 833 333 549 381 10;
#X msg 100 120 Hello World;
#X obj 100 170 print;
#X obj 100 70 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X msg 180 70 bang;
#X connect 0 0 1 0;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
```
explanation:
This patch consists of a button, a message box with 'Hello World', and a print object. When the button is clicked or a bang message is received, it triggers the message box to send 'Hello World' to the print object, which then prints it to the console. |
007-metro.pd | #N canvas 857 252 549 380 10;
#X obj 100 70 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 100 110 t b b b;
#X msg 120 160 60000;
#X obj 100 270 metro;
#X obj 140 210 /;
#X obj 100 310 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X msg 40 70 stop;
#X msg 180 160 60;
#X text 220 160 60 BPM;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 1 1 2 0;
#X connect 1 2 7 0;
#X connect 2 0 4 0;
#X connect 3 0 5 0;
#X connect 4 0 3 1;
#X connect 6 0 3 0;
#X connect 7 0 4 1;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates a metronome with a tempo of 60 beats per minute and allows for start and stop control.",
"patch_explanation": "This patch is a simple metronome that generates a bang (trigger) at a rate of 60 beats per minute. The tempo can be adjusted by changing the value of the '60' message. The metronome can be started and stopped using the 'bng' objects."
}
``` | Create a Pure Data patch that generates a metronome with a tempo of 60 beats per minute and allows for start and stop control. | This patch is a simple metronome that generates a bang (trigger) at a rate of 60 beats per minute. The tempo can be adjusted by changing the value of the '60' message. The metronome can be started and stopped using the 'bng' objects. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 857 252 549 380 10;
#X obj 100 70 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 100 110 t b b b;
#X msg 120 160 60000;
#X obj 100 270 metro;
#X obj 140 210 /;
#X obj 100 310 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X msg 40 70 stop;
#X msg 180 160 60;
#X text 220 160 60 BPM;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 1 1 2 0;
#X connect 1 2 7 0;
#X connect 2 0 4 0;
#X connect 3 0 5 0;
#X connect 4 0 3 1;
#X connect 6 0 3 0;
#X connect 7 0 4 1;
```
explanation:
This patch is a simple metronome that generates a bang (trigger) at a rate of 60 beats per minute. The tempo can be adjusted by changing the value of the '60' message. The metronome can be started and stopped using the 'bng' objects. |
001-helloworld.pd | #N canvas 844 139 549 380 10;
#X msg 100 120 Hello World;
#X obj 100 170 print;
#X obj 100 70 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X connect 0 0 1 0;
#X connect 2 0 0 0;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that prints 'Hello World' to the console when a bang is triggered.",
"patch_explanation": "This patch contains a bang object that, when clicked, sends a message with the text 'Hello World' to a print object, which then prints the message to the console."
}
``` | Create a Pure Data patch that prints 'Hello World' to the console when a bang is triggered. | This patch contains a bang object that, when clicked, sends a message with the text 'Hello World' to a print object, which then prints the message to the console. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 844 139 549 380 10;
#X msg 100 120 Hello World;
#X obj 100 170 print;
#X obj 100 70 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X connect 0 0 1 0;
#X connect 2 0 0 0;
```
explanation:
This patch contains a bang object that, when clicked, sends a message with the text 'Hello World' to a print object, which then prints the message to the console. |
008-metro.pd | #N canvas 857 252 549 380 10;
#X obj 100 70 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 100 110 t b b b;
#X msg 120 160 60000;
#X obj 100 270 metro;
#X obj 140 210 /;
#X obj 100 310 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X msg 40 70 stop;
#X msg 180 160 100;
#X text 220 160 100 BPM;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 1 1 2 0;
#X connect 1 2 7 0;
#X connect 2 0 4 0;
#X connect 3 0 5 0;
#X connect 4 0 3 1;
#X connect 6 0 3 0;
#X connect 7 0 4 1;
| ```
{
"natural_language_prompt": "Create a Pure Data patch that generates a metronome with a tempo of 100 BPM and allows the user to start and stop it.",
"patch_explanation": "This patch is a simple metronome that generates a bang at a specified tempo. The tempo is set to 100 BPM by default, but can be changed by sending a new tempo value to the '/ 60000' object. The metronome can be started and stopped using the 'bng' objects."
}
``` | Create a Pure Data patch that generates a metronome with a tempo of 100 BPM and allows the user to start and stop it. | This patch is a simple metronome that generates a bang at a specified tempo. The tempo is set to 100 BPM by default, but can be changed by sending a new tempo value to the '/ 60000' object. The metronome can be started and stopped using the 'bng' objects. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 857 252 549 380 10;
#X obj 100 70 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 100 110 t b b b;
#X msg 120 160 60000;
#X obj 100 270 metro;
#X obj 140 210 /;
#X obj 100 310 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X msg 40 70 stop;
#X msg 180 160 100;
#X text 220 160 100 BPM;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 1 1 2 0;
#X connect 1 2 7 0;
#X connect 2 0 4 0;
#X connect 3 0 5 0;
#X connect 4 0 3 1;
#X connect 6 0 3 0;
#X connect 7 0 4 1;
```
explanation:
This patch is a simple metronome that generates a bang at a specified tempo. The tempo is set to 100 BPM by default, but can be changed by sending a new tempo value to the '/ 60000' object. The metronome can be started and stopped using the 'bng' objects. |
006-math.pd | #N canvas 700 304 451 302 10;
#X obj 120 67 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 120 90 t b b;
#X msg 100 137 50;
#X msg 160 137 100;
#X obj 130 177 +;
#X floatatom 130 227 5 0 0 0 - - -, f 5;
#X text 120 30 this patch adds 50 and 100;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 2 0 4 0;
#X connect 3 0 4 1;
#X connect 4 0 5 0;
| ```
``` | Create a Pure Data patch that adds 50 and 100 and displays the result in a number box | This patch uses a bang to trigger two messages, 10 and , which are then added together using the '+' object. The result is displayed in a float atom. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 700 304 451 302 10;
#X obj 120 67 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 120 90 t b b;
#X msg 100 137 50;
#X msg 160 137 100;
#X obj 130 177 +;
#X floatatom 130 227 5 0 0 0 - - -, f 5;
#X text 120 30 this patch adds 50 and 100;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 2 0 4 0;
#X connect 3 0 4 1;
#X connect 4 0 5 0;
```
explanation:
This patch uses a bang to trigger two messages, 50 and 100, which are then added together using the '+' object. The result is displayed in a float atom. |
007-math.pd | #N canvas 700 304 451 302 10;
#X obj 120 67 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 120 90 t b b;
#X msg 100 137 50;
#X msg 160 137 100;
#X obj 130 177 -;
#X floatatom 130 227 5 0 0 0 - - -, f 5;
#X text 120 30 this patch substracts 100 from 50;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 2 0 4 0;
#X connect 3 0 4 1;
#X connect 4 0 5 0;
| ```
``` | Create a Pd patch that substracts 100 from 50 and displays the result in a number box | This patc. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 700 304 451 302 10;
#X obj 120 67 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 120 90 t b b;
#X msg 100 137 50;
#X msg 160 137 100;
#X obj 130 177 -;
#X floatatom 130 227 5 0 0 0 - - -, f 5;
#X text 120 30 this patch substracts 100 from 50;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 2 0 4 0;
#X connect 3 0 4 1;
#X connect 4 0 5 0;
```
explanation:
This patch uses a bang to trigger two messages, 50 and 100, which are then subtracted using the '-' object. The result is displayed in a float atom. |
008-math.pd | #N canvas 700 304 451 302 10;
#X obj 120 67 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 120 90 t b b;
#X msg 100 137 50;
#X msg 160 137 100;
#X obj 130 177 *;
#X floatatom 130 227 5 0 0 0 - - -, f 5;
#X text 120 30 this patch multiplies 50 and 100;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 2 0 4 0;
#X connect 3 0 4 1;
#X connect 4 0 5 0;
| ```
``` | Create a Pd patch that multiplies 100 from 50 and displays the result in a number box | This patc. | create a Pd patch that matches the following request. | sure! here's the patch you requested:
```
#N canvas 700 304 451 302 10;
#X obj 120 67 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X obj 120 90 t b b;
#X msg 100 137 50;
#X msg 160 137 100;
#X obj 130 177 *;
#X floatatom 130 227 5 0 0 0 - - -, f 5;
#X text 120 30 this patch multiplies 50 and 100;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 2 0 4 0;
#X connect 3 0 4 1;
#X connect 4 0 5 0;
```
explanation:
This patch uses a bang to trigger two messages, 50 and 100, which are then multiplied using the '*' object. The result is displayed in a float atom. |