| Author |
Message |
jeff-o
Joined: Jul 19, 2009 Posts: 97 Location: Ontario, Canada
|
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 5964 Location: San Antonio, Tx, USA
Audio files: 258
|
Posted: Thu Jul 23, 2009 5:00 pm Post subject:
|
 |
|
no problem, smallbear has an equivalent Shanghai Belling part in quantity one for a few dollars each. same delay IIRC. _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
jeff-o
Joined: Jul 19, 2009 Posts: 97 Location: Ontario, Canada
|
Posted: Thu Jul 23, 2009 6:39 pm Post subject:
|
 |
|
I can also get the MN3209 on eBay for $5 each. They're probably Chinese clones, but as long as they work it's fine with me.
Now, before I even consider continuing with this, do you know if I can dynamically change the delay time while it's processing a waveform? Can I push the sampling frequency a little higher and lower than specs? |
|
|
Back to top
|
|
 |
ian-s

Joined: Apr 01, 2004 Posts: 2519 Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 584
|
Posted: Thu Jul 23, 2009 7:03 pm Post subject:
|
 |
|
| jeff-o wrote: | | do you know if I can dynamically change the delay time while it's processing a waveform? Can I push the sampling frequency a little higher and lower than specs? |
Changing the clock frequency is no problem for simple Karplus Strong model. The upper clock limit is probably not very movable but the lower limit is more to do with the clock signal itself becoming audible. A problem for echo or chorus, but maybe not so critical in this application.
I don't have a link but I read a web page once about someone doing Physical Modeling using a modular synth with a BBD delay with good results. |
|
|
Back to top
|
|
 |
jeff-o
Joined: Jul 19, 2009 Posts: 97 Location: Ontario, Canada
|
Posted: Thu Jul 23, 2009 7:45 pm Post subject:
|
 |
|
| ian-s wrote: | | jeff-o wrote: | | do you know if I can dynamically change the delay time while it's processing a waveform? Can I push the sampling frequency a little higher and lower than specs? |
Changing the clock frequency is no problem for simple Karplus Strong model. The upper clock limit is probably not very movable but the lower limit is more to do with the clock signal itself becoming audible. A problem for echo or chorus, but maybe not so critical in this application.
I don't have a link but I read a web page once about someone doing Physical Modeling using a modular synth with a BBD delay with good results. |
That's encouraging. Let me know if you ever find that link. |
|
|
Back to top
|
|
 |
jeff-o
Joined: Jul 19, 2009 Posts: 97 Location: Ontario, Canada
|
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 5964 Location: San Antonio, Tx, USA
Audio files: 258
|
Posted: Sat Jul 25, 2009 7:49 pm Post subject:
|
 |
|
jeff-o, it is Fo = fs / N, where N is the number of stages divided by two. _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
jeff-o
Joined: Jul 19, 2009 Posts: 97 Location: Ontario, Canada
|
Posted: Sat Jul 25, 2009 9:29 pm Post subject:
|
 |
|
| Inventor wrote: | | jeff-o, it is Fo = fs / N, where N is the number of stages divided by two. |
Hmmm, so does that mean that you were "overclocking" the MN3209 to 200kHz in your frequency range estimates on the previous page? The datasheet says 10kHz-100kHz, though a chart later on does show operation to 300kHz and beyond...
Forgive my simplistic questions, but before I go ahead and order some MN3209s (and the drivers for them!) I need to know that I'm getting the right thing!
I'm right in the middle of puzzling over the "Extended Karplus Strong" algorithm to see that parts of it I can use, and which ones I can't replicate on my guitar. Converting from the block diagram to physical circuits is troublesome and the math long forgotten... |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 5964 Location: San Antonio, Tx, USA
Audio files: 258
|
Posted: Sat Jul 25, 2009 10:46 pm Post subject:
|
 |
