electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
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
adc distortion?
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
jbucks



Joined: Jul 30, 2011
Posts: 6
Location: Berlin

PostPosted: Fri Feb 07, 2014 7:07 am    Post subject: adc distortion? Reply with quote  Mark this post and the followings unread

Hey everyone, just starting to do a bit of ChucK again a few weeks after the Coursera course finished.

I'm trying to use ChucK to sample my modular synth through my Presonus audio interface. To keep things simple, I've got a sine wave pulse going into ChucK like this:

Code:

adc.chan(0) => Gain inGain => dac;

0.2 => inGain.gain;


while ( true ) {
    2::second => now;
}


But the sine wave comes through with distortion, sounds almost like it's being amplitude modulated. When I listen to that sine wave through a DAW, it sounds perfect.

What am I doing wrong?
Back to top
View user's profile Send private message
jbucks



Joined: Jul 30, 2011
Posts: 6
Location: Berlin

PostPosted: Fri Feb 07, 2014 9:20 am    Post subject: Reply with quote  Mark this post and the followings unread

Found a clue: changing the buffer size in miniAudicle causes different kinds of distortion… so at least one step closer to figuring out the problem.

EDIT: fixed, looks like setting the buffer size to 512 did the trick.
Back to top
View user's profile Send private message
Antimon



Joined: Jan 18, 2005
Posts: 4145
Location: Sweden
Audio files: 371
G2 patch files: 100

PostPosted: Fri Feb 07, 2014 10:57 am    Post subject: Reply with quote  Mark this post and the followings unread

Glad to see that you were able to solve it. Yeah non-standard settings can cause all kinds of weird behaviour in the audio interfaces. When I use multiple inputs and/or outputs on my Motu Ultralite, there are only a few specific configurations that work. I can for instance set ChucK to use 4 or 8 outputs, but if I try setting output count to 6 I get behaviour similar to what you describe; screeching distortion coming from all ouputs at once etc.
_________________
Antimon's Window
@soundcloud @Flattr home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [3 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


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