v0.5.24 Code Generation of Factory Presets

Discussions related to Testing VisualSwift. This version is not available anymore, please go to the VisualSwift - Music forum above.
Post Reply
jorge
Site Admin
Posts: 53
Joined: Sat Nov 30, 2019 2:17 pm

v0.5.24 Code Generation of Factory Presets

Post by jorge » Tue Aug 11, 2020 12:49 am

This version introduces code generation of Factory Presets

TestFlight v0.5.27 for iPadOS

Here's a a very simple example using the new Presets component

example0.5.24.vswift

Below is a screenshot taken from the example schematic:
Image

The example schematic is ready to be exported, the generated Xcode project should build without errors and includes code for supporting Factory Presets.

There are some important changes to this version of the example schematic. There are now two Oscillators. OSC 1 allows detuning.

There is a PitchToFreq component that is now supported by the code generator:

Image

The PitchToFreq component will allow us to modulate the Oscillator using pitch which will be much more natural. For now there is a Detune Knob adding a small amount of pitch between 0 and 1 to OSC 1.

Note that because the Poly audio now converts the Poly Float values from pitch to frequency, now we can feed it a pitch value as shown below ( rather than the frequency used in previous versions ):

Image

You can Show/Hide labels from the context menu at the bottom left of any component:

Image



The main feature of this beta version 0.5.24 is Factory Presets code generation. The code panel has a new tab called "Presets":
Image

The ParamsCreate tab now has extra code to set parameters from Factory Presets:
Image

If you generate an Xcode project from the example synth, build it and install it on an iPad, it should run inside a host with Factory Presets available:

Image

Post Reply