Csound Csound-dev Csound-tekno Search About

Re: metalic timbres / ring modulator

Date1997-06-28 01:00
FromToby
SubjectRe: metalic timbres / ring modulator
Christian Lyra wrote:
> 
> Hi all!
> 
>         I'm trying to make some metalic timbres with csound 

I trust that you have looked into Frequency Modulation in
the audio range.  Using uncommon modulator to carrier frequency
ratios can yield remarkable chime, bell, or no-fundamental
metalic sounds.  

Toby

	-There otta be a law-

Date1997-06-28 22:31
FromCharles Baker
SubjectRe: metalic timbres / ring modulator
Christian Lyra wrote:
>
> Hi all!
>
>         I'm trying to make some metalic timbres with csound

> > Toby wrote:
> >
> > I trust that you have looked into Frequency Modulation in
> > the audio range.  Using uncommon modulator to carrier frequency
> > ratios can yield remarkable chime, bell, or no-fundamental
> > metalic sounds.
> >
> >

Absolutely! Also "ring modulation" is amplitude modulation without  
additional "dc" offset.
Meaning: just modulate a sound's amplitude with another sound  
(usually just a sine wave),
without adding a constant amplitude value in:




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10379;
          28 Jun 97 23:01 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa10502;
          28 Jun 97 23:01 BST
Received: (qmail 24440 invoked from network); 28 Jun 1997 22:01:06 -0000
Received: from hermes.ex.ac.uk (194.83.11.25)
  by pat.bath.ac.uk with SMTP; 28 Jun 1997 22:01:06 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (WAA12699); Sat, 28 Jun 1997 22:55:58 +0100
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Sat, 28 Jun 97 22:55:52 +0100
Received: from filoli.filoli.com [206.79.61.10] by hermes via ESMTP (WAA12696); Sat, 28 Jun 1997 22:55:49 +0100
Received: from sunspot.filoli.com (mailhost.filoli.com [204.162.1.17])
	by gatekeeper.filoli.com (8.8.6/8.8.6) with ESMTP id OAA00144;
	Sat, 28 Jun 1997 14:56:00 -0700 (PDT)
Received: from pine.filoli.com (pine [204.162.1.216])
	by sunspot.filoli.com (8.8.6/8.8.6) with SMTP id OAA07506;
	Sat, 28 Jun 1997 14:55:59 -0700 (PDT)
Message-Id: <199706282155.OAA07506@sunspot.filoli.com>
Received: by pine.filoli.com (NX5.67f2/NX3.0X)
	id AA04989; Sat, 28 Jun 97 14:55:59 -0700
Content-Type: text/plain
Mime-Version: 1.0 (NeXT Mail 3.3 v118.2)
X-Nextstep-Mailer: Mail 3.3 (Enhance 1.3)
Received: by NeXT.Mailer (1.118.2)
From: Charles Baker 
Date: Sat, 28 Jun 97 14:55:58 -0700
To: csound@maths.ex.ac.uk
Subject: Re: metalic timbres / ring modulator (REPOST...oppps)
Cc: Toby , Christian Lyra 
References: 
	<33B45408.7F03915A@rcsreg.com>
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


REPOST Opps : lost the end of the message!
Christian Lyra wrote:
>
> Hi all!
>
>         I'm trying to make some metalic timbres with csound

> > Toby wrote:
> >
> > I trust that you have looked into Frequency Modulation in
> > the audio range.  Using uncommon modulator to carrier frequency
> > ratios can yield remarkable chime, bell, or no-fundamental
> > metalic sounds.
> >
> >

Absolutely! Also "ring modulation" is amplitude modulation without  
additional "dc" offset.
Meaning: just modulate a sound's amplitude with another sound  
(usually just a sine wave),
without adding a constant amplitude value in:

 	    (usually 1)  (audio freq.,usually)  (sine, usually)
a1    oscil someamp,     somepitch ,           somefunc
a2    soundin somefilecode
aout = a1 * a2


