Skip to content

Commit

Permalink
add documentation of granular synthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
gisogrimm committed May 7, 2024
1 parent 5727dbf commit de15ab0
Show file tree
Hide file tree
Showing 4 changed files with 241 additions and 164 deletions.
1 change: 1 addition & 0 deletions manual/documentation.tsc
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
<systime/>
<timedisplay/>
<lsl2osc/>
<granularsynth/>
</modules>
<connect src="a" dest="b"/>
<range/>
Expand Down
51 changes: 51 additions & 0 deletions manual/modgranularsynth.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
Granular synthesis

\definecolor{shadecolor}{RGB}{255,230,204}\begin{snugshade}
{\footnotesize
\label{attrtab:granularsynth}
Attributes of element {\bf granularsynth}\nopagebreak

\begin{tabularx}{\textwidth}{lXl}
\hline
name & description (type, unit) & def.\\
\hline
\hline
\indattr{active} & active (bool) & true\\
\hline
\indattr{bpm} & Tempo (double, bpm) & 120\\
\hline
\indattr{bypass} & bypass (bool) & false\\
\hline
\indattr{durations} & Durations (double array, beats) & \\
\hline
\indattr{f0} & frequency of pitch 0 (double, Hz) & 415\\
\hline
\indattr{gain} & Gain (double, dB) & 0\\
\hline
\indattr{id} & ID used in jack name and OSC path (string) & granularsynth\\
\hline
\indattr{loop} & Time when to loop (double, beats) & 64\\
\hline
\indattr{numgrains} & Number of grains to keep (uint32) & 100\\
\hline
\indattr{pitches} & Pitch numbers (double array, semitones) & \\
\hline
\indattr{ponset} & Onset playback probabbility (double) & 1\\
\hline
\indattr{prefix} & prefix used in OSC path (string) & /c/\\
\hline
\indattr{psustain} & Sustained sound probability (double) & 0\\
\hline
\indattr{t0} & Melody start time (double, s) & 0\\
\hline
\indattr{wet} & Mixing gain (float) & 1\\
\hline
\indattr{wlen} & window length (uint32, samples) & 8192\\
\hline
\end{tabularx}
}
\end{snugshade}

These parameters can be controlled interactively:

\input{oscdoc_tascarmod_granularsynth.tex}
24 changes: 24 additions & 0 deletions manual/oscdoc_tascarmod_granularsynth.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
\definecolor{shadecolor}{RGB}{236,236,255}\begin{snugshade}
{\footnotesize
\label{osctab:tascarmodgranularsynth}
OSC variables:
\nopagebreak

\begin{tabularx}{\textwidth}{llllX}
\hline
path & fmt. & range & r. & description\\
\hline
\attr{/.../active} & i & bool & yes & \\
\attr{/.../bypass} & i & bool & yes & \\
\attr{/.../gain} & f & [-40,10] & yes & \\
\attr{/.../ponset} & f & & yes & \\
\attr{/.../psustain} & f & & yes & \\
\attr{/.../reset} & & & no & \\
\attr{/.../t0} & f & & yes & \\
\attr{/.../wetapply} & f & & no & \\
\attr{/.../wet} & f & & yes & \\
\hline
\end{tabularx}
}
\end{snugshade}
\definecolor{shadecolor}{RGB}{255,230,204}
Loading

0 comments on commit de15ab0

Please sign in to comment.