Sampl is a powerful audio graph builder integrated in the Unity Editor. It allows
you to bake unique procedural audio clips from noise, trigonometric or instrument primitives,
coupled with mathematical operations, filters, etc.
Sampl works natively with any render pipeline on any Unity version above
The whole package is contained in the Sampl folder resulting from the import. You can move it wherever you want, but it is recommended to keep the same folder structure.
You can create a new Sampl graph from the right-click context menu in the project window.
Each graph is saved as a SamplObject in a
.asset file. You can recognize
them with the Sampl logo. You can change some parameters from the inspector such as sampling frequency and the length of the clip.
You can open a graph by double-clicking on it. The window will try to dock itself next to the scene window, otherwise it will appear as a floating window, that you can dock manually.
The navigation in the main canvas is similar to other graph editors such as Shadergraph or the animator. You can zoom in/out using scroll wheel, move by click & drag on the mouse scroll wheel. Nodes can be selected by clicking on it, by drawing a selection rectangle, or by using Ctrl + click. You can drag selected nodes to move them.
You cannot select or interact with links: they are 100% visual. To add a link, you must click and drag from an output, links cannot be created backwards. To remove a link you must remove one of the nodes it connect, click the red cross on its left, or connect another link to the same output node. There is a header on the top of each window containing information and buttons to save, save as, reload the graph, export all the export nodes, or show/hide stats on each node.
To create a new node, just right click on the canvas and a context menu will appear. You can also start building a link and releasing the mouse left button in a free space, the same context menu will appear and the link will be associated with the first input (if there is any) of the added node. You can cancel by pressing ESC.
Some nodes contain one or several parameters. You can change their value as a text edit or as a slider with the mouse.
Once you are happy with a node's clip, you can export it as a static wav clip using an Export node. You can use as many Export nodes as you want. So far, Sampl only supports WAV export.
You can browse the path by clicking on the Folder icon. Make sure you select a path included in the Assets folder of your project.
Multiplies two inputs. The Multiplier parameter can adjust the output gain.
Adds the two inputs
Subtracts the input A with input B
Clamps the input in the given range
Inverts the phase
A multiple parameter node to control the pitch and a relative temporal offset
Linear interpolation between 2 clips A and B, following the T curve. T's [-1,1] interval is remapped according to the provided parameter.
Temporal warping feature. For each sample in the output clip :
Linear remapping of the input [-1,1] into the given interval.
Experimental. An FFT based GPU equalizer. Uses unity built-in curve widget.
Simulates reverb. Useful to "smooth" an aggressive sound
Echoes with linear damping. You can control the number of feedbacks and their interval with the given parameters.
Amplifies samples that are above the intensity threshold given in the parameters.
Returns the intensity envelope of the input signal using the given window size. The ouput is always in the [0,1] interval.
Simulates a downsampling to the given number of bits.
In and Out fading.
Experimental. Useful to get a proper stereo track from a mono one.
Constant value in the interval [-1,1]
Pure sine wave. You can control the frequency, phase and the amplitude from the parameters.
Sawtooth wave. You can control the frequency, phase and the amplitude from the parameters.
Triangle wave. You can control the frequency, phase and the amplitude from the parameters.
Square wave. You can control the frequency, phase and the amplitude from the parameters.
Linear pure sine riser. You can control the frequencies, phase and the amplitude from the parameters.
Outputs a sine with a variable frequency, depending on the input and the remapping parameters provided. You can choose the sine type, phase, window size (the lower the better but also the longer to process), and amplitude from the parameters.
Outputs the given AudioClip. An operation is performed to adapt the sample rate to the graph's one, but the samples are not stretched to fit the length of the clip, padding 0 are added instead (or the clip is clamped if it is longer).
Experimental. Close from the pad sound but dissonant.
Experimental. A simple synth sound.
Draw your own curve from unity curve input widget.
Export any clip you want. Mono and Stereo are supported. The provided path must be in the Assets folder from the current project.
The graph is frozen, spams errors and no nodes are showing up
The Unity Editor can sometimes free up memory and delete some nodes audio clips. Try to change tab if it is docked, right click on the frozen sampl graph tab and select "close tab". Reopening the graph should solve the issue.
Feel free to contact me via e-mail: email@example.com