4 Degrees Of Programming Distraction

One of the advantages about being a hobbyist coder is that I have no deadlines and can go where my interests take me. One of the disadvantages about being a hobbyist coder is that I have no deadlines and can go where my interests take me. Here's a cautionary tale of four degrees of programming distraction I've just blundered through. Maybe I need to focus! There was the plan... As long ago as New Year's Day 2021 I confidently announced that I'd decided on a related pair of programs I was going to concentrate on. Two days later I'd decided on a third one to join the group. So I started on them right? Not a chance! 1st degree I was working on a music mix and made my usual mistake of spending too long on the mix without resting my ears. Right, I thought, what I need is a little timer app that tells me to take a break. But not one of the many available. Oh no. What I want is one tailored to the ideal work pattern when mixing music. 2nd degree So, I

New Unit2NS Application Released in Beta

Since the introduction of namespaces to Delphi I've been struggling to remember which namespaces some units belong to. I like this feature and would rather provide the fully qualified unit name in my source code rather than specifying a list of assumed namespaces in project options, but I do need some help finding the correct namespace. Years ago Dr Bob had a little utility on his website that did this, but I wanted a little app to run locally. After drawing a blank casting around for something that could help me I bit the bullet and cobbled together a little app myself. It's called Unit2NS . If you give it a unit name it displays a list of one or more namespaces the unit could belong to. Once you've chosen a namespace you can copy the fully qualified unit name to the clipboard for pasting into your code editor. It also lets you display all the units belonging to a given namespace, a bit like the Delphi IDE (sometimes!) does. OK, "How does it know about the name

A Little Birthday Rant!

Today is my birthday, I'm 62 today. I'm British and I'm officially a grumpy old man. So am I allowed a little birthday rant? My topic: The failure of software developers to internationalise dates irritates much, much more than it probably should! Well, it is still my birthday in the GMT/UTC time zone. It's 3/1/2021. In a significant chunk of the world it is or recently was 3/1/2021. So why the expletive are Google still sending me stats that say it's the 1st of March (1/3/2021)? On the increasingly rare occasions they send me cheques they're in pounds, not dollars. So why are they still getting the date format wrong for most of the bloody world? Sadly Google are not alone. Some British companies get this wrong too, which is even worse. Here's a list of the countries and the date formats they use. This is according to the gods of Wikipedia (so it must be right!) M/D/Y isn't that popular is it? Maybe the Google developers should start usin

Another New Application for 2021

Following on from my announcement that I'm planning to start work on two new related apps fro 2021 I realised that the MIDIView app I announced will only test reading MIDI files, when the most important part of the main MathsNMusic application with respect to MIDI will be to write MIDI data. Duh! So I've decided to add another little app to the list. This is one that I was originally planning as a web app and abandoned. It's called KeyNote and will display the notes of various musical scales and, crucially for researching MIDI, will play them. There's a new GitHub repo for KeyNote too. It's delphidabbler/keynote . EDIT: There maybe a change of plan - I got distracted! Here's a mock up for the web app that I did several months ago in Figma: And here's a provisional design in the Delphi IDE: The piano keyboard component can wait: can't find an open source one, so it looks like I'll have to build one ... eventually!

Welcome freebie from Embarcadero for C++ fans

The other day I heard for the first time, from Jim McKeeth, about Embarcadero releasing a new version of Dev C++ that they'd forked from Bloodshed Dev-C++ and Orwell Dev-C++. It's an open source, free, C++ IDE. I'm probably late to the party, and most of you know about this already, but I thought I'd share anyway. What's this got to do with Delphi? OK it's a bit off topic, but it's written in Delphi! I've downloaded the portable version to have a tinker with. Now it's C++ (shudder!) and it's, thankfully, been years since I wrote anything in C, but I'm curious. Did I mention I'm an old tight wad and it's free? There are several themes available. I've chosen a dark one: If you're interested you can read more and/or download it on GitHub or on the Embarcadero site. Contributions to the project are welcome.

Happy New Year - Time For A New Start

If you're celebrating new year today, have a happy one. Let's hope it's somewhat better than 2020. First new year's resolution: I'm making myself start on a new application. As discussed in my previous post I was trying to decide whther to write something that helped in creating sample instruments for the Sforzando sampler or whether to write a program to help generate music from mathmatical sequences. EDIT: Should have known I'd never keep a new year's resolution: I got distracted ! The second choice has won out for two main reasons: I treated myself to the industry standard Kontakt (£eek!) sampler for Christmas. This is so much more sophisticated than Sforzando (£0) and I'll be using that to build new sample instruments instead. (As an aside, the fact that Kontakt has a scripting language that uses the := assignment operator pleases me more than it should!) Mathmatical sequences appeal to the dormant mathematician in me. So, there

Time to start on a new application, but what?

It's been years since I started to develop a new application in Delphi and it's about time I did - I'm feeling the need for an injection of enthusiasm that simply maintaining old code doesn't provide. Now, love making music, so I guess that's the way this application is headed. There are a couple of possibilities that I'm considering. A tool to help generate .sfz open sampler format files used by samplers such as Sforzando . Those little beasts are pigs to code by hand and the few existing tools don't meet my needs. Because this is a coding blog, I guess I ought to show some SFZ code: I'm curious about generating music from mathmetical sequences (yes, really). I suppose this appeals to me because I'm both a maths graduate and an amateur musician The apps on the net I've come across aren't very musical or aren't intuitive to use. Maybe I should have a crack at something like that. To give you an idea