Member Avatar

A simple code example on how to play wave sound files with the Python module PyGame.

Member Avatar
+2 forum 2
Member Avatar

Hello everyone, i am going to create a small tune though i have no idea how to go about it. I currently have a sine wave that plays for one second using a loop similar to this // loop to generate audio samples for(int n = 0; n < num_samples; n++) { int fr = 500; //Frequency data[n] = amp*sin(2*pi*fr*n/fs); cout << n << "\t" << data <<"\n"; } This generates a 500Hz tone. The next step is for me to play another tone, at a higher frequency straight after it. I am new to C++ and was wondering if …

Member Avatar
+0 forum 5
Member Avatar

The PySide (PyQT) GUI toolkit can be used to play wave sound files.

Member Avatar
+1 forum 1
Member Avatar

Hello everyone. I'm working on a project that acts as a function generator to output a sine wave. The program also outputs an excel file with all of the data points so one can plot the points. For some reason, when I add noise, the graph does not look right. Can anyone tell me why? I appreciate the help. Here is my code: #include "stdafx.h" #include <stdio.h> #include <tchar.h> #include <iostream> #include <math.h> #include <conio.h> #include <iomanip> #include <time.h> #include <stdlib.h> #include <dos.h> using namespace std; void lab_7 (void) { srand((unsigned)time(0)); // declarations FILE *fptr; char fileName[50] = ""; double …

Member Avatar
+0 forum 2
Member Avatar

Hi, I have to design a program that plays sounds (from WAV files). I have to create a wav and play it. Once it finishes I have to change the contents of that wave file and play it again. It is like playing a wave file that is constantly changing. I thought of creating a stream but the problem is when i edit that stream (using ms.Postion and ms.WriteByte), an error occurs saying that "the wave header file is corrupt". The following is my code: [CODE] MemoryStream ms = new MemoryStream(Sample1); SoundPlayer myPlayer = new SoundPlayer(ms); myPlayer.Play(); //Wav file plays …

Member Avatar
+0 forum 1
Member Avatar

Hi Does anyone know how to playing a set of short WAV files without delay? I was using the following, but there is a delay in-between. PlaySound("a.wav",NULL,NULL);//PLAY WAV SOUND ONCE PlaySound("b.wav",NULL,NULL);//PLAY WAV SOUND ONCE or I need to concatnate a few sets of short WAV files into one descriptor so that I can play them smoothly without delay. If so, how to? Thanks in advance.

Member Avatar
+0 forum 3
Member Avatar

Hi, I have a question about generating a 1kHz sine wave. First of all, we can't use the sin function so I just made a function that evaluates sin at some point... [CODE]int generate_sin(int t); { int sin; sin = t - ((t^3)/(3*2*1)) + ((t^5)/(5*4*3*2*1)); return sin; }[/CODE] Now, this function will evaulate sin at some number t but I am confused about the 1 kHz part... I'm probably just confused about the math behind it but how do I generate an entire 1kHz wave. Thanks

Member Avatar
+0 forum 3
Member Avatar

i tried to setup a wifi network using my samsung wave S8500 phone through the mobile AP setting. however when i tried to connect it to my windows vista laptop it showed that the access was 'local only'. On further investigation I realized that the IPv4 connection was local and IPv6 was limited. I set the options to obtain IPv4 automatically and did the same for DNS and IPv6 but to no avail and when i try to disable the WPA protection it says that the action is not supported by the network. I tried rebooting the connection, phone and …

Member Avatar
+0 forum 1
Member Avatar

Google said on Wednesday that it was killing its Wave collaborative development environment, citing lack of interest, according to published reports such as [URL="http://online.wsj.com/article/SB10001424052748704017904575409873762885194.html?mod=googlenews_wsj"]in [/URL]the [I]Wall Street Journal.[/I] Blog entries from Google appeared as recently as July 27; in fact, the Google Wave [URL="http://googlewave.blogspot.com/"]blog [/URL]does not yet have any information about the shutdown, which was announced on the main Google blog. "Wave has not seen the user adoption we would have liked," [URL="http://googleblog.blogspot.com/2010/08/update-on-google-wave.html"]wrote [/URL]Urs Hölzle, Senior Vice President, Operations & Google Fellow. "We don’t plan to continue developing Wave as a standalone product, but we will maintain the site at …

Member Avatar
+1 forum 3
Member Avatar

