in version 2015.5.31.0
NOTE: The memory management was changed, the borlndmm.dll is no longer needed
– and it is not available for download anymore. This needed some code
changes here and there and I may not have touched all affected places, please
report bugs on the forum, will fix ASAP.
Added a debugging aid — Find small values — to help find possible
calculation bottlenecks in a patch. This can be accessed from the action menu or
from the Debug Screen [F5]. This feature will search for values that are either
denormal or are in the range (-1e-50 … 0) or (0 … 1e-50), small
values being not zero. Hit F10 to highlight the modules having such values on
their inputs / outputs or as internal signals. In the Debug Screen [F5] a listing
will be made of the found modules and the pin / knob names found (Name [Title]
[inputs] [outputs]), knobs are listed as inputs. For compiled versions that have
profiling support (which the regular releases do not have) the small value finder
is part of the profile action.
Changed ranges a bit for knobs in dB modes and for Mute buttons – these are
off now when their value is <= -140dB. Changed the dezipper algorithm in
the same way, values <= -140 dB result in zero.
Made an option to allow for undo after a patch was saved, it is off by default.
Likewise added an option for undo after load.
Tab order of form and module elements sorted – some elements do not properly
show focus, that needs a fix too.
Cleaned out the source code a bit, removed unused units from the project, unused
code from units, etc.
Experimented with allocating memory in large chunks. This was not really a good
idea; having many smallish chunks performs better. Anyway, that idea is tested
Added user definable scales for the SeqRandom module, these will be loaded from a
file wren.scale which must be in the same folder as the Wren executable
file. When this file does not exist Wren will create it, after that you
can edit it with a text editor (like Notepad for instance) and Wren will not touch it anymore.
A Line like
(which is a dash for the scale name and no notes in the scale) adds a separator to
the selector's popup menu.
This unfortunately will likely break existing patches, in that for the SeqRandom a
different scale will be loaded than was saved into the patch. Also this will make
patch sharing a bit fuzzy as there may be a different set of scales in effect
— but then again, such already was the case for wave players and Talkie
files as well.
Some designer changes: added a 'DynamicStepCount' property for TKnobsValuedControl
and for TKnobsXYControl. When this field is set to true (by default it is false)
and the value for the control goes over StepCount - 1 StepCount is fixed to value
+ 1. This was needed to make the user definable scales work properly. This is also
used for ModTalkie to allow it to have more than 32 voice banks. Also added a
design time field '_DesignerRemarks' on TKnobsValuedControl and TKnobsXYControl,
this is just a comment field, it is not used at run–time.
Added Dyads and Triads to the default scales for SeqRandom. Should make it easier
to program scale modulations using chained SeqRandom modules.
Made Picture and Docs properties for modules, so that information is no longer in
TImage / TMemo components in the designer, which cleared stuff up a bit there.
Added a help item to the module popup menu showing the help text in a message box
instead of in the web browser.
Edited help texts a bit to get the greatest nonsense out.
Had some inputs exchanged on the audio rate square OSCs – PWM was not
working – fixed now.
Changed the memory manager – this revealed some allocation and de-allocation
issues, Like freeing something in the Median module that was also freed by the
system. Some more things like that … anyway, trying to get rid of the
memory manager DLL, reasoned that it would not be needed. Ah, and in allocating a
new synth patch as well.
Changed the knob ranges for the SeqRandom module slightly, to be able to better
set fractional values.
Freq input was not found on Pluck module, stopping execution of the user
interface. Added the forgotten freq input. Also added some exception trapping to
make connection errors issue a log item only and to not prevent the system from
running the patch. The wires will still be there in the editor (and they will be
saved on a patch save), it is the compiled patch that does not know of the input,
and so the connection will not be made.
Made the program write logs to a log file (wren.log in the application directory).
This feature will be always on at program start, but it can be set disabled from
the Settings Screen [F3], which will cause the feature to be turned off once the
settings are loaded from the ini file. If the file exists it will be erased at
program startup, so there will only be a log of the most recent program run.
00:00 000 probing PortAudio DLL presence, looking for "portaudio.dll"
00:00 319 PortAudio DLL found
00:00 321 probing FFTW DLL presence, looking for "libfftw3-3.dll"
2015-05-30 12:36:43:622 compiled synth patch
2015-05-30 12:36:43:656 starting PA [api: "Windows DirectSound", in: "ADAT 1 (1+2) (R ...
2015-05-30 12:36:43:684 PortAudio was started
Made Graphs Screen [F4] to be invisible by default, it can be enabled in the
Settings Screen [F3]. Changed the drawing of the main PageControl a bit so it does
not show the nearly invisible tabs anymore (there were a couple of pixels in the
Removed the About Screen – program information can now be found on the
Settings Screen [F3]. The About button there and the About item in the Help menu
now go to this site.
Bugfix on Pluck module, on FM modulation it could end up with a negative array
index, causing a program crash.
in version 2015.5.12.0
Bugfix for crash at 00801B75 ... code tried to read data from a synth patch that
did not exist.
in version 2015.5.10.0
Changed the knob ranges for a lot of modulation attenuators … old patches
will need some work … especially FM control for oscillators. The new ranges
make it easier to set fractional values, like 0.5 etc. I'd probably need to change
the patch format so that it stores values and not knob positions, so that on an
internal change it could find the closest value. I had that before, but it was
messy, so don't know.
Made a RangeConverter module, or a linear mapper. For each input the selected
input range is mapped onto the range set by the low and high values knobs. The
input ranges are chosen to map the standard LFO output ranges.
Added a four channel mixer MixQ1to1.
Changed the layout a bit for MixM4to1 to make it clearer what are mix inpits and
what are level control inputs — hopefully.
Added a new tab on the module selector – 'Note' – and moved some
modules into that from the Control tab, it was getting a bit crowdy there.
Fixed an issue with knobs: with a high opacity setting the red rectangle
indicating selection would not be visible.
Changed knob painting a little to remove the faint rectangle it would always show.
Changed VU meter peak and valey indicator fall-off rates to be more consistent
over various sample rates, buffer sizes and channel counts.
User set lights update rate was not restored after program restart – so it
used a fixed value of 43 ms … until the setting would be manually changed
— fixed now.
Added a new connector and wire color, Lime (bright green), to indicate control
rate logic signals. Changed several modules for that.
New wave types for LFO's — 'Random Square' and 'Random'. The 'Random' type
is white noise.
Fixed bug in template support – loading or saving a template would change
the internally stored filename of the patch so that a later save action would
overwrite the template and not the patch. Also made the filename visible again in
the window title. Filename and patchname can be different …
Changed the help for the Pulses module to explain why it does not always listen
to the frequency setting, also changed the default mode for it to not be 'Async'.
PinkFilter had denormals – fixed now.
The denormal preventer itself would create denormal exceptions during debugging
when the value passed to it was a denormal already, changed the code to first
check that condition (in debug mode denormal checking is on to be able to find
such issues) – fixed now.
Added signal normalization to all mixer outputs.
Changed sensitivity of PM input for ModResonator to be 32 times less sensitive.
With the previous settings subtle modulations were impossible.
Added patch changed warning on loading a new patch or a template. This can be
disabled in the Settings Screen [F3] – 'on load warn for patch changed'.
Starting to add un-attenuated frequency control inputs to modules, sofar Osc,
Square, Pluck, OscTrig, SquareTrig, SVF and HrastSVF. These will just be added to
the value set by the frequency control knob(s).
Changed the detection for unconnected modules. When a module has no connectors it
is regarded to be connected. When it has no outputs it is regarded to be connected
when an input is connected. Finally when it has outputs it is regarded to be
connected only when an an output is connected.
Added pass-trough mode to the mute buttons of the FreeVerb and GVerb modules.
Changed the order of items in the module popup-menu to make it less likely to
delete selected modules by accident.
Added input level control for Resonator module, as it is way too loud for
non impulse like inputs. For single sample impulses it's fine at 0 dB.
Added a debug like thingie that can be turned on in the Settings Screen [F3] – 'show lights time' which for each update cycle shows the amount of time
spent in updating the lights in the user interface. This can help to set the
'update rate for lights' parameter – it would not make sense to set the
update rate higher than what the system can handle.
Fixed bug in 'Recent Files' mechanism, menu items were not freed but deleted only
– this led to memory corruption on patch load / save actions.
Added input type selector for Pan and XFade modules. Default type = [-1…1]
to keep existing patches compatible.
Added a new pitch shifter module which can be accurately tuned in semitones and
cents. It has exponential pitch modulation and the delay length can be set to make
a trade–off between quality and delay. This is a delay line based shifter,
not an FFT based one, meaning it will have some 'clasical artifacts'.
Changed some memory allocations to make sure they are atomic and non blocking on
the real time thread. Eventually all should be made like that, but some were a bit
easier to do …
in version 2015.4.25.0
When I googled for Delphi gverb I got this page back pretty high … which
prolly means I should actually make that gverb thingie (as there seems to not be a
Delphi translation for it yet) … in fact I just did a code translate on it
… a bit more work needed to make a module and then some testing of course.
Would love to hear an FDN based reverb …
Ok … here is a proto … its not 100% stable … when I change
the max room size from 1000 m2 to 0.01 m2 in an instant it
can produce invalid floats. Changing the relative (actual) room size is OK though,
and added a modulation input for that for some nice effects. Also some oddities
with the spread control still, on a patch recompile spread goes to zero it seems.
Spread and Max room size are non-realtime controls, and will give zippery side
The issue with sudden max room size changes got fixed, there was some out of
array memory addressing. The issue with with the spread control stay, and when the
effect runs for a long time the signal levels will explode.
Ok, spread control is fixed, there was an issue with initialization order. Also
found a way to control the 'explosiveness', this was related to room size
modulation, by changing the amplification factor in the FDN matrix thate is
control, setting it to 0.45 instead of 0.5 seems to work without altering the
sound too much. Also reduced the zipper effect a bit on changing the max roomsie
and the spread by flushing all internal data on changes.
Changed the maximum room size to be 6400 m2 and the maximum reverb
time to 30 minutes with an amp factor of 0.46 currently — seems stable,
0.475 was unstable.
Changed the spread control to multiply by 100 before it gets into the actual gverb
code, the control still goes from 0 — 1. with 180 it would try to make
negative length delay lines, I calculated 160 to be the limit, Super Collider
seems to allow for a maximum of 100 … the web is not clear on this …
I thought one to be pretty wide already … oh well 100 it will be.
Added modulation inputs for damping, reverb time, tone, early level, tail level
and dry level. These are all clipped into a [0,1] range and multiplied by the knob
setting. So the knob sets the maximum value, the modulation can lower that only.
Added a mode parameter to select between rounded or relatively prime length delays
amd between the original and an alternate FDN matrix. See the module help for
details. Differences are quite subtle, mode 1 is most edfficient computationally.
The GVerb port is in the released Wren now and in the published source
Settled on the following ranges:
- MaxRoomSize from 1 to 6400 m2
- RoomSize internal minimum is 0.01 m2, Roomsize is a fraction 0 to
1 of the maximum size, but it will never go under the internal minumum. It
is possible to get some glitchy results with this still, but that seems nice
- Spread ranges from 0 to 1 but is internally multiplied by 100.
- Reverb time is from 5 ms to 30 minutes.
- FDN matrix multiplication factor is set to 0.43, which has been stable here
for a couple of days now under wild modulations. The alternate matrix uses 0.73.
Made the Average module clear it's internal state on a system reset, so that it's
outputs will always start at zero after reset. This way an averager after a
constant module will always make a smooth start from zero on it's LP output after
a reset, and the HP output will always make an initial spike under those
Removed the dezipper action fom the Constant module's mute control so it can be
used as an on/off switch.
Found some addressing bugs, where indexing constants from one module type were
used in another … changed the scoping of the indexing constants so that
such a thing can not happen anymore.
in version 2015.4.12.0
I seem to have fukt the Vocoder, it is way too loud … hmm … I had
changed some math to a complex data type … innocently enough it seems
… build 103 seems to be ok still. Ok it was in the Convoder instead where
I forgot to divide by the Attenuation factor needed (16777216 so there is the
reason to be LOUD) … got fixed for this release.
Made a version check in the help menu, and also added button for it on the about
tab. Using your default browser it will bring you to the Wren web site
which will then do a version check based on the Wren version passed to
Added a light left of the CPU load indicator that lights up red for a couple of
seconds when any internal audio buffer over or underflows occur. The CPU load can
go above 100% before this will happen. And conversly it can go red when the CPU
load is below 100%. Not that you'd not have heard it … but still …
it may show the actual cause of odd things happening … my algorithms being
too slow …
Changed the FreeVerb parameters (for the Reverb module) to their original
settings, but as they are recalculated when the sample rate is not 44k1 the
selected parameters may not be the best (i.e. not relatively prime) — this
may need some more coding.
For example see the JCRev implementation from the Synthesis Toolkit
(this one sets the next available prime value for delay lengths recalculated for
new sample rates). Might also want to implement JCRev as a 2nd reverb algorithm.
Still need to do some tests on this … I did not like the reverb very much
as it was … too much high frequeency tone like stuff is/was going on to my
Another one to look into could be gverb.
Gverb also enforces the delay lengths to be prime. There are some other similar
implementations around, some simpler (so less CPU cycles needed). For some
examples see the Artificial Reverberation section at ccrma.stanford.edu.
It seems better now, ensured all delay lengths to be prime, but no check was
made to see if they are relatively prime, so under some conditions two might end
up having the same length.
Changed the 2to1 switch, it actuallly is a 2to2 switch now connecting (in1,in2) to
either (out1,out2) or (out2,out1) depending on the selection input.
Added two new modules, DigiMux and DigiDemux, for which the routing is sleected by
a couple of digital selection inputs. A bit like the CMOS analog switches, except
they are one-way only in Wren of course.
Added a zero / hold mode selector to the DigiDemux which in hold mode causes the
last output value the be held when an output gets deactivated. In zero mode the
output value will go to zero.
Added a programmable frequency divider. A low division and a high division factor
can be set and with the select input it is possible to change the division rate
between these two values. A step value can be set as well, the amount to add to
on each increment on the division factor.
in version 2015.4.6.0
The global tuning parameters were not working properly, fixed that.
in version 2015.4.4.0
Removed all Jittik scripting stuff — took too long to get it stable —
must be a bad idea.
Made peak (black) and valey (white) indicators on main VU meters. The peak
indicators are dynamic, the valey indicators show the lowest value seen since last
reset (to reset click on the textual representation for the min / max values). The
peak and valey indicators currently are mono, i.e. the same for left and right,
taking the extremes of left and right values. Changed the colors for peaks and
valeys, peaks are white no and valeys black.
Sanitized the VU code a bit, and made the peak and valey level indicators to work
per channel instead of Left / Right combined. Also added a valey value label for
each pair of channels. The labels still show the extremess of the Left / Right
Recolored the Seq16 module chain input and the out output to red make it show
those run at audio rate. With the xfade feature set to one these can be used as
user programmable wave forms.
Renamed parameter pasting into value pasting.
Changed the bitmaps and painting for knobs so that they will be painted better on
non gray-ish backgrounds too now.
The red box to indicate the knob being focused (and processing keyboard input) is
now drawn around the knob as well, instead hiding behind it on the right and
bottom sides. The up/down clickers were resized a bit to make rtoom for that.
MIDI modules were not working anymore, forgot to make them control mode modules
after the slow / fast mode changes in the previous release — fixed now.
Changed internal scaling for envelope times to not use a time in seconds anymore
but a a range [0,1] which makes it easier to have properly working time
modulations. Some existing patches probably will need envelope parameters to be
changed (only when the use time modulation).
Added a pattern module, meant to be used for rhythmic figures in a more compact
way than can be done with step sequencers. Basically it is a set of eight
dividers, when a divider is started it will copy the trig input to the output on
the first count only. Then when the divider counted down to zero a next divider
will be searched, skipping all dividers with a count set to zero. When all
dividers have their count set to zero there will be no output pulses.
Added an EuclideanScale module, a bit after what Kyma has in version 7, can set
the number of divisions for the octave, and then a pattern selection can be
applied to that. An ocatave still spans a factor of two with this.
Added an Interpreter module, it executes forth code at control rate. This is
experimental, undocumented and subject to change. For now eight inputs are put
onto the forth stack. Then a deferred forth word is called from Wren.
This word can be hooked by custom forth code and that code should pop the stack
values to do something with them. Outputs can be set from code by calling a
predefinedootput word whenever such is needed.
Added a Convoder module. This module performs multiplication in the frequency
domain which is equivalent to circular convolution. Nothing very speciall but it
can give some nice reverb like sounds based on its input signals. It can sound a
bit vocoder like too when used on speech signals.
Added a logic selector module, that when the select input is inactive passes its
inputs A resp. B to its outputs A resp. B. When the select input is active it
passes inputs A resp. B to outputs B resp. A (i.e. it swaps the signals then).
in version 2015.2.26.0
Had an integer overflow in the Seq16 module when the module did not get clocked.
This would stop sound generation in a particular patch after about 6 hours. The
Integer is a counter used to measure the time between clocks and is used for
interpolation. I've put a cap on it's value
Implemented value pasting, but did not test it yet. The idea is to select some
modules, then do a copy to clipboard for those. Then select the same module
structure elsewhere in the patch, or in anoter Wren incarnation's
patch, and then paste the values over to that selection to get identical knob
settings there. One could copy over the steps from a set of sewuencers to another
set of sequencers for instance.
It seems to not work yet, more later. Ok, there was an error for checking
It works now.
All in all that got about 10% off from the current patch's CPU load.
Made ModCompressor about 5 times as fast by getting some calculations out of
the loop and optimizing the remaining ones a bit.
Sped up LFOs by about 10%.
ModReverb was sped up by about 15% — also changed the execution order
of the allpass filters to be the same as in the original code, not sure if
that would change anything (sound wise).
Sped up envelopes a bit by using table lookups for the power function.
Re-implemented the FIsSlow mode request flag. A while ago I had settled on
executing all modules in slow mode and only the ones needing fast execution in
fast mode as well (with the FIsFast flag). With the reintroduction of the slow
mode flag it is possible again to have fast mode only execution. I'm getting more
detailed profiling information this way and patches seem to perform marginally
better too. Module constructors need to now set Fast and / or Slow mode request
flags always or their DoTick and / or DoSlowTick method will not be called (the
TMod base module is neither fast nor slow). [Slow being control rate / blue
signals, fast being audio rate / red signals].
Found hat denormal numbers could occur in SVF (again) and in FreqShifter modules
resulting in stuttering for some settings. Added some Normalize calls to fix that.
CSV player would play 11 channels only instead of the 16 it was designed for
— fixed now.
SVF Q calculation was wrong, changed it. It is still wrong but at leeast it is the
same as on the Hrast Filter now (I should change both to use 1 / Q internally
instead of 1 — Q … or maybe not … to not break patches).
Added a clocked delay module.
Added a bottom label to he graph to show timing to be in milli seconds (for some
reason I always think it to be micro seconds), also added checkboxes to enable or
disable individual traces.
Changed Pad module looks.
The Filter bank does not work yet.
Could use a SeqRandVals analog to SeqRandom, but then for random non-note values
— no need for that, it is easily patchable.
in version 2015.1.31.0
Got some 15% off from the execution time of the FreqShifter module, still not
understanding really why it takes so long to compute. Well … 70 to 80%
goes into the calculation of the Hilbert transform … but then again that's
just about 100 multiply / add instructions. The vocoder does a lot more than that
in about the same time. Hmm … maybe the vocoder does not do that much more
… also looked at the compiled code for the FreqShifter, it is not that bad
really, so this is it I guess.
Mute on Square and SquareTrig modules was not working, fixed.
Triangle amplitude was a factor four low after the anti-alias modifications, fixed
now (for Osc and TrigOsc modules).
Pad module, with an X and an Y output, both simultaneously controlled with a
in version 2015.1.23.0
When the FFTW DLL is not present some patches will not work. They will load though
but they can not be compiled. When an old compiled patch was in memory that one
will keep playing, and when there was no patch there will be silence …
will need to issue a message for this situation. For now it will be the vocoder
module only causing this issue.
I've changed things so that an affected patch will load and compile but any FFTW
dependent modules in it will just do nothing — a one time warning will be
shown for this situation.
When words.lpc is missing and a Talkie module is used there will be a NULL pointer
issue. I've changed the code a bit such that the Talkie module will show
'words.lpc missing?' in it's bank selector control when that file could not be
found, or when it could not be interpreted. The file will be looked for in the
Wren executable directory. Will try to get some better diagnostics on
this at a later stage (for the case of parse errors).
Bugfix for SeqRandom, when 128 notes were in the scale there would be an integer
Added an exponential FM input for Talkie, and put a frequency range clip on it
from 0 — System_Rate / 2. With no FM connected it will behave like the
previous version. Also changed the layout a bit to create room for more controls.
Added a bank select input, which when it changes value will overrule the manual
bank selector control. Also made it work a bit different, Talkie will now only say
something when it sees an upgoing edge on the start input (and it is no longer
possible to change the phrase (or bank) while Talkie sqeaks).
Added trigger mode to SR FlipFlop, so it can now be edge or level triggered. The
default mode is edge triggered for compatibility with old patches, However I also
changed the workings a bit such that when a reset condition is present that will
always overrule the set condition.
Implemented anti-aliasing for all audio rate oscillators. Algorithm based on this article about polyBLEP and the implementation of the
HrastOsc, which uses a form of polyBLEP as well. I've added a band limiting level
control, with a default level of about 1.5 — this will change the sound for
existting patches — for better usually. For some special cases like
modulating a delay line or a nicely whistling patch you may want to set the
B-Limit control to zero. For high pitched voices you may want to nudge it up a bit
from the default value.
Some stability issues with the anti aliasing code, had to mod the code a bit for
that — copied from HrastOsc. The BLEP stuff did not like phase accu bound
over/under-flows at all.
Added a 'friendly' label field in the designer for value controls, so the text in
popups can be a bit more descriptive — filled in some, not all yet.
in version 2015.1.18.0
Moved TerraGen module from Osc tab to FX tab. Reorganized LFO tab a bit. Made a
couple of modules a tad smaller.
Changed the Debug Screen [F5] and Settings Screen [F3] a bit so they only have the
buttons needed locally in the right pane.
Clipped all PWM to be in an interval of [ 0.01, 0.99]
I renamed a 'reset' input pin to 'res' on one of the sequencers, on reloading a
patch with that you may loose connections — I will not fix that, and will
keep the patch version at 2 as well — sorry about that.
Experimenting a bit with Talkie. And … we have liftoff — Wren speaks! Now I need to think about how to select what to speak from the 1200 or so
letters / numbers / words / phrases available. When Talkie grows up it may look
I settled on that FTTB. Phrase selection is messy, but for random phrases its ok
now. I like this module :-) Frame speed is liniarly modulatable between 0 anf 80
Hz, sample rate is liniarly modulatable between 0 and 16 kHz.
Would like xfade on seq16 module … it would need to calculate a time guess
between steps … hmm … it would act one step late then on tempo
changes. Ok, it can actually calcultate a period estimate on each clock edge, and
it can be made such that when the xfade factor is zero it would not delay. It can
however produce large over and undershoots then when the actual period changes
fast. This can be clipped though, such that the final value is just reached early
(or late …).
With that I think I found a reasonable implementation for the single sequencer
case (it works on direction reversal too). Should check it to work for chained
sequencers as well, which probably it does currently not, but this may be
Experimenting with a Sequencer Sequencer now, to make chained seuencers more
reliable and easier to set up. Especially with interpolated sequencing.
This seems to work well for chained interpolated sequencing too (although there
still is a reset related issue). The clock speed is very high, to not have to wait
too long for a trace to be made.
Top trace is clock in (trig), then clock out (trig, with bit of delay). The orange
track is reset. Then the enable for the top sequencer (for 16 steps), purple is
the enable for the bottom sequencers (8 steps). Green is the output of the top
sequencer, blue the output of the bottom left one (not cross faded) and the the
red trace is the 100% cross faded output of the bottom right sequencer. (The
bottom two sequencers have the same step settings to be able to compare crossfaded
and normal signals.)
Only the last sequencer in chain should have the xfade turned up, it will handle
the upstream sequeencers too then.
An asside: It is interesting to see how close this is to multi-stage envelopes,
only the sustain phase is not there. With a small mdification on the trigger LFOs
this could be done too, they would need a hold input only. The sequencer
inerpolation could easily be made exp or log as well, might do that anyway.
Ok, that works … now the backwards stuff … seems to be working too
Except reset is not perfect yet when running backwards … when the last
sequencer has less than 16 steps the sequencers before will not start on the last
There seems to be no such thing as a perfect reset, I've added a couple of reset
modes for the SeqSeq module each having a different effect on how on how patterns
will be played.
in version 2015.1.4.0
Removed vocoder startup glitch.
Made sliders, a 16 step sequencer would fit now.
Made an audio mixer with two busses, 8 mono inputs with pan control and two bus
level output controls. Also added mute and solo buttons on the inputs. It is
chainable for when more inputs are needed. The first solo button seen will be the
effective one, and an active solo will suppress solo actions in a chained module.
Varous issues with clocks. Square oscillators and LFOs started with a low output
instead of a high, divider module would start on a down going edge and the Counter
had a wrong start state. Sequencer would not always reset on short reset pulses.
Also there were some race conditions in the Divider and the Counter making reset
give unexpected results. Also the Sequencer output was one step off, at least
… after the other fixes … GateSeq needed some mods too to make
sequencer sequencing working, and its reset did not work nice either.
Added random and clear buttons to sequencer, added an active input as well to
allow for sequencer sequencing.
Added active input to GateSeq to allow for sequencer sequencing.
Added reset input to Divider module to be able to use it for sequencer chaining.
The example patch here shows how to make a 16 step sequencer out of 11 step
sequencers — this is scalable to 16 sequencers, and to different sequencer
lengths as well.
Added lights for GateSeq steps, added Clear and Random buttons as well.
Added a button left of the control panel with the main volume controls to quickly
hide and get back those controls (near the top).
Added a direction input for the GateSeq.
And there it is … added a seq16 module. This one can sequence notes or
values, it can be used for sequenced sequencing. It has a direction input and a
random and clear buttons.
Directional sequencing is not direcly compatible with sequencer sequencing as
shown in the image to the right. You'd need more logic for that, try to use a
GateSeq instead of the Counter.
Source code release.
so anyway … your typical 41 step sequencer with gates, trigs, notes,
volumes and filter cutoffs would look like:
in version 2014.12.30.0
Added a VU meter clear on audio stop option, the option is on by default. Also can
double click on any VU to clear them all.
Some code refactoring for file selectors and display editors into a
Images for mute buttons
Increased maximal compresssor gain to 64 dB.
Color modulation for most noise modules was not working, fixed that.
Added a basic vocoder. Note: this needs the The FFTW DLL to be present.
Support for two template files, a save function in the file menu and two load
buttons in the editor. Also added export to file for selected modules and import
from file to addth modules in tha tfile to the current patch … however
that still sucks as the added modules will not go into drag mode …
in version 2014.12.22.1
in version 2014.12.21.0
MidiPlayer needs reset input and done output, the system reset does not work on it
Changed channel offsets, depending on midi file type, ch 1 will be the first
usable channel, skipping the meta channel for type 1 MIDI files. Added reset and
done, fixed reset issues.
Issue with channels on MIDI modules, fixed now.
Program crashes on exit with incoming MIDI it seems, put a gard on that.
Issue with MIDI command processing on other channels than ch 1 — thank you
Steve for testing :-)
in version 2014.12.20.1
Oh fuck … and now it does not start properly when an ini file is present,
selected devices are forgotten. Ok, it will in Legacy mode, but not for PortAudio
Ok, seems to start now properly with and without ini file and it seems to remember
the device selections for both legacy and PortAudio modes properly noww.
in version 2014.12.20.0
Added 'lowest' and 'highest' value outputs to Median module. Also allowing now for
even valued settings for the bin size — a binary or trinary sorter can be
made this way. Note however that an even setting for the bin size results
in the median being the average of the middle two values (after sorting)
and thus that this needs not be a value that was actually present in the input
stream. The lowest and highest values will always be values that were present in
Working on a simple MIDI player thingie — implementation will likely change.
There was a memory allocation still left in the Median module's DoTick method,
removed that one. It caused occasional runtime errors.
TransInv module could do an occasional division by zero, fixed.
SeqRandom does not recalculate the scale after a scale change, it needs the range
to be changed or the transposition. A patch recompile also works. Fixed that.
The MIDI CC output module had no synth binding, making it unusable, fixed that.
2014-12-19 : Need to review Reset behaviour, the response to the Reset button. It
may not actually cause a change in output values for some modules?
The envelope modules did not set their envelope values to zero after a global
reset indeed, fixed now.
This may not not be completely fixed yet … reset should last for
'system_rate / control_rate' periods I think.
When wren.ini is not present things will go wrong terribly … made it
survive that situation.
in version 2014.12.17.0
I've installed Asio4all … ever since the RME ASIO driver works too, and
I have 8 in and 8 out channels available :-)
Not all channel dB labels were updated, fixed that.
Added an ASIO control panel button on the device selection screen.
Added an audio test button on the device selection screen.
Added ASIO channel selection on the device selection screen.
Some bug fixes in device selection, and a better reset after device changes
… such that the device test function could actually work without
in version 2014.12.12.0
Bug in TimeToSeconds routine, the conversion produced an invalid index. Fixed it.
in version 2014.12.11.0
Added a couple of new modes for the Constant module, one of them being Note mode,
for easier note selection.
Changed LfoTrig Ready ouput to only fire after a cycle was ran, and not just when
Added a TransInv module for note Transposition or Inversion, it can do so with a
modulo operation being applied.
Found a better way to color modules.
In the Settings Screen [F3] you can set a default color and an opacity value
which determines the color intensity.
in version 2014.12.10.0
Added a GateSeq module, an event sequencer with per step 'off', 'trig' or 'gate'
Added a Pulses module, generates pulses with random intervals, either synced to
an internal clock or free running. The 100th module type!
Added Exponential random distribution and Lambda control to RandomWalkLFO
module, as a sort of jumpiness control.
Added Exponential random distribution and Lambda control to RandSig module, as a
sort of jumpiness control.
Added a search option for un-connected modules (in the Edit menu, or use
Frequency range selector for RandomWalk LFO was not working, FM was not working
Put a guard on negative module top offsets to avoid ghost modules to be in the
patch. This might solve bugs 2014-11-28 and 2014-12-08. Some old patches may
look a bit strange after loading, as any ghost modules will be made visible now.
Changed the patch writer such that it will no longer write out modules with
negative X or Y positions, it will instead shift all the modules by the largest
offset it found.
Some bug fixes for sequencers and for the morse generator for division by zero
and an undefined string index respectively, these were related to Port Audio and
thread issues. Same sort of issue with XYScope, fixed too by making history an
internal signal instead of a patch signal.
in version 2014.12.6.0
Error in Delay module. When using PortAudio the setting of the delay length is
from a different thread than the module execution. It did happen that way that the
memory would be invalid at execution time. Fixed this.
Some issues with memory allocation for delay based modules and the EuclidianRhythm
module. Memory was allocated and de-allocated form the audio thread. I changed
that. Ah, and also the Under/Overflow debugging was a violation … moved
those to the Lights updater (out of the audio thread). That way the normal memory
manager can be used it seems — except maybe for debug messages — hmm
… nope it can not.
Changed the implementation for multi channel such that it will open up to 8 input
and output channels but never more than the Port Audio interface reports to be
present. In theory this should give multi channel IO under ASIO (at least with my
RME fireface UFX — except that ASIO refuses to work at all with it).
Currently there is no way to specify which channels will be used though. I did some
measurements on audio round trip times, see here for some results on my computer — not breath taking, but
better than it used to be.
Device selection sucks … it is needed now to restart Wren when
other Port Audio devices are selected — there is no need for that really, it
is a bug. Changed things a bit, this seems to help. Also moved the buffer size
selection to the wave device selection dialog.
in version 2014.12.3.0
Improved XY scope a bit, it's not super but it found some bugs for me already.
Added a Compare module for signal comparisons, > = and < outputs. Equality
holds when the inputs differ no more than the value set by the equality range
Added a 12 to one cross fading multiplexer.
Added a HardClip module for hard signal clipping, not really meant for audio
distortion but more for signal conditioning.
Bug in delay module where the longest delay setting produces no signal output at
all (on the variable delay time output). Fixed it, the interpolation code was
wrong, every exact integral delay time (in terms of sample counts) would produce
silence as the output on the variable delay time output.
Bug in the RandSig module, it should produce smooth glides from one random value
to the next, but it has jumps in the output value. Ok, solved, it was smooth for
the special case of non inverted full output swing signals only.
Bug in cents calculations, for oscillators a change of 25 cents amounted to a
semitone … and for the Resonator module it was not working at all. Fixed
Error in the naming for the displays for cents, they were called 'fine' instead of
'cents' and could thus not be found back by the program — fixed.
I've made patch reset on render start optional, by default it will be on. When it
is on the patch will be reset when rendering starts, when it is off rendering will
continue from where the patch was. Setting can be changed from the
Settings Screen [F3].
Changed the Rotator to map an input swing from zero to one to a rotation of 2 *
PI radians, this was just PI. Old patches will rotate twice as fast now.
Changed the Median module to have a larger maximum on the number of bins, 99 now.
2014-05-17 : The terraGen module has some issues to be solved. Seems fine now
after adding input clipping, have been using it in couple of patches.
Added info popups to more valued control types, like mute buttons and mode
Added mouse wheel support for knobs, this is off by default which can be changed
and configured from the Settings Screen [F3]. On my laptop's mousepad two finger
click drag will result into mouse wheel actions, and with that one a sensitivity
of 50 seems about right. For fine control use the arrow up down keys while the
mouse is still in the control.
Added a 'use unfocus' option that is effective only when mouse wheel support is
on. When active and the mouse moves out of a mouse wheel controlled control the
focus will be set to the channel one output volume control. This option is on by
Changed the default width of the panel with the main volume controls to only show
channel 1. This can be changed by using the splitter to the left of it. Still
… for the time being only channel 1 will be working for audioio. Also made
the volume controls and device selectors for the non-working channels invisible
for now and hid the unusable I/O connectors on input and output module as well.
Also all the non working multi channel code was removed, this will have to be done
differently once using Port Audio. The device selector was changed to allow for
only one input and one output device to be selected, for multi channel operation
the devices will have to support multi channel operation.
Added experimental support for Port Audio, this needs a portaudio.dll file to be
present in the application directory or somewhere on the Windows path. It will not
work properly for multi channel I/O yet (i.e. ASIO). For Port Audio the buffer
size needs to be set smaller than for legacy mode, large buffers may perform
Sped up calculations a bit by getting rid of some FModulo operations, and
optimizing the remaining ones with some assembly code.
Removed the global Scala related settings, any future Scala support will be
through the Scala module.
Added a Scala module, which can read in a Scala scale file (.scl) and a Scala
keyboard mapping (.kbm). It translates incoming note values according to the Scala
files loaded into a signal suitable to control FM inputs. For this to work as
intended oscillator frequenciy should be set to 440 Hz, for filters likewise.
Sofar I've tested this only for a trivial mapping using all keys 1:1 with a 12 TET
scaling. This works, but there probably are some subtleties that I missed
And indeed some other scales I tested give output differing from what Scala
computes. Anyways …still experimental.
Text sequencer bug, it does not work at all, and causes a division by zero. Ah no
… it wants commas, and it does not like spaces … fixed the spaces
issue, the commas are needed still. And the help was wrong, it said spaces where
commas were meant. It still needs a new parser … as mentioned elsewhere.
A couple of changes on it: values can be just values or notes, a modiefie like Hz
or s can be part of the value when it is numeric. Values need be separated by
commas and after a value a repeat count can be set separated by a colon (:) from
the value. When there is no repeat count the implicit repeat count is one.
Anything not understood will be interpreted as a rest. A rest or a repeat will not
trigger the gate ouput (new to).
An example string 'A1:2, 333 Hz:3, _, C1' first A1 will be output for two clock
periods, then 333 Hz for 3 clock periods, then a rest for one clock period (
extending the 333 Hz signal for yet another clock time) and finally C1 for one
2013-11-20 : Make durations for the text sequencer, and a more forgiving parser.
2014-11-30 : For the text sequencer add a way to play rests, that is add a gate
output and some special character to indicate that a rest should be played, e.g. a
note time slot is to be skipped.
Added atan mode to TerraGen module, to be used as a soft clipping function. I've
been complaining about the TerraGen a bit in the past, but it does not seem too
bad now. I did add some input clipping to it, maybe that changed things. It did
not get too much thought.
Had forgotten to turn on the MustSave flag for the display of the Notes module, so
notes were not saved. Fixed now. Also text values were not quote escaped, so when
a quote was added to the text the patch would not load anymore after a save. Fixed
Instability issue with SVF when Q = 0, fixed. In older versions set Q no lower
than 0.01 (1e-2).
Start of rendering should first issue a reset. The sequence F9 to stop the patch,
then hit reset, then start rendering does not seem to work. Will have to look into
Two things, FixZippers was not called on render start, meaning knob values would
be stuck low for a while when a patch had not run before render start, and Reset
was not issued either, meaning rendering would start off from where it was. Fixed
Bugfix xfade module ... and the same one in Pan module - had mixed up the knob
and the control input
Bugfix pluck module, the mute button was not working.
Added random distribution controls to SeqRandom module, and removed the change all
input from it. Also added random distribution to RandomWalk module.
Added color control modulation to Noise, NoiseTrig, NoiseLFO, NoiseLFOTrig and
RandSig and modules.
Added modulation for the alpha parameter on the Average module (untested).
Added a phase detector / filter module, as a building block for PLL circuits.
Fixed the chart mode to work for non debug/profile builds again.
Pluck oscillator suffered from denormals .. fixed that.
Added a Morse generator.
Bugfix for the RandomWalk module, the random distribution stuff made the code
essentially non working.
XYScope module, this is not functioning properly yet.
SeqRandom, a random notes module. A scale can be set with a base note and a lowest
note and a highest note. A step count can be set and on each trigger a next random
note fitting the set conditions will be played. When the last step is passed the
sequence will repeat from the start. A pulse on the random input will select a
new set of notes for the sequence. Sequences will not be saved with the patch.
Made the reverb module to scale with the sample rate, it should sound better at
higher sample rates now.
Made new images for signal polarity selectors on LFO and Envelope modules.
Made a multi sample and hold module, one trigger input controls multiple sample
and hold units in one module.
Added some extra in / out pairs for the multi multiplier module.
PluckOsc added, a Karplus-Strong model.
New mixer, T1to1, a one input chainable three channel mixer.
Logic divider forgot to clear the ResetFlag, so after one reset it would stay in
reset mode - fixed that.
Fixed a bug in most of the sequencers .. had 'optimized' some code, they were not
working at all anymore.
Added a new FX tab and moved some effect modules there. Also moved the wave
player module to the OSC tab.
Added a zero crossing based frequency detector.
Added a resonating filter with decay instead of Q control.
Added a Bode frequency shifter module. The Bode shifter shifts all frequencies by
an equal amount, meaning that harmonic relations between overtones willl be
Added a running median filter. The median of a set of values is calculated as the
middle value of that set after the set was ordered small to large (only odd sized
sets are supported to a maximum size of 25). On each clock a new value is added to
the set and the oldest value drops out, then the median is calculated and sent to
Changed some initialization stuff, had to modify the HrastUnit a bit for that.
A counter module, can count binary or sequentialy, up or down and it has a reset
Fixed bug in pan module, the knob would go center to right only, not left to right.
Added a multmult module, where four inputs are multiplied by one common
multiplier into four seperate outputs.
For BitCount = 1 I've changed the gate module back to it's old functionality. The
boundary conditions were a bit odd with the new code.
Added level modulation to mixers MixM4to1 and MixS2to1.
Added position modulation level to Pan and XFade modules. The controls are fully
open by default to be compatible with older patches.
Added control depth knob to formant filter. The control is fully opened by default
to be compatible with older patches.
Made glyphs for output mode selector on some LFO and Envelope modules.
Made glyphs for wave shape selector on some OScillator and LFO modules.
Made a compressor, or actually it's an AGC more. It is feedback based in that it
tries to maintain a set reference level at the output. In doing that it can both
apply gain (for weak input signals, with a maximum of about 30 dB) or reduction
(for strong input signals, also about 30 dB). Reaction speed can be set with an
Attack control and fallback is controlled with a Release control. A pre-amp is
included to be able to shift the set point easily.
Made a KleeBit module, which is 8 steps of a Klee sequencer. The bits can be
chained to make a 16 or more steps Klee sequencer .. with some external glue.
Added a 3dB/octave (10db/decade) pink filter, to pinken up white noise.
Instability issue in Flanger/Chorus module solved.
Output types for all LFOs: 'Normal', 'Inverted', 'Positive Only', 'Negative Only',
'Positive Only Inverted' and 'Negative Only Inverted'.
Activity light on NoiseLfo was not working.
Output types for AHD and ADSR envelopes: 'Normal', 'Inverted', 'Normal Negative'
and 'Inverted Negative'.
Looks like the knob popups can be hanging at times ... made a breakout for it F8
Colored border on modules, user selectable.
Slow fall off on the display module (VU meter) .. instead of drop to zero
immediately ... which sorta worked with the old lights update regime but not at
all with the current one.
Finally found a nice compact form for an Euclidean rhythm generator (a variation
on Bresenham's line drawing algorithm, read more about that here), and turned that into a new module. [On the sequencer tab, 1205]
Added a fast mode to the display module to have the meters react faster.
This sometimes better fits the data to be displayed.
Added a CSV data module, it can read a Comma Separated Values file with up to 11
columns of data. The data is being clocked out with a trigger input, it can play
forwards or backwards and there is a reset input. There is an option for playing
the file data once or looped. When the mode is set to once the data sequence will
start again after a reset signal on the reset input (or the global reset button
being clicked on). Comments in the CSV file start with a # character, when a
comment is on a non-data line it is ignored when the file is read, when it is at
the end of a data line it will be displayed in the module for that step in the
sequence. [On the sequencer tab, 1206]
Added digitizing to the logic modules, they used to convert the input into a
single bit value (which is still an option) but they can now digitize to longer
bit vectors as well. The logic function is then executed on the vectors instead of
the single input value. Also changed the XOR and XNOR functions to perform odd and
even parity respectively. Added two new functions ONE and NONE that behave like
the old XOR and XNOR functions did, the output going active / inactive
respectively when precisely one input is active. The bit vector stuff will not
work on these two new functions.
2014-04-08 : Floating point overflows in places ... some input clipping is needed,
but not sure why signals get so large in the first place.
Okay .. it was SVF instability ... probably fixed now.
There was still debug info present in the release build, removed that, shrinking
the exe size quite a bit.
Changed the way rendering works .. it does not generate live audio anymore. The
thread's priority level is set to 'idle' so it wont hog a complete CPU. A limit
can be set for the maximum recording duration, or it can be set to zero (or blank,
or any string value that can not be translated into a float value) to make it
record till the file reaches a size of 2GB. At any time the rendering can be
stopped which will close the file. Likewise, leaving the program will close the
file too .. or when an exception was raised .. the file may be shorter then than
Set all floating point exceptions to be masked for release version. Also clearing
any exceptions after Tick executed (so errors wont propagate).
Added a property selector utility to set the value for the ControlType property
on knobs more easily. This is a module design time feature only, it changes
nothing for the synth itself ... although ... for some odd reason this halved the
size of the executble tho o_O .. for the curious, it's in the knobs2013.pas unit.
There seem to be some numerical instability issues in one or more of the modules
... the program crashed on me last night. This may have to do with FPU exception
masking and how windows deals with those, when the masking is set different from
the windows masking even something simple like Abs( reasonable_value) my trigger
a floating point exception.
Added sum output for scaler module, it gets the sum of the other four outputs.
Made 'inverted' output for envelop module, this one get the difference between the
peak value of the normal output and the current value of the normal output. The
idea being that with this output it is easy to make something get louder when
something else gets softer. Using the peak value will prevent the inverted ouput
from going negative, but it will take some time to settle. Also added a peak decay
option on this with selectable time.
2014-06-02 : Render to file option. Rolled my own RIFF writer for this .. may do a
RIFF reader too now .. it seems not too hard ... anyway, did some tests and the
WAV played in VLC, WMP and CoolEdit here, so guess they are fine ... no file
length checks tho ... so be careful when it goes over 2 or 4 GB, the code could
do 4 I think.
Had to split the knobs2013 componenents into a runtime and a designtime package.
Turns out that in order to be able to make design time property editors on has to
specify an extra compiler option -LUDesignIDE (or elese Delphi will not find it's
design interface ... ), but this causes the program to be linked with runtime
packages ... which then in turn causes users to complain ... Anyways, when you
want to compile your own you need to uninstall the knobs2013 knobspackage and then
install the new Knobs2013Design package. Also added a couple of missing icons to
the DCR file. This explains the file size halving too.
Made popup menu's for selectors, so you can now right click on say an Lfo speed
selector or a mute button to select a value directly instead of clicking to cycle
through the values. Selectors currently are indicated by a yellow border.
Working to port over a FlangeChures and a PitchChanger I had laying around since
the Turbo Pascal days .. or was that Borland Pascal ... old anyway .. from the
days one could directly make interrupt code in Pascal. There seem to be some
overflow issues to be sorted out. Some issues still with negative rates for the
Removed profiling code for releases, this makes the program run a bit faster.
Fixed hint / popup window for knobs to keep displaying when the value is changed
with the mouse. F8 will show all knob popups .. not too useful actually.
After patch recompile dezippers are set to the final value immediately now to stop
the slow glide-in that happened.
Changed the module designer a bit, such that the module's PageName property will
be automatic if the module happens to be on a TTabSheet with a non-empty Caption.
Changing some signals for AHD and ADSR modules to control rate to make them more
Changed the trigger lights on AHD and ADSR modules, they are on now when the
envelope is in some active state, i.e. they now indicate envelope activity and no
longer the presence of a trigger signal. This works better for very short trigger
pulses taht would not be visible otherwise.
Removed the denormalized exceptions from the floating point exception mask to be
able to find cases of denormalized numbers. As a result of that I've added
Normalize() calls in a couple of places (Including the HrastUnit).
This code will only be active in debug compiles of the program, to help find
execution speed issues.
All of this seems to have sped things up a bit.
Made update rate for lights user settable (settings page - press F3).
Interpolating random signal generator. Moving from current value to random value
at a rate determined from the frequency it runs at - smoothly.
Mute was working the wrong way around on Noise and TrigNoise modules. And for LFOs
Made a built in rectifier for the intdif dif output, so it can be used for trigger
on signal change operations more easily.
Square thingies not working unless PWM modulation is being opened up - fixed.
Envelopes still act strange ... seems better now, removed some code
2014-05-01 : HrastOsc vintage knob must not be in the knob map - fixed that.
User selectable sample rate: 44k1, 48k, 88k2 or 96k. Also changed the control rate
from being 'sample rate' / 4 to 'sample rate' / 8.
Moved intdif module from control page to filter page and changed it's type ID from
312 to 1003. When an old patch will not load anymore please change the type ID
for all intdif modules (type = 312) to 1003 - this can be done with any text
editor (like notepad).
Removed lights handling from audio loop and made it timer driven instead.
Removed some synchronization code that did nothing.
Some more LFO range issues fixed, forgot range for SquareLfoTrig.
Added Lin range for LFOs, the FM will work linear then too. For trig LFOs this
means that they may never finish their sequence.
2014-04-30 : AHD envelope has clicks it should not have. Had A and D shapes
reversed, looks like a click on the attack phase is more acceptable than one at
the end of the D phase. This may need a bit more work later.
Added exception handlers for synth engine crashes. This will stop audio
processsing and issues a message about that .. instead of the usual four ...
Fixed square LFO speed range selection, I had a typo.
Made the quantizer working again, also it displays note fractions now instead of
arbitrary numbers. To do that I moved the rationals source module from the project
itself to the knobs2013 package.
Fixed LFO out lights, another typo.
Major overhaul in how knobs are handled internally. The patch version has to be
changed as a result, and current patches will not be compatible with this.
Made a popup menu for connectors - this sort of works .. break is not quite what
I'd like yet - it should break the downstream connections, but currently also
breaks the upstream one. Delete deletes the whole connection tree where the
connector is on. Disconnect removes this one connector from the tree.
Made a module popup menu too, with cut copy and delete options.
Made a knob popup menu as well, added default values for knobs and the default
can be set from the popup. Knobs can be locked and unlocked from the popup too.
When an editable display is associated with a knob editing the value through the
display will lock the kob to prevent the edited value to be changed by knob
movements. The lock can be undone by unlocking the knob or by setting it to it's
For 'File Save As ...' cut out the path in the save dialog to only show the file
Changed the connector coloring a tad.
Had messed up oscillator frequency calculations, they were two octaves too low,
2014-03-03 : It happens on module insertions that the lights will not be updated
(properly) anymore. It can also happen that a knob on a module controls something
on another module. So it looks like the patch compiler has some issues. This seems
2014-03-28 : When an envelope of type AHD or ADSR is in fast mode and the patch is
then saved the values will not always be properly set after reloading the patch.
The same thing happens when such a module is copied and pasted. This seems fixed
2014-04-01 : There is an issue with Knobs and setting values ... like an
oscillator frequency by default is 440.00 Hz but after some messing with the mouse
on that knob it is impossible to get that value set again. Only way to get it back
is to drag the knob all the way to one of it's ends, then use the cursor up/down
keys to try to get past that end, then use the cursor keys to step all th way back
to the value ... yuck. This seems fixed now.
Defaults, stepcounts and ranges for several modules were changed.
Sequencer chaining would crash things on a floating point overflow, fixed.
Adding lookup tables, my earlier conclusion that they were faster only marginally
was wrong. This will limit modulations to foreseen ranges though, and some value
clipping will be needed. See previous point tho .. this would be needed anyway.
Cleaning up code, there are duplicates all over the place and bits of unused code
Adding speed ranges for LFOs, Slow, Medium, Fast and BPM.
Selectable waveforms for LFOs and oscillators to reduce the amount of modules a
bit. Sine, Saw, Tri and Square.
Changed peak level indication for main in and output displays to slowly fall off,
also added clip indication with a highlight color on those.
Reversed knob direction for Average filter. So now the cutoff frequency get higher
when the knob is turned right, like how a filter works.
Removed the logic gates And .. XNor and replaced those by one Gate module with a
selectable logic function. The same functions are available still.
Removed variable input count stuff, it had been disabled anyway.
Fixed bug in rectifier module, full wave mode did not work.
removed linear LFO and OSC stuff .. need to rethink that.
Repeats on the up / down knobs under knobs work just once and then never again.
Ah .. forgot MouseDown := False in MouseUp handler, that fixed it.
Added HrastSVF 12 / 24 dB resonating filter.
Added cents control to HrastOsc
Frequency fine control for oscillators added, in cents. Range -50 to +50.
Added dB / Linear control selection to mixers, changed some attenuaters to dB
mode here and there, added some level controls here and there. Renamed some
stuff now that the patch versions are incompatible anyway.
De-zippering added for knobs on modules, inputs to be de-zippered can be added to
a knobmap (at compile time) and the process will then be automatic.
This will not work on mute buttons that use the SignalToLogic function to decide
what to do, best to use SignalToMute( FInCache[ x]) * OutLevel or somthing alike
instead of an if then else thingie.
Added exponential FM control for wave player. To use this the speed input must be
connected to a signal source unequal to zero.
Could have made the speed input to default to 1 to solve this , but then the
position input would need the speed input to be set to zero ... compiled patches
ideally would know if an input is connected to solve this issue.
Added color to random walk module
Added attenuators to square LFO and OSC modulation inputs.
Added time modulation for AHD and ADSR envelopes.
Fixed bug in AR and ARretrig envelopes that became visible after adding the
dezipper code, it would try to dividde by zero.
Fixed bug in triggered LFO and OSC modules, they did not stop running always.
2014-04-02 : Module paste can still mess up the module layout, and also can get
modules at negative offsets still it seems.
Looks like I finally nailed the the problem where the module lights stop working
after a new module got inserted, or rather it would stop after a module was moved
in the editor ... this was partly treated as a patch change and partly as a no
change, resulting in the editor modules to be renamed and the patch not being
recompiled - I've deleted the editor name changing line.
Repeats on the up / down knobs under knobs work just once and then never again.
Ah .. forgot MouseDown := False in MouseUp handler, that fixed it.
2014-04-01 : Unit interpretation in displays for knobs is not correct.
I think this is not relevant anymore.
Fixed some graphics stuff that got broken over the months.
Window state saved in ini file, when the window was maximized on exit it will be
set maximized again when the program is restarted. Minimized state is forgotten
Added a reset button which resets some module state on click, there are likely
issues with this as reset is not as trivial as it may sound.
Added mutes per input on MixM4to1 and MixS2to1 modules.
Solved issues with output module, it does not need to be connected anymore and
there can be as many as you like. The AudioOut module now gets compiled as any
other module, removing the need for special stuff in the main program. TAudioOut
is now treated as special in the synth engine itself. All inputs from aydio outs
will be added there and the result is then copied over to the output terminals of
the synth patch. The output mapping stuffthat was used is no longer needed.
Solved issues with input module, it does not need to be connected anymore and
there can be as many as you like. The AudioIn module now gets compiled as any
other module, removing the need for special handling in the main program. It is
now treated as special in the synth engine itself where values from the engine's
input queue are copied over to the outputs of all the AudioIn modules present in
the patch. The input mapping stuff that was used is no longer needed.
Solved issues with knob default values of zero to not be used.
HrastProgrammer contributed a HrastOsc bandlimited oscillator module, thanks
I Changed the module layout a bit for this one to make it fit better into the
scheme, and also added a little code to it to make sure that disconnected cables
on control inputs will be reset to zero.
Fixed the situation where knob values zero could not be a default, changed some
default settings for some modules.
Added the program icon to the source tree.
Fixed the project's DPR file, Delphi had put some crap in it.
A little speed up for filters and oscillators, changed some signals to control
rate. FM stuff may sound a bit different now, however I did not change the linear
A patch changed warning on program exit. This is on by default but can be turned
off in the settings screen.
Added a debug indication in the title bar for the debug version. A debug compile
is less efficient and should not be released by me, but I might do so by accident.
Removed dependency on TLed component. New Source code (2014.3.29.0, build 57)
Stereo wave players. Wave players still need to be 44k1 samples/second 16 bit wav
files, but now both mono and stereo files can be loaded. For a mono file the L
and R outputs will have the same signal, for a stereo wave the mode can be set to
stereo or mono. When set to mono L and R will both have the sum (divided by 2) of
the left and right channels from the wave. In stereo mode the L output will have
the wave's left samples and the R output will have the wave's right samples. Added
an indicator to show wheter the wave itself is stereo or mono.
Chainable 6x6 mono matrix mixer module.
Source code for 2014.3.28.0 (build 56) is made public, see the Downloads section. The customif components have changed,
so they will need to be recompiled too (before recompiling the new application).
Search shortcut changed to CTRL+F
Bugfix - some patches could not be read, and sometimes modules could not be copied
because the patch reader would not accept values in scientific notation (like
Search function on module title, highlights found modules, F7 shortcut.
Support for netMIDI / tangle, MIDI over TCP.
This got implemented by using the Overbyte ICS TWSocket component. When you want
to compile WREN yourself you will need to install that component. It can be
downloaded from here, look
A zipped up netMIDI executable is available for download from here - see the
Downloads section (netmidi.zip). Will make source code
available at some later stage - it is old Delphi code and it needs to be ported
to Delphi XE5 first. The old code is available on request though.
Note that MidiTangle can probably be used as well http://jcfmusic.com/miditangle.htm
Rectifier module, MinMax module, Integrator/Differentiator module, MIDI note
receiver module, MIDI CC receiver module, MIDI note transmitter module, MIDI CC
Horizontal and vertical knob change modes, in addition to the circular one used
now. Built in a treshold for movements as well, such that after the click a
minimum distance has to be moved with the mouse before the value will change.
Ok .. it sorta works .. except for knobs near the edge of the screen ... would
have to make the mouse cursor invisible .. jump to screen center then handle
the moves, then jump back to start location and make the pointer visible again ..
that is for later.
Hit F3 to go to the settings.
Made a 2D vector rotator.
Made a ready output on the triggered LFOs, and a sync output on the other LFOs.
Made a file open dialog on the wave player and now display only the file name and
not the full path anymore. Old patches will still load OK.
Added control knobs to xfade and pan modules.
Added sequencer step outputs that go active when the step is active.
Added sequencer chain input.
Added some mixers, 4 to 1 chainable mono and 2 to 1 chainable stereo.
Fixed the problem where loading a new wave player into a running patch would crash
Made oscillators and LFOs with linear frequency control - not quite happy with
Ratio control module to multiply a signal by some ratio, like by 5/8 for example.
Added D and RS flip flop types.
Combined WavePlayer and WaveStorage modules into a new WavePlayer module that both
has speed and position control. When a patch with a WaveStorage module is loaded
it will be replaced by a WavePlayer module.
Added duration ranges (speed) to AHD and ADSR envelope modules.
Logo and some looks changed.
Help system changed so that it talks about the modules as they appear in a patch
rather than as how they are seen by the synth execution engine. The help text for
the modules is now set from the module designer rather than from code.
When F1 is pressed and a module is selected in the patch editor the help will
try to directly move to the help for that module.
Added images to the hint / tooltip windows popping up from the module selector.
Some scrolling / panning issues .. it still sucks, but less so.
VU meter looks changed.
2013-11-23 : Look at notes / octave setting and the 440 Hz reference setting, does
it really have to affect LFOs too?
No ... made LFOs independent of that mechanism and based on 12 notes / oct and a
reference A of 440 Hz.
A wave player with variable speed playback and made a wave storage unit too, that
one has a position input meant to be controlled from a sawtooth wave. The storage
module seems more flexible, as it is easier to set begin and end points on the
wave by constraining the saw amplitude and offset, and also by FM modulating the
saw there is a form of pitch control. When the saw is inverted it can still play
the wave backwards.
Changed the looks a bit again, new knobs mainly, shifted around knobs, texts and
connectors here and there, fill color for envelope graphs added, clearer
Fixed the issue with moving selected modules being way too slow. However when a
bunch of modules are dragged too high up module restacking may change the order of
some modules still.
2013-11-21 : in TConnector.MouseMove make the wire panel scroll when the mouse
goes out of its visible area, but do not scroll beyond the current size (as
defined by its module content).
2013-11-22 : Autoscroll needed for when modules get dragged out of view and when
wires are dragged out of view. Ths scrollbox should keep the point where the mouse
is in view in those cases.
Implemented "follow mouse" for cable drawing and module placement such that when
the patch editor has scroll bars it is still possible to patch with it.
Semi fixed the arrow icons on the 'noknobs' (as used for instance for note
slection on sequencers). This will need a better soluition at some stage.
Started implementing mousewheel messages to perform scrolling.
Vertical scrolling works OK now, horizontal not quite yet.
Fixed crashing popup editors.
Ported application from Delphi 2009 to Delphi XE5.
Fixed delay control knobs
2013-12-17 : S&H bug, it acts like T&H. Fixed now.
Made the lights update a factor two slower, gives room for about 10% more modules
it is a bit more sluggish now tho, light wise. was about 86 ms, now about 12 ms
or just a tad slower than 6 Hz.
2013-12-16 : Locale issue - patches saved in a locale that uses a comma for the
decimal point will save patches with that comma, but on read back the program
insists on a dot. Ah .. and that went wrong on internal representations too. Looks
like fixed ... global locale settings needed to be set OK. Reported as fixed too
Added focus visibilty and keyboard arrow handling for TKnobsValuedButton(s)
Sped up sine oscs by 25% or so.
Made the bar indicators display dB's instead of arbitraty units, the Display
module also works now.
Got rid of the TKnobsValuedButton)s), made a new TKnobsSelector component which is
smaller and looks better.
Added mute buttons to a lot of modules, about 30 in total, tested most of 'm. The
envelopes have a three mode mute function, it can set the envelopes to pass
through the signal evenwhen no trigger comes in ( pass mode, the other two modes
being unmuted and muted).
Profiler gives some more detail, like wire performance and overhead. The lights
on the modules are nice, but it seems to be like 25% overhead comes from them.
Changed some colors.
Streamlined text to value conversions, so they work the same everywhere now. It
also accept both note notation styles A#4 and A4# now, and even A#4# .. oh well.
Lil fuckup with text sequencer and optimization of initialization code - it
crashed the text sequencer with a division by zero ... anyway, fixed now. It needs
a small modification to the TKnobsDisplay component .. didn't reflect that in the
published source code yet.
Fixed tab order on modules and added tab stops on some controller widgets that
didn't have it yet.
Made all value displays editable (so values can be set with better resolution than
is possible with the knobs). It should also be possible this way to enter
different modifiers from the default one's - like use note names for an
Value displays can be 'tabbed to' as well now.
A new way added to open an editor window - tab to the value display or click on it
and then hit enter.
Several small optimizations in the drawing routines, and less unnecessary screen
and synth updates.
'Move final' behaviour on knobs changed - this mostly affects the delay lines
where new memory will only be allocated when the total time had not been changed
in the last 739 ms.
Added offset parameters for the editor, so modules can have a fixed small border
on the left and top, making it easier to select modules near the left or top.
Changed contact details in the about box, and in this file, to point people to the
Added a RandomWalk module - or brownian noise as some also call it. In this one
a virtual particle performs a random walk in a confined D space, when it hits a
wall it'll bounce off. X, Y and Z outputs are available as outputs.
Made the lock mechanism on the scaler modules work, in lock and antilock modes
the knobs movements are synchronized. This way it is easier to to scale a value
and offset tit at the same time. See it as a modulation depth control.
Some visual details changed, like LEDs a bit bigger, symbols on modules lined up
Envelope shapes in documentation are better now, some preset display types added
for the TKnobsDataViewer component. Mainly a 'design time' item.
2013-11-23 : DEL key not always working for module deletion, and then ctrl+DEL
does not seem to work either. As if the patch thinks deletions are not possible.
This seems fixed now.
2013-11-19 : Get knob changes into undo history. Did it.
2013-11-19 : Compile less often. Did that too.
2013-11-18 : on edits of the text in the text sequencer the synth is reported
crashable, prolly related to the one below. Sofar I've not been able to reproduce
this on various 7, Vista and XP machines. Unreproducible.
2013-11-18 : someone reported an OSC module disappearing - leaving some wires to
go nowhere, prolly related to the one above. Sofar I;ve not been able to
reproduce this on various 7, Vista and XP machines. Unreproducible.
2013-11-18 : there is a bit much latency from input to output. Maybe start using
directx instead of legacy audio., such would prolly improve device name displaying
as well in the audio device selector. DirectX will not solve this for Vista or
later ... maybe look at ASIO later, or the underlying mechanism used by ASIO.
There was a problem when pasting multiple modules with the mouse capture keeping
stuck on all but one module, fixed this.
Some new modules, some bug fixes, renamed all controls, old patches will not load
anymore (but forgot to change the patch version). Old patches can be fixed in a
text editor BTW.
Ran into some float denormalization issues making some patches about 15 times as
slow as needed. Added undenormalization on many outputs and also reconsidered the
antirunaway code a bit. This now prevents absolute signal levels from both getting
too high and too low (too close to zero). erm .. this could be formulated better
... the anti runaway code now also prevents float denormalization to ripple
Added some profiling code, so that one can see now how many processor clocks are
needed for the tick and slowtick module methods. Run a patch for a while, then hit
the profile button. This will make a file profile.html in a data subfolder of the
application folder. So one can see the computational bottlenecks.
The keyboard shortcuts got some more attention, seems ok now.
Added a fixed delay output on delay modules - this one gives the maximum delay as
set by the delay knob, it is not modulated.
Changed the output name for Avreage filter to LP and added an HP out. Also changed
knob response for this module to give better resolution at the high end.
2013-11-25 : New envelopes have clicks that don't belong there, ah no .. it's a
gain issue ... the published version has non working gain, and on trying to fix
that I got the clicks. So ... gain on the new envelopes does not work.
Fixed now, gain works, no clicks.
Added two new envelope modules, AHD and ADSR with them nice envelope displays that
respond to the knobs :-0
2013-11-23 : Divider indicator not working, and some more. Fixed various little
issues for this release, enough to be able to actually do my first noodle with it
Source code for 2013.11.23.3 is made public, see the
Downloads section. The customif components have changed, so they will need to
be recompiled too (and before recompiling the new application).
2013-11-23 : LFOs run a factor 2 too slow. Fixed.
2013-11-23 : Look at filter tuning, needs rescaling like the OSCs had it and it
seemed off before. Filter tuning did not work at all, fixed now and tuning seems
to be about right.
Changed the Looks a bit
Display editors can handle ENTER now inside text, use CTRL+ENTER to close a
Had forgotten to convert the trigger OSC and LFO stuff for expo control. Also
trigger lights on those modules did not work. also had forgotten the SVF.
2013-11-18 : Exponential frequency control. That, and rescaling of knobs for
frequency control on oscillators and LFOs. Also removed the quantizing to knob
steps, so that once editors are available for values all arbitrary values could
be set (within the resolution of an IEEE double float).
Implemeted a setting for notes / octave, not sure how useful that is as it is.
Various changes in the user interface, added an about page, recent file history,
patch name editor, added some keyboard shortcuts (F2 will show the editor, F3
Name changed from 'modules' into 'WREN'.
2013-11-21 : When a new version runs and F1 is pressed the help files should be
regenerated - did it.
2013-11-20 : it was reported that when scrollbars appear displaying the visible
area starts to behave odd, sofar I've not been able to reproduce this on various
7, Vista and XP machines. Ok, I see what was meant now, working on it. Seems fixed.
2013-11-18 : SVF seems to lock up for (very?) high or low FM values. Added
clipping for the sum of frequency and fm to a range 0, 1.
2013-11-18 : Feedback delay loop seems to lock up under positive feedback
conditions. Added cliping to range -16, 16 to input.
2013-11-20 : trig lights on AR modules not working, the names are wrong - changed
2013-11-20 : Note number to signal and signal to note number do not work correctly
for 'negative' octaves - (i.e. A-1) this needs a mathematical modulo calculation
and floored division to make it work correctly. Introduced two new functions
Remainder and FlooredDiv to perform modulo and division for this case.
2013-11-20 : Make a logic NOT module - did it.
2013-11-18 : Pressing DEL in an editor :: Changed the DEL behavior a bit, removed
it as a menu shortcut and instead let the application handle it. the application
will first ask the editor if modules can be deleted, and if so it will do that and
mark the key as being handled (so it will not be passed on to anything else). When
the editor is not in a state where it can delete modules the key will not be
handled by the application and be passed on to the control that has keyboard focus
(i.e. a LabelEditor (for module labels) or a DisplayEditor (for
the notes editor in the TextSequencer). This way the DEL key can still be used for
both functions, delete modules when possible and delete text from an editor
For another way to solve this see http://embarcadero.newsgroups.archived.at/public.delphi.vcl.components.using/201009/1009246070.html
2013-11-18 : pressing DEL in text sequencer editor will delete the module while
the editor is still open, crashy stuff from that
'Solved' with a bit of a kludge - module deletion is not possible when there is an
editor open - either on a text sequencer or on a module title (which has the
2013-11-19 : The resource files customif.dcr and bitmaps.res are missing in the
source zip - made them seperate downloads for now, they go into the customif
2013-11-19 : Get some unused stuff out - diddit.
2013-11-19 : Show input buffer over and under flows in debug screen - diddit.
2013-11-19 : Fix error with quotes on version number - diddit.
2013-11-19 : Make version numbers visible in the program - on the settings page.
2013-11-18 : A shorter delay - made it.
2013-11-19 : Random picks from text sequencer, as a random lookup table - added a
2013-11-19 : Introduce patch versioning, the proposed change from lin to exp
frequency control will make patches incompatible - current patch version is 1.
2013-11-19 : Globals.pas in the customif stuff should be renamed, two times the
same filename is troublesome (there is a globals.pas in the main project too) - it
is glowballs.pas now.
2013-11-18 : color on SVF filter outs is wrong - blue instead of red - changed
2013-11-18 : audio in does not work - it works, but the level display is wrong -
2013-11-18 : audio in does not work, the input values are garbage, this needed
buffering - added buffering