Author |
Message |
usr_sbin
Joined: Sep 18, 2006 Posts: 30 Location: Laramie, WY
|
Posted: Sat Aug 13, 2011 9:35 am Post subject:
miniAudicle, Chuck, and OS X Lion Subject description: Issues? |
|
|
Have nasty problems trying to run miniAudicle and/or Chuck on OS X Lion.
Just installed mA and Chuck on a MBP 13" running current version of Lion. I installed Chuck first, ran the simple check and it returned the appropriate message:
demos@DREIZEHN% chuck
[chuck]: no input files... (try --help)
...but here's the Console output from mA when I start the Virtual Machine (just before I get the pop-up warning that the Virtual Machine appears to be hanging —
[chuck]2:SYSTEM): setting log level to: 2 (SYSTEM)...
[chuck]2:SYSTEM): -------( Sat Aug 13 10:28:44 2011 )-------
[chuck]2:SYSTEM): starting chuck virtual machine...
[chuck]2:SYSTEM): | initializing virtual machine...
[chuck]2:SYSTEM): | | behavior: LOOP
[chuck]2:SYSTEM): | | locking down special objects...
[chuck]2:SYSTEM): | | allocating shreduler...
[chuck]2:SYSTEM): | | allocating messaging buffers...
[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): | | devices adc: 0 dac: 0 (default 0)
[chuck]2:SYSTEM): | | adaptive block processing: 0
[chuck]2:SYSTEM): | | channels in: 0 out: 0
[chuck]2:SYSTEM): | initializing compiler...
[chuck]2:SYSTEM): | type dependency resolution: MANUAL
[chuck]2:SYSTEM): | initializing synthesis engine...
[chuck]2:SYSTEM): | | initializing 'real-time' audio...
[chuck]: (via rtaudio): one or both 'channel' parameters must be greater than zero.
[chuck]: cannot initialize audio device (try using --silent/-s)
...not sure how to troubleshoot it from this point.
Best,
~~D. _________________ Try me ... ... said the Dalai Lama to the hot-dog vendor, "Make me one with everything." |
|
Back to top
|
|
|
sonic
Joined: Dec 02, 2010 Posts: 106 Location: Victoria BC
|
Posted: Sun Sep 04, 2011 8:54 am Post subject:
|
|
|
Code: | [chuck]: (via rtaudio): no devices found for given stream parameters:
... RtApiCore: No supported sample rates found for OS-X device (Apple Inc.: Built-in Output).
... RtApiCore: No supported sample rates found for OS-X device (Apple Inc.: Built-in Input).
[chuck]: cannot initialize audio device (try using --silent/-s) |
I am also having problems running the precompiled ChucK binary under OSX Lion. I don't see any output on the console, just above error when I execute the first (sine-wave generating) program of the tutorial.
I'm going to try building from source. fingers crossed... |
|
Back to top
|
|
|
sonic
Joined: Dec 02, 2010 Posts: 106 Location: Victoria BC
|
Posted: Sun Sep 04, 2011 11:12 am Post subject:
|
|
|
Compiled from source. Exactly the same output.
It seems that something may be hardwired to a previous OSX audio architecture. Maybe some changes can be made to the makefile? Or is it possible to try to connect to a specific audio interface in the code?
I'm not holding out much hope of assistance here, but may as well document my progress (or lack of!). |
|
Back to top
|
|
|
barnwellsteve
Joined: Oct 30, 2011 Posts: 2 Location: San Antonio, TX
|
Posted: Sun Oct 30, 2011 9:36 pm Post subject:
audio working in lion... so far no midiout |
|
|
I've been looking for a way to get chuck to pass user input back out as midi and I ran into this forum, which proved quite useful. I am also running MA on a 13" MBP (most recent) with Lion. I found a beta release of chuck and MA on the mailing list that got me audio support, at least so far. Here's the link:
https://lists.cs.princeton.edu/pipermail/chuck-users/2011-August/006329.html
There are two downloads there, obviously for Chuck and MA.
I don't know if my midi issues are related to Lion or my audio/midi setup, but I am so far unable to open a midi port to send midi out. Just using the standard midiout example from the documentation (pdf, no midiout examples on the website). |
|
Back to top
|
|
|
barnwellsteve
Joined: Oct 30, 2011 Posts: 2 Location: San Antonio, TX
|
Posted: Sun Oct 30, 2011 9:56 pm Post subject:
MidiOut Working as well |
|
|
As I suggested, it was my audio midi setup that was causing the issue. I still get a "hanging" notice when I run this:
Code: |
MidiOut mout;
MidiMsg msg;
// check if port is open
if (!mout.open(0))
me.exit();
// fill the message with data
144 => msg.data1;
112 => msg.data2; // note
while(true)
{
127 => msg.data3; // velocity
mout.send(msg);
125::ms => now;
0 => msg.data3;
mout.send(msg);
125::ms => now;
}
|
but I just hit cancel, brought up midi monitor and the note signals were chugging away.
So it looks like if you download those files, everything should work for you. |
|
Back to top
|
|
|
sonic
Joined: Dec 02, 2010 Posts: 106 Location: Victoria BC
|
Posted: Mon Oct 31, 2011 4:22 am Post subject:
|
|
|
Excellent! Thanks Steve. |
|
Back to top
|
|
|
|