czardas Posted June 19, 2012 Author Share Posted June 19, 2012 (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 June 20, 2012 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
MvGulik Posted June 19, 2012 Share Posted June 19, 2012 What OS are you using?Windows.XP.Pro.32bit.+SP3.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.)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 ... Link to comment Share on other sites More sharing options...
czardas Posted June 19, 2012 Author Share Posted June 19, 2012 (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 June 19, 2012 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
czardas Posted June 20, 2012 Author Share Posted June 20, 2012 (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 metalic2. Set to Randomise mode3. Pump up the wind speed to 60 mph4. Leave it running for a few minutes5. Drop the wind speed to 1 mph6. Listen for a low rumbling noise in the backgroundAfter 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 June 20, 2012 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
MvGulik Posted June 21, 2012 Share Posted June 21, 2012 (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 June 21, 2012 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 ... Link to comment Share on other sites More sharing options...
czardas Posted June 21, 2012 Author Share Posted June 21, 2012 (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 June 21, 2012 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
czardas Posted December 30, 2012 Author Share Posted December 30, 2012 (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 December 30, 2012 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
mLipok Posted March 25, 2013 Share Posted March 25, 2013 thanks for the script for me it is awsome relaxing music czardas 1 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 Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24 Link to comment Share on other sites More sharing options...
czardas Posted March 25, 2013 Author Share Posted March 25, 2013 (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 March 25, 2013 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
somdcomputerguy Posted March 25, 2013 Share Posted March 25, 2013 It is very nice to listen to and 'play around' with. I look forward to more.. czardas 1 - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Moris258 Posted November 4, 2020 Share Posted November 4, 2020 (edited) Or you can do something similar to Woodstock Chimes WPCB from this collection? https://windchimesguide.com/reviews/bronze-wind-chimes/ I would like. Edited November 5, 2020 by Moris258 Link to comment Share on other sites More sharing options...
Developers Jos Posted November 4, 2020 Developers Share Posted November 4, 2020 (edited) @Moris258 ... and the reason for posting this information in this 7 years old thread was what exactly? Edited November 4, 2020 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Moris258 Posted November 5, 2020 Share Posted November 5, 2020 @Jos I don't want to creat new topic Link to comment Share on other sites More sharing options...
Developers Jos Posted November 5, 2020 Developers Share Posted November 5, 2020 For what? Adding your adv to this thread? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now