Karplus-Strong... issue with MIDI
I'm not sure if it's a bug or if it's something I'm doing wrong. When I click on a key on the kslider, I get 4 different notes on the same key. If I click on the different keys I get the 4 same ascending notes. The octaves don't change. I don't know if it's the mtof object or what. I'm a bit frustrated. Here is a copy of my patch.
You are aware that tapin~/tapout~ can't handle a delay shorter than the Signal Vector size, aren't you? I think that's what you're running into in your patch. Set Signal Vector size in Options->Audio Status to, say, 32, and you the higher pitches.
Is that what you're asking about?
Peter! You are a genius. I didn't know that about the tapin~/out~, but thanks to you I do now. It's working like it should. Thank you, sir.
Glad I could help.
It's easy to overlook the limitation of tapin~/tapout~.
You might want to look at delay~ as an alternative, although feedback will need more special attention. In general, with MSP objects any attempt to create a feedback loop between them will force a delay of one signal vector (this is fundamental to the whole way the DSP chain is calculated). One way or the other, you're probably going to have to keep the signal vector size small to do what you want.
Yet another alternative would be to look at gen~ or building a custom external in C to work with feedback delays shorter than the signal vector size. But they have their own learning curves..
Kind of related (@Peter and OP), I have found the "transition" to Gen (if you have it) very comfortable, I've also found my string modeling more effective in Gen too. Cleaner, more responsive etc. Purely subjective of course.
And there was a recent thread here with a nice simple example of how to achieve DWG-type pluck-position control too, let me see if I can find it . . . .
2c
is this the one you were looking for, Brendan?
Yes indeed Andreas, thanks.
It links to this:
https://cycling74.com/forums/bidirectional-digital-waveguide/
:)
Yet another alternative would be to look at gen~ or building a custom external in C to work with feedback delays shorter than the signal vector size. But they have their own learning curves..
The OP maybe just working for his own education, in which case this won't be relevant, but I have a Karplus-Strong string Max external available free online. It's good fun. You can do vibrato and all sorts of things.
Cheers,
Aengus.
Aengus,
I am just working for my own education. I've always been interested in computer programming and sound design, but didn't have the support to be able to do it until now. I downloaded your Karplus-Strong Max external and it is sheer genius. I love it. Thanks so much. My options for learning Max/MSP seem to be YouTube for now. I got started on this because a guy posted a tutorial 4 years ago that I just recently saw. Luckily, guys like you are reading posts like mine and helping out.
Thanks to everyone for chiming in.
@markgoebel
besides the documentation, which is available in pdf format here:
https://cycling74.com/forums/unofficial-max-6-documentation-in-pdf-format-avialable/
there is a long list of books on programming in Max:
https://cycling74.com/search-results/?q=books#gsc.tab=0&gsc.q=books&gsc.page=1
Youtube, like the internet in general (and any book list), has variable quality. But Peter Batchelor's series is pretty extensive and oft-cited, as is Sam Tarakajian's.
http://www.peterbatchelor.com/maxtuts.html
https://www.youtube.com/user/dude837
You're bound to find something that suits your own personal learning style amongst that lot ;)
Brendan