10-01-2016 06:17 PM
Hello,
I am new to LabVIEW and I'm buliding the piano stairs that AshLu posted on the community but I am having problems with the code ( https://decibel.ni.com/content/docs/DOC-12384 ). When I use my own .wav files for each step sound I get error:
Error -1802 occurred at Add in PlayNote8.vi:4570001->MyDAQ8.vi
Possible reason(s):
LabVIEW: (Hex 0xFFFFF8F6) Waveforms have different dt values.
The VI is attached at the bottom.
Any help would be appreciated.
Thanks
10-01-2016 07:33 PM
waveform has different frequency (41, 44 kHz). Maybe this is reason of error. Try set one dt for all wf in array.
10-01-2016 08:34 PM
Okay how/where would I do that?
10-01-2016 09:13 PM
I can't open myDAQ8 that was inside the ZIP file you attached. Can you also attach an example of the .WAV file you built? Note that these files are not LabVIEW Waveforms -- they are sound files adhering to the Waveform Audio File format. Something is strange here -- it looks like there are some serious problems with the playing of .WAV files.
Bob Schor
10-01-2016 09:30 PM
The .wav files I'm using are piano key sounds like the ones below. I downloaded them from online.
I got the ZIP from this URL: https://decibel.ni.com/content/docs/DOC-12384
10-01-2016 11:02 PM
If you are really "new to LabVIEW", you are going to need to either spend a good amount of time with tutorial material to really learn the basics of LabVIEW, plus study very carefully the code that you downloaded (which is moderately sophisticated with elements that may go beyond the on-line tutorials), or (better) find a LabVIEW Guru who can work with you for several weeks to help you to learn what is going on here. This is not a "beginner's Project".
Second, while I don't have Perfect Pitch, I can tell you that the Wave Files you downloaded are not accurately named (unless the modifiers "Sharp" or "Flat" have been deliberately omitted). For example, the interval between B and C is a half-step, yet the difference between B.wav and C.wav is a whole step ...
Bob Schor
10-01-2016 11:44 PM
Thanks for the help.
Any last ideas, or other options for this project?
10-02-2016 06:24 AM
Oh, I see your error, but it difficult to describe. Because my english is bad and your LabVIEW is low 🙂
I try.
All wave has same dt (2,26757E-5), but here
you sometimes replace original wave by zero-wave with dt=1 and 4000 points.
And finally you get array of waves with different dt.
If you will use the same file everytime, you can replase dt=1 in your wave-constants by dt=2,26757E-5
10-02-2016 07:32 AM
If you don't understand the origin of Artem's "magic number" of 2.26757E-5, then you need to do some research on the .wav format, particularly the representation used for audio CDs, and the meaning of the elements in the LabVIEW Waveform Cluster.
Bob Schor