DIV ARENA FORUMS

Harmonica Hero Simulator

dom cook - 11-4-2017 at 07:59 PM

Ever wanted to learn to play the harmonica like a pro without getting dribble over everything?.
Now's your chance.

Instructions:
When the prog starts press 1. (2 doesn't do anything yet.)
The coloured squares are the holes of the harmonica. Move the cursor over the hole you want to play and press left mouse to blow and right mouse to suck.
The harmonica is tuned to C. If you want chromatic notes(sharps /flats), hold down the space key. The horizontal bar on the right indicates this.
If you blow or suck too much in one go you can run out of breath. The vertical bar on the right shows the air level.

The lower down on the hole you have the cursor the harder you blow/suck and the louder the note. This also affects how quickly you run out of breath.

The next step is to add a composer and then some sort of game where you have to follow along to a tune as the notes scroll towards you. (You know, the usual crapp)

Attachment: harmony03.PRG (5kB)
This file has been downloaded 1087 times

Attachment: note512.wav (907kB)
This file has been downloaded 1160 times

SNAP0010.png - 1kB

dom cook - 12-2-2019 at 07:28 PM

Owing to overwhelming interest in this project, I have decided to resurrect it. STANDBY.....

Vortigano - 13-2-2019 at 12:55 AM

Hi, i'll try your prg. Last year 2018 i wrote a similar prg in the old turbo pascal and tried to translate to div. My problem was that my sound loop in A440 sounded a little bad so i abandoned the project.

Vortigano - 13-2-2019 at 01:13 AM

I tried to make a "flute synth" using div, 1 octave, i had problems with the sound of the A440 loop and canceled it. I like your work :)

MikeDX - 13-2-2019 at 08:46 AM

Whoah!

Dom Cook are you for real? Are you back??? Amazing!

dom cook - 13-2-2019 at 08:21 PM

Thanks Mike. I haven't had a usable computer for the last couple of years. When the last one died I lost a few projects. The computer I have now is not exactly ideal but it works. Anyway, I'm happy to be back coding and grateful that this website is still here.

dom cook - 13-2-2019 at 08:26 PM

Quote: Originally posted by Vortigano  
I tried to make a "flute synth" using div, 1 octave, i had problems with the sound of the A440 loop and canceled it. I like your work :)


Thanks,
What sort of problem? Perhaps it can be solved. If you revived your flute program too, we'd be on the way to starting a DIV orchestra.

Vortigano - 13-2-2019 at 10:27 PM

It's probably that i used a bad wav format, now i prefer to use *.ogg for mono sound loops. I don't remember exactly my problem.

CicTec - 13-2-2019 at 10:38 PM

Quote: Originally posted by dom cook  
Owing to overwhelming interest in this project, I have decided to resurrect it. STANDBY.....

Welcome back, dom cook. :)

MikeDX - 14-2-2019 at 09:02 AM

Quote: Originally posted by dom cook  
Thanks Mike. I haven't had a usable computer for the last couple of years. When the last one died I lost a few projects. The computer I have now is not exactly ideal but it works. Anyway, I'm happy to be back coding and grateful that this website is still here.


Very very glad to have you back Dom!

dom cook - 14-2-2019 at 05:37 PM

Glad to be back Chaps,
Although I was always here in spirit.

Remember
"Great art is never finished, only abandoned"




[Edited on 14-2-2019 by dom cook]

dom cook - 14-2-2019 at 05:45 PM




Attachment: SNAP0000.PCX (25kB)
This file has been downloaded 800 times


dom cook - 14-2-2019 at 07:48 PM

How come the picture doesn't show?

CicTec - 14-2-2019 at 07:57 PM

Maybe the forum don't support PCX image visualization or you need to close it on image tag.

dom cook - 15-2-2019 at 04:14 AM


SNAP0000.png - 58kB