|
Yes, it's a bit confusing what you can really do with the part when the datasheet is so confuzzled. _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
jeff-o
Joined: Jul 19, 2009 Posts: 97 Location: Ontario, Canada
|
Posted: Sun Jul 26, 2009 9:07 pm Post subject:
Microcontroller...? |
 |
|
I'm wondering now if the current crop of microcontrollers might be up to the task of implementing the KS algorithm. The programming involved is way above my skill level, but I know quite a few programmers who might be interested in helping out.
I may pursue a microcontroller solution in tandem with an all-analog solution... |
|
|
Back to top
|
|
 |
jeff-o
Joined: Jul 19, 2009 Posts: 97 Location: Ontario, Canada
|
Posted: Thu Jul 30, 2009 9:59 pm Post subject:
|
 |
|
Hey Inventor,
Have you had a change to mess around with any K-S filter stuff? I haven't had much time due to family stuff (happy things!) so I've basically been surfing the net trying to find sources for MN3209 and MN3204 ICs. According to my calculations they have the right delay lengths for an ordinary guitar and an ordinary bass guitar, respectively. Since I may only be able to fit four "strings" on the next guitar, I have to consider making a dedicated bass.
I've also been looking into dedicated microcontrollers and DSPs that could do everything digitally, but I know that I don't have the programming chops to use one of them just yet. I really must brush up on my C skilz! |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 5964 Location: San Antonio, Tx, USA
Audio files: 258
|
Posted: Fri Jul 31, 2009 12:24 am Post subject:
|
 |
|
Hi jeff-o,
I have been sick this week. I missed my radio show and slept all week - yucky. But I feel better now. I was able to set up my electronics bench and get the chips ready for the project. So that's at least a start. Once I get through my show, I'll have a look at it.
I would like to use this K-S circuit on one of my next projects, so I'm eager to give it a try. Right now I'm just thinking about it and how I'm going to test it. For example, I have a scope but it's kind of broken, and a meter. So how am I going to view the signals?
Maybe i'll build the LM386 amplifier with speaker first and *listen* to the signals...
Les _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
jeff-o
Joined: Jul 19, 2009 Posts: 97 Location: Ontario, Canada
|
Posted: Fri Jul 31, 2009 2:12 am Post subject:
|
 |
|
| Yeah, it seems very much like a "try it and hear if it sounds good" sort of thing. The scope will come in handy later for fine-tuning and debugging. |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 5964 Location: San Antonio, Tx, USA
Audio files: 258
|
Posted: Fri Jul 31, 2009 2:53 am Post subject:
|
 |
|
You know, I've given this some thought, and I feel like I can implement the KS algorithm one piece at a time using ChucK. I can build code that tests the circuit using the line-in jack to probe two channels and the headphones out jack to drive two channels.
This is all very much in accord with my eChucK project, so I think I'll do it that way. In fact, I can just hook up a delay line and test it and go from there. I'm glad i've chosen to take some time and think about it and let things sink in a little bit.
I'll keep you posted on progress.
Les _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
yerpa58
Joined: Mar 08, 2008 Posts: 54 Location: Wisconsin
Audio files: 4
|
Posted: Fri Jul 31, 2009 11:30 am Post subject:
|
 |
|
Using rare delay line ICs for Karplus-Strong seems like doing it the hard way. Any cheap microcontroller with some internal RAM can do the job all by itself. Here is an example, although this algorithm is hard to tune. I think your VCO method may be more useful in the long run.
http://www.reprolabs.com/fs7.htm |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 5964 Location: San Antonio, Tx, USA
Audio files: 258
|
Posted: Fri Jul 31, 2009 11:57 am Post subject:
|
 |
|
The trouble is, Any cheap microcontroller requires a programmer for which I don't have any budget. It's a good solution for folks who want to invest in a programmer though. When I looked at dsPIC chips, I found that they were not available in low pin-count with a DAC.
There are lots of advantages to a microcontroller approach but I want to try out an analog approach first for my particular application. _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
jeff-o
Joined: Jul 19, 2009 Posts: 97 Location: Ontario, Canada
|
Posted: Sat Aug 01, 2009 9:30 am Post subject:
|
 |
