Cylon/Voice Modulation

Algorithm development and general DSP issues

Moderator: frank

Post Reply
kradsith
Posts: 5
Joined: Wed Dec 20, 2006 7:05 am

Cylon/Voice Modulation

Post by kradsith »

Would anyone have any code examples of modulating a voice input with sin wave. Alla Cylon.

Cheers,

kradsith
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Post by frank »

This code will do a basic modulation of the input with a sin wave. It generates the sin wave rather than using the built in LFOs as we want a higher frequency than the LFOs will produce.

The result really should be filtered to give a true Cylon sound but that is left as an exercise for the student :wink:

Code: Select all

equ	s	reg10
equ	c	reg11
equ	freq	reg12
;
skp	run,start
clr				; Clear ACC
wrax	s,0			; Write 0 to sin reg
sof	0,0.5			; 0.5 -> ACC
wrax	c,0			; Write 0.5 to cos reg
;
start:
;
clr
rdax	pot0, 0.05		; Read pot 0, scale to adjust max speed
wrax	freq, 0			; Save the freq coefficient
;
; Do the SIN calculation
rdax	c, 1.0		; COS -> ACC
mulx	freq		; COS*fcoeff
rdax	s, 1.0		; +SIN
wrax	s,0		; Write it back
;
; Do the COS calculation, -SIN in ACC
rdax	s, -1.0
mulx	freq
rdax	c, 1.0
wrax	c, 0
;
; Modulate the inputs and write them to the DACs
ldax	adcl
mulx	s
wrax	dacl,0
ldax	adcr
mulx	s
wrax	dacr,0
Frank Thomson
Experimental Noize
kradsith
Posts: 5
Joined: Wed Dec 20, 2006 7:05 am

Post by kradsith »

Thanks Frank!!

Worked like a hot damb once I got a pitch shift and High pass filter intergrated.

Cheers,
Markus
Posts: 12
Joined: Fri Oct 26, 2007 2:03 am

Post by Markus »

Kradsith,

Can you post your code? I heard that the Cylon voices were generated with EMS Vocoder and a ring-modulator and I'm curious to hear your results.

Marek
BazookaJo
Posts: 2
Joined: Thu Jan 31, 2008 10:10 am

Post by BazookaJo »

Could anyone tell me how to do this through software using a 3rd generation language?
Markus
Posts: 12
Joined: Fri Oct 26, 2007 2:03 am

Post by Markus »

Cylon voice implementation with a microcontroller: http://www.elektor.com/magazines/2008/m ... 2560.lynkx

Marek
BazookaJo
Posts: 2
Joined: Thu Jan 31, 2008 10:10 am

Post by BazookaJo »

Markus wrote:Cylon voice implementation with a microcontroller: http://www.elektor.com/magazines/2008/m ... 2560.lynkx

Marek
Hi there - does anyone know if this will actually sound like a Cylon style voice i.e. a vocoder style simple (mono-pitched) sawtooth-wave sound, or is it just another ring modulator style voice?

Many thanks
Markus
Posts: 12
Joined: Fri Oct 26, 2007 2:03 am

Post by Markus »

I wouldn't expect much since it uses ATtiny45 (which has nothing to do with DSP). It's rather a toy and not a studio effect.

Marek
Post Reply