(aout now has a "ring-modulated" copy of the sound in file pointed  
to by "somefilecode")
NOTE: adding an amplitude value to a1: eg: aout = ((a1 + 1000) *  
a2) would produce classic amplitude modulation, rather than "ring  
modulation"


Should do the trick! (Have fun...)


CharlieB





Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11145;
          29 Jun 97 9:54 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa16252;
          29 Jun 97 9:54 BST
Received: (qmail 25257 invoked from network); 29 Jun 1997 08:54:28 -0000
Received: from hermes.ex.ac.uk (194.83.11.25)
  by pat.bath.ac.uk with SMTP; 29 Jun 1997 08:54:28 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (JAA24792); Sun, 29 Jun 1997 09:49:08 +0100
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Sun, 29 Jun 97 09:49:02 +0100
Received: from piano.technion.ac.il [132.68.57.183] by hermes via ESMTP (JAA24785); Sun, 29 Jun 1997 09:49:00 +0100
Received: by piano.technion.ac.il (950413.SGI.8.6.12/930416.SGI)
	 id LAA06506; Sun, 29 Jun 1997 11:48:23 -0700
Date: Sun, 29 Jun 1997 11:48:22 -0700 (PDT)
From: Erez Webman 
To: Bill Kleinsasser 
Cc: csound@maths.ex.ac.uk
Subject: Re: Realtime pitch detection on Csound?
In-Reply-To: 
Message-Id: 
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

It seems that this program doesn't work on my PC (csound 3.46).

The following error message is generated: "OCTDOWN was not initialized".

Any ideas?

Thanks,

Erez Webman


On Thu, 26 Jun 1997, Bill Kleinsasser wrote:

> Here is one way that I have gotten it to work:
> 
> ;While this is not a complete .orc file, it represents the heart of a 
> ;pitch-tracking instrument that reads input and spectrally extracts 
> ;the fundamental using octdown, noctdft, specsum, and specptrk.
> 
> William Kleinsasser
> Towson University
> Baltimore, MD
> 
> ;--------------------------------------------------------------------------
> ;INITIALIZE VARIABLES
> ;--------------------------------------------------------------------------	
> ;.5 = octave down, 2 = octave up, etc.
> 
> ;SET MANUALLY:
> ianalperiod = .01				;set period for spectral 
> analysis
> ianalsamps 	= ianalperiod*sr	;set number of samples in 
> spectral anal
> 
> ;FROM SCORE:
> ipartialcount = p4		;number of partials for analysis (from score)
> inum = p5				;soundfile id number (from score)
> 
> ;--------------------------------------------------------------------------
> ;READ SOUNDFILE IN (mono)
> ;--------------------------------------------------------------------------	
> ;.5 = octave down, 2 = octave up, etc.
> ;(use ; to comment-out the options you do not wish to use)
> ;	asig		soundin	inum			;read soundfile "inum"
> ;	OR
> 	asig		soundin	"soundfile_name";read soundfile "file name"
> ;	OR
> ;	asig		in						
> ;real-time sound input from ADC
> 	
> ;--------------------------------------------------------------------------
> ;ANALYZE THE SPECTRUM
> 
;--------------------------------------------------------------------------	
> ;.5 = octave down, 2 = octave up, etc.
> ;downsample in 6 octaves:
> 	dsamp	octdown	asig,6,ianalsamps,0	
> 		 		
> ;calculate 72-point dft (dB):	
> 	wsig	noctdft	dsamp,ianalperiod,12,33,1,1,1	
> 	
> ;sum the spec bins, and ksmooth:
> 	ksum	specsum	wsig, 1				
> 				
> ;analyze for pitch-tracking:
> 	koct	specptrk wsig, ipartialcount, .8, 0 	
> 	
> ;set ksig to = the tracked pitch in cpsoct mode:
> 	ksig = cpsoct(koct)							
> 
> 								
> 
> ;**************
> 



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11158;
          29 Jun 97 10:05 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa16297;
          29 Jun 97 10:05 BST
