Hi,
Does polyphony on the wav trigger also apply when you play several time in a (short) row the same .wav file on the sd card ?
Looking at my code :
trackplaypoly(sample1)
delay 1ms
trackplaypoly(sample1)
The tail of the first .wav is cut off by the 2nd.
Thank you
Try using the same WAV file for tracks 1 & 2, with differing names?
It worked. but on the other hand I’ll need loads of samples.
Is it a hardware limitation ?
I tried on a computer you can play the same audio file with different applications at the same time.
Sorry for the delay - I’ve been off grid for a few days. I also responded to your post on the Robertsonics website. As I said there, I would have thought this would already work as you expected. I’ll have to take a look to see what’s going on. It’s possible that it’s working the way I intended, but I can’t at the moment recall the reason. It’s also possible it’s a bug.
I’ll report back here.
What version of firmware are you running? If you don’t know, you can get it via the serial connection using the getVersion() command.
Hi,
No worries, thanks for your help.
It’s the default firmware 1.28.
Is there any chance you can update to the latest firmware? There have been 4 releases since v1.28 with a number of things fixed and features added. I don’t currently have any easy way of troubleshooting older versions.
Can I use an arduino to flash ?
Or should I buy a FTDI basic ?
Hello,
My turn for being sorry for the delay. Long story, I had to repair the arduino after damaging it. Finaly I bought a ftdi.
I managed to flash v1.34 (latest release), unfortunately it didn’t change the issue.
I’ll watch this thread , but take your time.
I can flash another release if needed.
Thanks
Sorry for the delay. I spent considerable time testing this and can confirm that triggering the same track creates multiple instances of the same sound in polyphonic mode. I used the latest WAV Trigger firmware and essentially duplicated your code, but added a call to get the number of active voices, which correctly indicated that two voices where playing after starting the track twice in succession.
I will note that starting the same track twice separated by only 1 millisecond is likely to sound like only one track. I’d suggest that for the purposes of testing, increase the delay to more than 100 ms just to confirm that you’re hearing both versions. Of course, this assumes your track is longer than 100ms. Again, just for testing purposes, try using a track that’s at least several seconds long, then start it twice separated by 100ms or more.
Just to make sure there wasn’t something weird going on when the delay was only 1ms, I added code to request the number of active voices after sending the start commands, and was able to confirm that there were indeed multiple copies being played, even though it only sounded like one.
Hope this all makes sense.
Hello,
Thank you for your kind help.
Sorry I forgot something…
I’m using different gain settings.
It works fine when the gain is steady but this code is cutting off the tail of the 1st track :
wtrig.trackGain(30, 0);
wtrig.trackPlayPoly (30);
delay (500);
wtrig.trackGain(30, -30);
wtrig.trackPlayPoly (30);
Am I missing something ?
Well that’s different… The trackGain() command doesn’t (can’t) distinguish between multiple instances of the same track, so your second trackGain()command is setting the first instance to -30dB, which is probably inaudible. Not sure what you’re trying to do, but you may need to use multiple copies of the same wav file as different tracks if you’re trying to independently set the gains.
All right, thanks for the clarification.
I’m making a midi piano, (over midi to serial), my code is changing the gain of the sample according to the midi velocity input.
I’ll use multiple copies, it’ll be easier.
Not to be argumentative, but with most musical instruments, including the piano, when you replay the same note, it cuts off any previous instance. When a piano hammer strikes the strings, it stops the vibration from any previous note.
Yes you’re right, but this is the magic of digital world, you can change reality
The abrupt cut will sound a little harsh though, maybe the lack of real world echo. With the wav trigger, it sounds much natural not to change the gain of the same sample. But both note will be at the same audio level.