Hi, I've this ChucK code:
"examples/vento.txt" => string filename;
FileIO fio;
// open a file
fio.open(filename, FileIO.READ);
// ensure it's ok
if(!fio.good()) {
cherr <= "can't open file: " <= filename <= " for reading..." <= IO.newline();
me.exit();
}
fio.readLine() => string velocity;
fio.readLine() => string direction;
...
I was trying out the method of creating a background music for a java program, but it displayed an IO excedption error when i clicked the play button.
package javaentertainment;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.FileInputStream;
import java.io.IOException;
import javax.swing.*;
impo...
I need to duplicate / clone a sound object in flash.
I tried using various clone methods such as this one here
http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/
var snd:Sound= UtilFunctions.clone(e.sound) as Sound
But my cloned sound object comes back with zero bytes loaded and zero byt...
What's the lowest level Windows function(s) to play sound? (The function(s) that are called by any other functions that play sound).
For example, fopen() calls CreateFileA(), and CreateFileA() calls CreateFileW(), and CreateFileW() calls NtCreateFile(), etc. I want to know what's the lowest-level one for sound (without comunicating with...
I was wondering if anybody found a nice combination of beeps, that actually sounds like music.
This is how to call the method.
[DllImport("Kernel32.dll")]
public static extern bool Beep(UInt32 frequency, UInt32 duration);
// ...
// call
Beep(2000, 400);
My first attempt:
for (int j = 1; j < 20; j++)
{
for (int i = 1...
I'd like to be able to algorithmically create sounds (like monster growls, or distant thunder.) This isn't as widely covered on the net like more traditional procedural content (terrains, etc.) Any one have any algorithms on how to create these kinds of sounds?
...
Hi all!
I want to allow user to switch to my app during a phone call and play some sound that the second person will hear.
I see here that it was possible even before iOS4 and here that no one knows how to do it.
I will really appreciate if someone will spread some light on this issue.
Thank you.
...
Hey SO.
Building a little audio converter which uses Directx to decode the audio (under assumption that the end user has the decoders installed) and I want to write the loaded audio to a wave file in C:\Temp\ to send to the audio compressor because the audio compressors only support uncompressed WAV format.
I'm having a bit of trouble th...
First a little explanation of the need, so I don't get hammered for wanting to add "useless and distracting" sounds to a web-page.
I've had to add two virtual keyboard keys to my web page for the iPad, because these characters are needed for my linguistics oriented app but don't appear either on the standard iPad keyboard or on the cont...
I'm using notifications in my simple timer app (early testing stage), and found that maybe 5% to 20% of the times I fired a notification, the sound did not play. The notification appeared correctly in all other respects, including LED flash, but was silent. I have confirmed with temporary extra log lines that the sound URIs I'm using are...
How can I add sound to a web site . I don't want to show .swf player in the page .music should play in the background
...
how can I play a sound clip on page load?Is there any javascript or jquery to do that?I am creating my page in php.
...
This one is probably for someone with some knowledge of music theory. Humans can identify certain characteristics of sounds such as pitch, frequency etc. Based on these properties, we can compare one sound to another and get a measure pf likeliness. For instance, it is fairly easy to distinguish the sound of a piano from that of a guitar...
I am trying to play a sound file on the click of a button. The sound is just 1 sec long. It plays well the first few times I click the button, but after a while it gives a NullPointerException. Here's the code:
button[i].setOnClickListener(new OnClickListener() {
public void onClick(View view) {
mp = ...
I have a number of voice sound streams encoded in PCM (PCM_SIGNED 8000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian) which I want to send over the network. To save bandwidth I currently encode the streams using JSpeex. However to save even more bandwidth I would like to (if possible) combine these multiple streams into a single strea...
Windows Virtual PC problems:
There is no "Shared Folders" option to allow us to access folders on the Host machine within the Client machine using drive letters (E:\ etc.). We have several programs that I need to test and I need to access files on the E:\ drive, etc. Note that the Host folders that you see "D on " is not what I need. ...
I am working on a PowerPoint 2007 VSTO add-in, and I am running in a small issue. The add-in adds sounds to the current slide using the following code:
var shape = slide.Shapes.AddMediaObject(soundFileLocation, 50, 50, 20, 20);
The resulting shape does have a sound, and can be played through the PowerPoint slide. My problem is that, g...
Okay this one may be a bit out from left field, but I'm going to try anyways.
A pad is a sort of ambient electronic sound that kind of 'hums'. Something like this .
How can I produce this in code? Using either Processing, OpenFrameworks, C, Objective-C or C++. Keep in mind I haven't been programming for that long.
I will be very imp...
Is it possible to detect (in real time) if somebody is blowing into the microphone ?
Thanks
...
I am working on a simple media player in Java. I wanted to add some little visualizer, but I cannot seem to find any help online. Has any of you ever done a visualizer in Java? Or any links to good reference material would be greatly appreciated.
Thank you.
...