QB64 Phoenix Edition
TankDrum - Virtual tankdrum instrument to play record songs - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Prolific Programmers (https://qb64phoenix.com/forum/forumdisplay.php?fid=26)
+---- Forum: Dav (https://qb64phoenix.com/forum/forumdisplay.php?fid=34)
+---- Thread: TankDrum - Virtual tankdrum instrument to play record songs (/showthread.php?tid=333)

Pages: 1 2 3


RE: TankDrum - Virtual tankdrum instrument to play record songs - mnrvovrfc - 06-01-2023

(06-01-2023, 12:48 PM)grymmjack Wrote: Is MIDI device input a possibility for future of QB64?

I know in QBJS we can do it through WebMIDI

Csound could handle MIDI input through PortMIDI. It seems to be the only good way for a programming system for hobbyists.

https://github.com/PortMidi/PortMidi

https://csound.com/docs/manual/MidiTop.html

(06-01-2023, 01:47 PM)grymmjack Wrote: One thing I wanted to say about the drum machine.. It seems like there is a limiter or compressor or some kind of dynamics DSP going on because when I stack multiple steps across with the full "hot" step, not the dark red, it somehow compensates to not clip.

This is part of the code for _SNDOPENRAW.

https://qb64phoenix.com/qb64wiki/index.php/SNDOPENRAW


RE: TankDrum - Virtual tankdrum instrument to play record songs - Dav - 06-03-2023

Hey, thanks @grymmjack! It was fun making this, but it is funner (if that’s a word) to see people actually using it.  I made a updated version of this a few months ago, didn’t post it.  I’ll dig it up and post it.  If you want to add anything to it please do.  

Nice to see another musician hanging out here!

- Dav


RE: TankDrum - Virtual tankdrum instrument to play record songs - grymmjack - 06-03-2023

(06-03-2023, 07:23 PM)Dav Wrote: Hey, thanks @grymmjack! It was fun making this, but it is funner (if that’s a word) to see people actually using it.  I made a updated version of this a few months ago, didn’t post it.  I’ll dig it up and post it.  If you want to add anything to it please do.  

Nice to see another musician hanging out here!

- Dav

Awesome. I'd love to try new version.

I was having a blast with this. It's so pretty. I didn't know what a tank drum was before you shared this.


RE: TankDrum - Virtual tankdrum instrument to play record songs - SierraKen - 08-13-2024

This is AWESOME Dav! I've wanted a real one of these for years, and now I have one just like it! I just recorded my first little song too. 

When I first started it though I had an error with the icon file, not finding it. It was in the correct folder but for some reason $EXEICON:'TankDrum\img\tankdrum.ico doesn't see it. It's been years since I programmed so maybe I'm forgetting something in the settings? I went around that line and the _ICON line to make it work. I did change the line to try different wordings of the folder, but I would think that would work? Is it because I have all my QB64 programs in one giant folder? The other files work well though. 

Anyways, thanks for making this!


RE: TankDrum - Virtual tankdrum instrument to play record songs - NakedApe - 08-13-2024

Very cool, Dav. Excellent sound and reverb. I had to comment out the .ico loading on line 44 for it to run...


RE: TankDrum - Virtual tankdrum instrument to play record songs - bplus - 08-13-2024

For some reason QB64 gets stupid finding those icon files, sometimes a "./" at start of path helps ie you have to tell it to look in the current folder for the file.


RE: TankDrum - Virtual tankdrum instrument to play record songs - JRace - 08-13-2024

It's not QB64.

Unlike Windows, *nix systems do not start searching from the program directory by default.

On Linux, if the path "TankDrum\img\tankdrum.ico" is within the current directory then you need to tell that to the OS: "./TankDrum\img\tankdrum.ico".

If you want full cross-system portability you can do that in Windows as well.  There's no harm in it.


RE: TankDrum - Virtual tankdrum instrument to play record songs - bplus - 08-13-2024

I don't know about *nix systems nor much about Linux. I use Windows and just about everyone's Icon file gets an error when compiling whereas image and sound files are easily found.


RE: TankDrum - Virtual tankdrum instrument to play record songs - Dav - 08-15-2024

Hey thanks @NakedApe  (thanks @SierraKen too, I forgot to respond to your post).  Hmm, looks like I forgot to post the new version here with fixes and some extra things.  I'll try to dig that up - since I switched to Linux my older projects are on a backup disk somewhere now...

- Dav


RE: TankDrum - Virtual tankdrum instrument to play record songs - SierraKen - 08-18-2024

Hi Dav, I just grooved out using this app and your Drum Machine you made many years ago. I recorded myself playing the mouse on the Tank Drum and at the same time I had the Drum Machine playing one of my simple beats. I used the free recording app called Audacity to record with. It's a 2 minute song called, "Be Happy.mp3". Check it out. Smile

Thanks very much for making these 2 apps!