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 
 Forum index » DIY Hardware and Software » ChucK programming language
start/stop glitch
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
dudat



Joined: Apr 09, 2015
Posts: 1
Location: Italy

PostPosted: Thu Apr 09, 2015 8:08 am    Post subject: start/stop glitch Reply with quote  Mark this post and the followings unread

hi everyone.
i am new to chuck language and i was looking a way to avoid the clicks on the start/stop of the shred. they are very orribile !
any idea ?
Back to top
View user's profile Send private message
makeitgofaster



Joined: Jul 01, 2015
Posts: 4
Location: Saint Paul, MN

PostPosted: Thu Jul 02, 2015 5:06 am    Post subject: got it Reply with quote  Mark this post and the followings unread

Yeah, there was an answer to this on the mailing list from a couple months back.

That is the sound of the speaker rapidly switching from somewhere in the waveform to nothing. You need to add a decay to your impulse so the amplitude drops off before removing it from DAC. You can do this with an envelope or ADSR or something ... see http://chuck.cs.princeton.edu/doc/program/ugen_full.html#ADSR

This causes clicking:
Code:
for(0 => int i; i < 20; i++)
{
 SinOsc s => dac;
 220 => s.freq;
 180::ms => now;
 s =< dac;
10::ms => now;
}


This sounds ok:

Code:
for(0 => int i; i < 20; i++)
{
    SinOsc s => ADSR e => dac;
    // set attack, decay, sustain, and release
    e.set( 10::ms, 8::ms, .7, 20::ms );
    220 => s.freq;
    e.keyOn();
    150::ms => now;
    e.keyOff();
    20::ms => now;
    s =< dac;
    10::ms => now;
}
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 [2 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