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
Gain issue on LinuxMint using Pulse Audio with miniAudicle
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [1 Post]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
bobinator



Joined: Jan 18, 2014
Posts: 1
Location: Cape Town

PostPosted: Sat Jan 18, 2014 11:33 pm    Post subject: Gain issue on LinuxMint using Pulse Audio with miniAudicle
Subject description: No sound when gain set below 1
Reply with quote  Mark this post and the followings unread

Hi. I've just completed the ChucK course on Coursera using Windows 7 and figured I'd install it on the family computer, using LinuxMint 16 XFCE, to play around with better speakers. As I'm a not that Linux-literate it took me a while to get miniAudicle to compile, but I was able to find some help here on the forum that worked. Essentially I did the following: (Note: LinuxMint 16 XFCE defaults to ALSA)

1. Download miniAudicle-1.3.1
2. Download chuck-1.3.3
3. Swap out the chuck folder in miniAudicle with the one from chuck-1.3.3
4. Install all the ancillary required programs
5. Install Pulse-Audio
6. Run, 'make linux-pulse'

The reason I had to insert the newest ChucK version instead of the standard miniAudicle version is that I was getting a compile error. (Something to do with "buf" not being defined) As per the recommendations I found, once this was swapped with the latest version, it compiled without issues.

The reason I used Pulse instead of ALSA is just a newbie freak-out mistake, really. I tried compiling normally and couldn't get it to work. That was a recommendation, so I took it. When I looked at my audio system last night, it said it was using ALSA still, even though I'd installed Pulse, so I compiled using ALSA. This morning, when I tried to use ChucK it was giving some error about DAC not being able to accept input from a SinOsc, which is bull, and I found someone on the mailing-list saying that they had fixed this by restoring defaults. While that didn't work for me, I then checked to verify I was using ALSA. Task Manager said Pulse was running, so I took a chance and compiled using Pulse instead. Voila! She works!

Now, to stop babbling and get to the issue: Basically, with the following code, I get sound:

Code:
SinOsc s => dac;
440 => s.freq;
1.0 => s.gain;
1::second => now;


However, when I set it to like this, I get nothing:

Code:
SinOsc s => dac;
440 => s.freq;
0.9 => s.gain;
1::second => now;


This doesn't make any sense to me. Is there something I'm doing wrong? What can/should I look at to troubleshoot this?
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 [1 Post]
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