Page 1 of 1

Cylon/Voice Modulation

Posted: Thu Dec 21, 2006 12:28 pm
by kradsith
Would anyone have any code examples of modulating a voice input with sin wave. Alla Cylon.

Cheers,

kradsith

Posted: Thu Dec 21, 2006 4:55 pm
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

Posted: Thu Jan 04, 2007 5:54 pm
by kradsith
Thanks Frank!!

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

Cheers,

Posted: Sun Jan 06, 2008 2:33 pm
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

Posted: Thu Jan 31, 2008 4:01 pm
by BazookaJo
Could anyone tell me how to do this through software using a 3rd generation language?

Posted: Wed Feb 20, 2008 6:36 am
by Markus
Cylon voice implementation with a microcontroller: http://www.elektor.com/magazines/2008/m ... 2560.lynkx

Marek

Posted: Fri Feb 22, 2008 2:05 am
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

Posted: Mon Mar 03, 2008 4:50 am
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