sound

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: sound

Post #21by Fenerit » 09.10.2009, 14:03

I've played up to 6 STEREO .WAV files at once without crashes, even after elaborating it with an audio program opened (that switch on the device driver) but for each one I've assigned its volume. Another one thing about your script: your sounds uses the audio card synthetizer instead of files: is the synth wavetable the same as your audio card manifacturing or is the generic sound mapper? Finally, it could be matter of latency and audio buffer. My settings are 2 channels 16Mb buffer 250 ms latency.

EDIT LATER:

OOps, CC, probably there was be a misinterpretation: my project is aborted because the files to plays growth in size, not because the script crashed.
Never at rest.
Massimo

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: sound

Post #22by Fenerit » 09.10.2009, 14:51

I think a bit of clearness is required, otherwise one can say: "its settings are 2 channels and then plays 6 channels". Which is called "channels" in the ProAudio assignements are read as "tracks" by the audio card. One can manage up to 128 "tracks" on multitracks programs with a basic audio card and having the output on the 2 "channels" (left&right). High end audio card does assign "tracks" to "channels" for MIDI mixers output.
Never at rest.
Massimo

Ricardo
Posts: 14
Joined: 03.09.2009
With us: 15 years 2 months

Re: sound

Post #23by Ricardo » 12.10.2009, 06:55

Ricardo wrote:How can we get the dll files version Mac?

No Mac experts over here?
MBP 2.6 GHz Intel 4Go GeForce 8600M GT 512 - osX 10.5.8

drtortoise
Posts: 5
Joined: 10.10.2009
With us: 15 years 1 month

Re: sound

Post #24by drtortoise » 22.10.2009, 11:57

are there any exisitng sound effects for celestia 1.5ED? I'm looking for sound effects for a spaceship, so when you click right, left, up, down, a , z etc ...?

Avatar
fsgregs
Posts: 1307
Joined: 07.10.2002
With us: 22 years 1 month
Location: Manassas, VA

Re: sound

Post #25by fsgregs » 22.10.2009, 13:09

are there any exisitng sound effects for celestia 1.5ED? I'm looking for sound effects for a spaceship, so when you click right, left, up, down, a , z etc ...?

Spaceship sound files in WAV format are an integral part of Celestia151-ED. There are sounds for general background, sounds for powering up, firing engines and warping at hyperdrive speed. Celestia151-ED contains the sound files in a folder titled "sounds". On the motherlode education page, that sound folder is part of the "Educational Base package" zip file.

You will need a set of script commands to use them. 151-ED contains sound scripts that activate the ship sounds when you press a certain key. I am enclosing a general sound script that contains the commands to activate the spaceship sound files. The script uses Celestia151-ED.exe as the application.

I have not modified the script to use Vincent's new sound capability in 1.6.0 as discussed in this thread, but it should be easy to do.

Enjoy

Frank

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re: sound

Post #26by t00fri » 22.10.2009, 15:45

fsgregs wrote:...
Spaceship sound files in WAV format are an integral part of Celestia151-ED. There are sounds for general background, sounds for powering up, firing engines and warping at hyperdrive speed.
Enjoy

Frank

I hope that these Celestia151-ED sounds for powering up, firing engines, spacecraft travel etc are ONLY played/heard when the observer is located INSIDE a spaceship. Observers located OUTSIDE, somewhere in the Universe cannot hear ANY sound, of course, since sound requires a medium (air, water,...) to propagate...

Since this stuff is supposed to be educational, such basic physics issues should better be correct.

Fridger
Image

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Re: sound

Post #27by Cham » 22.10.2009, 17:57

t00fri wrote:I hope that these Celestia151-ED sounds for powering up, firing engines, spacecraft travel etc are ONLY played/heard when the observer is located INSIDE a spaceship. Observers located OUTSIDE, somewhere in the Universe cannot hear ANY sound, of course, since sound requires a medium (air, water,...) to propagate...

Since this stuff is supposed to be educational, such basic physics issues should better be correct.

Fridger

ROFL ! C'mon Fridger, it's easy to explain the activity with sounds : the student is sitting in front of his/her computer, in a classroom, which IS the spacecraft ! No wonder why there is sound even if the observer is flying through empty space. This is so evident, :roll:
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re: sound

Post #28by t00fri » 22.10.2009, 19:33

