| Author |
Message |
ilSignorCarlo

Joined: Sep 17, 2007 Posts: 21 Location: Bologna
|
Posted: Mon Mar 17, 2008 8:48 am Post subject:
No sound from ChucK on Ubuntu Gutsy Gibbon |
 |
|
Hi,
I installed ChucK on Ubuntu Gutsy Gibbon, and it seems to work. I mean, I can run the example files, but I can't hear any sound (and yes, I have speakers turned on )
On the mailing list someone told me to try the command chuck --probe, and I get this
| Code: | [chuck]: found 5 device(s) ...
[chuck]: ------( chuck -- dac1 )---------------
[chuck]: device name = "hw:I82801DBICH4,0"
[chuck]: probe [success] ...
[chuck]: # output channels = 0
[chuck]: # input channels = 2
[chuck]: # duplex Channels = 0
[chuck]: default device = YES
[chuck]: natively supported data formats:
[chuck]: 16-bit int
[chuck]: supported sample rates:
[chuck]: 8000 Hz
[chuck]: 9600 Hz
[chuck]: 11025 Hz
[chuck]: 16000 Hz
[chuck]: 22050 Hz
[chuck]: 32000 Hz
[chuck]: 44100 Hz
[chuck]: 48000 Hz
[chuck]:
[chuck]: ------( chuck -- dac2 )---------------
[chuck]: device name = "hw:I82801DBICH4,1"
[chuck]: probe [success] ...
[chuck]: # output channels = 0
[chuck]: # input channels = 2
[chuck]: # duplex Channels = 0
[chuck]: default device = NO
[chuck]: natively supported data formats:
[chuck]: 16-bit int
[chuck]: supported sample rates:
[chuck]: 48000 Hz
...
...
|
But I don't know what to do with all this stuff.
Any suggestion?
Thanks. |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 6237 Location: The Hague, NL
G2 patch files: 3
|
Posted: Mon Mar 17, 2008 11:30 am Post subject:
|
 |
|
Really weird.
Let's check something really basic. Does this perhaps give a sound?
| Code: | SinOsc s => dac;
5::minute => now; |
Just trying to rule factors out. _________________ while(!machine.crash() ) <<<"all is well">>>; |
|
|
Back to top
|
|
 |
ilSignorCarlo

Joined: Sep 17, 2007 Posts: 21 Location: Bologna
|
Posted: Mon Mar 17, 2008 11:46 am Post subject:
|
 |
|
| Kassen wrote: | Really weird.
Let's check something really basic. Does this perhaps give a sound?
| Code: | SinOsc s => dac;
5::minute => now; |
|
No :\
No sound.
I have already tried many example files, such as larry.ck, curly.ck and so on. |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 6237 Location: The Hague, NL
G2 patch files: 3
|
Posted: Mon Mar 17, 2008 11:53 am Post subject:
|
 |
|
Ok, Hmmm, just noticed your --probe report doesn't list any outputs. are you able to get sound from another program that does use the same soundsystem/drivers? _________________ while(!machine.crash() ) <<<"all is well">>>; |
|
|
Back to top
|
|
 |
ilSignorCarlo

Joined: Sep 17, 2007 Posts: 21 Location: Bologna
|
Posted: Mon Mar 17, 2008 12:22 pm Post subject:
|
 |
|
| Kassen wrote: | | Ok, Hmmm, just noticed your --probe report doesn't list any outputs. are you able to get sound from another program that does use the same soundsystem/drivers? |
In the last part of the --probe I have this:
| Code: | [chuck]: ------( chuck -- dac5 )---------------
[chuck]: device name = "hw:I82801DBICH4,4"
[chuck]: probe [success] ...
[chuck]: # output channels = 2
[chuck]: # input channels = 0
[chuck]: # duplex Channels = 0
[chuck]: default device = NO
[chuck]: natively supported data formats:
[chuck]: 16-bit int
[chuck]: supported sample rates:
[chuck]: 48000 Hz |
Here it seems I have output. But how can I change these devices?
And, well, I am able to get sound from other applications. I mean, I can play mp3s, I can watch videos and all the other things. |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 6237 Location: The Hague, NL
G2 patch files: 3
|
Posted: Mon Mar 17, 2008 5:38 pm Post subject:
|
 |
