If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Wav (Mem) to Float array issue.
19 posts
• Page 2 of 2 • 1, 2
Re: Wav (Mem) to Float array issue.
Damned! Thank you, Hugh. Fixed in the original post.
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Wav (Mem) to Float array issue.
Found this interesting free wave editor (intended for wavetables for specific hardware units, but can save single-cycle .wav files): http://synthtech.com/waveedit/
We have to train ourselves so that we can improvise on anything... a bird, a sock, a fuming beaker! This, too, can be music. Anything can be music. -Biff Debris
-
Duckett - Posts: 132
- Joined: Mon Dec 14, 2015 12:39 am
Re: Wav (Mem) to Float array issue.
martinvicanek wrote:Fixed in the original post.
From which I deduce that the 'counter' in the original 2017 version can simply read -
- Code: Select all
streamout index;
index += 1;
Is that right? I'll have to see if I can't optimise that a bit
H
-
HughBanton - Posts: 265
- Joined: Sat Apr 12, 2008 3:10 pm
- Location: Evesham, Worcestershire
Re: Wav (Mem) to Float array issue.
Martin, I just tried your latest (fixed) reader and the load time is now good and the CPU is even lower than your previous one.
Now here comes that big BUT…
The wrap-around glitch is back
With this version my nasty trick of resampling up to 2048 doesn’t fix it.
I should also mention that on one change of wav file the audio stream turned off. That never happened before with my current system. I suspect it’s something to do with writing stuff to memory 9 times, but I don’t know for sure.
Honestly Martin, unless you really want to carry on with this, please keep in mind that I’m happy with what I have. Of course if you would like to try other solutions I will happily test them.
Cheers
Spogg
Now here comes that big BUT…
The wrap-around glitch is back
With this version my nasty trick of resampling up to 2048 doesn’t fix it.
I should also mention that on one change of wav file the audio stream turned off. That never happened before with my current system. I suspect it’s something to do with writing stuff to memory 9 times, but I don’t know for sure.
Honestly Martin, unless you really want to carry on with this, please keep in mind that I’m happy with what I have. Of course if you would like to try other solutions I will happily test them.
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Wav (Mem) to Float array issue.
Here's a basic note counter that plays Martin's wave readers from MIDI_in.
Annoyance Warning! - made in FS64 so will be 3.09 (or higher??) ...
This is based on pretty much the same as I do. I do hear a slight 'buzzing', slightly more on some notes than others, but I can't see anything wrong as such with the numbers. The wrap-around slope value that it generates looks correct.
Maybe the sharp slope at the end is exessive for a 256-point waveform, and this is just regular aliasing as a result?
Dunno! Hope it's useful ...
H
Annoyance Warning! - made in FS64 so will be 3.09 (or higher??) ...
This is based on pretty much the same as I do. I do hear a slight 'buzzing', slightly more on some notes than others, but I can't see anything wrong as such with the numbers. The wrap-around slope value that it generates looks correct.
Maybe the sharp slope at the end is exessive for a 256-point waveform, and this is just regular aliasing as a result?
Dunno! Hope it's useful ...
H
Last edited by HughBanton on Tue Sep 24, 2019 9:33 am, edited 1 time in total.
-
HughBanton - Posts: 265
- Joined: Sat Apr 12, 2008 3:10 pm
- Location: Evesham, Worcestershire
Re: Wav (Mem) to Float array issue.
Spogg wrote:The wrap-around glitch is back
That's odd, it does work here. The attached demo showa a clean sinewave regardless of frequency. Distortion and aliasing would indicate a glitch but no such thing here.
- Attachments
-
- Interpolated Wave Reader Test.fsm
- (1.28 MiB) Downloaded 825 times
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Wav (Mem) to Float array issue.
Thanks Martin. I can confirm that your demo doesn’t show a glitch. I added a “Steady Scope” which works with the analyser and the sine wave was indeed pure.
I re-tried the reader from your test and used the counter from it as well (just in case) but I still got the issue.
So I’m puzzled!
Cheers
Spogg
I re-tried the reader from your test and used the counter from it as well (just in case) but I still got the issue.
So I’m puzzled!
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Wav (Mem) to Float array issue.
If yo post a stripped down schematic which shows the glitch we may sort this out.
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Wav (Mem) to Float array issue.
Well, this is fascinating!
I stripped down the schematic to almost nothing and added you reader and counter and there was no glitch.
So I copied that oscillator back into the original schematic and still no glitch.
I just can’t account for this so maybe it was a weird FS issue, not updating the compilation correctly or something. I would say that it could have been my mistake but I had already changed for your reader and counter on 2 separate occasions previously.
Whatever the reason, I can confirm that it works great now. The wav changeover is fast and the CPU is lower than before. So I’m left puzzled but happy.
Thank you so much Martin!
Spogg
I stripped down the schematic to almost nothing and added you reader and counter and there was no glitch.
So I copied that oscillator back into the original schematic and still no glitch.
I just can’t account for this so maybe it was a weird FS issue, not updating the compilation correctly or something. I would say that it could have been my mistake but I had already changed for your reader and counter on 2 separate occasions previously.
Whatever the reason, I can confirm that it works great now. The wav changeover is fast and the CPU is lower than before. So I’m left puzzled but happy.
Thank you so much Martin!
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
19 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: Google [Bot] and 78 guests