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 
Live streaming at radio.electro-music.com

  host / artist show at your time
  Muied Lumens Frequencies
Please visit the chat
 Forum index » DIY Hardware and Software » ChucK programming language
ChucK 1.4.0.0 mixes up --in and --out args
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
Acoustic Interloper



Joined: Jul 07, 2007
Posts: 1964
Location: Berks County, PA
Audio files: 82

PostPosted: Sun Jul 29, 2018 7:00 pm    Post subject: ChucK 1.4.0.0 mixes up --in and --out args Reply with quote  Mark this post and the followings unread

I posted this in the ChucK mailing list, thought I should put it here in case anyone tries to use ChucK 1.4.0.0 to steer spatial sound:

Just upgraded my osx upgraded to 10.12.6 from 10.9.x, just installed chuck-1.4.0.0, am writing a new chuck patch. Lots of variables. Two days of debugging later:

chuck-1.4.0.0 is not finding dac.chan(N)s correctly with chuck-1.4.0.0, so I pulled a chuck-1.3.2.0 off of an old mac, and my patch works fine.

This is in a Live -> Soundflower -> ChucK -> MOTU driver signal path, which I took apart a piece at a time. When it looked like ChucK, I turned on verbose mode. When I run this command line with MOTU as my output:

/usr/local/bin/chuck.1.4.0.0 --verbose:10 --out:8 # Note: internal mic is the input, MOTU is output, str8.ck is this:

adc.left => dac.chan(2) ;
adc.right => dac.chan(3) ;
90000::ms => now ;

Nothing goes to the MOTU, and the diagnostics show this:

[chuck]2:SYSTEM): initializing audio I/O...
[chuck]2:SYSTEM): | probing 'real-time' audio subsystem...
[chuck]7:FINE!!): | initializing RtAudio...
[chuck]7:FINE!!): | | trying 8 input 2 output...
[chuck]3:SEVERE): | allocating buffers for 256 x 8 samples...
[chuck]2:SYSTEM): | real-time audio: YES
[chuck]2:SYSTEM): | mode: CALLBACK
[chuck]2:SYSTEM): | sample rate: 44100
[chuck]2:SYSTEM): | buffer size: 256
[chuck]2:SYSTEM): | num buffers: 8
[chuck]2:SYSTEM): | adc: 0 dac: 0
[chuck]2:SYSTEM): | adaptive block processing: 0
[chuck]2:SYSTEM): | channels in: 2 out: 8

Notice the "trying 8 input 2 output..." is wrong. There are symptoms that agree with this. If I increase --in above 2 and just do straight stereo in => out, it starts outputting to chan(0), chan(1), up through chan(N), and N is the --in command line argument.

This older version works fine, sends the mic input pair to the correct dac.chans:

$ ./chuck --version

chuck version: 1.3.2.0 (chimera)
mac os x : intel : 64-bit
http://chuck.cs.princeton.edu/
http://chuck.stanford.edu/

./chuck --verbose:10 --out:8 str8.ck
[chuck]2:SYSTEM): initializing virtual machine...
[chuck]2:SYSTEM): | probing 'real-time' audio subsystem...
[chuck]7:FINE!!): | initializing RtAudio...
[chuck]7:FINE!!): | | trying 2 input 8 output...
[chuck]3:SEVERE): | allocating buffers for 256 x 8 samples...
[chuck]2:SYSTEM): | locking down special objects...
[chuck]2:SYSTEM): | allocating shreduler...
[chuck]10:ALL!!): | adding 'Chuck_Object' (0x100712ff0)...
[chuck]10:ALL!!): | adding 'Chuck_Object' (0x1007130b8)...
[chuck]2:SYSTEM): | allocating messaging buffers...
[chuck]2:SYSTEM): | behavior: HALT
[chuck]2:SYSTEM): | real-time audio: YES
[chuck]2:SYSTEM): | mode: CALLBACK
[chuck]2:SYSTEM): | sample rate: 44100
[chuck]2:SYSTEM): | buffer size: 256
[chuck]2:SYSTEM): | num buffers: 8
[chuck]2:SYSTEM): | adc: 0 dac: 6
[chuck]2:SYSTEM): | adaptive block processing: 0
[chuck]2:SYSTEM): | channels in: 2 out: 8


"trying 2 input 8 output..." is correct for 1.3.2.0, but not for 1.4.0.0. Chans are buggy, at least on my mac.

_________________
When the stream is deep
my wild little dog frolics,
when shallow, she drinks.
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 [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
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