Polyphony troubles #13
Replies: 5 comments 4 replies
-
Hi, sounds strange. Would you like to try to add some debug output into the NoteOn/NoteOff function. It may be good to know if the MIDI messages are not triggering the functions or otherwise the sampler itself exceeds its max polyphony. |
Beta Was this translation helpful? Give feedback.
-
It didn't seem to change performance when the line above was added to the sampler_module. Here's a quick example of what happens... must be easier to diagnose when heard. |
Beta Was this translation helpful? Give feedback.
-
That makes a lot of sense! ... |
Beta Was this translation helpful? Give feedback.
-
Update - by reducing the following line enough there's full polyphony (up to 8) This is all stripped out and takes away a lot of features of your project, I understand that. Thanks for all the help. And, well done indeed on the sampler upgrades in your latest video! |
Beta Was this translation helpful? Give feedback.
-
Am presuming that nearly every MIDI controller with a keyboard has velocity sensitivity. For priority, it may be easiest to put the matter to the ears of the musician and remove the problem. If cutting and glitches happen, people would know their ultra long decays are causing it and know it as a normal limitation. Personally, I would expect 5x 1.5 second piano samples to play, but only 3x 6 seconds long vocal Aah's. I mean, there's an easy logic for a sampler's abilities. The screen and board mod are definitely going to happen here! Oh, the Nano's have been a mess over the years. It's normally not the flash that goes, but the diode underneath the board. Various manufacturers, same problem. In my experience, they blow if uploads are made rapidly and the cycle count is around 200 - I have completely no idea why. There is a fix, to run a wire from pin 1 of the USB input to where the output of the diode should go. The pads tend to fall off if trying to replace the diode. ^ sorry for the Sunday ramble |
Beta Was this translation helpful? Give feedback.
-
After changing various bits of code, I decided to rewind back to the original code as Marcel has presented and sort out polyphony. Also, to use something other than an Arduino MIDI interface, a real MIDI enabled keyboard instead.
Something was messed up. Single notes were fine, chords dropped notes.
Setup now, is the original code running on an Audio Kit V2.2, triggered by my Yamaha YS200. Various MIDI Out channels have been tried, to test that functionality too.
Samples are 44.1K, 16 bit, downloaded from free sites such as:
https://freewavesamples.com/sample-type/bass/synth <-- superb resource.
The same problem persists - single notes play perfectly and at whatever speed I press the keys. But chords often miss notes. The first chord will work fine, subsequent chords may or may not play all of their notes, it seems somewhat random. Usually only 2 notes will play of 4, for example.
If time is given, such as 3 or 4 seconds, a chord will play fine, but not if pressed soon after the first chord.
Any sample does the same thing, from very short basses, to ultra long pads (all wavs are between 100K and ~1MB on the SD card).
Tried lowering the sample rate in the setup area of the code to 22050, no change.
Tried uploading as a LOLIN D32 PRO because they have 8M PSRAM like the Audio Kit V2.2, no change.
Tried sternly warning it to behave after drinking several beers, no change :)
So posted here for ideas on what's happening.
Is everyone elses polyphony fine?
If there are no such troubles, what may be the issue?
Beta Was this translation helpful? Give feedback.
All reactions