|
| ilSignorCarlo wrote: | But how can I change these devices?
|
| Quote: |
chuck --loop --dac5 my_file.ck |
:¬) _________________ while(!machine.crash() ) <<<"all is well">>>; |
|
|
Back to top
|
|
 |
Frostburn

Joined: Dec 12, 2007 Posts: 211 Location: Finland
Audio files: 7
|
Posted: Tue Mar 18, 2008 12:30 am Post subject:
|
 |
|
Are you sure you're not running any other sound programs that could mess up with the connection to chuck? If you're running JACK (recommended) make sure that the samplerates are compatible. Chuck has a default srate of 48000. _________________ To boldly go where no man has bothered to go before. |
|
|
Back to top
|
|
 |
kijjaz

Joined: Sep 20, 2004 Posts: 452 Location: bangkok, thailand
Audio files: 2
|
Posted: Tue Mar 18, 2008 12:49 am Post subject:
|
 |
|
Usually, if i'm using an onboard soundcard, it'd be the first dac listed in the probe.
but it depends .. anyway.
That output = 0 i see in the first probe here is like when i have another programming using the soundcard
(for example, a web browser!)
so usually, i try to exit all the programs before probing.
- - -
Another question:
are you using ChucK from the debian repository or compile chuck on Ubuntu?
i guess that one you're using is chuck compiled for ALSA support. |
|
|
Back to top
|
|
 |
ilSignorCarlo

Joined: Sep 17, 2007 Posts: 21 Location: Bologna
|
Posted: Tue Mar 18, 2008 2:03 am Post subject:
|
 |
|
| kijjaz wrote: | That output = 0 i see in the first probe here is like when i have another programming using the soundcard
(for example, a web browser!) |
Ok, there was a paused video in the browser window.
So... shall I close everything, or does exist some setting to play both things?
| kijjaz wrote: | are you using ChucK from the debian repository or compile chuck on Ubuntu?
i guess that one you're using is chuck compiled for ALSA support. |
I'm using chuck compiled for ALSA. Which one is better?
| Frostburn wrote: | | Are you sure you're not running any other sound programs that could mess up with the connection to chuck? If you're running JACK (recommended) |
Why is it recommended whit JACK?
| Kassen wrote: | | chuck --loop --dac5 my_file.ck |
This doesn't work anyway. |
|
|
Back to top
|
|
 |
kijjaz

Joined: Sep 20, 2004 Posts: 452 Location: bangkok, thailand
Audio files: 2
|
Posted: Tue Mar 18, 2008 7:06 am Post subject:
|
 |
