| BdTR with extra features<br/>---------------------------------<br/><br/>Author: Mark Van Peteghem<br/>Based on the instrument BdTR by Atte Andr? Jensen (atte.dk), 2007<br/><br/>This instrument adds extra features to the instrument BdTR.<br/><br/>It has one extra p-field, p4, that is the amplitude. If it is 0 or less it is<br/>in decibels below 0dbfs, otherwise it is multiplied with 0dbfs (so should be 1 or less).<br/><br/>Instead of custom waveforms, it lets you choose between a sine and a triangle.<br/>For the sine you can choose the amplitude of the second harmonic,<br/>for the triangle you can choose the pulse width.<br/>Furthermore you can choose how the sine or triangle should be distorted,<br/>allowing a big variety of waveforms.<br/><br/>The envelope type can be exponential or linear. With a linear envelope<br/>the perceived duration is closer to the one specified.<br/><br/>An optional lowpass filter lets you adjust the tonality.<br/><br/>The RM knob lets you optionally generate a second similar signal with<br/>a higher frequency, that is multiplied with the original signal.<br/><br/>The volume adjust knob lets you adjust the volume so that when p4 is 1<br/>it will actually be 0dbfs. Changing the condition 1==0 to 1==1 prints out<br/>what value should be there to achieve this (set p4 to 0 or 1 to do this).<br/> |