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
chucK Meditation
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
TommyX



Joined: Jun 18, 2012
Posts: 5
Location: Jena Germany

PostPosted: Mon Jun 18, 2012 7:36 am    Post subject: chucK Meditation Reply with quote  Mark this post and the followings unread

my first try witch chuck! sounds meditative ->

Code:



Blit s1 =>  ADSR f1 => JCRev r1 => Gain g1 => dac.left;
Blit s2 =>  ADSR f2 => JCRev r2 => Gain g2 => dac.right;
Blit s3 =>  ADSR f3 => JCRev r3 => dac;

SinOsc s => Gain g4 => dac;
SinOsc t => Gain g5 => dac;
SinOsc u => Gain g6 => dac;

0.05 => g4.gain;
0.05 => g5.gain;
0.10 => g6.gain;

s.freq(Std.mtof(53));
t.freq(Std.mtof(41));

g1 => Gain feedback1 => DelayL delay1 => g1;
g2 => Gain feedback2 => DelayL delay2 => g2;

.25::second => delay1.max => delay1.delay;
.50::second => delay2.max => delay2.delay;

.7 => feedback1.gain;
.7 => delay1.gain;
.7 => feedback2.gain;
.7 => delay2.gain;

.2 => s1.gain;
.2 => s2.gain;
.5 => s3.gain;

.3 => r1.mix;
.4 => r1.gain;
.1 => r2.mix;
.4 => r2.gain;
.1 => r3.mix;
.4 => r3.gain;

f1.set( 05::ms, 03::ms, .5, 125::ms );
f2.set( 05::ms, 03::ms, .5, 25::ms );
f3.set( 05::ms, 03::ms, .5, 250::ms );

[29,41,36]@=> int rhythm[];

while( true )
{
    Std.mtof(60) => s1.freq;
    Std.mtof(53) => s2.freq;
   
   for (0 => int i;i<3;i++){
      Std.mtof(rhythm[i]) => s3.freq;
      Std.mtof(rhythm[i]) => u.freq;   
   
    Std.rand2( Std.rand2(1,5), Std.rand2(1,05)) => s1.harmonics;
    Std.rand2( Std.rand2(1,5), Std.rand2(1,05)) => s2.harmonics;
    Std.rand2( Std.rand2(1,5), Std.rand2(1,24)) => s3.harmonics;
   
   f1.keyOn();
   f2.keyOn();
   f3.keyOn();
   120::ms => now;
        f1.keyOff();
   f2.keyOff();
   f3.keyOff();
}
}


try mdifying the bass variable sequential to "38","36","34","33","34","41";

Hey most of the units do the same so how can i reuse them?

Blit s2 => f1 => r1 => g1 => dac.right; doesn't do it..
hell of a mess..

Last edited by TommyX on Mon Jun 25, 2012 7:19 am; edited 2 times in total
Back to top
View user's profile Send private message
GrandJu



Joined: Jul 04, 2010
Posts: 32
Location: Rennes France

PostPosted: Wed Jun 20, 2012 8:51 am    Post subject: Reply with quote  Mark this post and the followings unread

Hi Tommy and Welcome to ChucK welcome

There is an error in your script line 70. It seems you forgot to disable HTML or somthing like that.

I m not sure to understand your question but even if your UGen have the same functionnality they are not part of the same audio path, so they are not processing the same audio signal.

Have fun
Ju
Back to top
View user's profile Send private message
TommyX



Joined: Jun 18, 2012
Posts: 5
Location: Jena Germany

PostPosted: Mon Jun 25, 2012 7:20 am    Post subject: Thanx Reply with quote  Mark this post and the followings unread

I've corrected it.. Html was enabled. =) Thank You!
Back to top
View user's profile Send private message
mattb



Joined: Jul 08, 2009
Posts: 34
Location: Australia
Audio files: 24

PostPosted: Sun Mar 10, 2013 12:01 am    Post subject: Reply with quote  Mark this post and the followings unread

Nice patch!
Back to top
View user's profile Send private message
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
mps board

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