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
Chuck setup: dropout
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
rhenninger



Joined: May 04, 2025
Posts: 2
Location: Vienna, VA, USA

PostPosted: Sun May 04, 2025 9:40 am    Post subject:  Chuck setup: dropout
Subject description: Simple alsa cli environment ok for csound, fluidsynth, but not chuck
Reply with quote  Mark this post and the followings unread

I am setting up a minimalist computer music environment for myself on alpine linux using only alsa and cli on a single user 86_64 system: as simple as it gets.
I built ChucK with the 'linux-alsa' flag, all tests passed, and install worked fine.
I have had no trouble using csound or fluidsynth this way, but I cannot get ChucK to run without significant dropout in playback - even for a simple sine wave:
Code:
SinOsc s => dac;
440.0 => s.freq;
2::second => now;


I have tried numerous sample rates, buffer sizes and numbers and devices and priority levels. Here is a sample (any combo of these still has dropout):

doas nice --20 chuck --dac:2 --srate:48000 --bufsize:1024 -bufnum:16 --verbose

I have to think that this is a parameter problem, but I can't find any info on-line ideas yet that I haven't already tried. What am I missing?

Attachment has Chuck --verbose:2 feedback


chuck_chatter.txt
 Description:

Download (listen)
 Filename:  chuck_chatter.txt
 Filesize:  2.15 KB
 Downloaded:  17 Time(s)


_________________
Richard Henninger
Back to top
View user's profile Send private message
nelsonpence



Joined: May 04, 2025
Posts: 7
Location: Tianjin
Audio files: 9

PostPosted: Sun May 04, 2025 6:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

Try
Code:
doas chrt -f 90 chuck --dac:hw:2,0 --srate:96000 --bufsize:256 --bufnum:8 --silent
Back to top
View user's profile Send private message
rhenninger



Joined: May 04, 2025
Posts: 2
Location: Vienna, VA, USA

PostPosted: Mon May 05, 2025 2:06 pm    Post subject:  Gave it a shot
Subject description: Followed suggestion and several variants: no joy
Reply with quote  Mark this post and the followings unread

Thanks for the suggestion. I was reluctant to use chrt since it doesn't come with Alpine initially. 'chrt' is available by installing the util-linux-misc package which overwrites the softlinks of many other provided busybox implementations.

Still, since this is an experimental installation, I went ahead and loaded the package so I could give your suggestion a shot. Not sure why you had --silent in the cmd, since that suppresses the sound output. Removing that and playing with different srates, bufsizes and bufnums all yielded the same result.

Since raising process priority hasn't affect the output, I'm thinking the problem lies elsewhere: sample format, perhaps? Unnecessary threads in a single user cli environment? But I don't see command line options for controlling these.

Csound and fluidsynth have just worked with alsa. I wonder if the problem lies with RtAudio itself. Maybe I'll experiment with Stk to see if that has issues too.

_________________
Richard Henninger
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 [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