electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
Live streaming at radio.electro-music.com

  host / artist show at your time
  EdisonRex Edison's Electronic Review
Please visit the chat
 Forum index » DIY Hardware and Software » ChucK programming language
Playing around with Buffers and Ring Modulation...
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [4 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Dr. Spankenstein



Joined: Mar 03, 2007
Posts: 136
Location: Cambridge
Audio files: 1

PostPosted: Tue Jun 12, 2007 8:44 am    Post subject: Playing around with Buffers and Ring Modulation... Reply with quote  Mark this post and the followings unread

Hello,

I'm currently trying my hand at Ring Modulation. Easy I thought, just multiply the audio by a SinOsc and I'm all set. Unfortunately that doesnt seem to be the case and I'm currently getting no sound out.

Where am I going wrong?

Code:

SndBuf Buffer1;
Gain Gain;
"File.wav" => Buffer1.read;
1 => Buffer1.gain;
3 => Gain.op; // So it multiplies the inputs (as described in manual)

SinOsc RingModulation;
1.0 => RingModulation.gain;
5000 => RingModulation.freq;

Buffer1 => RingModulation => Gain => dac;

2::second => now;


Thanks,

Rhys
Back to top
View user's profile Send private message
chuckles



Joined: Apr 02, 2007
Posts: 72
Location: San Diego, California

PostPosted: Tue Jun 12, 2007 9:42 am    Post subject: Reply with quote  Mark this post and the followings unread

I get the same result as you. Even if I lower the freq. to 1000 Hz.

But if I rewrite it as below If I do this I hear what sounds like Ring Mod. But as I use 3000 then 5000 for the freq of the RM UG to 5000 the signal does fade out again. Maybe because of the noisy environment I'm in + my bad hearing. But give this way a try.

Code:
SndBuf Buffer1;
Gain Gain;

"Audio files/drumloop.wav" => Buffer1.read;

1 => Buffer1.gain;
3 => Gain.op; // So it multiplies the inputs
              // (as described in manual)

SinOsc RingModulation;
1.0 => RingModulation.gain;
3000 => RingModulation.freq;

RingModulation => Gain;

Buffer1 => Gain => dac;

2::second => now;
Back to top
View user's profile Send private message
Dr. Spankenstein



Joined: Mar 03, 2007
Posts: 136
Location: Cambridge
Audio files: 1

PostPosted: Tue Jun 12, 2007 1:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

I knew it would be my naff coding order..... Embarassed

Oh well... it works great now!

Thanks very much.

Rhys
Back to top
View user's profile Send private message
kijjaz



Joined: Sep 20, 2004
Posts: 765
Location: bangkok, thailand
Audio files: 4

PostPosted: Thu Jun 14, 2007 2:44 am    Post subject: Reply with quote  Mark this post and the followings unread

Oh! Using Gain's .op = 3 as a multiplier for ringmod, that'd be my easiest way also.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [4 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use