|
| yerpa58 wrote: | Using rare delay line ICs for Karplus-Strong seems like doing it the hard way. Any cheap microcontroller with some internal RAM can do the job all by itself. Here is an example, although this algorithm is hard to tune. I think your VCO method may be more useful in the long run.
http://www.reprolabs.com/fs7.htm |
Very interesting! I'm still considering using a microcontroller or similar device for my implementation. It is the one and only "ultimate" goal, the question for me is whether it will be "Prism Mark II" or "Prism Mark III." Alas, my programming skills leave much (ok, everything) to be desired so that is a big brick wall in my case.
Thanks for the link, though. It proves to me that two strings can be simulated on a simple 8-bit PIC. A more powerful uC may indeed be able to handle 4 or 6 strings with all the bells and whistles I want to add! |
|
|
Back to top
|
|
 |
jeff-o
Joined: Jul 19, 2009 Posts: 97 Location: Ontario, Canada
|
Posted: Sat Aug 01, 2009 9:32 am Post subject:
|
 |
|
Also, I've found an inexpensive source for MN-series chips. They ship from Singapore but seem legit so far. If I don't get burned by someone on the other side of the Earth then I'll be sure to recommend them.  |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 5964 Location: San Antonio, Tx, USA
Audio files: 258
|
Posted: Wed Aug 19, 2009 5:12 pm Post subject:
|
 |
|
jeffo, for an update on the hardware of the project, see this thread:
http://www.electro-music.com/forum/topic-36165.html
I don't have it working yet but it's only been one day, so give me time.
Les _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
jeff-o
Joined: Jul 19, 2009 Posts: 97 Location: Ontario, Canada
|
Posted: Wed Aug 19, 2009 5:34 pm Post subject:
|
 |
|
You're a few days ahead of me, but my delay line ICs are finally here! I have ten MN3204s, ten MN3209s, and 20 MN3102s. They cost a total of about $120, which is pretty good considering some places sell individual chips for $20 or more! I bought them from www.utsource.net.
I'll try to set up a simple K-S filter sometime soon... |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 5964 Location: San Antonio, Tx, USA
Audio files: 258
|
Posted: Wed Aug 19, 2009 5:40 pm Post subject:
|
 |
|
kewl man, keep us posted!  _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
jeff-o
Joined: Jul 19, 2009 Posts: 97 Location: Ontario, Canada
|
Posted: Thu Oct 29, 2009 9:54 am Post subject:
|
 |
|
Well, "sometime soon" hasn't come yet.
Inventor, have you had any luck? |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 5964 Location: San Antonio, Tx, USA
Audio files: 258
|
Posted: Mon Nov 02, 2009 12:19 am Post subject:
|
 |
|
hey jeff-o, i posted to my thread in eChucK forum, so go there for some news. I just got done prototyping the oscillator which works at low speed. Need to test it at high speed, but guess what?
I met Rob.
No shit, Howard's friend Rob and he's a true wizard at analog electroonics. Karplus-Strong ain't nothing new to him and he knew all about it. He told me some secret details that rock. I will be including them on the next version of the circuit. The man is so incredible with his knowledge and intelligence that I had him sign the back of my paper check that he drew a schematic on.
So kick ass man! you just wait, there will be a ks board for you to use in the future. Best to ya man, Love and all that stuff. Be good.
Les _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
jeff-o
Joined: Jul 19, 2009 Posts: 97 Location: Ontario, Canada
|
Posted: Mon Nov 02, 2009 4:38 am Post subject:
|
 |
|
Whoa, cool! I sent a few emails to Rob I think, but he didn't draw a schematic for me! Well if you've got something in the works then I'll just have to sit tight and see what you've come up with. I don't see myself having time to work on my next guitar until the new year now -- I've committed myself to building a bunch of Christmas presents that will eat up the remaining scraps of free time.
Heading over to eChuck now... |
|
|
Back to top
|
|
 |
|