Re: [Csnd] common lisp piano patch translated to csound

Hi Stefan,
thank you for sharing this. I wonder, could you supply a direct download link for the code? From the Linux commandline I can't rreally access the interactive site and even on GUI systems, it's not ideal. No problem if you can't or would rather not. I just thought I'd ask, since this sounds very interesting.

Best wishes,

Jeanette

Hi Stefan,
many thanks! That worked. Hm, that sounds really nice. I once tried to work at somjething like that from first principles, from Julius O Smith's book, but never got even close.

Best wishes,

Jeanette

Jeanette,

Which of the four Julius Smith books?

-Partev

Hi Partev,
sorry, couldn't reply to your message directly, because it somehow got lost on this account.

I used this book:

It's the physical modelling one. Good book and I love that it's online with LaTex formulae.

Best wishes,

Jeanette

Has a good section on digital waveguides and piano modeling.
Hoped it was that book. Have all four myself. Really gets into it.
Then there is the Spectral Modeling book, more frequency domain
deep program stuff I’m still reviewing that.

Not easy translating to Csound, but it can be done with some adapting.
His book examples use C++ or Matlab, though these days he uses FAUST
and Claude.

https://ccrma.stanford.edu/~jos/pasp/Digital_Waveguide_Model.html
I’ve dabbled at the Lossless Waveguide diagram and rendered it in Csound.
Next is render it for pluck or hammer initialing.
FAUST stuff is on his home page. https://ccrma.stanford.edu/~jos/aspf/

Enjoy the explorations.

-Partev

Hi Stefan,
Maybe I'm just being dumb (or maybe firefox is!) but I don't get any joy from
the'mega.nz' link. It's a pretty blank page that can't seem to do anything!
(Hmmm, I've just read the msil that came in while typing this, and it seems
it worked for Jeanette. I'll investigate further. Meanwhile...)

...And to original questioner Jeanette, I couldn't make the csound IDE page do
much either(!), until I realized that the top of the page had the usual menu
bar. The left-hand 'File' menu item opens a list which includes 'Export project(.zip)'.
Clicking that entry downloads a complete zip of the project (There are several files.)

Brandon, I'm afraid that what you sent was only the main CSD. There is also
an instrument UDO (the main guts) and a score file.

I've been searching for the original Lisp code that Stefan sourced (I can't
decode the UDO with its German comments!). A description of Julius's reasoning
minght have been helpful!

  -- Pete --

Strange...! I tried the mega.nz link several times. Each time I'd see the 'loading'
arc start and then stop for good aout a third of the way through. Just tried again,
and this time the loading completed and it showed the appropriate files. I think my
'zip' method was a little simpler though!

  -- Pete --

Hi Pete,
neither website would do anything for me, since I work exclusively on the Linux commandline. It would be a question of accessibility anyway.

As for mega.nz on Linux there is a package called megacmd, which includes one program called mega-get:
mega-get <url>
Works like a treat! Just in case you ever come across it again.

Best wishes,

Jeanette

Hi Jeanette,
Thanks for the info... I'm not clear how you access the web without a browser
-- I assumed you had one with verbal output or something.

(For others) I have been exploring the IDE page a bit more, and managed to make
some sense of it. I found more of what the various gadgets do. In particular
there is a 'Start' triangle icon at top right which displays "run project.csd"
when you hover over it, and when you click it it appears to do so and generates
a "piano.mp3" file. However the file is always only 44 bytes long!

The zip package I did actually download earlier does run "out of the box" and
generates a nice 12-second piano.mp3 file. It's nowhere near realtime though.
Can't make it feed anything sensible to dac.

Meanwhile... I've been having the usual adventures that seem to happen to me
when I'm just about to head for bed! The "menu bar" that was on the IDE page
has simply vanished! I've found no way to bring it back!! Instead there is
a faint square gadget at top left that brings up the menu (vertically instead of
horizontally) with the wame choices. Gaahh! Then -- something that has never
happened before! -- Firefox suddenly announced thqt it was doing the "requested
updates" (I hadn't!); the progress bar eventualy finished, but... no firefox!!
I eventaully found a very incomplete directory in /usr/lib, so I had to run
a manual install! There was no longer the usual firefox launch button at the
bottom of the screen, but it only took me about 15 minutes to get that back (:-/).
Aren't computers such time savers...? (:-))

So... at 1:30 am. I *am* now heading for bed!

  -- Pete --