Cham wrote:
t00fri wrote:I hope that these Celestia151-ED sounds for powering up, firing engines, spacecraft travel etc are ONLY played/heard when the observer is located INSIDE a spaceship. Observers located OUTSIDE, somewhere in the Universe cannot hear ANY sound, of course, since sound requires a medium (air, water,...) to propagate...

Since this stuff is supposed to be educational, such basic physics issues should better be correct.

Fridger

ROFL ! C'mon Fridger, it's easy to explain the activity with sounds : the student is sitting in front of his/her computer, in a classroom, which IS the spacecraft ! No wonder why there is sound even if the observer is flying through empty space. This is so evident, :roll:

I have never claimed that there actually IS a problem with sound & physics. But since obviously the observer can also leave his/her spaceship in Celestia (see e.g. Linuxman's amazing add-ons) I felt it was good for a reminder ;-) . Personally, I never looked into Celestia-ED (of course).

Fridger
Image

drtortoise
Posts: 5
Joined: 10.10.2009
With us: 15 years 1 month

Re: sound

Post #29by drtortoise » 23.10.2009, 09:02

That's awesome! Where can I find out what the differnt special characters are in Celestia / CELX. Like if you see the code I wrote for Processing below, the name for the arrow keys might be differnt for the Celestia programming language? For instance, I noticed you used if str == "a", but could I use string == UP, or do the arrow keys have special names?

Code: Select all

import ddf.minim.*;

Minim minim;
AudioSample noseDown;
AudioSample noseUp;
AudioSample slowDown;
AudioSample speedUp;
AudioSample rollLeft;
AudioSample rollRight;

void setup()
{
  size(512, 200, P2D);
  // always start Minim before you do anything with it
  minim = new Minim(this);
  // load the sound effect files
  noseDown = minim.loadSample("noseDown.wav");
  noseUp = minim.loadSample("noseUp.wav");
  slowDown = minim.loadSample("slowDown.wav");
  speedUp = minim.loadSample("speedUp.wav");
  rollLeft = minim.loadSample("rollLeft.wav");
  rollRight = minim.loadSample("rollRight.wav");
}

void draw()
{
  background(0);
  // there are no waveforms to draw
}

void keyPressed()
{
  if ( key == 'a' ) speedUp.trigger();
  if ( key == 'z' ) slowDown.trigger();
  if (key == CODED) {
    if (keyCode == UP) {
      noseDown.trigger();
    } else if (keyCode == DOWN) {
      noseUp.trigger();
    } else if (keyCode == LEFT) {
      rollLeft.trigger();
    } else if (keyCode == RIGHT) {
      rollRight.trigger();
    }
  }
}

void stop()
{
  // always close Minim audio classes when you are done with them
  noseDown.close();
  noseUp.close();
  slowDown.close();
  speedUp.close();
  rollLeft.close();
  rollRight.close();
  minim.stop();
 
  super.stop();
}


fsgregs wrote:
Spaceship sound files in WAV format are an integral part of Celestia151-ED. There are sounds for general background, sounds for powering up, firing engines and warping at hyperdrive speed. Celestia151-ED contains the sound files in a folder titled "sounds". On the motherlode education page, that sound folder is part of the "Educational Base package" zip file.

You will need a set of script commands to use them. 151-ED contains sound scripts that activate the ship sounds when you press a certain key. I am enclosing a general sound script that contains the commands to activate the spaceship sound files. The script uses Celestia151-ED.exe as the application.

I have not modified the script to use Vincent's new sound capability in 1.6.0 as discussed in this thread, but it should be easy to do.

Enjoy

Frank

Ricardo
Posts: 14
Joined: 03.09.2009
With us: 15 years 2 months

Re: sound

Post #30by Ricardo » 23.10.2009, 11:48

Ricardo wrote:
Ricardo wrote:How can we get the dll files version Mac?

No Mac experts over here?

Really no one ?? :(
MBP 2.6 GHz Intel 4Go GeForce 8600M GT 512 - osX 10.5.8

Ricardo
Posts: 14
Joined: 03.09.2009
With us: 15 years 2 months

Re: sound

Post #31by Ricardo » 03.11.2009, 07:31

Ricardo wrote:
Ricardo wrote:
Ricardo wrote:How can we get the dll files version Mac?

No Mac experts over here?

Really no one ?? :(

:oops:
MBP 2.6 GHz Intel 4Go GeForce 8600M GT 512 - osX 10.5.8


Return to “Help Central”