|
1. Ok, there was a paused video in the browser window.
So... shall I close everything, or does exist some setting to play both things?
kijjaz: a paused video? that'd be the case. so closing the browser (maybe the whole browser, not just that window) to let the soundcard be available.
some setting to play both things? hmm eh i'm not sure about the new tools like PulseAudio. I'll go into that someday.
But!! .. If you're working with Jack .. That would allow playing from multiple softwares in its natural way.
(only if the softwares support jack.. I think a usual web browser doesn't support jack)
2. I'm using chuck compiled for ALSA. Which one is better?
kijjaz: Actually, I recommend having both ALSA and JACK version ready.
i usually compile for ALSA and put the result in /usr/bin
and compile for JACK and add -jack to the file name and also put in /usr/bin
so I can select between the one I want to use.
3. Why is it recommended whit JACK?
With also, chuck/miniAudicle works fine: producing audio, processing other kinds of things MIDI OSC etc..
but there're many good things with using with Jack here..
- If JACK runs smoothly, chuck/miniAudicle with jack support can run smoothly also..
- you can do more things by connecting Audio or MIDI between softwares that support Jack.
The second feature is what's very fun about using Jack with chuck..
coz you can do like.. redirecting audio signals.. (even feedback chuck's output into its input..)
record the result in another program (for example, Audacity, Rosegarden..)
do an analysis (for example, view in an oscilloscope, or see volumn meterbridge)
put through effects..
redirect MIDI between programs.. (also between USB MIDI Interfaces)
etc..
So it's gonna be more fun and you can worry less.
That depends on the latency and the stablility of your Jack running on your machine also.
Have you got a realtime kernel and tried running Jack with realtime yet?
If not, i'll try to collect all the information needed to install and config for that in Ubuntu Gutsy easily.
I'm usually on Ubuntu Gutsy and running realtime Jack on it also. |
|
|
Back to top
|
|
 |
ilSignorCarlo

Joined: Sep 17, 2007 Posts: 21 Location: Bologna
|
Posted: Tue Mar 18, 2008 8:24 am Post subject:
|
 |
|
| kijjaz wrote: | Actually, I recommend having both ALSA and JACK version ready.
i usually compile for ALSA and put the result in /usr/bin
and compile for JACK and add -jack to the file name and also put in /usr/bin
so I can select between the one I want to use. |
Great. I read this post and now it works with both alsa and JACK.
But this is the first time I really try using JACK.
Shall I always run it from shell with the command: jackd -d alsa ?
I did so and it worked, but, I don't know... are there other possibilities?
And what shall I use to connect inputs and outputs between other applications?
| Quote: | Have you got a realtime kernel and tried running Jack with realtime yet?
If not, i'll try to collect all the information needed to install and config for that in Ubuntu Gutsy easily.
I'm usually on Ubuntu Gutsy and running realtime Jack on it also. |
I haven't it yet... I think I'm going to install it. |
|
|
Back to top
|
|
 |
kijjaz

Joined: Sep 20, 2004 Posts: 452 Location: bangkok, thailand
Audio files: 2
|
Posted: Tue Mar 18, 2008 9:57 am Post subject:
|
 |
|
This is my recommendation for use in Ubuntu Gutsy:
1. install a realtime kernel.
by installing these packages (and some other packages i recommend having it ready for future use):
linut-image-rt linux-headers-rt linux-restricted-modules-rt linux-backports-modules-rt
If you don't need the hears, restricted modules, backports modules, you can just install the image.
2. enable realtime.
I recommend an easy way.. but it involves installing packages from UbuntuStudio:
install this: ubuntustudio-default-settings
This will help configure. It will also give normal users permission to use realtime .. so we'll be able to use jack with realtime.
3. install qjackctl. this is GUI for running jackd, so it'd be more convenient.
you can go into 'Setup' and set different things.
Select driver to use (for example, ALSA..) and select from different soundcards.
Some firewire audio interfaces are also supported by freebob. see http://freebob.sourceforge.net/forums.html/Main_Page
- - -
after getting the realtime-enabled kernel, done giving permission to use realtime, you can try qjackctl and set Realtime and see if it works.
Sometime it just does't work, I don't know why..
Changing some values might help.
Enjoy Jack & ChucK hehheheh.. ^_^ |
|
|
Back to top
|
|
 |
ilSignorCarlo

Joined: Sep 17, 2007 Posts: 21 Location: Bologna
|
Posted: Wed Mar 19, 2008 10:44 am Post subject:
|
 |
|
Everything works now, wow
I still don't know about real-time, but I'll try something as soon as possibile.
Thanks a lot, bye. _________________ Self-referential phrases, like this one, are not so funny or good for a forum signature. |
|
|
Back to top
|
|
 |
kijjaz

Joined: Sep 20, 2004 Posts: 452 Location: bangkok, thailand
Audio files: 2
|
Posted: Wed Mar 19, 2008 3:45 pm Post subject:
|
 |
|
Although you can't have the realtime feature yet,
it can normally run qiute smoothly on modern machines.
Enjoy using Jack!! hehheh.
I recommend looking into these nice softwares that support Jack also:
Audacity, hydrogen, jackeq, jack-rack, jamin, meterbridge, puredata, rosegarden.
There are also many more I still haven't tried out and couldn't comment. |
|
|
Back to top
|
|
 |
|