Jump to content

Recommended Posts

Posted (edited)

I have tried to reproduce this error and I couldn't. With all the other instruments apart from Atmosferic (which is actually called metalic by whoever created winmm.dll) the sound fades away to nothing by default. I did add a short delay of 750 miliseconds before the program closes - I don't suppose that has anything to do with it. Atmospheric setting does remain sounding slightly until the notes are stopped). I don't understand why guitar 2 (jazz guitar) would continue ringing. Even after removing the code responsible for stopping the notes, all sound stopped automatically after I quit the program.

When notes are repeated, the second instance cuts out the first instance (at least that happens on several machines I have tested). It would be possible to stop notes before they repeat (I'll look into it), however I'm not sure if that is the problem. I am currently at a loss to explain this. The best I can do is look for any potential problems in my code.. What OS are you using?

I have already made more changes to the program and will post the new code shortly. Now several controls remain active during playback thanks to your input MvGulik which reminded me of the fact I hadn't made a decision what to do with them. I hope you don't experience the same problem with the next version. It may be something to do with your sound card. I wonder if anyone else has experienced the same problem using this program.

Edited by czardas
Posted

  On 6/19/2012 at 5:29 PM, 'czardas said:

What OS are you using?

Windows.XP.Pro.32bit.+SP3.

  Quote

It would be possible to stop notes before they repeat (I'll look into it), however I'm not sure if that is the problem.

I'm not to sure either, but that's what it looked/sounded like. (A command line option where you can set the delay time perhaps.)

  Quote

It may be something to do with your sound card. I wonder if anyone else has experienced the same problem using this program.

I'm pretty sure is related to my sound card. I figure if it where more common someone else would already have reported it.

(Will try to do some comparing testing on some other systems.)

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Posted (edited)

I made a small miscalculation, but I'm not sure if it is of consequence. Turning notes off that are not sounding may be confusing your system. I am looking at tracking all notes that have been played and stopping them as and when they repeat. This is correct usage. I didn't do this previously because the program seemed to be working and I wanted to minimise processing time which may interfere with playback. As it happens that's not a problem, so I'll make this change. It could also be related to using global variables, but I doubt it. I'll see how much of a perfectionist I can be with handling this midi stuff. If I don't cut any corners it might behave (a bit better hopefully). Update coming soon. ;)

Edited by czardas
Posted (edited)

Latest Update - see

Stopping randomly played notes from sounding had me confused for a while The note's duration is unclear because different instruments have different periods of note decay. For example the instument called metalic leaves behind a low intensity residue of white noise in the background. Why it does that, I don't know (I imagine it is intentional). I may remove this instrument to simply not be bothered. Who thought of a name like 'metalic' anyway. ;)

The latest version (hirajoshi2.3.au3 in post 11) addresses the issue of stopping notes and does so correctly. The program should be more stable (theoretically - since MvGulik seems to be the only person to have had a problem with sound). Whether this solves the problem experienced by MvGulik remains to be seen. I hope it does. I was not entirely happy with the way it was coded before, but I never could quite figure out when I should stop the notes. It was always in the back of my mind. Now notes that repeat are always stopped before being repeated.

The following test demonstrates the metalic white noise residue I mentioned.

1. Set the instrument to metalic

2. Set to Randomise mode

3. Pump up the wind speed to 60 mph

4. Leave it running for a few minutes

5. Drop the wind speed to 1 mph

6. Listen for a low rumbling noise in the background

After the above test, pressing stop or quiting the program should turn off all currently sounding notes and the sound should stop after a quick decay (volume is reset). MvGulik - please let me know if it doesn't. Also you might want to try the same test with the other instruments.

hirajoshi2.3 includes quite a few other improvements. See change log in .

Edited by czardas
Posted (edited)

Tested version 2.1 and 2.3 on two other systems. Both using 'Realtek AC'97 Audio' however. So that still kinda racks up as one (sound) system.

No problem encountered with 'Hirajoshi Wind Chime' on those systems.

On the system with the 'SoundMAX Integrated Digital Audio' the new 2.3 version is still triggering the used sound/midi/? driver to go belly up. Not much you can do about that. (ergo: local issue. (restarting affected driver kills lingering sound.))

(While looking for possible alternative sound drivers on HP website I get the feeling I'm about to play russian roulette. :) )

Thanks for your effort. ;)

[spelling]

Edited by MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Posted (edited)

After a bit of research, it appears that SoundMAX sometimes has issues with midi. I didn't find much but here's a link. There are some error codes in the midilite UDF which may be documented on MSDN (although I'm not sure). I did not write these functions. They are taken from the more extensive created by eynstyne and later modified by Ascend4nt. Since it appears your soundcard is to blame for the problem, the error codes will most likely tell you nothing.

I would not go messing about with (or changing) your sound card unless you intend to use midi frequently. Thanks for reporting this. I don't believe it a widespread issue. If anyone else experiences issues with audio, please report it and give details about your sound card and OS. Thanks!

Edited by czardas
  • 6 months later...
Posted (edited)

Uploaded the latest version - - with just one change to the wind simulation which I made a while ago, increasing the top wind speed to something sounding more like chimes in a hurricane (as it should do). :)

Edited by czardas
  • 2 months later...
Posted

thanks for the script

for me it is awsome relaxing music

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

I'm happy you like it. It's a funny coincidence, I was thinking of running this again today after not using it for a while. If you set it right, it can sound very relaxing indeed. :) I intend to make more programs like this in the future.

Edited by czardas
  • 7 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...