A few weeks ago I received a Google Wave invitation from my friend [URL="http://www.knopf.com/"]David Knopf[/URL] (after publicly begging for one in my post [URL="http://www.daniweb.com/news/story227584.html"]Hoping to Surf the Google Wave[/URL]). Since then, I've had a chance to use it and I've seen the good, the bad and the ever-present potential of the tool. While it does have tremendous potential, I think some of my initial concerns as outlined in my post [URL="http://www.daniweb.com/news/story220576.html"]A Curmudgeonly Look at Google Wave[/URL], have proven true. [B]The Good[/B] Just the other day, I was invited to be on a panel to discuss Google Wave at the [URL="http://gilbaneboston.com/"]Gilbane …

Member Avatar
+3 forum 20
Member Avatar

Hi everyone. I have an MFC project in Visual C++ 6 and was wondering in which way can i detect the level of audio output. I want to execute some code only when no sound is sent to the audio output. Could anyone please give me a clue of how to get a small sound sample (say 200 ms) and check if sound level is zero (or if this is impossible, close to zero). Thanks in advance.

Member Avatar
+0 forum 1
Member Avatar

hiii guys.. i am trying to make an mp3 player using ADSP 21369 processor. For that i need a code which can convert mp3(mpeg2 layer3) samples to wave samples in c. thanx in advance.

Member Avatar
+0 forum 3
Member Avatar

Hi, I don't know if this is the right place to post this question but here is my problem, I would like to take an audio wave file and convert it to a data file, (.csv, .txt etc). I would like to do some signal analysis on the file but I need it in the form of raw numbers. Is there any way to accomplish this using software? Basically just a "software" A/D converter that decomposes the wave file into numeric data! Thanks, Sam

Member Avatar
+0 forum 1
Member Avatar

Hi guys, At the minute, I'm writing a simple Java application under Lucid Lynx, the latest and greatest Ubuntu release :) Can anyone tell me how to make the windows in my application, match the look and feel of the other windows in the system? I've tried setting the default look and feel to the system look and feel, but it doesn't work. I'm using the "New Wave" theme in Lucid, and all the windows have a grey top border, and grey menu bars. My application's windows have the grey top border but they don't have the grey menu bars. …

Member Avatar
+0 forum 1
Member Avatar

You can use Python modules math, wave, and struct to create and save a synthetic sine wave of given frequency and duration (size) ...

+1 forum 0
Member Avatar

I got an invite and have now joined for 2 months. But sadly enough i still haven't be able to see real benefits of it. I added some of friends but never see them online. I wonder if GW will really works? I think GW will only work if people like you and myself really believes in this technology otherwise GW will only gather dust!

Member Avatar
+0 forum 5
Member Avatar

I just read an article on Google Wave - Mashable. [url]http://mashable.com/2009/11/22/news-media-google-wave/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Mashable+%28Mashable%29&utm_content=Google+Reader[/url] I dont have an invitation yet so I have not had a chance to check Google Wave out but I wonder if you do have the access of Google Wave, then what do you think about it? Do you think its worth the fuss?

Member Avatar
+0 forum 9
Member Avatar

I read online that Google Wave is like the next best thing since wonder bread. I do know that only 100,000 invites were sent. So what do you think if you were one of the lucky ones? I have seen the video on youtube but other than that, I still cant judge. [url]http://searchenginewatch.com/3635254[/url]

Member Avatar
+0 forum 4
Member Avatar

Hi, I have just got Google Wave but don't have any contacts (Appart from the person who invited me) I can't figure out how to invite people eather so I was wondering if people would like to post there GMail addresses here I can add you so I can finally start talking 2 ppl =) Just have a DaniWeb Wave My gmail is samarudge .-[at]-. gmail.com =) P.S. If anyone posts here saying "Can you send me an invitation" I WILL add negative rep points. This is for people who have Wave, not who want it.

Member Avatar
+0 forum 5
Member Avatar

As we are moving closer to the release of Wave, has anyone begun considering what SEO strategies are going to be needed? I am not looking for secrets, more of an executive summary that addresses what aspects of Wave will be the most challenging for SEO.

+0 forum 0
Member Avatar

[I]I have watched you on the shore Standing by the ocean's roar Do you love me, do you surfer girl ~Beach Boys, Surfer Girl [/I] [URL="http://wave.google.com/help/wave/closed.html"]Google Wave[/URL] invitations went out last week to 100,000 lucky people and I didn't get one. I'm stuck on the shore line while the fortunate few are riding the first Google Wave. I don't mind telling you, I really want to get my hands on an invitation. I know what you're thinking if you're a regular reader: 'Aren't you the guy who wrote [URL="http://www.daniweb.com/news/story220576.html"]A Curmudgeonly Look at Google Wave[/URL] when it was first announced?' Well …

Member Avatar
+2 forum 5

The End.