electro-music.org   Dedicated to experimental electro-acoustic
and electronic music
 
 Front Page  |  Radio  |  Forum  |  Media  |  Playlists  |  Wiki
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 
 Forum index » DIY Hardware and Software » ChucK programming language
Avoiding clicks, envelopes
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
jp44



Joined: Jan 26, 2010
Posts: 2
Location: Finland

PostPosted: Tue Jan 26, 2010 11:15 pm    Post subject: Avoiding clicks, envelopes Reply with quote  Mark this post and the followings unread

Hi all,

I'm newbie with ChucK, have used two-three weeks. I've experimented with STK-instruments mostly, I would have few questions I haven't yet found an answer elsewhere:

1. Best/quickest/easiest way to avoid clicks for instance with SineOsc etc. ?

2.I haven't been able to get Envelope or ADSR to work with UGen's without keyOn/keyOff with "basic" waveforms, do they work with all generator UGen's ?

3. A quick way to build time-variant functions like crescendo, "moving" filters etc.

Thanks for advance of any tips/code snippets etc. !

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



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

PostPosted: Wed Jan 27, 2010 4:23 am    Post subject: Reply with quote  Mark this post and the followings unread

Hmm.. for SinOsc (and other basic Oscs in ChucK) is it mainly that click when the note is stopped?

I'll give more examples, especially about controlling from outside.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
jp44



Joined: Jan 26, 2010
Posts: 2
Location: Finland

PostPosted: Wed Jan 27, 2010 4:46 am    Post subject: Reply with quote  Mark this post and the followings unread

Yes, especially those click at the end of the basic Osc's and few other UGen's. I' trying to make envelopes with long decays and/or releases so that one-voice melody would make harmonies because of overlapping notes.

Thanks, looking forward your examples !
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Tue Feb 02, 2010 7:25 am    Post subject: Reply with quote  Mark this post and the followings unread

Envelope should work, let me give a example and maybe you'll be able to find what the problem is;

Code:
SinOsc s => Envelope e => dac;

.5::second => e.duration;

repeat(10)
    {
    400 + (Std.rand2(0, 8) * 50)  => float my_frequency;
    playNote(my_frequency);
    }

fun void playNote (float freq)
    {
    freq => s.freq;
    1 => e.keyOn;
    e.duration() => now;

    second => now;

    1 => e.keyOff;
    e.duration() => now;
    }

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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
Log in
Username:     Password:      Log me on automatically each visit    


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2026 by electro-music.org