Re: [Csnd] [EXTERNAL] [Csnd] Tuning issues with the various pluck opcodes
Date | 2022-08-27 22:13 |
From | Scott Daughtrey |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Tuning issues with the various pluck opcodes |
Thank you for the reply. There were a few things missing here (ex. ksmps) and even with that Csound kept crashing. I modified the original to include aexc = 0 and got the result below. It works better now but doesn't seem to like notes in upper registers (I only tried A880 and the octave above so I don't know where the break point is). |
Date | 2022-08-27 23:50 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Tuning issues with the various pluck opcodes |
The second code I sent earlier was correct. It doesn’t need to set ksmps (defaults to 10). No crashes here. It works right up the register, you are probably. The line to be corrected was aexcr = 0 and not aexc = 0 ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 27 Aug 2022, at 22:13, Scott Daughtrey |
Date | 2022-08-27 23:52 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Tuning issues with the various pluck opcodes |
Notes above the normal guitar range will not work well of course. ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 27 Aug 2022, at 23:50, Victor Lazzarini |
Date | 2022-08-28 00:05 |
From | ST Music |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Tuning issues with the various pluck opcodes |
Thank you for the reply. I was not aware ksmps defaulted to 10, seems I am learning something new everyday. I set ksmps to 10 and everything works fine now. I was aware the correct line was aexcer = 0 you will notice in the post I made I actually used the correct line in the instr code, however I made the same mistake you did in your first reply to me aexc = 0 although like me you used the correct line in the instr itself. You may have missed my follow up "Oops" post where I corrected myself. Thank you again, it will fun to have another useful instr. Cheers. On Sat, Aug 27, 2022, 6:52 PM Victor Lazzarini, <Victor.Lazzarini@mu.ie> wrote: Notes above the normal guitar range will not work well of course. |
Date | 2022-09-03 17:52 |
From | Aaron Krister Johnson |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Tuning issues with the various pluck opcodes |
Victor, I'm revisiting this code. May I ask: where is `alps` being referenced in the code that follows? It looks like a dangling variable. (specifically, the output of `filter2`) It looks like it's being calculated, but not being used as an input (by my reading, the `aflt` is the only filter output being fed to output) Also, what is your suggestions for using this MIDI since the `line` using `p3` won't be a thing (unless it's negative, as you mentioned)...I've already adapted it to use amp and pch from MIDI opcodes. Thanks, On Sat, Aug 27, 2022 at 4:07 PM ST Music <stunes6556@gmail.com> wrote:
|
Date | 2022-09-03 20:58 |
From | Aaron Krister Johnson |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Tuning issues with the various pluck opcodes |
Oh, I see `line` was replaced by `timeinsts`... On Sat, Sep 3, 2022, 09:52 Aaron Krister Johnson <akjmicro@gmail.com> wrote:
|
Date | 2022-09-03 21:40 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Tuning issues with the various pluck opcodes |
Ah, alps should replace aflt in the delay line input, that's the allpass filter out. I probably fiddled with it and ended up removing it.
The funny thing about p3 is that you are right, the check won't work, but the code does because linseg produces 0 after idel seconds.
Better to use timeinsts anyway.
Prof. Victor Lazzarini
Maynooth University
Ireland
On 3 Sep 2022, at 17:53, Aaron Krister Johnson <akjmicro@gmail.com> wrote:
|
Date | 2022-09-03 22:22 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Tuning issues with the various pluck opcodes |
and I just noticed that the filter2 manual page is misleading (well, it’s wrong), so the filter2 line I used for the allpass was incorrect. This is the right one alps filter2 aflt,2,1,icoef,1,icoef The manual page stated that the second parameter was the number of zeros, and that was wrong. It’s the number of feedfoward coefficients. I correct it in git. Pretty annoying actually when we get caught in this,. I was using biquad previously, and changed to filter2 but because I had the allpass out of line, I never noticed it wasn’t working. ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 3 Sept 2022, at 21:40, Victor Lazzarini |
Date | 2022-09-12 17:00 |
From | Aaron Krister Johnson |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Tuning issues with the various pluck opcodes |
Cool...thanks for that tip. BTW, I took this thread (sort-of) to another which proposed a solution for my issues with plucking-in-general in csound; but I felt a new thread was called for since it might be of general interest to folks using faust integration. Cheers, On Sat, Sep 3, 2022 at 2:22 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote: and I just noticed that the filter2 manual page is misleading (well, it’s wrong), so the filter2 line I used for the allpass was incorrect. |