That's better.
(Hey, it's been a while)

DIVTUNES

dom cook - 16-2-2019 at 05:51 PM

This is a sub-project. I need a way to make a bunch of tunes for our Harmonica Hero (TM) to play along to. So I'm making a little player/recorder.
Last time round I got a bit daunted by this prospect but I return from the mountain top renewed.

SNAP0001.png - 29kB

Attachment: DIVTUNES01.PRG (5kB)
This file has been downloaded 753 times

Attachment: note512.wav (907kB)
This file has been downloaded 780 times

[Edited on 17-2-2019 by dom cook]

Attachment: notation.FNT (29kB)
This file has been downloaded 776 times


MikeDX - 16-2-2019 at 07:30 PM

My god that wav file. I think everyone in the street heard when i hit play on that. ouch!

Going to be interesting to see what comes of this

dom cook - 17-2-2019 at 04:39 AM

It's a refined taste, like good coffee - great for clearing out the cobwebs.

Vortigano - 17-2-2019 at 04:49 AM

Quote: Originally posted by dom cook  
This is a sub-project. I need a way to make a bunch of tunes for our Harmonica Hero (TM) to play along to. So I'm making a little player/recorder.
Last time round I got a bit daunted by this prospect but I return from the mountain top renewed.


The notation.fnt is missing so you have to ignore errors in the debugger
or change the line 74 :

notation=load_fnt("notation.fnt");

to

notation=0; // notation=load_fnt("notation.fnt");

I liked it. :)

dom cook - 17-2-2019 at 08:43 AM

Oops! I've added the font to the above post

dom cook - 19-2-2019 at 07:58 PM

Well this little sub-project is already a lot bigger than the main one and there's still not much to show for it on the surface. Despite appearances it's getting there.




SNAP0000.png - 33kB

CicTec - 20-2-2019 at 10:23 AM

Hi dom,

What build of DIVDX are you currently using? because we are noticing that some users have less problems on some builds (maybe earlier) instead of others.

dom cook - 20-2-2019 at 09:07 PM

I had to take it back to 2016-12-01. because of an issue with save_map not working on the later versions.
Been using it for a few days now and haven't come across any noticable bugs. apart from the ink colour for numbers defaulting to black every now and again when editing maps.
This is on Windows.
The most recent versions for Linux wouldn't work at all.

CicTec - 20-2-2019 at 09:32 PM

Quote: Originally posted by dom cook  
I had to take it back to 2016-12-01. because of an issue with save_map not working on the later versions.
Been using it for a few days now and haven't come across any noticable bugs. apart from the ink colour for numbers defaulting to black every now and again when editing maps.
This is on Windows.

Ok, i see...

Have you ever tried the last build I posted for windows?
http://div-arena.co.uk/forum2/viewthread.php?tid=246

If you are interested in trying it, first make a backup of the current folder before installing the new build.

We are seeing which parts of the repository code to update to get an updated build and see which bugs are still present or new, and test feedback would be useful.

Quote: Originally posted by dom cook  

The most recent versions for Linux wouldn't work at all.

Let's say that I could generate a build for Linux equal to the last released build for windows, but given the problems that the forum has with attachments, it would be better to update the repository so as to get a nightlybuild.

dom cook - 21-2-2019 at 04:57 AM

I'll try it.


The Linux thing isn't a problem for me right now. The computer I was using was on it's last legs anyway and has now stopped stopped altogether. However I'm thinking of geting a new computer before long and would quite like to get Linux. Would that make my life harder with respect to DIV?

CicTec - 21-2-2019 at 08:54 AM

Ok, thank you, I await your feedback

No, the builds are also generated for Linux, so you should not have problems to use DIV, the only drawback would be if you decide to create external libraries to be used in DIV, when in Linux, Windows and other OS have different extensions and it would be necessary compile and test them from the specific SO to make sure you have no problems.

dom cook - 24-2-2019 at 04:37 PM

Still working on it.

div_tun_ed 2402.png - 108kB

dom cook - 11-3-2019 at 12:00 PM



DIVTracker.png - 123kB

[Edited on 20-4-2019 by dom cook]

Attachment: DXTracker10.PRG (35kB)
This file has been downloaded 751 times


Vortigano - 11-3-2019 at 01:43 PM

I wish to try some Lennon cover or some nes-rockman secuence :) .