The following code is used for exporting a sound ( .wav format), and is part of a whole program created for generating sounds at any frequency and timbre, the issue is that the code EXPORTS pretty FINE when the variable: samplerat <=6000, however, no matter the AudioEncoding used, it never save the .wav file when the variable: samplerat > 6000, and mathematica give neither any warning nor error message, at all, it is just that it does not save the file, that's it.
I am stucked on this and cannot find the reason. Let me remark this again: "No matter the AudioEncoding used", no doubts about it, Real64, Real32, Integer 32, etc., whatever.
(I increased the virtual ram memory on my computer but it does not help.) The size of the .wav audio files when using samplerat= 6000 is just about 36KB, which is frankly extremely short (because they are just the sound of a guitar string at any frequency)
Follows the code for the exporting the .wav file: *********************************************************************************
soundtoexport =
Sound[Play[soundnotef, {t, 0, soundtime}, Compiled -> True,
PlayRange -> All, SampleRate -> samplerat], SoundVolume -> 1],
soundfilename =
Export[StringJoin["c:/0/", "Sound", ".wav"], soundtoexport,
AudioEncoding -> "Integer16", SampleRate -> samplerat]
Many thanks in advance for any help or tip on this matter, Best regards Domingo