Received: (qmail 25278 invoked from network); 29 Jun 1997 09:05:32 -0000
Received: from piano.technion.ac.il (132.68.57.183)
  by pat.bath.ac.uk with SMTP; 29 Jun 1997 09:05:32 -0000
Received: by piano.technion.ac.il (950413.SGI.8.6.12/930416.SGI)
	 id MAA06558; Sun, 29 Jun 1997 12:03:27 -0700
Date: Sun, 29 Jun 1997 12:03:25 -0700 (PDT)
From: Erez Webman 
To: csound@noether.ex.AC.UK, jpff@maths.bath.ac.uk
Subject: Pitch detection on PC Csound
In-Reply-To: 
Message-ID: 
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


I've tried to use LPANAL for pitch detection on my PC (Csound 3.46 for 
DOS). I noticed that LPANAL runs fairly quickly for small sound files 
(say, 3 seconds). BUT, when the length of the sound file is SLIGHTLY longer 
(8 seconds, for example), the program runs for hours...!!!

I guess it has something to do with misbehaved memory allocations, etc.

Any suggestions?

Thanks,

Erez Webman



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11170;
          29 Jun 97 10:10 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa16323;
          29 Jun 97 10:10 BST
Received: (qmail 25281 invoked from network); 29 Jun 1997 09:10:10 -0000
Received: from hermes.ex.ac.uk (194.83.11.25)
  by pat.bath.ac.uk with SMTP; 29 Jun 1997 09:10:10 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (KAA25101); Sun, 29 Jun 1997 10:05:33 +0100
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Sun, 29 Jun 97 10:05:27 +0100
Received: from piano.technion.ac.il [132.68.57.183] by hermes via ESMTP (KAA25095); Sun, 29 Jun 1997 10:05:26 +0100
Received: by piano.technion.ac.il (950413.SGI.8.6.12/930416.SGI)
	 id MAA06558; Sun, 29 Jun 1997 12:03:27 -0700
Date: Sun, 29 Jun 1997 12:03:25 -0700 (PDT)
From: Erez Webman 
To: csound@maths.ex.ac.uk, jpff@maths.bath.ac.uk
Subject: Pitch detection on PC Csound
In-Reply-To: 
Message-Id: 
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


I've tried to use LPANAL for pitch detection on my PC (Csound 3.46 for 
DOS). I noticed that LPANAL runs fairly quickly for small sound files 
(say, 3 seconds). BUT, when the length of the sound file is SLIGHTLY longer 
(8 seconds, for example), the program runs for hours...!!!

I guess it has something to do with misbehaved memory allocations, etc.

Any suggestions?

Thanks,

Erez Webman


Date1997-07-02 17:42
FromBezkorowajny Mathieu
SubjectRe: metalic timbres / ring modulator
	By the way, some time ago, I've tried to build a frequency 
shifter in Csound but I was unable to build the complexe phase shifting 
filter required. Buy the way frequency shifting is like ring modulation 
exept that only the sum or the difference of the frequency are heard 
(either one or the other where ring modulation do both). It is obtain by 
cross-modulating two signals and their phase shifted versions. Any body 
succeeded at building one?

	Happy Independence Day to all those american folks out their!   



 ]---\     [====== +++++++++   ]    /      ******
 ]    ]    [              /    ]  /       *      *
 ]__ /     [____        /      ]/        *        *
 ]   \     [          /        ]\        *        *
 ]    ]    [        /          ]  \       *      *
 ]---/     [====== +++++++++   ]    \      ******

***************************************************************
BEZKO
http://mistral.ere.umontreal.ca/~bezkorom
http://mistral.ere.umontreal.ca/~bezkorom/DOST
SERIAL KILLER (0-10-5-1-3-8-4-11-2-6-9-7)
"Si ce n'est pas bizzare, ce n'est pas normal."
**************************************************************