| Reply | « Previous Thread | Next Thread » |
|
Is there a way to generate a short beep or click (as in the old OPL command "beep")?
It's for the metronome in my Musician app - it's all very well being able to summon up MID or WAV or MP3 sound files, but the very act of calling them is going to mess up the split second timing of the program. Surely there's a simple way (or hack) to sound something like the built-in system keyclick noise? Or a simple beep? Thanks Steve Litchfield |
| slitchfield |
| View Public Profile |
| Find all posts by slitchfield |
|
Quote:
|
|
Just try playing a short WAV sample with the audio module and see if it's good enough.
|
|
Quote:
A built-in 'click' or beep function would be far more likely to work quick enough, though. No other ideas? Cheers Steve Litchfield |
| slitchfield |
| View Public Profile |
| Find all posts by slitchfield |
|
You could try playing the file from the RAM disk (D: ). I don't know if it makes any difference, but it's easy to try.
|
|
Quote:
file_copy("D:\\metronome.wav","E:\\metronome.wav") but Python tells me that global name file_copy is not defined. Any ideas? Is this a misprint in the PDF docs? Steve Litchfield |
| slitchfield |
| View Public Profile |
| Find all posts by slitchfield |
|
If you said "import e32" you need to say e32.file_copy.
|
|
Quote:
make a big difference, I think the metronome's sorted now!Thanks again Steve Litchfield |
| slitchfield |
| View Public Profile |
| Find all posts by slitchfield |
|
Hello ,
You can also generate a beep with a midi file ! Korakot has modified a "smidi" library and showed usage in Snippet PyS60 Generate and play midi on mobile phone.. links references : smidi library : http://larndham.net/service/pys60/smidi.py Generate and play midi on mobile phone. : http://www.bigbold.com/snippets/posts/show/572 |
|
Quote:
BTW, the tuning notes in the program are MID files.... Steve |
| slitchfield |
| View Public Profile |
| Find all posts by slitchfield |
|
Quote:
There music.loudest() function and music.tone(freq,duration,volume) function. You find there source and sis file for you phone. http://csg.csail.mit.edu/IAP06/pyext.zip Curious but in my 6600 Nokia phone It doesn't work :-( |
|
It doesn't work on my 6600 either.
(That's why I haven't written a snippet about it.) |
|
Quote:
I'd need to produce some tones at 19000 Hz for very short durations (400 to 2000 microseconds, i.e. 0.4 to 2.0 milliseconds) |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Application skips many times when I click the application | bb_sathya | Mobile Java General | 0 | 2005-12-20 05:49 |
| beep within applicaiton for 6230i very quiet | gwhistance | Mobile Java General | 0 | 2005-11-30 15:57 |
| Belkin USB Bluetooth Adapter Works! | jonawebb | Bluetooth Technology | 10 | 2003-06-21 21:10 |
| How to use Beep() to make a system beep on 7650? | bijibiji | General Symbian C++ | 0 | 2003-05-07 11:54 |
| How to detect a double click event in S60 C++ | kdinn | General Symbian C++ | 0 | 2002-12-11 05:28 |