From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9d4129b011f14c7a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Warren Newsgroups: comp.lang.ada Subject: Re: A very Hacky Holidays Date: Fri, 17 Dec 2010 18:09:00 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Injection-Date: Fri, 17 Dec 2010 18:09:00 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="9f8M0iN5t54V+4DF/iqO8g"; logging-data="14192"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XOT/pIIzFKrrx2fFDJwFDYdZoyJM+X9I=" User-Agent: Xnews/5.04.25 X-Face: &6@]C2>ZS=NM|HE-^zWuryN#Z/2_.s9E|G&~DRi|sav9{E}XQJb*\_>=a5"q]\%A;5}LKP][1mA{gZ,Q!j Cancel-Lock: sha1:irfTgpTi6oeOMsjKFVGf8s8sdgU= Xref: g2news2.google.com comp.lang.ada:16983 Date: 2010-12-17T18:09:00+00:00 List-Id: R Tyler Croy expounded in news:slrnigl66m.b8b.tyler@kiwi.local: > For me Ada is relegated to being used in my free time, a > lot of which I will be having to hack on things over the > upcoming vacation. > > I wanted to ask you all what you may/may not be hacking on > over the break, perhaps we could cheer each other on ;) > > A little positive reenforcement from your peers can never > hurt :) I've been working on an analog synthesizer. My MIDI module uses an ATmega168 using code written in Ada (thanks to Rolf's AVR-Ada project). My MIDI module seems to be exhibiting key rollover problems, which won't be hard to fix. I just need to add a nested "Note On" counter, so that I don't prematurely execute a physical "Note Off". The code is written in two tasks (actually threads under AVR- Ada). The main task processes MIDI events and queues some events for the 2nd task. The 2nd task takes care of waking up at the right time (via timeouts) and performing ADSR voltage changes (DAC # 2) and creation of trigger and gate signals (digital outputs). Pitch is also established by sending a value to the first DAC, using an SPI interface. My original code was all C-ish Arduino stuff, which I was not very happy with. When I discovered AVR-Ada, I jumped at the opportunity and rewrote it all in Ada. It is so much nicer to work with and Ada actually pointed out a couple of previously hidden bugs (in the C code). My latest adventures with the recently built VCA synth module, can be found below (there is at least one picture of the MIDI module in there somewhere): http://experimentalistsanonymous.com/board/index.php?topic= 2445.0 ( http://tinyurl.com/2d2p9vh ) I don't think you need to be a member to view the forum. Merry Christmas and Hacky New Year! Warren