playNoteWithStartOffset
-
Is this like a midi delay?? If so very cool!
-
It's the other way around - you can skip into the sample making it a negative delay - a normal midi delay can just be done using
Message.delayEvent()
.@d-healey I've pushed an explanation to the Extended API doc...
-
@christoph-hart Excellent, this is going to be very useful for my legato script so I can skip the attack of mid phrase notes - currently I'm having to use a constant modulator.
-
Yup this is exactly what it‘s there for.
-
Am I right in assuming that the value passed as the offset should be in samples?
I'm getting instant crashe/close when using any offset greater than 0, I even tried setting the s.mod to the full length of the sample.
-
Hmm, seems the issue isn't with the function, I need to debug more.
-
Ok I worked it out. There is a bug :) but it only happens when using multi-mic samples. With a really low offset it causes some nasty distortion and noises, with an offset greater than 1 millisecond it causes an instant crash on my system.
-
bump bump
-
Yupp, will add it to the things to fix with the new sample map system.
-
@christoph-hart Has this been resolved?
-
@d-healey said in playNoteWithStartOffset:
@christoph-hart Has this been resolved?
It has not :p
dmesg shows this if it's any help:
segfault at 7f4d7dc0dc74 ip 00000000008c49ea sp 00007f4dd6ef9df0 error 4 in HISE Standalone[400000+f61000]
-
Was the recent multichannel crash commit meant to fix this issue?
-
A quick demo of the bug, does some strange stuff. https://youtu.be/d5fjOezOtZ4
-
@d-healey This problem is still present in the develop branch
-
I think I found the problem and fixed it, but I didn't reproduce the issue because I am lazy. Can you check if it works now?
Basically I didn't duplicate the code from the normal sample playback to multimic playback, which caused a sample offset of minus one (=> crash)
-
@christoph-hart Building now...
-
Yippie! it works! thank you!!!
-
Well, you waited long enough :)