Go Back   DriverHeaven > Forums > Hardware and Related Topics > kX Project Audio Driver Support Forum > Effects and the DSP
Register Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old Sep 21, 2007, 09:31 AM   #1 (permalink)
newuser
DriverHeaven Newbie
 
Join Date: Aug 2005
Posts: 4
newuser is on a distinguished road

Turn this Lfo into "audio frequency oscilator" for FM

This is "Kevin's LFO.da".
Where and how would I modify the code to increase it to audio rate?
Also should I modify the "edit source" or "edit dump" version?

(this is what i get when i rightclick on the .da file and select "edit".)

; Generated by kX DSP Editor - microcode dump
name "~ LFO";
copyright "Copyright (c) 2002-2003, Kevin Horden";
engine "kX";
created "29/11/2003";
guid "80a7ade9-e912-4c29-b994-639bfe97ca6d";
; Low Frequency Triangle and Square Oscilator
; For driving vib, trem, phase, chorus etc.
; Rate is scaled so 0%-100% equals 0.2 Hz to 20 Hz
; Registers
output Square
output Triangle
control Rate=0.4 ; Initial slider position is at 6.6 Hz
static tri=0.0 ; Counter for triangle wave
static dir=1.0 ; direction of wave
temp RateScaled

; Code
interp RateScaled,0.00001666666,Rate,0.0016666666 ; scale the slider control
macs tri, tri,RateScaled,dir ; increment/decrement the tri counter
skip ccr, ccr, 0x10, 0x1 ; if there is a saturation then
macsn dir, 0.0, dir, 1.0 ; flip the direction by skipping one
macsn dir, 0.0, dir, 1.0 ; inversion.
macs Triangle, 0.0, tri, 1.0 ; output the triangle wave
tstneg Square, tri, 1.0, 0.0 ; square the wave and output it.
end

-newuser
newuser is offline   Reply With Quote
Old Sep 21, 2007, 09:56 AM   #2 (permalink)
Maddogg6
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 3,575
Maddogg6 will become famous soon enough

Use wavegen 3.0 - its output covers the entire frequency range of the DSP.
(sample rate of kX DSP is fixed at 48Khz... so - 20Khz is the max possible)

But I dont know how that would be used for 'FM'... ??

The stereo pilot freq I suppose.. its 19Khz. let us know how that works out for you.
Maddogg6 is offline   Reply With Quote
Old Sep 21, 2007, 10:21 AM   #3 (permalink)
newuser
DriverHeaven Newbie
 
Join Date: Aug 2005
Posts: 4
newuser is on a distinguished road

Thanks
Exactly... I tried to edit the post to change the title to remove "for FM"
should have been AM (as used with "Kevin's VCA")

-newuser
newuser is offline   Reply With Quote
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

 
Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
Artwork by Allan 'Zardon' Campbell, vBulletin implementation by Craig '5320' Humphreys based on original artwork by Ratchet.

All times are GMT -5. The time now is 04:51 PM. Copyright ©2008 DriverHeaven.net