Skip to content

Commit

Permalink
MIDI documentation in RNBO tutorial(2).
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Aug 6, 2023
1 parent b00adb2 commit 7de8702
Show file tree
Hide file tree
Showing 46 changed files with 357 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -464,5 +464,5 @@ <h4 class="modal-title" id="keyboardModalLabel">Keyboard Shortcuts</h4>

<!--
MkDocs version : 1.4.3
Build Date UTC : 2023-08-06 07:46:53.554887+00:00
Build Date UTC : 2023-08-06 08:00:54.854863+00:00
-->
5 changes: 5 additions & 0 deletions docs/manual/syntax/exfaust122/exfaust122.dsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

import("stdfaust.lib");
freq = vslider("freq[tooltip:The frequency of the oscillator]",440,50,1000,0.1);
process = os.sawtooth(freq);

72 changes: 72 additions & 0 deletions docs/manual/syntax/exfaust122/exfaust122.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/rail/3-syntax/Rule.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence ('(', OneOrMore (NonTerminal('pattern'), ','), ')', "=>", NonTerminal('expression'), ';')
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/abstraction.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Choice (0, NonTerminal('lambdaabstraction'), NonTerminal('patternabstraction'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/access.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (NonTerminal('expression'), '.', NonTerminal('ident'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/application.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (NonTerminal('expression'), '(', OneOrMore (NonTerminal('expression'), ','), ')')
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/argtype.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Choice (0, 'int', 'float', 'any')
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/bitwise.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (NonTerminal('expression'), Choice (0, NonTerminal('|'), NonTerminal('&'), 'xor', '<<', '>>'), NonTerminal('expression'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/comparison.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (NonTerminal('expression'), Choice (0, '<', '<=', '>', '>=', '==', '!='), NonTerminal('expression'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/component.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence ('component', '(', NonTerminal('filename'), ')')
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/delay.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Choice (0, Sequence (NonTerminal('expression'), NonTerminal('@'), NonTerminal('expression')), Sequence (NonTerminal('expression'), NonTerminal(''')))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/diagcomposition.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (NonTerminal('expression'), Choice (0, NonTerminal('~'), ',', ':', '<:', ':>'), NonTerminal('expression'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/diagiteration.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Choice (0, Sequence ("par", '(', NonTerminal('ident'), ',', NonTerminal('numiter'), ',', NonTerminal('expression'), ')'), Sequence ("seq", '(', NonTerminal('ident'), ',', NonTerminal('numiter'), ',', NonTerminal('expression'), ')'), Sequence ("sum", '(', NonTerminal('ident'), ',', NonTerminal('numiter'), ',', NonTerminal('expression'), ')'), Sequence ("prod", '(', NonTerminal('ident'), ',', NonTerminal('numiter'), ',', NonTerminal('expression'), ')'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/diagramexp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Choice (0, NonTerminal('diagcomposition'), NonTerminal('diagiteration'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/diffequation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (NonTerminal('''), NonTerminal('ident'), '=', NonTerminal('expression'), ';')
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/digit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
"0--9"
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/envexp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/environment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence ('environment', NonTerminal('{'), NonTerminal('definition+'), NonTerminal('}'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/explicitsubst.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (NonTerminal('expression'), "[", NonTerminal('definition+'), "]")
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/exponent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence ('e', Optional ( Choice (0, '+', '-')), NonTerminal('digit+'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/float.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (Optional ( Choice (0, '+', '-')), Choice (0, Sequence (NonTerminal('digit+'), '.', NonTerminal('digit*')), Sequence (NonTerminal('digit*'), '.', NonTerminal('digit+'))), Optional ( NonTerminal('exponent')))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/folder.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Choice (0, "..", Sequence (Choice (0, "h:", "v:", "t:"), NonTerminal('name')))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/foreignexp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Choice (0, Sequence ('ffunction', '(', NonTerminal('signature'), ',', NonTerminal('includefile'), ',', NonTerminal('library'), ')'), Sequence ('fvariable', '(', NonTerminal('type'), NonTerminal('identifier'), ',', NonTerminal('includefile'), ')'), Sequence ('fconstant', '(', NonTerminal('type'), NonTerminal('identifier'), ',', NonTerminal('includefile'), ')'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/funnames.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (NonTerminal('identifier'), Optional ( Sequence ('|', NonTerminal('identifier'))), Optional ( Sequence ('|', NonTerminal('identifier'))))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/includefile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Choice (0, Sequence ('<', NonTerminal('char+'), '>'), Sequence ('"', NonTerminal('char+'), '"'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/insouts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Choice (0, Sequence ("inputs", '(', NonTerminal('expression'), ')'), Sequence ("outputs", '(', NonTerminal('expression'), ')'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/int.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (Optional ( Choice (0, '+', '-')), NonTerminal('digit+'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/label.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (NonTerminal('path'), NonTerminal('name'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/lambdaabstraction.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (NonTerminal('\'), '(', OneOrMore (NonTerminal('ident'), ','), ')', '.', '(', NonTerminal('expression'), ')')
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/letrecexpression.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (NonTerminal('expression'), 'letrec', NonTerminal('{'), NonTerminal('diffequation+'), Choice (0, Skip(), Sequence ('where', NonTerminal('definition+'))), NonTerminal('}'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/library.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence ('library', '(', NonTerminal('filename'), ')')
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/math.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (NonTerminal('expression'), Choice (0, '+', '-', '*', '/', '%', NonTerminal('⋀')), NonTerminal('expression'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/numiter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
NonTerminal('expression')
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/path.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (Optional ( '/'), Optional ( OneOrMore (Sequence (NonTerminal('folder'), '/'))))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/patternabstraction.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence ("case", NonTerminal('{'), OneOrMore (NonTerminal('rule')), NonTerminal('}'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/primitive.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Choice (0, NonTerminal('number'), NonTerminal('route'), NonTerminal('waveform'), NonTerminal('soundfile'), NonTerminal('cprimitive'), NonTerminal('mathprimitive'), NonTerminal('delayandtables'), NonTerminal('uielements'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/progexp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Choice (0, NonTerminal('abstraction'), NonTerminal('application'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/signature.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (NonTerminal('type'), NonTerminal('funnames'), '(', OneOrMore (NonTerminal('argtype'), ','), ')')
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/time.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Choice (0, Sequence (NonTerminal('expression'), NonTerminal('@'), NonTerminal('expression')), Sequence (NonTerminal('expression'), NonTerminal(''')))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/type.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Choice (0, 'int', 'float')
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/waveform.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence ("waveform", NonTerminal('{'), OneOrMore (NonTerminal('number'), ','), NonTerminal('}'))
).addTo()

4 changes: 4 additions & 0 deletions docs/rail/3-syntax/withexpression.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ComplexDiagram(
Sequence (NonTerminal('expression'), 'with', NonTerminal('{'), NonTerminal('definition+'), NonTerminal('}'))
).addTo()

Binary file modified docs/sitemap.xml.gz
Binary file not shown.
11 changes: 11 additions & 0 deletions docs/tutorials/rnbo/exfaust1/exfaust1.dsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

import("stdfaust.lib");

declare options "[midi:on]";

vol = hslider("volume [unit:dB] [midi: ctrl 7]", 0, -96, 0, 0.1) : ba.db2linear : si.smoo;
freq1 = hslider("freq1 [unit:Hz][midi: ctrl 1]", 1000, 20, 3000, 0.1);
freq2 = hslider("freq2 [unit:Hz][midi: ctrl 2]", 200, 20, 3000, 0.1);

process = vgroup("Oscillator", os.osc(freq1) * vol, os.osc(freq2) * vol);

Loading

0 comments on commit 7de8702

Please sign in to comment.